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.
Product Version = NetBeans IDE Dev (Build 201403030001) Operating System = Mac OS X version 10.9.3 running on x86_64 Java; VM; Vendor = 1.8.0 Runtime = Java HotSpot(TM) 64-Bit Server VM 25.0-b70 Following the jax-ws tutorial at https://netbeans.org/kb/docs/websvc/client.html Web service client gen fails in a maven project with: Failed to execute goal org.jvnet.jax-ws-commons:jaxws-maven-plugin:2.3:wsimport (wsimport-generate-check.asmx) on project SpellCheckService: Mojo failed - check output Exception in thread "main" java.lang.ClassCastException: java.lang.AssertionError cannot be cast to java.lang.Exception at org.jvnet.jax_ws_commons.jaxws.Invoker.main(Invoker.java:87)
Created attachment 147570 [details] IDE log
I'm running into the same issue, on Windows 7 64-bit. According to https://netbeans.org/bugzilla/show_bug.cgi?id=241570 the workaround is to add <vmArgs> <vmArg>-Djavax.xml.accessExternalSchema=all</vmArg> </vmArgs> Contrary to that issue, I am not getting a warning about being unable to read the schema document. I am just getting the AssertionError mentioned by OP. Expected behavior: Netbeans should add <vmArgs> <vmArg>-Djavax.xml.accessExternalSchema=all</vmArg> </vmArgs> on behalf of the user when first adding the plugin to pom.xml. Increasing priority to P2 because this is difficult blocks a critical development path and the workaround is not obvious to locate.
(In reply to pggeldenhuys from comment #0) > Exception in thread "main" java.lang.ClassCastException: > java.lang.AssertionError cannot be cast to java.lang.Exception > at org.jvnet.jax_ws_commons.jaxws.Invoker.main(Invoker.java:87) I went through the tutorial and everything worked just fine in dev build. Any specific steps?
(In reply to _ gtzabari from comment #2) > I'm running into the same issue, on Windows 7 64-bit. According to > https://netbeans.org/bugzilla/show_bug.cgi?id=241570 the workaround is to add > > <vmArgs> > <vmArg>-Djavax.xml.accessExternalSchema=all</vmArg> > </vmArgs> > > Contrary to that issue, I am not getting a warning about being unable to > read the schema document. I am just getting the AssertionError mentioned by > OP. > > Expected behavior: Netbeans should add > > <vmArgs> > <vmArg>-Djavax.xml.accessExternalSchema=all</vmArg> > </vmArgs> > > on behalf of the user when first adding the plugin to pom.xml. > > Increasing priority to P2 because this is difficult blocks a critical > development path and the workaround is not obvious to locate. I also went through the tutorial using maven project and didn't see any issue. Can you provide step by step instructions how to reproduce this? Thanks.
Ok, this happens on JDK8, not on JDK7.
Fixed in web-main 4f5c9050ad92.
Integrated into 'main-silver', will be available in build *201504240001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/4f5c9050ad92 User: Petr Hejl <phejl@netbeans.org> Log: #244891 - Maven project jax-ws client fails to gen