Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to add new web service client #8087

Open
mrsalesi opened this issue Dec 23, 2024 · 0 comments
Open

Unable to add new web service client #8087

mrsalesi opened this issue Dec 23, 2024 · 0 comments
Labels
Java EE/Jakarta EE [ci] enable enterprise job kind:bug Bug report or fix needs:triage Requires attention from one of the committers

Comments

@mrsalesi
Copy link

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

@mrsalesi mrsalesi added kind:bug Bug report or fix needs:triage Requires attention from one of the committers labels Dec 23, 2024
@mbien mbien changed the title Unable to add new web srvice client Unable to add new web service client Dec 23, 2024
@mbien mbien added the Java EE/Jakarta EE [ci] enable enterprise job label Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Java EE/Jakarta EE [ci] enable enterprise job kind:bug Bug report or fix needs:triage Requires attention from one of the committers
Projects
None yet
Development

No branches or pull requests

2 participants