[jbossws-issues] [JBoss JIRA] Commented: (JBWS-2284) Using WSConsume on JBOSS 4.2.3.GA and JDK 1.6.0_07 leads to java.lang.NoClassDefFoundError: com/sun/tools/ws/wscompile/WsimportTool

Brendan Farragher (JIRA) jira-events at lists.jboss.org
Tue Jun 9 07:50:56 EDT 2009


    [ https://jira.jboss.org/jira/browse/JBWS-2284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12471161#action_12471161 ] 

Brendan Farragher commented on JBWS-2284:
-----------------------------------------

PS - You must remove the additional jars that you add to the lib/endorsed directory after you run wsconsume!

> Using WSConsume on JBOSS 4.2.3.GA and JDK 1.6.0_07 leads to java.lang.NoClassDefFoundError: com/sun/tools/ws/wscompile/WsimportTool
> -----------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: JBWS-2284
>                 URL: https://jira.jboss.org/jira/browse/JBWS-2284
>             Project: JBoss Web Services
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>         Environment: JBOSS 4.2.3.GA 
> JDK 1.6.0_07
> Windows
>            Reporter: Hemant Satam
>
> I have all the required files in jboss-4.2.3.GA\lib\endorsed. The classpath also ensures that jboss libraries are before jdk1.6 lib file. However on access of wsconsume the error produced is;
> JBossWS-Native stack deployed
> Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/tools/ws/wscompile/WsimportTool
>         at org.jboss.ws.tools.jaxws.impl.SunRIConsumerFactoryImpl.createConsumer(SunRIConsumerFact
> oryImpl.java:36)
>         at org.jboss.wsf.spi.tools.WSContractConsumer.newInstance(WSContractConsumer.java:73)
>         at org.jboss.wsf.spi.tools.WSContractConsumer.newInstance(WSContractConsumer.java:56)
>         at org.jboss.wsf.spi.tools.cmd.WSConsume.importServices(WSConsume.java:195)
>         at org.jboss.wsf.spi.tools.cmd.WSConsume.main(WSConsume.java:81)
> Caused by: java.lang.ClassNotFoundException: com.sun.tools.ws.wscompile.WsimportTool
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>         ... 5 more
> Is this a bug or something wrong that I am doing?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbossws-issues mailing list