NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

"Generate and copy WSDL" returns Error starting wsgen: class com.sun.tools.javac.api.JavacTool

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
maxbobse



Joined: 07 Jan 2017
Posts: 3

PostPosted: Fri Feb 03, 2017 4:11 am    Post subject: "Generate and copy WSDL" returns Error starting wsgen: class com.sun.tools.javac.api.JavacTool Reply with quote

Hi,

I am following the steps here

https://netbeans.org/kb/docs/websvc/jax-ws.html

to create a web service application. So far so good, the only thing that is missing now is the WSDL file. But every time I select

"Generate and copy WSDL" from the web service's context menu, it returns this error message:

Code:
command line: wsgen/Library/Java/JavaVirtualMachines/jdk1.8.0_73.jdk/Contents/Home/jre/bin/java -d /Users/max/NetBeansProjects/HelloWorld2/build/generated-sources/jax-ws -Xendorsed -keep -s /Users/max/NetBeansProjects/HelloWorld2/build/generated-sources/jax-ws -verbose -classpath /Library/Java/JavaVirtualMachines/jdk1.8.0_73.jdk/Contents/Home/lib/tools.jar:/Users/max/NetBeansProjects/HelloWorld2/build/web/WEB-INF/classes:/Applications/NetBeans/glassfish-4.1.1/glassfish/modules/webservices-osgi.jar:/Applications/NetBeans/glassfish-4.1.1/glassfish/modules/endorsed/webservices-api-osgi.jar:/Applications/NetBeans/glassfish-4.1.1/glassfish/modules/jaxb-osgi.jar:/Applications/NetBeans/glassfish-4.1.1/glassfish/modules/endorsed/jaxb-api.jar -wsdl -r /Users/max/NetBeansProjects/HelloWorld2/build/generated-sources/jax-ws/resources org.me.calculator.Hello2
/Users/max/NetBeansProjects/HelloWorld2/nbproject/jaxws-build.xml:34: Error starting wsgen: class com.sun.tools.javac.api.JavacTool


Anybody got an idea what the reason for that could be?

Max
Back to top
meetmrharish



Joined: 26 Mar 2017
Posts: 1

PostPosted: Sun Mar 26, 2017 4:35 pm    Post subject: Reply with quote

Hello.. Did you get an solution for this?
Back to top
marouncorbane



Joined: 29 Mar 2017
Posts: 1

PostPosted: Wed Mar 29, 2017 5:31 am    Post subject: Incorrect Ant settings Reply with quote

For Netbeans 8.2 and Windows 7, the default ant settings for Netbeans are incorrect; if you check the error, you will find that wsgen"C.... are not seperated.
A space should be between those two i.e. wsgen "C..... So either fix the ant settings or copy the command and correct it before running it again.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo