Skip to content

Unable to add new web service client #8087

@mrsalesi

Description

@mrsalesi

Apache NetBeans version

Apache NetBeans 24

What happened

I want to use a web service that its WSDL file located in specific URL. So I use new/web Service Client/[import WSDL URL] and check Generate dispatch code

after few seconds this 2 error are shown:

cd D:\work\test\mavenproject; "JAVA_HOME=C:\\Program Files\\Java\\jdk-23" cmd /c "\"D:\\Program Files\\NetBeans-23\\netbeans\\java\\maven\\bin\\mvn.cmd\" \"-Dmaven.ext.class.path=D:\\Program Files\\NetBeans-23\\netbeans\\java\\maven-nblib\\netbeans-eventspy.jar\" --no-transfer-progress compile"
Scanning for projects...

---------------------< com.behkavosh:mavenproject >---------------------
Building mavenproject-1.0-SNAPSHOT 1.0-SNAPSHOT
  from pom.xml
--------------------------------[ war ]---------------------------------
The POM for org.glassfish.metro:webservices-rt:jar:2.3 is invalid, transitive dependencies (if any) will not be available: 1 problem was encountered while building the effective model for org.glassfish.metro:webservices-rt:2.3
'dependencyManagement.dependencies.dependency.systemPath' for com.sun:tools:jar must specify an absolute path but is ${tools.jar} @ com.sun.xml.ws:jaxws-ri-bom:2.2.8


--- jaxws:2.3:wsimport (wsimport-generate-gservice.asmx) @ mavenproject ---
The POM for com.sun.xml.ws:jaxws-tools:jar:2.2.8 is invalid, transitive dependencies (if any) will not be available: 1 problem was encountered while building the effective model for com.sun.xml.ws:jaxws-tools:2.2.8
'dependencyManagement.dependencies.dependency.systemPath' for com.sun:tools:jar must specify an absolute path but is ${tools.jar} @ 

Processing: file:/D:/work/test/mavenproject/src/wsdl/golestan.daneshpajoohan.ac.ir/GolestanService/gservice.asmx.wsdl
jaxws:wsimport args: [-keep, -s, D:\work\test\mavenproject\target\generated-sources\jaxws-wsimport, -d, D:\work\test\mavenproject\target\classes, -verbose, -encoding, UTF-8, -extension, -Xnocompile, -p, com.behkavosh.golestanAPI, -catalog, D:\work\test\mavenproject\src\jax-ws-catalog.xml, -wsdllocation, https://golestan.daneshpajoohan.ac.ir/GolestanService/gservice.asmx?WSDL, "file:/D:/work/test/mavenproject/src/wsdl/golestan.daneshpajoohan.ac.ir/GolestanService/gservice.asmx.wsdl"]
Failed to build parent project for com.sun.xml.ws:project:pom:2.2.8
Failed to build parent project for com.sun.xml.ws:bundles:pom:2.2.8
Failed to build parent project for com.sun.xml.ws:jaxws-tools:pom:2.2.8
Invalid POM for com.sun.xml.ws:jaxws-tools:jar:2.2.8, transitive dependencies (if any) will not be available, enable debug logging for more details
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
-Xbootclasspath/p is no longer a supported option.
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time:  ?.??? s
Finished at: ????-??-??T??:??:??+03:30
------------------------------------------------------------------------
Failed to execute goal org.jvnet.jax-ws-commons:jaxws-maven-plugin:2.3:wsimport (wsimport-generate-gservice.asmx) on project mavenproject: Mojo failed - check output -> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Language / Project Type / NetBeans Component

Java Maven Web Application

How to reproduce

create new project:
File/New Project/Java Maven Web Application

Then run to make sure your default "hello word" is showing.
then create new package and right click on it and:
new/web Service Client/[import WSDL URL] and check Generate dispatch code
You can use the URL below for test:
https://www.dataaccess.com/webservicesserver/NumberConversion.wso?wsdl

Then it take few seconds and error accords.

Did this work correctly in an earlier version?

Apache NetBeans 16 or earlier

Operating System

Windows 10 pro

JDK

JDK 23, JDK 19, JDK 17

Apache NetBeans packaging

Apache NetBeans provided installer

Anything else

every time,
I try other ways to add SOAP web service in my project, but I faced whit this tow error:


dependencyManagement.dependencies.dependency.systemPath' for com.sun:tools:jar must specify an absolute path but is ${tools.jar} @ com.sun.xml.ws:jaxws-ri-bom:2.2.8
and
-Xbootclasspath/p is no longer a supported option.

Are you willing to submit a pull request?

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions