On 5/8/07, V B Kumar Jayanti <Vbkumar.Jayanti_at_sun.com> wrote:
>
> Hi,
>
> The exception seems to be :
>
> " Couldn't create SOAP message due to exception:
> com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to internalize
> message
>
> WebServiceException: Couldn't create SOAP message due to exception:
> com.sun.xml.messaging.saaj.SOAPExceptionImpl : Unable to internalize
> message"
Hi Kumar,
I am experiencing the same problem.
>
> Can you send us the complete stack trace instead of the verbose flag
> output.
Here is the output from my mvn based build:
[DEBUG]Test Classpath :
[DEBUG] /home/najmi/javanet/hyperjaxb3/samples/po-ws/target/classes
[DEBUG] /home/najmi/javanet/hyperjaxb3/samples/po-ws/target/test-classes
[DEBUG] /home/najmi/.m2/repository/javax/xml/bind/jaxb-api/2.1/jaxb-api-2.1.jar
[DEBUG] /home/najmi/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar
[DEBUG] /home/najmi/.m2/repository/commons-logging/commons-logging/1.1/commons-logging-1.1.jar
[DEBUG] /home/najmi/.m2/repository/javax/xml/soap/saaj-api/1.3/saaj-api-1.3.jar
[DEBUG] /home/najmi/.m2/repository/com/sun/xml/stream/buffer/streambuffer/0.4/streambuffer-0.4.jar
[DEBUG] /home/najmi/.m2/repository/com/sun/xml/ws/jaxws-rt/2.1/jaxws-rt-2.1.jar
[DEBUG] /home/najmi/.m2/repository/org/jvnet/staxex/stax-ex/1.0/stax-ex-1.0.jar
[DEBUG] /home/najmi/.m2/repository/log4j/log4j/1.2.13/log4j-1.2.13.jar
[DEBUG] /home/najmi/.m2/repository/javax/xml/ws/jaxws-api/2.1/jaxws-api-2.1.jar
[DEBUG] /home/najmi/.m2/repository/javax/annotation/jsr250-api/1.0/jsr250-api-1.0.jar
[DEBUG] /home/najmi/.m2/repository/javax/xml/bind/jsr173_api/1.0/jsr173_api-1.0.jar
[DEBUG] /home/najmi/.m2/repository/com/sun/xml/messaging/saaj/saaj-impl/1.3/saaj-impl-1.3.jar
[DEBUG] /home/najmi/.m2/repository/com/sun/xml/stream/sjsxp/1.0/sjsxp-1.0.jar
[DEBUG] /home/najmi/.m2/repository/com/sun/xml/bind/jaxb-impl/2.1.2/jaxb-impl-2.1.2.jar
[DEBUG] /home/najmi/.m2/repository/javax/xml/stream/stax-api/1.0/stax-api-1.0.jar
[DEBUG] /home/najmi/.m2/repository/javax/activation/activation/1.1/activation-1.1.jar
[DEBUG] /home/najmi/.m2/repository/javax/jws/jsr181-api/1.0-MR1/jsr181-api-1.0-MR1.jar
[DEBUG]Setting system property [localRepository]=[/home/najmi/.m2/repository]
[DEBUG]Setting system property [basedir]=[/home/najmi/javanet/hyperjaxb3/samples/po-ws]
[INFO]Surefire report directory: /home/najmi/javanet/hyperjaxb3/samples/po-ws/target/surefire-reports
Forking command line: java -classpath /home/najmi/.m2/repository/org/apache/maven/surefire/surefire-api/2.0/surefire-api-2.0.jar:/home/najmi/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar:/home/najmi/.m2/repository/org/apache/maven/surefire/surefire-booter/2.0/surefire-booter-2.0.jar org.apache.maven.surefire.booter.SurefireBooter /tmp/surefire972tmp /tmp/surefire973tmp
org.apache.maven.surefire.booter.SurefireExecutionException: org.jvnet.hyperjaxb3.samples.pows.bindings.OrderServiceTest; nested exception is java.lang.NoClassDefFoundError: com/sun/org/apache/xml/internal/resolver/CatalogManager; nested exception is org.apache.maven.surefire.testset.TestSetFailedException: org.jvnet.hyperjaxb3.samples.pows.bindings.OrderServiceTest; nested exception is java.lang.NoClassDefFoundError: com/sun/org/apache/xml/internal/resolver/CatalogManager
org.apache.maven.surefire.testset.TestSetFailedException: org.jvnet.hyperjaxb3.samples.pows.bindings.OrderServiceTest; nested exception is java.lang.NoClassDefFoundError: com/sun/org/apache/xml/internal/resolver/CatalogManager
java.lang.NoClassDefFoundError: com/sun/org/apache/xml/internal/resolver/CatalogManager
at com.sun.xml.ws.util.xml.XmlUtil.createDefaultCatalogResolver(XmlUtil.java:223)
at com.sun.xml.ws.client.WSServiceDelegate.parseWSDL(WSServiceDelegate.java:222)
at com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:184)
at com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:159)
at com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:82)
at javax.xml.ws.Service.<init>(Service.java:56)
at org.jvnet.hyperjaxb3.samples.pows.bindings.OrderService.<init>(OrderService.java:41)
at org.jvnet.hyperjaxb3.samples.pows.bindings.OrderServiceTest.<clinit>(OrderServiceTest.java:32)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at junit.framework.TestSuite.createTest(TestSuite.java:135)
at junit.framework.TestSuite.addTestMethod(TestSuite.java:114)
at junit.framework.TestSuite.<init>(TestSuite.java:75)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at org.apache.maven.surefire.junit.JUnitTestSet.constructTestObject(JUnitTestSet.java:148)
at org.apache.maven.surefire.junit.JUnitTestSet.getTestCount(JUnitTestSet.java:244)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.locateTestSets(AbstractDirectoryTestSuite.java:101)
at org.apache.maven.surefire.Surefire.createSuiteFromDefinition(Surefire.java:147)
at org.apache.maven.surefire.Surefire.run(Surefire.java:108)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:225)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:747)
>
> Also would you be able to provide a reproducable testcase for us ?.
Yes. Please checkout hyperjaxb3 project and then build the minimal sample project
in the following dir:
cd hyperjaxb3/samples/po-ws
mvn install
> Does your Application work on Windows or Solaris platforms ?.
Its not an OS issue AFAIK
> What is your client classpath ?.
See DEBUG messages above which have complete classpath.
> Did you download any Jars from jax-ws.dev.java.net or are you using
> webservices out-of-box from GlassFish.
I use maven with 2.1 version of JAXWS and its dependencies.
You can see the pom file at:
hyperjaxb3/samples/po-ws/pom.xml
I would be grateful if you can get me out of this stuck situation soon.
Thanks.
--
Regards,
Farrukh
[Message sent by forum member 'najmi' (najmi)]
http://forums.java.net/jive/thread.jspa?messageID=219585