You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomee.apache.org by "Daniel S. Haischt" <da...@googlemail.com> on 2010/01/02 02:35:06 UTC

[ISSUE] java.lang.NoClassDefFoundError: com.sun.org.apache.xerces.internal.dom.DocumentImpl

All,

right now I cannot build OEJB trunk from SVN if using a Java SE V6 JDK
from IBM. I tested on both Windoze and Linux. Can somebody confirm
this plz?

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.apache.openejb.server.cxf.CxfJaxWsProviderTest
Apache OpenEJB 3.1.3-SNAPSHOT    build: 20100102-01:48
http://openejb.apache.org/
INFO - openejb.home = /home/dsh/projects/openejb3/server/openejb-cxf
INFO - openejb.base = /home/dsh/projects/openejb3/server/openejb-cxf
INFO - Configuring Service(id=Default Security Service,
type=SecurityService, provider-id=Default Security Service)
INFO - Configuring Service(id=Default Transaction Manager,
type=TransactionManager, provider-id=Default Transaction Manager)
INFO - Found ClientModule in classpath:
/home/dsh/.m2/repository/xml-resolver/xml-resolver/1.2/xml-resolver-1.2.jar
INFO - Found ClientModule in classpath:
/home/dsh/.m2/repository/xalan/serializer/2.7.1/serializer-2.7.1.jar
INFO - Found EjbModule in classpath:
/home/dsh/projects/openejb3/server/openejb-cxf/target/test-classes
INFO - Beginning load:
/home/dsh/.m2/repository/xml-resolver/xml-resolver/1.2/xml-resolver-1.2.jar
INFO - Beginning load:
/home/dsh/.m2/repository/xalan/serializer/2.7.1/serializer-2.7.1.jar
INFO - Beginning load:
/home/dsh/projects/openejb3/server/openejb-cxf/target/test-classes
INFO - Configuring enterprise application: classpath.ear
INFO - Configuring Service(id=Default Stateless Container,
type=Container, provider-id=Default Stateless Container)
INFO - Auto-creating a container for bean AuthenticatorServiceBean:
Container(type=STATELESS, id=Default Stateless Container)
INFO - Enterprise application "classpath.ear" loaded.
INFO - Assembling app: classpath.ear
INFO - Jndi(name=AuthenticatorServiceBeanLocal) -->
Ejb(deployment-id=AuthenticatorServiceBean)
INFO - Jndi(name=AuthenticatorServiceBeanNoHandlerLocal) -->
Ejb(deployment-id=AuthenticatorServiceBeanNoHandler)
INFO - Created Ejb(deployment-id=AuthenticatorServiceBeanNoHandler,
ejb-name=AuthenticatorServiceBeanNoHandler, container=Default
Stateless Container)
INFO - Created Ejb(deployment-id=AuthenticatorServiceBean,
ejb-name=AuthenticatorServiceBean, container=Default Stateless
Container)
INFO - Deployed Application(path=classpath.ear)
INFO - Starting network services
  ** Starting Services **
  NAME                 IP              PORT
Jan 2, 2010 2:09:36 AM
org.apache.cxf.service.factory.ReflectionServiceFactoryBean
buildServiceFromClass
INFO: Creating Service
{http://superbiz.org/wsdl}AuthenticatorServiceBeanService from class
org.apache.openejb.server.cxf.fault.AuthenticatorService
Jan 2, 2010 2:09:37 AM org.apache.cxf.endpoint.ServerImpl initDestination
INFO: Setting the server's publish address to be http://nopath:80
Jan 2, 2010 2:09:37 AM
org.apache.cxf.service.factory.ReflectionServiceFactoryBean
buildServiceFromClass
INFO: Creating Service
{http://superbiz.org/wsdl}AuthenticatorServiceBeanNoHandlerService
from class org.apache.openejb.server.cxf.fault.AuthenticatorService
Jan 2, 2010 2:09:37 AM org.apache.cxf.endpoint.ServerImpl initDestination
INFO: Setting the server's publish address to be http://nopath:80
  ejbd                 127.0.0.1       4201
  ejbd                 127.0.0.1       4203
  httpejbd             127.0.0.1       4204
  admin thread         127.0.0.1       4200
-------
Ready!
Jan 2, 2010 2:09:40 AM
org.apache.cxf.service.factory.ReflectionServiceFactoryBean
buildServiceFromWSDL
INFO: Creating Service
{http://superbiz.org/wsdl}AuthenticatorServiceBeanService from WSDL:
http://localhost:4204/AuthenticatorServiceBean?wsdl
Jan 2, 2010 2:09:40 AM
org.apache.cxf.service.factory.ReflectionServiceFactoryBean
buildServiceFromWSDL
INFO: Creating Service
{http://superbiz.org/wsdl}AuthenticatorServiceBeanNoHandlerService
from WSDL: http://localhost:4204/AuthenticatorServiceBeanNoHandler?wsdl
ERROR
Jan 2, 2010 2:09:41 AM org.apache.cxf.phase.PhaseInterceptorChain doIntercept
WARNING: Interceptor has thrown exception, unwinding now
Throwable occurred: org.apache.cxf.interceptor.Fault: Response was of
unexpected text/html ContentType.  Incoming portion of HTML stream:
<html>
<body>
<h3>Internal Server Error</h3>
<br><br>
Error occurred while executing the module /AuthenticatorServiceBean<br>
java.lang.NoClassDefFoundError:<br>
com.sun.org.apache.xerces.internal.dom.DocumentImpl:
com.sun.org.apache.xerces.internal.dom.DocumentImpl<br>
<br><br>
Stack Trace:<br>
org.apache.openejb.OpenEJBException: Error occurred while executing
the module /AuthenticatorServiceBean<br>
java.lang.NoClassDefFoundError:<br>
com.sun.org.apache.xerces.internal.dom.DocumentImpl:
com.sun.org.apache.xerces.internal.dom.DocumentImpl<br>
	at org.apache.openejb.server.httpd.OpenEJBHttpServer.process(OpenEJBHttpServer.java:178)<br>
	at org.apache.openejb.server.httpd.OpenEJBHttpServer.processRequest(OpenEJBHttpServer.java:132)<br>
	at org.apache.openejb.server.httpd.OpenEJBHttpServer.service(OpenEJBHttpServer.java:78)<br>
	at org.apache.openejb.server.httpd.HttpEjbServer.service(HttpEjbServer.java:61)<br>
	at org.apache.openejb.server.ServicePool$2.run(ServicePool.java:91)<br>
	at org.apache.openejb.server.ServicePool$3.run(ServicePool.java:120)<br>
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)<br>
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)<br>
	at java.lang.Thread.run(Thread.java:736)<br>
Caused by: java.lang.NoClassDefFoundError:
com.sun.org.apache.xerces.internal.dom.DocumentImpl<br>
	at java.lang.ClassLoader.defineClassImpl(Native Method)<br>
	at java.lang.ClassLoader.defineClass(ClassLoader.java:274)<br>
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:69)<br>
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:521)<br>
	at java.net.URLClassLoader.access$300(URLClassLoader.java:66)<br>
	at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:985)<br>
	at java.security.AccessController.doPrivileged(AccessController.java:284)<br>
	at java.net.URLClassLoader.findClass(URLClassLoader.java:416)<br>
	at java.lang.ClassLoader.loadClass(ClassLoader.java:652)<br>
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:346)<br>
	at java.lang.ClassLoader.loadClass(ClassLoader.java:618)<br>
	at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.<init>(SOAPPartImpl.java:119)<br>
	at com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl.getSOAPPart(Message1_1Impl.java:109)<br>
	at org.apache.cxf.binding.soap.saaj.SAAJInInterceptor.handleMessage(SAAJInInterceptor.java:104)<br>
	at org.apache.cxf.binding.soap.saaj.SAAJInInterceptor.handleMessage(SAAJInInterceptor.java:71)<br>
	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)<br>
	at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:104)<br>
	at org.apache.openejb.server.cxf.HttpDestination.invoke(HttpDestination.java:123)<br>
	at org.apache.openejb.server.cxf.CxfWsContainer.processPOST(CxfWsContainer.java:106)<br>
	at org.apache.openejb.server.cxf.CxfWsContainer.onMessage(CxfWsContainer.java:77)<br>
	at org.apache.openejb.server.webservices.OpenEJBHttpWsRegistry$ClassLoaderHttpListener.onMessage(OpenEJBHttpWsRegistry.java:117)<br>
	at org.apache.openejb.server.httpd.HttpListenerRegistry.onMessage(HttpListenerRegistry.java:43)<br>
	at org.apache.openejb.server.httpd.OpenEJBHttpServer.process(OpenEJBHttpServer.java:176)<br>
	... 8 more<br>
Caused by: java.lang.ClassNotFoundException:
com.sun.org.apache.xerces.internal.dom.DocumentImpl<br>
	at java.lang.ClassNotFoundException.<init>(ClassNotFoundException.java:77)<br>
	at java.net.URLClassLoader.findClass(URLClassLoader.java:383)<br>
	at java.lang.ClassLoader.loadClass(ClassLoader.java:652)<br>
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:346)<br>
	at java.lang.ClassLoader.loadClass(ClassLoader.java:618)<br>
	... 31 more<br>
</body>
</html>

	at org.apache.cxf.interceptor.StaxInInterceptor.handleMessage(StaxInInterceptor.java:73)
	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
	at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:664)
	at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:2160)
	at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:2040)
	at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1965)
	at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)
	at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:627)
	at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:478)
	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:308)
	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:260)
	at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
	at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124)
	at $Proxy54.authenticate(Unknown Source)
	at org.apache.openejb.server.cxf.CxfJaxWsProviderTest.test00_runCheckedException(CxfJaxWsProviderTest.java:66)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
	at java.lang.reflect.Method.invoke(Method.java:600)
	at junit.framework.TestCase.runTest(TestCase.java:168)
	at junit.framework.TestCase.runBare(TestCase.java:134)
	at junit.framework.TestResult$1.protect(TestResult.java:110)
	at junit.framework.TestResult.runProtected(TestResult.java:128)
	at junit.framework.TestResult.run(TestResult.java:113)
	at junit.framework.TestCase.run(TestCase.java:124)
	at junit.framework.TestSuite.runTest(TestSuite.java:232)
	at junit.framework.TestSuite.run(TestSuite.java:227)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
	at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:165)
	at org.apache.maven.surefire.Surefire.run(Surefire.java:107)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
	at java.lang.reflect.Method.invoke(Method.java:600)
	at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:289)
	at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:993)
Jan 2, 2010 2:09:41 AM
org.apache.cxf.service.factory.ReflectionServiceFactoryBean
buildServiceFromWSDL
INFO: Creating Service
{http://superbiz.org/wsdl}AuthenticatorServiceBeanService from WSDL:
http://localhost:4204/AuthenticatorServiceBean?wsdl
Jan 2, 2010 2:09:41 AM
org.apache.cxf.service.factory.ReflectionServiceFactoryBean
buildServiceFromWSDL
INFO: Creating Service
{http://superbiz.org/wsdl}AuthenticatorServiceBeanNoHandlerService
from WSDL: http://localhost:4204/AuthenticatorServiceBeanNoHandler?wsdl
ERROR
A throwable exception...
Jan 2, 2010 2:09:41 AM org.apache.cxf.phase.PhaseInterceptorChain doIntercept
WARNING: Interceptor has thrown exception, unwinding now
Throwable occurred: org.apache.cxf.interceptor.Fault: Response was of
unexpected text/html ContentType.  Incoming portion of HTML stream:
<html>
<body>
<h3>Internal Server Error</h3>
<br><br>
Error occurred while executing the module /AuthenticatorServiceBean<br>
java.lang.NoClassDefFoundError:<br>
com/sun/xml/messaging/saaj/soap/SOAPDocumentImpl:
com/sun/xml/messaging/saaj/soap/SOAPDocumentImpl<br>
<br><br>
Stack Trace:<br>
org.apache.openejb.OpenEJBException: Error occurred while executing
the module /AuthenticatorServiceBean<br>
java.lang.NoClassDefFoundError:<br>
com/sun/xml/messaging/saaj/soap/SOAPDocumentImpl:
com/sun/xml/messaging/saaj/soap/SOAPDocumentImpl<br>
	at org.apache.openejb.server.httpd.OpenEJBHttpServer.process(OpenEJBHttpServer.java:178)<br>
	at org.apache.openejb.server.httpd.OpenEJBHttpServer.processRequest(OpenEJBHttpServer.java:132)<br>
	at org.apache.openejb.server.httpd.OpenEJBHttpServer.service(OpenEJBHttpServer.java:78)<br>
	at org.apache.openejb.server.httpd.HttpEjbServer.service(HttpEjbServer.java:61)<br>
	at org.apache.openejb.server.ServicePool$2.run(ServicePool.java:91)<br>
	at org.apache.openejb.server.ServicePool$3.run(ServicePool.java:120)<br>
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)<br>
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)<br>
	at java.lang.Thread.run(Thread.java:736)<br>
Caused by: java.lang.NoClassDefFoundError:
com/sun/xml/messaging/saaj/soap/SOAPDocumentImpl<br>
	at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.<init>(SOAPPartImpl.java:119)<br>
	at com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl.getSOAPPart(Message1_1Impl.java:109)<br>
	at org.apache.cxf.binding.soap.saaj.SAAJInInterceptor.handleMessage(SAAJInInterceptor.java:104)<br>
	at org.apache.cxf.binding.soap.saaj.SAAJInInterceptor.handleMessage(SAAJInInterceptor.java:71)<br>
	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)<br>
	at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:104)<br>
	at org.apache.openejb.server.cxf.HttpDestination.invoke(HttpDestination.java:123)<br>
	at org.apache.openejb.server.cxf.CxfWsContainer.processPOST(CxfWsContainer.java:106)<br>
	at org.apache.openejb.server.cxf.CxfWsContainer.onMessage(CxfWsContainer.java:77)<br>
	at org.apache.openejb.server.webservices.OpenEJBHttpWsRegistry$ClassLoaderHttpListener.onMessage(OpenEJBHttpWsRegistry.java:117)<br>
	at org.apache.openejb.server.httpd.HttpListenerRegistry.onMessage(HttpListenerRegistry.java:43)<br>
	at org.apache.openejb.server.httpd.OpenEJBHttpServer.process(OpenEJBHttpServer.java:176)<br>
	... 8 more<br>
</body>
</html>

	at org.apache.cxf.interceptor.StaxInInterceptor.handleMessage(StaxInInterceptor.java:73)
	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
	at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:664)
	at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:2160)
	at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:2040)
	at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1965)
	at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)
	at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:627)
	at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:478)
	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:308)
	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:260)
	at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
	at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124)
	at $Proxy54.authenticateRuntime(Unknown Source)
	at org.apache.openejb.server.cxf.CxfJaxWsProviderTest.test01_runRuntimeException(CxfJaxWsProviderTest.java:102)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
	at java.lang.reflect.Method.invoke(Method.java:600)
	at junit.framework.TestCase.runTest(TestCase.java:168)
	at junit.framework.TestCase.runBare(TestCase.java:134)
	at junit.framework.TestResult$1.protect(TestResult.java:110)
	at junit.framework.TestResult.runProtected(TestResult.java:128)
	at junit.framework.TestResult.run(TestResult.java:113)
	at junit.framework.TestCase.run(TestCase.java:124)
	at junit.framework.TestSuite.runTest(TestSuite.java:232)
	at junit.framework.TestSuite.run(TestSuite.java:227)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
	at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:165)
	at org.apache.maven.surefire.Surefire.run(Surefire.java:107)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
	at java.lang.reflect.Method.invoke(Method.java:600)
	at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:289)
	at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:993)
ERROR
Jan 2, 2010 2:09:41 AM org.apache.cxf.phase.PhaseInterceptorChain doIntercept
WARNING: Interceptor has thrown exception, unwinding now
Throwable occurred: org.apache.cxf.interceptor.Fault: Response was of
unexpected text/html ContentType.  Incoming portion of HTML stream:
<html>
<body>
<h3>Internal Server Error</h3>
<br><br>
Error occurred while executing the module /AuthenticatorServiceBeanNoHandler<br>
java.lang.NoClassDefFoundError:<br>
com/sun/xml/messaging/saaj/soap/SOAPDocumentImpl:
com/sun/xml/messaging/saaj/soap/SOAPDocumentImpl<br>
<br><br>
Stack Trace:<br>
org.apache.openejb.OpenEJBException: Error occurred while executing
the module /AuthenticatorServiceBeanNoHandler<br>
java.lang.NoClassDefFoundError:<br>
com/sun/xml/messaging/saaj/soap/SOAPDocumentImpl:
com/sun/xml/messaging/saaj/soap/SOAPDocumentImpl<br>
	at org.apache.openejb.server.httpd.OpenEJBHttpServer.process(OpenEJBHttpServer.java:178)<br>
	at org.apache.openejb.server.httpd.OpenEJBHttpServer.processRequest(OpenEJBHttpServer.java:132)<br>
	at org.apache.openejb.server.httpd.OpenEJBHttpServer.service(OpenEJBHttpServer.java:78)<br>
	at org.apache.openejb.server.httpd.HttpEjbServer.service(HttpEjbServer.java:61)<br>
	at org.apache.openejb.server.ServicePool$2.run(ServicePool.java:91)<br>
	at org.apache.openejb.server.ServicePool$3.run(ServicePool.java:120)<br>
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)<br>
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)<br>
	at java.lang.Thread.run(Thread.java:736)<br>
Caused by: java.lang.NoClassDefFoundError:
com/sun/xml/messaging/saaj/soap/SOAPDocumentImpl<br>
	at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.<init>(SOAPPartImpl.java:119)<br>
	at com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl.getSOAPPart(Message1_1Impl.java:109)<br>
	at org.apache.cxf.binding.soap.saaj.SAAJInInterceptor.handleMessage(SAAJInInterceptor.java:104)<br>
	at org.apache.cxf.binding.soap.saaj.SAAJInInterceptor.handleMessage(SAAJInInterceptor.java:71)<br>
	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)<br>
	at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:104)<br>
	at org.apache.openejb.server.cxf.HttpDestination.invoke(HttpDestination.java:123)<br>
	at org.apache.openejb.server.cxf.CxfWsContainer.processPOST(CxfWsContainer.java:106)<br>
	at org.apache.openejb.server.cxf.CxfWsContainer.onMessage(CxfWsContainer.java:77)<br>
	at org.apache.openejb.server.webservices.OpenEJBHttpWsRegistry$ClassLoaderHttpListener.onMessage(OpenEJBHttpWsRegistry.java:117)<br>
	at org.apache.openejb.server.httpd.HttpListenerRegistry.onMessage(HttpListenerRegistry.java:43)<br>
	at org.apache.openejb.server.httpd.OpenEJBHttpServer.process(OpenEJBHttpServer.java:176)<br>
	... 8 more<br>
</body>
</html>

	at org.apache.cxf.interceptor.StaxInInterceptor.handleMessage(StaxInInterceptor.java:73)
	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
	at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:664)
	at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:2160)
	at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:2040)
	at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1965)
	at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)
	at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:627)
	at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:478)
	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:308)
	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:260)
	at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
	at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124)
	at $Proxy54.authenticateRuntime(Unknown Source)
	at org.apache.openejb.server.cxf.CxfJaxWsProviderTest.test01_runRuntimeException(CxfJaxWsProviderTest.java:111)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
	at java.lang.reflect.Method.invoke(Method.java:600)
	at junit.framework.TestCase.runTest(TestCase.java:168)
	at junit.framework.TestCase.runBare(TestCase.java:134)
	at junit.framework.TestResult$1.protect(TestResult.java:110)
	at junit.framework.TestResult.runProtected(TestResult.java:128)
	at junit.framework.TestResult.run(TestResult.java:113)
	at junit.framework.TestCase.run(TestCase.java:124)
	at junit.framework.TestSuite.runTest(TestSuite.java:232)
	at junit.framework.TestSuite.run(TestSuite.java:227)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
	at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:165)
	at org.apache.maven.surefire.Surefire.run(Surefire.java:107)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
	at java.lang.reflect.Method.invoke(Method.java:600)
	at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:289)
	at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:993)
A throwable exception...
Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 11.495
sec <<< FAILURE!

Results :

Failed tests:
  test00_runCheckedException(org.apache.openejb.server.cxf.CxfJaxWsProviderTest)

Tests run: 2, Failures: 1, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.

Please refer to
/home/dsh/projects/openejb3/server/openejb-cxf/target/surefire-reports
for the individual test results.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 25 minutes 31 seconds
[INFO] Finished at: Sat Jan 02 02:09:42 CET 2010
[INFO] Final Memory: 288M/512M
[INFO] ------------------------------------------------------------------------

Re: [ISSUE] java.lang.NoClassDefFoundError: com.sun.org.apache.xerces.internal.dom.DocumentImpl

Posted by "Daniel S. Haischt" <da...@googlemail.com>.
Created a defect for this issue and tried to solve the most obvious things:

 -> https://issues.apache.org/jira/browse/OPENEJB-1126

On Sat, Jan 2, 2010 at 4:56 AM, Daniel S. Haischt
<da...@googlemail.com> wrote:
> looks like this is a known issue with CXF/SAAJ:
>
> * http://old.nabble.com/NoClassDefFoundError:-com.sun.org.apache.xerces.internal.dom.DocumentImpl-td17486306.html
>
> * http://mail-archives.apache.org/mod_mbox/xerces-j-users/200407.mbox/%3C40F0D3AD.3050201@sun.com%3E
>
>
> On Sat, Jan 2, 2010 at 2:35 AM, Daniel S. Haischt
> <da...@googlemail.com> wrote:
>> All,
>>
>> right now I cannot build OEJB trunk from SVN if using a Java SE V6 JDK
>> from IBM. I tested on both Windoze and Linux. Can somebody confirm
>> this plz?
>>
>> -------------------------------------------------------
>>  T E S T S
>> -------------------------------------------------------
>> Running org.apache.openejb.server.cxf.CxfJaxWsProviderTest
>> Apache OpenEJB 3.1.3-SNAPSHOT    build: 20100102-01:48
>> http://openejb.apache.org/
>> INFO - openejb.home = /home/dsh/projects/openejb3/server/openejb-cxf
>> INFO - openejb.base = /home/dsh/projects/openejb3/server/openejb-cxf
>> INFO - Configuring Service(id=Default Security Service,
>> type=SecurityService, provider-id=Default Security Service)
>> INFO - Configuring Service(id=Default Transaction Manager,
>> type=TransactionManager, provider-id=Default Transaction Manager)
>> INFO - Found ClientModule in classpath:
>> /home/dsh/.m2/repository/xml-resolver/xml-resolver/1.2/xml-resolver-1.2.jar
>> INFO - Found ClientModule in classpath:
>> /home/dsh/.m2/repository/xalan/serializer/2.7.1/serializer-2.7.1.jar
>> INFO - Found EjbModule in classpath:
>> /home/dsh/projects/openejb3/server/openejb-cxf/target/test-classes
>> INFO - Beginning load:
>> /home/dsh/.m2/repository/xml-resolver/xml-resolver/1.2/xml-resolver-1.2.jar
>> INFO - Beginning load:
>> /home/dsh/.m2/repository/xalan/serializer/2.7.1/serializer-2.7.1.jar
>> INFO - Beginning load:
>> /home/dsh/projects/openejb3/server/openejb-cxf/target/test-classes
>> INFO - Configuring enterprise application: classpath.ear
>> INFO - Configuring Service(id=Default Stateless Container,
>> type=Container, provider-id=Default Stateless Container)
>> INFO - Auto-creating a container for bean AuthenticatorServiceBean:
>> Container(type=STATELESS, id=Default Stateless Container)
>> INFO - Enterprise application "classpath.ear" loaded.
>> INFO - Assembling app: classpath.ear
>> INFO - Jndi(name=AuthenticatorServiceBeanLocal) -->
>> Ejb(deployment-id=AuthenticatorServiceBean)
>> INFO - Jndi(name=AuthenticatorServiceBeanNoHandlerLocal) -->
>> Ejb(deployment-id=AuthenticatorServiceBeanNoHandler)
>> INFO - Created Ejb(deployment-id=AuthenticatorServiceBeanNoHandler,
>> ejb-name=AuthenticatorServiceBeanNoHandler, container=Default
>> Stateless Container)
>> INFO - Created Ejb(deployment-id=AuthenticatorServiceBean,
>> ejb-name=AuthenticatorServiceBean, container=Default Stateless
>> Container)
>> INFO - Deployed Application(path=classpath.ear)
>> INFO - Starting network services
>>  ** Starting Services **
>>  NAME                 IP              PORT
>> Jan 2, 2010 2:09:36 AM
>> org.apache.cxf.service.factory.ReflectionServiceFactoryBean
>> buildServiceFromClass
>> INFO: Creating Service
>> {http://superbiz.org/wsdl}AuthenticatorServiceBeanService from class
>> org.apache.openejb.server.cxf.fault.AuthenticatorService
>> Jan 2, 2010 2:09:37 AM org.apache.cxf.endpoint.ServerImpl initDestination
>> INFO: Setting the server's publish address to be http://nopath:80
>> Jan 2, 2010 2:09:37 AM
>> org.apache.cxf.service.factory.ReflectionServiceFactoryBean
>> buildServiceFromClass
>> INFO: Creating Service
>> {http://superbiz.org/wsdl}AuthenticatorServiceBeanNoHandlerService
>> from class org.apache.openejb.server.cxf.fault.AuthenticatorService
>> Jan 2, 2010 2:09:37 AM org.apache.cxf.endpoint.ServerImpl initDestination
>> INFO: Setting the server's publish address to be http://nopath:80
>>  ejbd                 127.0.0.1       4201
>>  ejbd                 127.0.0.1       4203
>>  httpejbd             127.0.0.1       4204
>>  admin thread         127.0.0.1       4200
>> -------
>> Ready!
>> Jan 2, 2010 2:09:40 AM
>> org.apache.cxf.service.factory.ReflectionServiceFactoryBean
>> buildServiceFromWSDL
>> INFO: Creating Service
>> {http://superbiz.org/wsdl}AuthenticatorServiceBeanService from WSDL:
>> http://localhost:4204/AuthenticatorServiceBean?wsdl
>> Jan 2, 2010 2:09:40 AM
>> org.apache.cxf.service.factory.ReflectionServiceFactoryBean
>> buildServiceFromWSDL
>> INFO: Creating Service
>> {http://superbiz.org/wsdl}AuthenticatorServiceBeanNoHandlerService
>> from WSDL: http://localhost:4204/AuthenticatorServiceBeanNoHandler?wsdl
>> ERROR
>> Jan 2, 2010 2:09:41 AM org.apache.cxf.phase.PhaseInterceptorChain doIntercept
>> WARNING: Interceptor has thrown exception, unwinding now
>> Throwable occurred: org.apache.cxf.interceptor.Fault: Response was of
>> unexpected text/html ContentType.  Incoming portion of HTML stream:
>> <html>
>> <body>
>> <h3>Internal Server Error</h3>
>> <br><br>
>> Error occurred while executing the module /AuthenticatorServiceBean<br>
>> java.lang.NoClassDefFoundError:<br>
>> com.sun.org.apache.xerces.internal.dom.DocumentImpl:
>> com.sun.org.apache.xerces.internal.dom.DocumentImpl<br>
>> <br><br>
>> Stack Trace:<br>
>> org.apache.openejb.OpenEJBException: Error occurred while executing
>> the module /AuthenticatorServiceBean<br>
>> java.lang.NoClassDefFoundError:<br>
>> com.sun.org.apache.xerces.internal.dom.DocumentImpl:
>> com.sun.org.apache.xerces.internal.dom.DocumentImpl<br>
>>        at org.apache.openejb.server.httpd.OpenEJBHttpServer.process(OpenEJBHttpServer.java:178)<br>
>>        at org.apache.openejb.server.httpd.OpenEJBHttpServer.processRequest(OpenEJBHttpServer.java:132)<br>
>>        at org.apache.openejb.server.httpd.OpenEJBHttpServer.service(OpenEJBHttpServer.java:78)<br>
>>        at org.apache.openejb.server.httpd.HttpEjbServer.service(HttpEjbServer.java:61)<br>
>>        at org.apache.openejb.server.ServicePool$2.run(ServicePool.java:91)<br>
>>        at org.apache.openejb.server.ServicePool$3.run(ServicePool.java:120)<br>
>>        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)<br>
>>        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)<br>
>>        at java.lang.Thread.run(Thread.java:736)<br>
>> Caused by: java.lang.NoClassDefFoundError:
>> com.sun.org.apache.xerces.internal.dom.DocumentImpl<br>
>>        at java.lang.ClassLoader.defineClassImpl(Native Method)<br>
>>        at java.lang.ClassLoader.defineClass(ClassLoader.java:274)<br>
>>        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:69)<br>
>>        at java.net.URLClassLoader.defineClass(URLClassLoader.java:521)<br>
>>        at java.net.URLClassLoader.access$300(URLClassLoader.java:66)<br>
>>        at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:985)<br>
>>        at java.security.AccessController.doPrivileged(AccessController.java:284)<br>
>>        at java.net.URLClassLoader.findClass(URLClassLoader.java:416)<br>
>>        at java.lang.ClassLoader.loadClass(ClassLoader.java:652)<br>
>>        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:346)<br>
>>        at java.lang.ClassLoader.loadClass(ClassLoader.java:618)<br>
>>        at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.<init>(SOAPPartImpl.java:119)<br>
>>        at com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl.getSOAPPart(Message1_1Impl.java:109)<br>
>>        at org.apache.cxf.binding.soap.saaj.SAAJInInterceptor.handleMessage(SAAJInInterceptor.java:104)<br>
>>        at org.apache.cxf.binding.soap.saaj.SAAJInInterceptor.handleMessage(SAAJInInterceptor.java:71)<br>
>>        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)<br>
>>        at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:104)<br>
>>        at org.apache.openejb.server.cxf.HttpDestination.invoke(HttpDestination.java:123)<br>
>>        at org.apache.openejb.server.cxf.CxfWsContainer.processPOST(CxfWsContainer.java:106)<br>
>>        at org.apache.openejb.server.cxf.CxfWsContainer.onMessage(CxfWsContainer.java:77)<br>
>>        at org.apache.openejb.server.webservices.OpenEJBHttpWsRegistry$ClassLoaderHttpListener.onMessage(OpenEJBHttpWsRegistry.java:117)<br>
>>        at org.apache.openejb.server.httpd.HttpListenerRegistry.onMessage(HttpListenerRegistry.java:43)<br>
>>        at org.apache.openejb.server.httpd.OpenEJBHttpServer.process(OpenEJBHttpServer.java:176)<br>
>>        ... 8 more<br>
>> Caused by: java.lang.ClassNotFoundException:
>> com.sun.org.apache.xerces.internal.dom.DocumentImpl<br>
>>        at java.lang.ClassNotFoundException.<init>(ClassNotFoundException.java:77)<br>
>>        at java.net.URLClassLoader.findClass(URLClassLoader.java:383)<br>
>>        at java.lang.ClassLoader.loadClass(ClassLoader.java:652)<br>
>>        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:346)<br>
>>        at java.lang.ClassLoader.loadClass(ClassLoader.java:618)<br>
>>        ... 31 more<br>
>> </body>
>> </html>
>>
>>        at org.apache.cxf.interceptor.StaxInInterceptor.handleMessage(StaxInInterceptor.java:73)
>>        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
>>        at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:664)
>>        at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:2160)
>>        at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:2040)
>>        at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1965)
>>        at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)
>>        at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:627)
>>        at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
>>        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
>>        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:478)
>>        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:308)
>>        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:260)
>>        at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
>>        at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124)
>>        at $Proxy54.authenticate(Unknown Source)
>>        at org.apache.openejb.server.cxf.CxfJaxWsProviderTest.test00_runCheckedException(CxfJaxWsProviderTest.java:66)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
>>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
>>        at java.lang.reflect.Method.invoke(Method.java:600)
>>        at junit.framework.TestCase.runTest(TestCase.java:168)
>>        at junit.framework.TestCase.runBare(TestCase.java:134)
>>        at junit.framework.TestResult$1.protect(TestResult.java:110)
>>        at junit.framework.TestResult.runProtected(TestResult.java:128)
>>        at junit.framework.TestResult.run(TestResult.java:113)
>>        at junit.framework.TestCase.run(TestCase.java:124)
>>        at junit.framework.TestSuite.runTest(TestSuite.java:232)
>>        at junit.framework.TestSuite.run(TestSuite.java:227)
>>        at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
>>        at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
>>        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
>>        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:165)
>>        at org.apache.maven.surefire.Surefire.run(Surefire.java:107)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
>>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
>>        at java.lang.reflect.Method.invoke(Method.java:600)
>>        at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:289)
>>        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:993)
>> Jan 2, 2010 2:09:41 AM
>> org.apache.cxf.service.factory.ReflectionServiceFactoryBean
>> buildServiceFromWSDL
>> INFO: Creating Service
>> {http://superbiz.org/wsdl}AuthenticatorServiceBeanService from WSDL:
>> http://localhost:4204/AuthenticatorServiceBean?wsdl
>> Jan 2, 2010 2:09:41 AM
>> org.apache.cxf.service.factory.ReflectionServiceFactoryBean
>> buildServiceFromWSDL
>> INFO: Creating Service
>> {http://superbiz.org/wsdl}AuthenticatorServiceBeanNoHandlerService
>> from WSDL: http://localhost:4204/AuthenticatorServiceBeanNoHandler?wsdl
>> ERROR
>> A throwable exception...
>> Jan 2, 2010 2:09:41 AM org.apache.cxf.phase.PhaseInterceptorChain doIntercept
>> WARNING: Interceptor has thrown exception, unwinding now
>> Throwable occurred: org.apache.cxf.interceptor.Fault: Response was of
>> unexpected text/html ContentType.  Incoming portion of HTML stream:
>> <html>
>> <body>
>> <h3>Internal Server Error</h3>
>> <br><br>
>> Error occurred while executing the module /AuthenticatorServiceBean<br>
>> java.lang.NoClassDefFoundError:<br>
>> com/sun/xml/messaging/saaj/soap/SOAPDocumentImpl:
>> com/sun/xml/messaging/saaj/soap/SOAPDocumentImpl<br>
>> <br><br>
>> Stack Trace:<br>
>> org.apache.openejb.OpenEJBException: Error occurred while executing
>> the module /AuthenticatorServiceBean<br>
>> java.lang.NoClassDefFoundError:<br>
>> com/sun/xml/messaging/saaj/soap/SOAPDocumentImpl:
>> com/sun/xml/messaging/saaj/soap/SOAPDocumentImpl<br>
>>        at org.apache.openejb.server.httpd.OpenEJBHttpServer.process(OpenEJBHttpServer.java:178)<br>
>>        at org.apache.openejb.server.httpd.OpenEJBHttpServer.processRequest(OpenEJBHttpServer.java:132)<br>
>>        at org.apache.openejb.server.httpd.OpenEJBHttpServer.service(OpenEJBHttpServer.java:78)<br>
>>        at org.apache.openejb.server.httpd.HttpEjbServer.service(HttpEjbServer.java:61)<br>
>>        at org.apache.openejb.server.ServicePool$2.run(ServicePool.java:91)<br>
>>        at org.apache.openejb.server.ServicePool$3.run(ServicePool.java:120)<br>
>>        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)<br>
>>        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)<br>
>>        at java.lang.Thread.run(Thread.java:736)<br>
>> Caused by: java.lang.NoClassDefFoundError:
>> com/sun/xml/messaging/saaj/soap/SOAPDocumentImpl<br>
>>        at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.<init>(SOAPPartImpl.java:119)<br>
>>        at com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl.getSOAPPart(Message1_1Impl.java:109)<br>
>>        at org.apache.cxf.binding.soap.saaj.SAAJInInterceptor.handleMessage(SAAJInInterceptor.java:104)<br>
>>        at org.apache.cxf.binding.soap.saaj.SAAJInInterceptor.handleMessage(SAAJInInterceptor.java:71)<br>
>>        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)<br>
>>        at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:104)<br>
>>        at org.apache.openejb.server.cxf.HttpDestination.invoke(HttpDestination.java:123)<br>
>>        at org.apache.openejb.server.cxf.CxfWsContainer.processPOST(CxfWsContainer.java:106)<br>
>>        at org.apache.openejb.server.cxf.CxfWsContainer.onMessage(CxfWsContainer.java:77)<br>
>>        at org.apache.openejb.server.webservices.OpenEJBHttpWsRegistry$ClassLoaderHttpListener.onMessage(OpenEJBHttpWsRegistry.java:117)<br>
>>        at org.apache.openejb.server.httpd.HttpListenerRegistry.onMessage(HttpListenerRegistry.java:43)<br>
>>        at org.apache.openejb.server.httpd.OpenEJBHttpServer.process(OpenEJBHttpServer.java:176)<br>
>>        ... 8 more<br>
>> </body>
>> </html>
>>
>>        at org.apache.cxf.interceptor.StaxInInterceptor.handleMessage(StaxInInterceptor.java:73)
>>        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
>>        at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:664)
>>        at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:2160)
>>        at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:2040)
>>        at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1965)
>>        at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)
>>        at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:627)
>>        at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
>>        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
>>        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:478)
>>        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:308)
>>        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:260)
>>        at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
>>        at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124)
>>        at $Proxy54.authenticateRuntime(Unknown Source)
>>        at org.apache.openejb.server.cxf.CxfJaxWsProviderTest.test01_runRuntimeException(CxfJaxWsProviderTest.java:102)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
>>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
>>        at java.lang.reflect.Method.invoke(Method.java:600)
>>        at junit.framework.TestCase.runTest(TestCase.java:168)
>>        at junit.framework.TestCase.runBare(TestCase.java:134)
>>        at junit.framework.TestResult$1.protect(TestResult.java:110)
>>        at junit.framework.TestResult.runProtected(TestResult.java:128)
>>        at junit.framework.TestResult.run(TestResult.java:113)
>>        at junit.framework.TestCase.run(TestCase.java:124)
>>        at junit.framework.TestSuite.runTest(TestSuite.java:232)
>>        at junit.framework.TestSuite.run(TestSuite.java:227)
>>        at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
>>        at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
>>        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
>>        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:165)
>>        at org.apache.maven.surefire.Surefire.run(Surefire.java:107)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
>>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
>>        at java.lang.reflect.Method.invoke(Method.java:600)
>>        at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:289)
>>        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:993)
>> ERROR
>> Jan 2, 2010 2:09:41 AM org.apache.cxf.phase.PhaseInterceptorChain doIntercept
>> WARNING: Interceptor has thrown exception, unwinding now
>> Throwable occurred: org.apache.cxf.interceptor.Fault: Response was of
>> unexpected text/html ContentType.  Incoming portion of HTML stream:
>> <html>
>> <body>
>> <h3>Internal Server Error</h3>
>> <br><br>
>> Error occurred while executing the module /AuthenticatorServiceBeanNoHandler<br>
>> java.lang.NoClassDefFoundError:<br>
>> com/sun/xml/messaging/saaj/soap/SOAPDocumentImpl:
>> com/sun/xml/messaging/saaj/soap/SOAPDocumentImpl<br>
>> <br><br>
>> Stack Trace:<br>
>> org.apache.openejb.OpenEJBException: Error occurred while executing
>> the module /AuthenticatorServiceBeanNoHandler<br>
>> java.lang.NoClassDefFoundError:<br>
>> com/sun/xml/messaging/saaj/soap/SOAPDocumentImpl:
>> com/sun/xml/messaging/saaj/soap/SOAPDocumentImpl<br>
>>        at org.apache.openejb.server.httpd.OpenEJBHttpServer.process(OpenEJBHttpServer.java:178)<br>
>>        at org.apache.openejb.server.httpd.OpenEJBHttpServer.processRequest(OpenEJBHttpServer.java:132)<br>
>>        at org.apache.openejb.server.httpd.OpenEJBHttpServer.service(OpenEJBHttpServer.java:78)<br>
>>        at org.apache.openejb.server.httpd.HttpEjbServer.service(HttpEjbServer.java:61)<br>
>>        at org.apache.openejb.server.ServicePool$2.run(ServicePool.java:91)<br>
>>        at org.apache.openejb.server.ServicePool$3.run(ServicePool.java:120)<br>
>>        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)<br>
>>        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)<br>
>>        at java.lang.Thread.run(Thread.java:736)<br>
>> Caused by: java.lang.NoClassDefFoundError:
>> com/sun/xml/messaging/saaj/soap/SOAPDocumentImpl<br>
>>        at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.<init>(SOAPPartImpl.java:119)<br>
>>        at com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl.getSOAPPart(Message1_1Impl.java:109)<br>
>>        at org.apache.cxf.binding.soap.saaj.SAAJInInterceptor.handleMessage(SAAJInInterceptor.java:104)<br>
>>        at org.apache.cxf.binding.soap.saaj.SAAJInInterceptor.handleMessage(SAAJInInterceptor.java:71)<br>
>>        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)<br>
>>        at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:104)<br>
>>        at org.apache.openejb.server.cxf.HttpDestination.invoke(HttpDestination.java:123)<br>
>>        at org.apache.openejb.server.cxf.CxfWsContainer.processPOST(CxfWsContainer.java:106)<br>
>>        at org.apache.openejb.server.cxf.CxfWsContainer.onMessage(CxfWsContainer.java:77)<br>
>>        at org.apache.openejb.server.webservices.OpenEJBHttpWsRegistry$ClassLoaderHttpListener.onMessage(OpenEJBHttpWsRegistry.java:117)<br>
>>        at org.apache.openejb.server.httpd.HttpListenerRegistry.onMessage(HttpListenerRegistry.java:43)<br>
>>        at org.apache.openejb.server.httpd.OpenEJBHttpServer.process(OpenEJBHttpServer.java:176)<br>
>>        ... 8 more<br>
>> </body>
>> </html>
>>
>>        at org.apache.cxf.interceptor.StaxInInterceptor.handleMessage(StaxInInterceptor.java:73)
>>        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
>>        at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:664)
>>        at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:2160)
>>        at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:2040)
>>        at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1965)
>>        at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)
>>        at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:627)
>>        at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
>>        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
>>        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:478)
>>        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:308)
>>        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:260)
>>        at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
>>        at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124)
>>        at $Proxy54.authenticateRuntime(Unknown Source)
>>        at org.apache.openejb.server.cxf.CxfJaxWsProviderTest.test01_runRuntimeException(CxfJaxWsProviderTest.java:111)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
>>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
>>        at java.lang.reflect.Method.invoke(Method.java:600)
>>        at junit.framework.TestCase.runTest(TestCase.java:168)
>>        at junit.framework.TestCase.runBare(TestCase.java:134)
>>        at junit.framework.TestResult$1.protect(TestResult.java:110)
>>        at junit.framework.TestResult.runProtected(TestResult.java:128)
>>        at junit.framework.TestResult.run(TestResult.java:113)
>>        at junit.framework.TestCase.run(TestCase.java:124)
>>        at junit.framework.TestSuite.runTest(TestSuite.java:232)
>>        at junit.framework.TestSuite.run(TestSuite.java:227)
>>        at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
>>        at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
>>        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
>>        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:165)
>>        at org.apache.maven.surefire.Surefire.run(Surefire.java:107)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
>>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
>>        at java.lang.reflect.Method.invoke(Method.java:600)
>>        at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:289)
>>        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:993)
>> A throwable exception...
>> Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 11.495
>> sec <<< FAILURE!
>>
>> Results :
>>
>> Failed tests:
>>  test00_runCheckedException(org.apache.openejb.server.cxf.CxfJaxWsProviderTest)
>>
>> Tests run: 2, Failures: 1, Errors: 0, Skipped: 0
>>
>> [INFO] ------------------------------------------------------------------------
>> [ERROR] BUILD FAILURE
>> [INFO] ------------------------------------------------------------------------
>> [INFO] There are test failures.
>>
>> Please refer to
>> /home/dsh/projects/openejb3/server/openejb-cxf/target/surefire-reports
>> for the individual test results.
>> [INFO] ------------------------------------------------------------------------
>> [INFO] For more information, run Maven with the -e switch
>> [INFO] ------------------------------------------------------------------------
>> [INFO] Total time: 25 minutes 31 seconds
>> [INFO] Finished at: Sat Jan 02 02:09:42 CET 2010
>> [INFO] Final Memory: 288M/512M
>> [INFO] ------------------------------------------------------------------------
>>
>

Re: [ISSUE] java.lang.NoClassDefFoundError: com.sun.org.apache.xerces.internal.dom.DocumentImpl

Posted by "Daniel S. Haischt" <da...@googlemail.com>.
looks like this is a known issue with CXF/SAAJ:

* http://old.nabble.com/NoClassDefFoundError:-com.sun.org.apache.xerces.internal.dom.DocumentImpl-td17486306.html

* http://mail-archives.apache.org/mod_mbox/xerces-j-users/200407.mbox/%3C40F0D3AD.3050201@sun.com%3E


On Sat, Jan 2, 2010 at 2:35 AM, Daniel S. Haischt
<da...@googlemail.com> wrote:
> All,
>
> right now I cannot build OEJB trunk from SVN if using a Java SE V6 JDK
> from IBM. I tested on both Windoze and Linux. Can somebody confirm
> this plz?
>
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> Running org.apache.openejb.server.cxf.CxfJaxWsProviderTest
> Apache OpenEJB 3.1.3-SNAPSHOT    build: 20100102-01:48
> http://openejb.apache.org/
> INFO - openejb.home = /home/dsh/projects/openejb3/server/openejb-cxf
> INFO - openejb.base = /home/dsh/projects/openejb3/server/openejb-cxf
> INFO - Configuring Service(id=Default Security Service,
> type=SecurityService, provider-id=Default Security Service)
> INFO - Configuring Service(id=Default Transaction Manager,
> type=TransactionManager, provider-id=Default Transaction Manager)
> INFO - Found ClientModule in classpath:
> /home/dsh/.m2/repository/xml-resolver/xml-resolver/1.2/xml-resolver-1.2.jar
> INFO - Found ClientModule in classpath:
> /home/dsh/.m2/repository/xalan/serializer/2.7.1/serializer-2.7.1.jar
> INFO - Found EjbModule in classpath:
> /home/dsh/projects/openejb3/server/openejb-cxf/target/test-classes
> INFO - Beginning load:
> /home/dsh/.m2/repository/xml-resolver/xml-resolver/1.2/xml-resolver-1.2.jar
> INFO - Beginning load:
> /home/dsh/.m2/repository/xalan/serializer/2.7.1/serializer-2.7.1.jar
> INFO - Beginning load:
> /home/dsh/projects/openejb3/server/openejb-cxf/target/test-classes
> INFO - Configuring enterprise application: classpath.ear
> INFO - Configuring Service(id=Default Stateless Container,
> type=Container, provider-id=Default Stateless Container)
> INFO - Auto-creating a container for bean AuthenticatorServiceBean:
> Container(type=STATELESS, id=Default Stateless Container)
> INFO - Enterprise application "classpath.ear" loaded.
> INFO - Assembling app: classpath.ear
> INFO - Jndi(name=AuthenticatorServiceBeanLocal) -->
> Ejb(deployment-id=AuthenticatorServiceBean)
> INFO - Jndi(name=AuthenticatorServiceBeanNoHandlerLocal) -->
> Ejb(deployment-id=AuthenticatorServiceBeanNoHandler)
> INFO - Created Ejb(deployment-id=AuthenticatorServiceBeanNoHandler,
> ejb-name=AuthenticatorServiceBeanNoHandler, container=Default
> Stateless Container)
> INFO - Created Ejb(deployment-id=AuthenticatorServiceBean,
> ejb-name=AuthenticatorServiceBean, container=Default Stateless
> Container)
> INFO - Deployed Application(path=classpath.ear)
> INFO - Starting network services
>  ** Starting Services **
>  NAME                 IP              PORT
> Jan 2, 2010 2:09:36 AM
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean
> buildServiceFromClass
> INFO: Creating Service
> {http://superbiz.org/wsdl}AuthenticatorServiceBeanService from class
> org.apache.openejb.server.cxf.fault.AuthenticatorService
> Jan 2, 2010 2:09:37 AM org.apache.cxf.endpoint.ServerImpl initDestination
> INFO: Setting the server's publish address to be http://nopath:80
> Jan 2, 2010 2:09:37 AM
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean
> buildServiceFromClass
> INFO: Creating Service
> {http://superbiz.org/wsdl}AuthenticatorServiceBeanNoHandlerService
> from class org.apache.openejb.server.cxf.fault.AuthenticatorService
> Jan 2, 2010 2:09:37 AM org.apache.cxf.endpoint.ServerImpl initDestination
> INFO: Setting the server's publish address to be http://nopath:80
>  ejbd                 127.0.0.1       4201
>  ejbd                 127.0.0.1       4203
>  httpejbd             127.0.0.1       4204
>  admin thread         127.0.0.1       4200
> -------
> Ready!
> Jan 2, 2010 2:09:40 AM
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean
> buildServiceFromWSDL
> INFO: Creating Service
> {http://superbiz.org/wsdl}AuthenticatorServiceBeanService from WSDL:
> http://localhost:4204/AuthenticatorServiceBean?wsdl
> Jan 2, 2010 2:09:40 AM
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean
> buildServiceFromWSDL
> INFO: Creating Service
> {http://superbiz.org/wsdl}AuthenticatorServiceBeanNoHandlerService
> from WSDL: http://localhost:4204/AuthenticatorServiceBeanNoHandler?wsdl
> ERROR
> Jan 2, 2010 2:09:41 AM org.apache.cxf.phase.PhaseInterceptorChain doIntercept
> WARNING: Interceptor has thrown exception, unwinding now
> Throwable occurred: org.apache.cxf.interceptor.Fault: Response was of
> unexpected text/html ContentType.  Incoming portion of HTML stream:
> <html>
> <body>
> <h3>Internal Server Error</h3>
> <br><br>
> Error occurred while executing the module /AuthenticatorServiceBean<br>
> java.lang.NoClassDefFoundError:<br>
> com.sun.org.apache.xerces.internal.dom.DocumentImpl:
> com.sun.org.apache.xerces.internal.dom.DocumentImpl<br>
> <br><br>
> Stack Trace:<br>
> org.apache.openejb.OpenEJBException: Error occurred while executing
> the module /AuthenticatorServiceBean<br>
> java.lang.NoClassDefFoundError:<br>
> com.sun.org.apache.xerces.internal.dom.DocumentImpl:
> com.sun.org.apache.xerces.internal.dom.DocumentImpl<br>
>        at org.apache.openejb.server.httpd.OpenEJBHttpServer.process(OpenEJBHttpServer.java:178)<br>
>        at org.apache.openejb.server.httpd.OpenEJBHttpServer.processRequest(OpenEJBHttpServer.java:132)<br>
>        at org.apache.openejb.server.httpd.OpenEJBHttpServer.service(OpenEJBHttpServer.java:78)<br>
>        at org.apache.openejb.server.httpd.HttpEjbServer.service(HttpEjbServer.java:61)<br>
>        at org.apache.openejb.server.ServicePool$2.run(ServicePool.java:91)<br>
>        at org.apache.openejb.server.ServicePool$3.run(ServicePool.java:120)<br>
>        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)<br>
>        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)<br>
>        at java.lang.Thread.run(Thread.java:736)<br>
> Caused by: java.lang.NoClassDefFoundError:
> com.sun.org.apache.xerces.internal.dom.DocumentImpl<br>
>        at java.lang.ClassLoader.defineClassImpl(Native Method)<br>
>        at java.lang.ClassLoader.defineClass(ClassLoader.java:274)<br>
>        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:69)<br>
>        at java.net.URLClassLoader.defineClass(URLClassLoader.java:521)<br>
>        at java.net.URLClassLoader.access$300(URLClassLoader.java:66)<br>
>        at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:985)<br>
>        at java.security.AccessController.doPrivileged(AccessController.java:284)<br>
>        at java.net.URLClassLoader.findClass(URLClassLoader.java:416)<br>
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:652)<br>
>        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:346)<br>
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:618)<br>
>        at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.<init>(SOAPPartImpl.java:119)<br>
>        at com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl.getSOAPPart(Message1_1Impl.java:109)<br>
>        at org.apache.cxf.binding.soap.saaj.SAAJInInterceptor.handleMessage(SAAJInInterceptor.java:104)<br>
>        at org.apache.cxf.binding.soap.saaj.SAAJInInterceptor.handleMessage(SAAJInInterceptor.java:71)<br>
>        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)<br>
>        at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:104)<br>
>        at org.apache.openejb.server.cxf.HttpDestination.invoke(HttpDestination.java:123)<br>
>        at org.apache.openejb.server.cxf.CxfWsContainer.processPOST(CxfWsContainer.java:106)<br>
>        at org.apache.openejb.server.cxf.CxfWsContainer.onMessage(CxfWsContainer.java:77)<br>
>        at org.apache.openejb.server.webservices.OpenEJBHttpWsRegistry$ClassLoaderHttpListener.onMessage(OpenEJBHttpWsRegistry.java:117)<br>
>        at org.apache.openejb.server.httpd.HttpListenerRegistry.onMessage(HttpListenerRegistry.java:43)<br>
>        at org.apache.openejb.server.httpd.OpenEJBHttpServer.process(OpenEJBHttpServer.java:176)<br>
>        ... 8 more<br>
> Caused by: java.lang.ClassNotFoundException:
> com.sun.org.apache.xerces.internal.dom.DocumentImpl<br>
>        at java.lang.ClassNotFoundException.<init>(ClassNotFoundException.java:77)<br>
>        at java.net.URLClassLoader.findClass(URLClassLoader.java:383)<br>
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:652)<br>
>        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:346)<br>
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:618)<br>
>        ... 31 more<br>
> </body>
> </html>
>
>        at org.apache.cxf.interceptor.StaxInInterceptor.handleMessage(StaxInInterceptor.java:73)
>        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
>        at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:664)
>        at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:2160)
>        at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:2040)
>        at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1965)
>        at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)
>        at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:627)
>        at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
>        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
>        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:478)
>        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:308)
>        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:260)
>        at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
>        at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124)
>        at $Proxy54.authenticate(Unknown Source)
>        at org.apache.openejb.server.cxf.CxfJaxWsProviderTest.test00_runCheckedException(CxfJaxWsProviderTest.java:66)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
>        at java.lang.reflect.Method.invoke(Method.java:600)
>        at junit.framework.TestCase.runTest(TestCase.java:168)
>        at junit.framework.TestCase.runBare(TestCase.java:134)
>        at junit.framework.TestResult$1.protect(TestResult.java:110)
>        at junit.framework.TestResult.runProtected(TestResult.java:128)
>        at junit.framework.TestResult.run(TestResult.java:113)
>        at junit.framework.TestCase.run(TestCase.java:124)
>        at junit.framework.TestSuite.runTest(TestSuite.java:232)
>        at junit.framework.TestSuite.run(TestSuite.java:227)
>        at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
>        at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
>        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
>        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:165)
>        at org.apache.maven.surefire.Surefire.run(Surefire.java:107)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
>        at java.lang.reflect.Method.invoke(Method.java:600)
>        at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:289)
>        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:993)
> Jan 2, 2010 2:09:41 AM
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean
> buildServiceFromWSDL
> INFO: Creating Service
> {http://superbiz.org/wsdl}AuthenticatorServiceBeanService from WSDL:
> http://localhost:4204/AuthenticatorServiceBean?wsdl
> Jan 2, 2010 2:09:41 AM
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean
> buildServiceFromWSDL
> INFO: Creating Service
> {http://superbiz.org/wsdl}AuthenticatorServiceBeanNoHandlerService
> from WSDL: http://localhost:4204/AuthenticatorServiceBeanNoHandler?wsdl
> ERROR
> A throwable exception...
> Jan 2, 2010 2:09:41 AM org.apache.cxf.phase.PhaseInterceptorChain doIntercept
> WARNING: Interceptor has thrown exception, unwinding now
> Throwable occurred: org.apache.cxf.interceptor.Fault: Response was of
> unexpected text/html ContentType.  Incoming portion of HTML stream:
> <html>
> <body>
> <h3>Internal Server Error</h3>
> <br><br>
> Error occurred while executing the module /AuthenticatorServiceBean<br>
> java.lang.NoClassDefFoundError:<br>
> com/sun/xml/messaging/saaj/soap/SOAPDocumentImpl:
> com/sun/xml/messaging/saaj/soap/SOAPDocumentImpl<br>
> <br><br>
> Stack Trace:<br>
> org.apache.openejb.OpenEJBException: Error occurred while executing
> the module /AuthenticatorServiceBean<br>
> java.lang.NoClassDefFoundError:<br>
> com/sun/xml/messaging/saaj/soap/SOAPDocumentImpl:
> com/sun/xml/messaging/saaj/soap/SOAPDocumentImpl<br>
>        at org.apache.openejb.server.httpd.OpenEJBHttpServer.process(OpenEJBHttpServer.java:178)<br>
>        at org.apache.openejb.server.httpd.OpenEJBHttpServer.processRequest(OpenEJBHttpServer.java:132)<br>
>        at org.apache.openejb.server.httpd.OpenEJBHttpServer.service(OpenEJBHttpServer.java:78)<br>
>        at org.apache.openejb.server.httpd.HttpEjbServer.service(HttpEjbServer.java:61)<br>
>        at org.apache.openejb.server.ServicePool$2.run(ServicePool.java:91)<br>
>        at org.apache.openejb.server.ServicePool$3.run(ServicePool.java:120)<br>
>        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)<br>
>        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)<br>
>        at java.lang.Thread.run(Thread.java:736)<br>
> Caused by: java.lang.NoClassDefFoundError:
> com/sun/xml/messaging/saaj/soap/SOAPDocumentImpl<br>
>        at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.<init>(SOAPPartImpl.java:119)<br>
>        at com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl.getSOAPPart(Message1_1Impl.java:109)<br>
>        at org.apache.cxf.binding.soap.saaj.SAAJInInterceptor.handleMessage(SAAJInInterceptor.java:104)<br>
>        at org.apache.cxf.binding.soap.saaj.SAAJInInterceptor.handleMessage(SAAJInInterceptor.java:71)<br>
>        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)<br>
>        at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:104)<br>
>        at org.apache.openejb.server.cxf.HttpDestination.invoke(HttpDestination.java:123)<br>
>        at org.apache.openejb.server.cxf.CxfWsContainer.processPOST(CxfWsContainer.java:106)<br>
>        at org.apache.openejb.server.cxf.CxfWsContainer.onMessage(CxfWsContainer.java:77)<br>
>        at org.apache.openejb.server.webservices.OpenEJBHttpWsRegistry$ClassLoaderHttpListener.onMessage(OpenEJBHttpWsRegistry.java:117)<br>
>        at org.apache.openejb.server.httpd.HttpListenerRegistry.onMessage(HttpListenerRegistry.java:43)<br>
>        at org.apache.openejb.server.httpd.OpenEJBHttpServer.process(OpenEJBHttpServer.java:176)<br>
>        ... 8 more<br>
> </body>
> </html>
>
>        at org.apache.cxf.interceptor.StaxInInterceptor.handleMessage(StaxInInterceptor.java:73)
>        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
>        at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:664)
>        at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:2160)
>        at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:2040)
>        at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1965)
>        at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)
>        at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:627)
>        at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
>        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
>        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:478)
>        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:308)
>        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:260)
>        at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
>        at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124)
>        at $Proxy54.authenticateRuntime(Unknown Source)
>        at org.apache.openejb.server.cxf.CxfJaxWsProviderTest.test01_runRuntimeException(CxfJaxWsProviderTest.java:102)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
>        at java.lang.reflect.Method.invoke(Method.java:600)
>        at junit.framework.TestCase.runTest(TestCase.java:168)
>        at junit.framework.TestCase.runBare(TestCase.java:134)
>        at junit.framework.TestResult$1.protect(TestResult.java:110)
>        at junit.framework.TestResult.runProtected(TestResult.java:128)
>        at junit.framework.TestResult.run(TestResult.java:113)
>        at junit.framework.TestCase.run(TestCase.java:124)
>        at junit.framework.TestSuite.runTest(TestSuite.java:232)
>        at junit.framework.TestSuite.run(TestSuite.java:227)
>        at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
>        at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
>        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
>        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:165)
>        at org.apache.maven.surefire.Surefire.run(Surefire.java:107)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
>        at java.lang.reflect.Method.invoke(Method.java:600)
>        at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:289)
>        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:993)
> ERROR
> Jan 2, 2010 2:09:41 AM org.apache.cxf.phase.PhaseInterceptorChain doIntercept
> WARNING: Interceptor has thrown exception, unwinding now
> Throwable occurred: org.apache.cxf.interceptor.Fault: Response was of
> unexpected text/html ContentType.  Incoming portion of HTML stream:
> <html>
> <body>
> <h3>Internal Server Error</h3>
> <br><br>
> Error occurred while executing the module /AuthenticatorServiceBeanNoHandler<br>
> java.lang.NoClassDefFoundError:<br>
> com/sun/xml/messaging/saaj/soap/SOAPDocumentImpl:
> com/sun/xml/messaging/saaj/soap/SOAPDocumentImpl<br>
> <br><br>
> Stack Trace:<br>
> org.apache.openejb.OpenEJBException: Error occurred while executing
> the module /AuthenticatorServiceBeanNoHandler<br>
> java.lang.NoClassDefFoundError:<br>
> com/sun/xml/messaging/saaj/soap/SOAPDocumentImpl:
> com/sun/xml/messaging/saaj/soap/SOAPDocumentImpl<br>
>        at org.apache.openejb.server.httpd.OpenEJBHttpServer.process(OpenEJBHttpServer.java:178)<br>
>        at org.apache.openejb.server.httpd.OpenEJBHttpServer.processRequest(OpenEJBHttpServer.java:132)<br>
>        at org.apache.openejb.server.httpd.OpenEJBHttpServer.service(OpenEJBHttpServer.java:78)<br>
>        at org.apache.openejb.server.httpd.HttpEjbServer.service(HttpEjbServer.java:61)<br>
>        at org.apache.openejb.server.ServicePool$2.run(ServicePool.java:91)<br>
>        at org.apache.openejb.server.ServicePool$3.run(ServicePool.java:120)<br>
>        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)<br>
>        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)<br>
>        at java.lang.Thread.run(Thread.java:736)<br>
> Caused by: java.lang.NoClassDefFoundError:
> com/sun/xml/messaging/saaj/soap/SOAPDocumentImpl<br>
>        at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.<init>(SOAPPartImpl.java:119)<br>
>        at com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl.getSOAPPart(Message1_1Impl.java:109)<br>
>        at org.apache.cxf.binding.soap.saaj.SAAJInInterceptor.handleMessage(SAAJInInterceptor.java:104)<br>
>        at org.apache.cxf.binding.soap.saaj.SAAJInInterceptor.handleMessage(SAAJInInterceptor.java:71)<br>
>        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)<br>
>        at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:104)<br>
>        at org.apache.openejb.server.cxf.HttpDestination.invoke(HttpDestination.java:123)<br>
>        at org.apache.openejb.server.cxf.CxfWsContainer.processPOST(CxfWsContainer.java:106)<br>
>        at org.apache.openejb.server.cxf.CxfWsContainer.onMessage(CxfWsContainer.java:77)<br>
>        at org.apache.openejb.server.webservices.OpenEJBHttpWsRegistry$ClassLoaderHttpListener.onMessage(OpenEJBHttpWsRegistry.java:117)<br>
>        at org.apache.openejb.server.httpd.HttpListenerRegistry.onMessage(HttpListenerRegistry.java:43)<br>
>        at org.apache.openejb.server.httpd.OpenEJBHttpServer.process(OpenEJBHttpServer.java:176)<br>
>        ... 8 more<br>
> </body>
> </html>
>
>        at org.apache.cxf.interceptor.StaxInInterceptor.handleMessage(StaxInInterceptor.java:73)
>        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
>        at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:664)
>        at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:2160)
>        at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:2040)
>        at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1965)
>        at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)
>        at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:627)
>        at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
>        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
>        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:478)
>        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:308)
>        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:260)
>        at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
>        at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124)
>        at $Proxy54.authenticateRuntime(Unknown Source)
>        at org.apache.openejb.server.cxf.CxfJaxWsProviderTest.test01_runRuntimeException(CxfJaxWsProviderTest.java:111)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
>        at java.lang.reflect.Method.invoke(Method.java:600)
>        at junit.framework.TestCase.runTest(TestCase.java:168)
>        at junit.framework.TestCase.runBare(TestCase.java:134)
>        at junit.framework.TestResult$1.protect(TestResult.java:110)
>        at junit.framework.TestResult.runProtected(TestResult.java:128)
>        at junit.framework.TestResult.run(TestResult.java:113)
>        at junit.framework.TestCase.run(TestCase.java:124)
>        at junit.framework.TestSuite.runTest(TestSuite.java:232)
>        at junit.framework.TestSuite.run(TestSuite.java:227)
>        at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
>        at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
>        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
>        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:165)
>        at org.apache.maven.surefire.Surefire.run(Surefire.java:107)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
>        at java.lang.reflect.Method.invoke(Method.java:600)
>        at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:289)
>        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:993)
> A throwable exception...
> Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 11.495
> sec <<< FAILURE!
>
> Results :
>
> Failed tests:
>  test00_runCheckedException(org.apache.openejb.server.cxf.CxfJaxWsProviderTest)
>
> Tests run: 2, Failures: 1, Errors: 0, Skipped: 0
>
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] There are test failures.
>
> Please refer to
> /home/dsh/projects/openejb3/server/openejb-cxf/target/surefire-reports
> for the individual test results.
> [INFO] ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 25 minutes 31 seconds
> [INFO] Finished at: Sat Jan 02 02:09:42 CET 2010
> [INFO] Final Memory: 288M/512M
> [INFO] ------------------------------------------------------------------------
>