Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 249839 - dev-util/netbeans-6.5-r2 has problems with web-service client generation
Summary: dev-util/netbeans-6.5-r2 has problems with web-service client generation
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Miroslav Šulc
URL:
Whiteboard:
Keywords:
Depends on: 250925
Blocks:
  Show dependency tree
 
Reported: 2008-12-04 20:03 UTC by vhusainov
Modified: 2009-05-03 11:07 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description vhusainov 2008-12-04 20:03:45 UTC
When I'm trying to create new JAX_WS web-service client (for simple java application), I'm getting ant exception:
java.lang.ClassNotFoundException: com.sun.tools.ws.wscompile.WsimportOptions
	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:307)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
	at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:252)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Caused: java.lang.NoClassDefFoundError: com/sun/tools/ws/wscompile/WsimportOptions
	at org.netbeans.modules.websvc.api.jaxws.wsdlmodel.WsdlModeler.generateWsdlModel(WsdlModeler.java:190)
	at org.netbeans.modules.websvc.api.jaxws.wsdlmodel.WsdlModeler.generateWsdlModel(WsdlModeler.java:186)
	at org.netbeans.modules.websvc.api.jaxws.wsdlmodel.WsdlModeler.access$000(WsdlModeler.java:73)
	at org.netbeans.modules.websvc.api.jaxws.wsdlmodel.WsdlModeler$1.run(WsdlModeler.java:98)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997)

And it's impossible to build application from netbeans, but I can compile it from console. But webservice reference is shown in netbeans.

I've tried to find some missing dependencies, but it seems to be fine.

Also when netbeans is creating netbeans, it adds option "xnocompile" to wsimport task. And after it, when compiling project it shows:
JavaApplication3/nbproject/jaxws-build.xml:16: wsimport doesn't support the "xnocompile" attribute.
It seems that netbeans needs different version of some jax-ws tool.

Reproducible: Always

Steps to Reproduce:
Comment 1 vhusainov 2008-12-04 20:12:54 UTC
After removing "xnocompile" option, I'm geting another exception:
java.lang.NoClassDefFoundError: org/apache/xml/resolver/CatalogManager
        at com.sun.xml.ws.util.xml.XmlUtil.createEntityResolver(XmlUtil.java:194)
        at com.sun.tools.ws.wscompile.CompileTool.run(CompileTool.java:552)
        at com.sun.tools.ws.util.ToolBase.run(ToolBase.java:56)
        at com.sun.tools.ws.ant.WsImport.execute(WsImport.java:514)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.GeneratedMethodAccessor102.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
        at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:273)
        at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:499)
        at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151)
Caused by: java.lang.ClassNotFoundException: org.apache.xml.resolver.CatalogManager
        at org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1400)
        at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1341)
        at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1088)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
        ... 19 more
BUILD FAILED (total time: 0 seconds)

But It's in /usr/share/netbeans-6.5/ide10/modules/ext/jaxb/jaxb-xjc.jar. 
Comment 2 Miroslav Šulc gentoo-dev 2008-12-05 03:18:25 UTC
Should be fixed in -r3. Please let me know whether the fix works or not.

The content of jaxws-tools.jar bundled by upstream and our /usr/share/jax-ws-tools-2/lib/jax-ws-tools.jar is different, so I use the bundled jar instead of the system jar in the updated ebuild now.
Comment 3 vhusainov 2008-12-06 17:24:54 UTC
The problem with xnocompile disappeared. But the second problem is still present. I've tried to investigate it, but couldn't find any reason. CatalogManager can't be found while building WS client. I'll try to download original version and find some difference with this one.
Comment 4 Miroslav Šulc gentoo-dev 2009-05-03 02:09:46 UTC
As we do not have JAX-WS 2.1 bundled, i use in netbeans 6.7 beta the jars bundled with netbeans, so this problem should be fixed, if not, then pls reopen the bug.