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

Documentation pojoguide example has several issues

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.5.5
    • 1.5.6
    • documentation
    • Windows XP

    Description

      There are several issue with the pojoguide example documentation at file:///c:/myPrograms/axis2-1.5.5/site/docs/pojoguide.html

      1) When deploying exploded folder Axis2 throws a ClassCastException exception.
      =>
      [INFO] Deploying Web service: Axis2UserGuideService.aar - file:/C:/apps/tomcat5.5.7lc/webapps/axis2/WEB-INF/services/Axis2UserGuideService.aar
      [INFO] Deploying Web service: SampleService.aar - file:/C:/apps/tomcat5.5.7lc/webapps/axis2/WEB-INF/services/SampleService.aar
      [INFO] Deploying Web service: version-1.5.5.aar - file:/C:/apps/tomcat5.5.7lc/webapps/axis2/WEB-INF/services/version-1.5.5.aar
      [INFO] The WeatherService service, which is not valid, caused java.lang.ClassCastException: org.apache.axis2.classloader.JarFileClassLoader canno
      t be cast to org.apache.axis2.deployment.DeploymentClassLoader
      at org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:131)
      at org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup(ArchiveReader.java:101)
      at org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:178)
      at org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:82)
      at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
      at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:661)
      at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
      at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:337)
      at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:241)
      at org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:131)
      at org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAxisConfigurator.java:284)
      at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:95)
      at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:567)
      at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:452)
      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1068)
      at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:900)
      at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3823)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4087)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
      at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:800)
      at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:695)
      at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
      at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1106)
      at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
      at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1019)
      at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1011)
      at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:440)
      at org.apache.catalina.core.StandardService.start(StandardService.java:450)
      at org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
      at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)

      [INFO] org.apache.axis2.deployment.DeploymentException: org.apache.axis2.classloader.JarFileClassLoader cannot be cast to org.apache.axis2.deploy
      ment.DeploymentClassLoader
      19/09/2011 8:35:22 AM org.apache.catalina.core.ApplicationContext log
      =>

      Workaround:
      Deploy WeatherService.aar in stead

      2)
      The pojoguide RPC client Qname will throw an AxisFountException
      =>
      [INFO] org.apache.axis2.deployment.DeploymentException: The WeatherService service group name is not valid.
      [INFO] Deploying Web service: WeatherService.aar - file:/C:/apps/tomcat5.5.7lc/webapps/axis2/WEB-INF/services/WeatherService.aar
      [ERROR] Exception occurred while trying to invoke service method setWeather
      org.apache.axis2.AxisFault: namespace mismatch require http://service.pojo.sample found http://service.pojo.sample/xsd
      at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:177)
      at org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver.invokeBusinessLogic(RPCInOnlyMessageReceiver.java:63)
      at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:114)
      at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:173)
      at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:173)
      at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:738)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)
      at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
      at java.lang.Thread.run(Thread.java:619)
      [ERROR] org.apache.axis2.AxisFault: Exception occurred while trying to invoke service method setWeather
      ...
      =>

      Workaround:
      For each Qname change namespaceURI to: "http://service.pojo.sample"

      3)
      Deployment of WeatherService.aar sows error message for missing service group in services.xml

      Workaround:
      Wrap service element in serviceGroup element

      Attachments

        Activity

          People

            Unassigned Unassigned
            johnzoet John Zoetebier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: