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.

Bug 244891 - Maven project jax-ws client fails to gen
Summary: Maven project jax-ws client fails to gen
Status: RESOLVED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: JAX-WS (show other bugs)
Version: 8.0
Hardware: All All
: P2 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-04 21:40 UTC by pggeldenhuys
Modified: 2015-04-24 02:45 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (72.47 KB, text/plain)
2014-06-04 21:40 UTC, pggeldenhuys
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pggeldenhuys 2014-06-04 21:40:46 UTC
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)
Comment 1 pggeldenhuys 2014-06-04 21:40:51 UTC
Created attachment 147570 [details]
IDE log
Comment 2 _ gtzabari 2015-04-08 14:35:21 UTC
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.
Comment 3 Petr Hejl 2015-04-23 09:02:08 UTC
(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?
Comment 4 Petr Hejl 2015-04-23 09:03:33 UTC
(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.
Comment 5 Petr Hejl 2015-04-23 09:09:44 UTC
Ok, this happens on JDK8, not on JDK7.
Comment 6 Petr Hejl 2015-04-23 10:02:32 UTC
Fixed in web-main 4f5c9050ad92.
Comment 7 Quality Engineering 2015-04-24 02:45:11 UTC
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