This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Services and the fly likes Class not found when using wsgen Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Class not found when using wsgen" Watch "Class not found when using wsgen" New topic

Class not found when using wsgen

RayZ Wilson

Joined: Jan 22, 2010
Posts: 3

I am trying to use wsgen and I keep getting the dreaded class not found message. I know the class compiled with the correct annotations is present but my question is this. What should the -classpath attribute for wsgen be pointing at? Just the class I want to convert to web service artifacts or all of the jax-ws support classes or both? Any experience from a successful user of wsgen would be appreciated. I'm cornfusticated!


Keep imagining, keep inventing, stay ingenious.
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
Right, the annotated endpoint implementation class have to be on the classpath. When I use wsgen, I use the command in the Java SE 6 JDK, see another post in this forum:
Best wishes!
I agree. Here's the link:
subject: Class not found when using wsgen
Similar Threads
How to generate WSDL file for any JAX-WS?
Building with ant from eclipse
Confusion in writing web service client + jax-ws
about wsgen with ant