5 Replies Latest reply on Mar 16, 2005 4:23 PM by Thomas Diesler

    Class not found error when deploying with JBoss401

    Jose Luis Lopez Newbie

      Hi,

      I am trying to deploy an application (JBoss401RC1) based on servlet+ejb but it shows the following errors (Class not found):

      16:36:54,972 INFO [EARDeployer] Init J2EE application: file:/C:/NM/JBoss/jboss-4.0.1RC1/jboss-4.0.1RC1/server/default/deploy/HelloService4.ear

      16:36:55,914 INFO [TomcatDeployer] deploy, ctxPath=/HelloService, warUrl=file:/C:/NM/JBoss/jboss-4.0.1RC1/jboss-4.0.1RC1/server/default/tmp/deploy/tmp13496HelloService4.
      ts/helloService4-exp.war/

      16:36:56,434 INFO [WSDLFilePublisher] WSDL published to: file:/C:/NM/JBoss/jboss-4.0.1RC1/jboss-4.0.1RC1/server/default/data/wsdl/helloService4.war/MyHelloService.wsdl

      16:36:56,845 WARN [TypeMappingDescription] Class not found: helloservice3Web.HelloIF_createSubscriber_RequestStruct

      16:36:56,855 WARN [TypeMappingDescription] Class not found: helloservice3Web.HelloIF_createSubscriber_ResponseStruct

      16:36:56,855 WARN [TypeMappingDescription] Class not found: helloservice3Web.HelloIF_deleteSubscriber_RequestStruct

      (...)

      16:36:56,975 INFO [AxisService] WSDD published to: C:\NM\JBoss\jboss-4.0.1RC1\jboss-4.0.1RC1\server\default\data\wsdl\helloService4.war\MyHelloService.wsdd

      16:36:56,995 INFO [AxisService] Web Service deployed: http://localhost:8080/HelloService/JoseluService

      16:36:57,065 INFO [EARDeployer] Started J2EE application: file:/C:/NM/JBoss/jboss-4.0.1RC1/jboss-4.0.1RC1/server/default/deploy/HelloService4.ear



      Any hint about how to solve it?

      Thanks in advance

        • 1. Re: Class not found error when deploying with JBoss401
          Thomas Diesler Master

          You probably used wscompile to generate your jaxrpc-mapping.xml descriptor. This utility from Sun's JWSDP generates these types you are seeing. If you don't include them in your deployment - because you don't need them in your service endpoint interface (SEI) you can ignore these warnings or correct the jaxrpc-mapping.xml manually.

          If your WS is working, this is not an issue.

          • 2. Re: Class not found error when deploying with JBoss401
            Jose Luis Lopez Newbie

            Thanks for the reply, Thomas.
            Yes, you are right, I am using wscompile. I dont mind the existing warnings but I am not sure they affect to my Web Service because, in a few seconds, the following error is also shown:

            16:11:20,626 INFO [EARDeployer] Started J2EE application: file:/C:/NM/JBoss/jboss-4.0.1RC1/jboss-4.0.1RC1/server/default/deploy/HelloService4.ear

            16:11:57,639 FATAL [InternalException] Exception:
            java.lang.Exception: The OperationDesc for getSubsInfo was not synchronized to a method of helloservice3Web.HelloIF.
            at org.apache.axis.InternalException.(InternalException.java:106)
            at org.apache.axis.description.ServiceDesc.syncOperationToClass(ServiceDesc.java:869)
            at org.apache.axis.description.ServiceDesc.getSyncedOperationsForName(ServiceDesc.java:1216)
            at org.apache.axis.description.ServiceDesc.loadServiceDescByIntrospectionRecursive(ServiceDesc.java:1062)
            at org.apache.axis.description.ServiceDesc.loadServiceDescByIntrospection(ServiceDesc.java:983)
            at org.apache.axis.providers.java.JavaProvider.initServiceDesc(JavaProvider.java:730)
            at org.jboss.webservice.server.InvokerProvider.initServiceDesc(InvokerProvider.java:102)
            at org.apache.axis.handlers.soap.SOAPService.getInitializedServiceDesc(SOAPService.java:388)
            at org.apache.axis.deployment.wsdd.WSDDService.makeNewInstance(WSDDService.java:560)
            at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeployableItem.java:322)
            at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployableItem.java:307)
            at org.apache.axis.deployment.wsdd.WSDDDeployment.getService(WSDDDeployment.java:526)
            at org.apache.axis.configuration.FileProvider.getService(FileProvider.java:288)
            at org.apache.axis.AxisEngine.getService(AxisEngine.java:300)
            at org.jboss.webservice.server.ServiceEndpointServlet.doGet(ServiceEndpointServlet.java:72)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
            at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:370)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
            at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
            at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
            at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:66)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
            at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
            at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:54)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
            at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
            at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
            at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
            at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
            at java.lang.Thread.run(Thread.java:534)
            16:11:57,719 INFO [AxisServlet] Exception:
            org.apache.axis.InternalException: java.lang.Exception: The OperationDesc for getSubsInfo was not synchronized to a method of helloservice3Web.HelloIF.
            at org.apache.axis.description.ServiceDesc.syncOperationToClass(ServiceDesc.java:869)
            at org.apache.axis.description.ServiceDesc.getSyncedOperationsForName(ServiceDesc.java:1216)
            at org.apache.axis.description.ServiceDesc.loadServiceDescByIntrospectionRecursive(ServiceDesc.java:1062)
            at org.apache.axis.description.ServiceDesc.loadServiceDescByIntrospection(ServiceDesc.java:983)
            at org.apache.axis.providers.java.JavaProvider.initServiceDesc(JavaProvider.java:730)
            at org.jboss.webservice.server.InvokerProvider.initServiceDesc(InvokerProvider.java:102)
            at org.apache.axis.handlers.soap.SOAPService.getInitializedServiceDesc(SOAPService.java:388)
            at org.apache.axis.deployment.wsdd.WSDDService.makeNewInstance(WSDDService.java:560)
            at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeployableItem.java:322)
            at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployableItem.java:307)
            at org.apache.axis.deployment.wsdd.WSDDDeployment.getService(WSDDDeployment.java:526)
            at org.apache.axis.configuration.FileProvider.getService(FileProvider.java:288)
            at org.apache.axis.AxisEngine.getService(AxisEngine.java:300)
            at org.jboss.webservice.server.ServiceEndpointServlet.doGet(ServiceEndpointServlet.java:72)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
            at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:370)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
            at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
            at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
            at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:66)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
            at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
            at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:54)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
            at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
            at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
            at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
            at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
            at java.lang.Thread.run(Thread.java:534)


            So, have the warnings anything to do with the final error?

            Thanx

            • 3. Re: Class not found error when deploying with JBoss401
              Thomas Diesler Master

              When JBossWS deploys a WS it generates the Axis propriatary wsdd deployment descriptor, which is saved for debugging in ${server.data.dir}/wsdl/[deployment]

              It introspects the types being used by the SEI and also scannes the jaxrpc-mapping.xml for any additional (nested) types.

              What you are seeing is a mismatch of Axis operation description from the wsdd and the actual SEI signature. Inspect your jaxrpc-mapping and the generated wsdd then you will probably find the mismatch to your SEI.

              In the new JBossWS implementation you will be able to use annotations. These sync problems will then be history.

              • 4. Re: Class not found error when deploying with JBoss401
                Georg Hallingstrom Newbie

                Hello,

                I have just switched from rpc/literal to doc/literal since there are problems on the client side (VB). At the first doc/lit deployment I am stuck with this problem on the server side...

                In which jboss release will this "new JBossWS implementation" occur?

                Best regards,

                Georg