Geronimo
  1. Geronimo
  2. GERONIMO-3792

Requesting result from a @WebService fails with NoClassDefFoundError using CXF

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.0.2
    • Fix Version/s: 2.0.3, 2.1
    • Component/s: webservices
    • Security Level: public (Regular issues)
    • Labels:
      None
    • Environment:

      Windows XP x86-32, IBM J9 1.5.0 SR5, Geronimo w/ Tomcat+OpenEJB+CXF

      Description

      I'm attempting to create a very simple "Hello World" web service using CXF as the JAX-WS provider. Whenever I make a call to the web service, I get the following error in the server log:

      20:01:15,906 ERROR [CoyoteAdapter] An exception or error occurred in the container during the request processing
      java.lang.NoClassDefFoundError: com.sun.org.apache.xerces.internal.dom.DocumentImpl
      at java.lang.ClassLoader.defineClassImpl(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:228)
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:148)
      at org.apache.geronimo.kernel.classloader.JarFileClassLoader.access$200(JarFileClassLoader.java:52)
      at org.apache.geronimo.kernel.classloader.JarFileClassLoader$6.run(JarFileClassLoader.java:308)
      at java.security.AccessController.doPrivileged(AccessController.java:275)
      at org.apache.geronimo.kernel.classloader.JarFileClassLoader.findClass(JarFileClassLoader.java:260)
      at org.apache.geronimo.kernel.config.MultiParentClassLoader.loadOptimizedClass(MultiParentClassLoader.java:422)
      at org.apache.geronimo.kernel.config.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:278)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
      at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.<init>(SOAPPartImpl.java:88)
      at com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl.getSOAPPart(Message1_1Impl.java:78)
      at org.apache.cxf.binding.soap.saaj.SAAJInInterceptor.handleMessage(SAAJInInterceptor.java:85)
      at org.apache.cxf.binding.soap.saaj.SAAJInInterceptor.handleMessage(SAAJInInterceptor.java:63)
      at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:207)
      at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:73)
      at org.apache.geronimo.cxf.GeronimoDestination.invoke(GeronimoDestination.java:115)
      at org.apache.geronimo.cxf.CXFWebServiceContainer.processPOST(CXFWebServiceContainer.java:107)
      at org.apache.geronimo.cxf.CXFWebServiceContainer.invoke(CXFWebServiceContainer.java:83)
      at org.apache.geronimo.tomcat.TomcatEJBWebServiceContext$EJBWebServiceValve.invoke(TomcatEJBWebServiceContext.java:180)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
      at java.lang.Thread.run(Thread.java:801)

      I will attach both the EAR and geronimo.log. I've tested against both the latest 2.0.3-SNAPSHOT and the TCK-certified build for jee5-2.0-M6-rc1. Also, I don't seem to encounter this problem when using Axis2 as the JAX-WS provider.

      1. geronimo.log
        15 kB
        Cedric Hurst
      2. HelloWorldServiceEAR.ear
        2 kB
        Cedric Hurst

        Activity

        Cedric Hurst created issue -
        Cedric Hurst made changes -
        Field Original Value New Value
        Attachment HelloWorldServiceEAR.ear [ 12374162 ]
        Cedric Hurst made changes -
        Attachment geronimo.log [ 12374163 ]
        Jarek Gawor made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Won't Fix [ 2 ]
        Fix Version/s 2.0.x [ 12312601 ]
        Fix Version/s 2.1 [ 12312602 ]
        Assignee Jarek Gawor [ gawor@mcs.anl.gov ]
        Joe Bohn made changes -
        Fix Version/s 2.0.x [ 12312601 ]
        Affects Version/s 2.0.x [ 12312601 ]
        Fix Version/s 2.0.3 [ 12313315 ]

          People

          • Assignee:
            Jarek Gawor
            Reporter:
            Cedric Hurst
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development