[jbossws-issues] [JBoss JIRA] Reopened: (JBWS-2175) wsconsume cannot run with jaxws-api from build output
Alessio Soldano (JIRA)
jira-events at lists.jboss.org
Fri May 16 13:02:22 EDT 2008
[ http://jira.jboss.com/jira/browse/JBWS-2175?page=all ]
Alessio Soldano reopened JBWS-2175:
-----------------------------------
This is an issue for the org.jboss.test.ws.jaxws.smoke.tools.WSConsumerTestCase tests too. When running the testsuite from the native root pom the surefire classpath includes something like "/dati/jbossws/stack/native/trunk/modules/jaxws-ext/target/classes" instead of the jbossws-native-jaxws-ext-3.0.2-SNAPSHOT.jar from the repository being used when running from the framework-test pom. AFAIK this depends on target/test-classes and target/classes of modules being the first included in the classpath.
Running org.jboss.test.ws.jaxws.smoke.tools.WSConsumerTestCase
java.lang.Error: java.lang.ClassNotFoundException: Loaded outside a jar file:/usr/share/java/workspace/jbossws-hudson-3.0.2-SNAPSHOT/hudson-home/jobs/Native-Core-AS-4.2.2/workspace/stack-native/modules/jaxws-ext/target/classes/javax/xml/ws/EndpointReference.class
at com.sun.tools.ws.wscompile.JavaCompilerHelper.getJarFile(JavaCompilerHelper.java:64)
at com.sun.tools.ws.wscompile.WsimportTool.compileGeneratedClasses(WsimportTool.java:255)
at com.sun.tools.ws.wscompile.WsimportTool.run(WsimportTool.java:210)
at org.jboss.ws.tools.jaxws.impl.SunRIConsumerImpl.consume(SunRIConsumerImpl.java:231)
at org.jboss.wsf.spi.tools.WSContractConsumer.consume(WSContractConsumer.java:203)
at org.jboss.test.ws.jaxws.smoke.tools.WSConsumerTestCase.consumeWSDL(WSConsumerTestCase.java:328)
at org.jboss.test.ws.jaxws.smoke.tools.WSConsumerTestCase.testTargetPackage(WSConsumerTestCase.java:179)
at org.jboss.test.ws.jaxws.smoke.tools.WSConsumerTestCase.testGenerateSource(WSConsumerTestCase.java:166)
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 junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at sun.reflect.GeneratedMethodAccessor39.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
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:338)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997)
Caused by: java.lang.ClassNotFoundException: Loaded outside a jar file:/usr/share/java/workspace/jbossws-hudson-3.0.2-SNAPSHOT/hudson-home/jobs/Native-Core-AS-4.2.2/workspace/stack-native/modules/jaxws-ext/target/classes/javax/xml/ws/EndpointReference.class
at com.sun.istack.tools.ParallelWorldClassLoader.toJarUrl(ParallelWorldClassLoader.java:110)
at com.sun.tools.ws.wscompile.JavaCompilerHelper.getJarFile(JavaCompilerHelper.java:60)
... 32 more
> wsconsume cannot run with jaxws-api from build output
> -----------------------------------------------------
>
> Key: JBWS-2175
> URL: http://jira.jboss.com/jira/browse/JBWS-2175
> Project: JBoss Web Services
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: jbossws-metro
> Reporter: Thomas Diesler
> Assigned To: Thomas Diesler
> Fix For: jbossws-metro-3.0.2
>
>
> [wsconsume] Consuming wsdl: /home/tdiesler/svn/jbossws/stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/samples/wssecurity/META-INF/wsdl/HelloService.wsdl
> java.lang.Error: java.lang.ClassNotFoundException: Loaded outside a jar file:/home/tdiesler/svn/jbossws/stack/native/trunk/modules/jaxws-ext/target/classes/javax/xml/ws/EndpointReference.class
> at com.sun.tools.ws.wscompile.JavaCompilerHelper.getJarFile(JavaCompilerHelper.java:64)
> at com.sun.tools.ws.wscompile.WsimportTool.compileGeneratedClasses(WsimportTool.java:255)
> at com.sun.tools.ws.wscompile.WsimportTool.run(WsimportTool.java:210)
> at org.jboss.ws.tools.jaxws.impl.SunRIConsumerImpl.consume(SunRIConsumerImpl.java:217)
> at org.jboss.wsf.spi.tools.WSContractConsumer.consume(WSContractConsumer.java:196)
> at org.jboss.wsf.spi.tools.ant.WSConsumeTask.executeNonForked(WSConsumeTask.java:214)
> at org.jboss.wsf.spi.tools.ant.WSConsumeTask.execute(WSConsumeTask.java:234)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbossws-issues
mailing list