4 Replies Latest reply on Jun 22, 2006 4:25 PM by jason.greene

    ClassNotFoundException with jbossws1.0.1

    dannox02

      I've just upgraded my jbossws installation from jbossws1.0.0 GA to jbossws 1.0.1. My test service that worked fine on 1.0.0 (a jsr-181 POJO endpoint) deploys fine, but when I try to invoke an operation I get the following ClassNotFoundException.

      I am using JBoss 4.0.4 GA which was unzipped (I did not use the installer). This worked fine with 1.0.1, and all I've done is overwrite the SAR and JAR file. Any ideas?

      12:35:22,828 ERROR [SOAPFaultExceptionHelper] SOAP request exception
      java.lang.ClassNotFoundException:
       com.danny.jbossws.service.JbossWsTest
      
       at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
      der.java:1352)
       at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
      der.java:1198)
       at org.jboss.ws.server.ServiceEndpointInvokerJSE.loadServiceEndpoint(Ser
      viceEndpointInvokerJSE.java:63)
       at org.jboss.ws.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvo
      ker.java:87)
       at org.jboss.ws.server.ServiceEndpoint.handleRequest(ServiceEndpoint.jav
      a:219)
       at org.jboss.ws.server.ServiceEndpointManager.processSOAPRequest(Service
      EndpointManager.java:355)
       at org.jboss.ws.server.StandardEndpointServlet.doPost(StandardEndpointSe
      rvlet.java:109)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
       at org.jboss.ws.server.StandardEndpointServlet.service(StandardEndpointS
      ervlet.java:75)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:252)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:173)
       at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
      lter.java:96)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:202)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:173)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
      alve.java:213)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
      alve.java:178)
       at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
      yAssociationValve.java:175)
       at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
      e.java:74)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
      ava:126)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
      ava:105)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
      ve.java:107)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
      a:148)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
      :869)
       at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
      rocessConnection(Http11BaseProtocol.java:664)
       at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
      int.java:527)
       at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWor
      kerThread.java:112)
       at java.lang.Thread.run(Thread.java:595)
      


        • 1. Re: ClassNotFoundException with jbossws1.0.1
          pablojavierpy

          It is the "EXACT SAME" jar/ear you are deploying?

          It seems to me that is a packagin' problem...

          • 2. Re: ClassNotFoundException with jbossws1.0.1
            dannox02

            Yes it is exactly the same, I just copied from one directory to the other.

            • 3. Re: ClassNotFoundException with jbossws1.0.1
              dannox02

              I am still having problems getting jboss1.0.1 to work correctly. Here are the steps I used to set this up.

              1. Download jboss 4.0.4 GA zip file and unzip
              2. Delete client/jbossws14-client.jar and /server/default/deploy/jboss14.sar
              3. Replace the above files with the .jar and .sar from jbossws 1.0.1
              4. Modify the jboss-service.xml in jbossws.sar to remove dependancy on EJB 2.1 and 3.

              The web service deploys correctly, but when I try to access it, I get the above exception. This IS the EXACT same service that works on 1.0.1 (which was also setup using the above process). The only thing different between the two servers that I have is that I used jbossws 1.0.0 on one and 1.0.1 on the other.

              Does 1.0.1 introduce some other dependancy which is not satisfied with the above procedure? Why would this work for 1.0.0 but not 1.0.1?

              • 4. Re: ClassNotFoundException with jbossws1.0.1
                jason.greene

                JSR-181 requires JDK5 which is only in the EJB3 profile. You need to use the installer to get that. There is also an issue with the 1.0.1 release. See the sticky readme forum post for the workaround.

                -Jason