[
https://issues.apache.org/jira/browse/NETBEANS-2275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16817273#comment-16817273
]
Florian Bruckner commented on NETBEANS-2275:
--------------------------------------------
Two modifications were necessary to the build script:
1.) add libs.jaxb.classpath to wsimport taskdef
{code:java}
<taskdef name="wsimport" classname="com.sun.tools.ws.ant.WsImport2">
<classpath path="${libs.jaxws21.classpath}"/>
<classpath path="${libs.jaxb.classpath}" />
</taskdef>
{code}
This resolves the problem with xjc not being found (libs.jaxb.classpath is
already defined by NetBeans). Nevertheless, because the jaxws version is old,
compilation by wsimport fails:
error: option -Xbootclasspath/p: not allowed with target 11
2.) disable compiling by setting xnocompile=true in wsimport
{code:java}
<wsimport sourcedestdir="${build.generated.dir}/jax-wsCache/SSOService"
destdir="${build.generated.dir}/jax-wsCache/SSOService"
wsdl="${wsdl-SSOService}"
catalog="catalog.xml" encoding="${source.encoding}" extension="true"
verbose="true"
wsdlLocation="SSOService.wsdl"
xendorsed="true" package="com.sso.client" fork="true"
xnocompile="true">
{code}
Disabling compilation by wsimport shouldn't have any side effects for a build,
as the build will compile the generated sources anyway.
> Importing WSDL on Java Application, error during compile
> --------------------------------------------------------
>
> Key: NETBEANS-2275
> URL: https://issues.apache.org/jira/browse/NETBEANS-2275
> Project: NetBeans
> Issue Type: Bug
> Components: java - Project
> Affects Versions: 9.0, 11.0
> Environment: Windows 10
> Reporter: David Baldo
> Priority: Major
>
> I've an error while trying to create a new WSDL Client in Java Application
> project
> Steps to reproduce:
> # Create a new Java Application project
> # Create new WSDL Client
> # find a WSDL source (tried with my internal wsdl and
> [http://www.dneonline.com/calculator.asmx?WSDL)]
> # Have this error: ant -f
> C:\\Users\\David\\Desktop\\Lavoro\\RedEvo\\redevoclients\\Calculator
> wsimport-client-calculator
> init:
> wsimport-init:
> Created dir:
> C:\Users\David\Desktop\Lavoro\RedEvo\redevoclients\Calculator\build\generated-sources\jax-ws
> C:\Users\David\Desktop\Lavoro\RedEvo\redevoclients\Calculator\nbproject\jaxws-build.xml:15:
> taskdef A class needed by class com.sun.tools.ws.ant.WsImport cannot be
> found: com/sun/istack/tools/ProtectedTask
> using the classloader
> AntClassLoader[C:\netbeans-apache\netbeans9\java\modules\ext\jaxws22\FastInfoset.jar;C:\netbeans-apache\netbeans9\java\modules\ext\jaxws22\gmbal-api-only.jar;C:\netbeans-apache\netbeans9\java\modules\ext\jaxws22\ha-api.jar;C:\netbeans-apache\netbeans9\java\modules\ext\jaxws22\javax.mail_1.4.jar;C:\netbeans-apache\netbeans9\java\modules\ext\jaxws22\jaxws-rt.jar;C:\netbeans-apache\netbeans9\java\modules\ext\jaxws22\saaj-impl.jar;C:\netbeans-apache\netbeans9\java\modules\ext\jaxws22\stax2-api.jar;C:\netbeans-apache\netbeans9\java\modules\ext\jaxws22\woodstox-core-asl.jar;C:\netbeans-apache\netbeans9\java\modules\ext\jaxws22\stax-ex.jar;C:\netbeans-apache\netbeans9\java\modules\ext\jaxws22\streambuffer.jar;C:\netbeans-apache\netbeans9\java\modules\ext\jaxws22\policy.jar;C:\netbeans-apache\netbeans9\java\modules\ext\jaxws22\management-api.jar;C:\netbeans-apache\netbeans9\java\modules\ext\jaxws22\jaxws-tools.jar;C:\netbeans-apache\netbeans9\java\modules\ext\jaxws22\mimepull.jar;C:\netbeans-apache\netbeans9\java\modules\ext\jaxws22\api\jaxws-api.jar;C:\netbeans-apache\netbeans9\java\modules\ext\jaxws22\api\jsr181-api.jar;C:\netbeans-apache\netbeans9\java\modules\ext\jaxws22\api\javax.annotation.jar;C:\netbeans-apache\netbeans9\java\modules\ext\jaxws22\api\saaj-api.jar;C:\netbeans-apache\netbeans9\ide\modules\ext\jaxb\activation.jar;C:\netbeans-apache\netbeans9\ide\modules\ext\jaxb\api\jaxb-api.jar]
> BUILD FAILED (total time: 0 seconds)
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists