This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Steps to reproduce: - create J2SE Application - create WS Client (e.g. for http:/www.webservicex.net/CurrencyConvertor.asmx?wsdl) - Drag & Drop WS Operation into main() method - run the Main class Run action works neither for Main class nor for Project. It has something to do with Compile on Save.
dump from the output tab (in the messages log isn't anythink) Exception in thread "main" java.lang.NoClassDefFoundError: org/test/MyWSService Caused by: java.lang.ClassNotFoundException: org.test.MyWSService 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 java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
This is the Exception from Output Window: run: Exception in thread "main" java.lang.NoClassDefFoundError: net/webservicex/CurrencyConvertor Java Result: 1 BUILD SUCCESSFUL (total time: 0 seconds) Note: I implemented some changes in JaxWsSourceForBinaryQuery. Now, the JAX-WS generated sources are not resolved for project/build/classes URI, or should they? Anyway, I found the problem existed even before this change (Friday). This is the change in JaxWsSourceForBinaryQuery: http://hg.netbeans.org/main/rev/972ad4b57399
Fixed. Problem with Run action (case after project is build) fixed by resolving source root for build/classes: http://hg.netbeans.org/main?cmd=changeset;node=a9048daacf55 Problem with Run action (case after project is cleaned) fixed by disabling Compile on Save feature in J2SE Project, containing WS References: http://hg.netbeans.org/main?cmd=changeset;node=be03667c5b52
Integrated into 'main-golden', will be available in build *200810090201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/a9048daacf55 User: mkuchtiak@netbeans.org Log: #149217: resolve sources also for build/classes
Verified in NetBeans IDE Dev (Build 200810111401).