[
https://jira.jboss.org/browse/JBWS-3052?page=com.atlassian.jira.plugin.sy...
]
Alessio Soldano updated JBWS-3052:
----------------------------------
Workaround Description: Add com.sun.xml.ws:policy jar to client and common/lib folder.
That should be named policy.jar, while the already included policy.jar
(org.apache.ws.policy:wscommons-policy) should be renamed to wscommons-policy.jar to be
automatically picked up by jbossws (through the manifest in jbossws-native-client.jar).
Otherwise the classpath in wsconsume script needs to be modified.
NoClassDefFoundError:
com/sun/xml/ws/policy/sourcemodel/wspolicy/NamespaceVersion
---------------------------------------------------------------------------------
Key: JBWS-3052
URL:
https://jira.jboss.org/browse/JBWS-3052
Project: JBoss Web Services
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: tools-jaxws
Reporter: Lukas Jungmann
Assignee: Alessio Soldano
jlukas@lukas-laptop:/tmp/aaa$
/space/java/servers/jboss-6.0.0.20100429-M3/bin/wsconsume.sh -k --verbose
http://www.ecubicle.net/iptocountry.asmx?wsdl
parsing WSDL...
Error: Could not import. (use --verbose to see full traces)
java.lang.NoClassDefFoundError:
com/sun/xml/ws/policy/sourcemodel/wspolicy/NamespaceVersion
at
com.sun.tools.ws.wsdl.parser.PolicyExtensionHandler.getNamespaceURI(PolicyExtensionHandler.java:57)
at com.sun.tools.ws.wsdl.parser.WSDLParser.register(WSDLParser.java:131)
at com.sun.tools.ws.wsdl.parser.WSDLParser.<init>(WSDLParser.java:123)
at com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildModel(WSDLModeler.java:109)
at com.sun.tools.ws.wscompile.WsimportTool.run(WsimportTool.java:185)
at org.jboss.ws.tools.jaxws.impl.SunRIConsumerImpl.consume(SunRIConsumerImpl.java:246)
at org.jboss.wsf.spi.tools.cmd.WSConsume.importServices(WSConsume.java:240)
at org.jboss.wsf.spi.tools.cmd.WSConsume.main(WSConsume.java:86)
Caused by: java.lang.ClassNotFoundException:
com.sun.xml.ws.policy.sourcemodel.wspolicy.NamespaceVersion
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 8 more
jlukas@lukas-laptop:/tmp/aaa$ java -version
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) Server VM (build 16.3-b01, mixed mode)
This works fine if I use JBossWS included in JBossAS 5.x
see also JBIDE-6390
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira