Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-4141

generating empty <service> tag in wsdl after server restart

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.4, 1.5
    • Fix Version/s: 1.6.0
    • Component/s: kernel
    • Labels:
      None
    • Environment:
      AIX, tomcat 6
      java version "1.5.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build pap32dev-20080315 (SR7))
      IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 AIX ppc-32 j9vmap3223-20080315 (JIT enabled)

      Description

      Then I'm restarting Tomcat and getting WSDL (via http://URL/..?wsdl) I'm getting empty <service> tag (<wsdl:service name="IRunService"/>)
      If I redeploy service then wsdl is being generated fine.
      After some digging in the code I found following:
      1) after tomcat's restart in /org/apache/axis2/description/AxisService2WSDL11.java at generateSoap11Port() method service doesn't have any endpoints (axisService.getEndpoints().size() == 0)
      2) endpoints of service are populated from "global" endpoints list at AxisServlet::init(ServletConfig config) during services deployment
      3) "global" endpoints seem to be populated at AxisServlet::init(ServletConfig config) method too [b]but[/b] after deployment of services and therefore during initial deployment services don't get any endpoints. If we redeploy service then it gets correct list of endpoints

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                nelapsi Eduard
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: