File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes Web Services, APT, and Eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Web Services, APT, and Eclipse" Watch "Web Services, APT, and Eclipse" New topic

Web Services, APT, and Eclipse

eddy johns
Ranch Hand

Joined: Feb 16, 2010
Posts: 67
Hi All,

I'm new to this and I'm trying to create a JWS, annotation based web service using Eclipse. I'm creating the file, adding the correct WebService annotation (for ecample @WebService(name="CarDealer")) and now I want to generate the stub files (and all the others, including the WSDL.) At this point I'm stumped. I'm enabling the annotation processing through the project's properties > Java Compiler > Annotation Processing, and it tells me that the project has to be rebuilt, I click YES, and an .apt_generated directory is generated. But it's EMPTY.

What's wrong? I looked everywhere but couldn't find a good, working tutorial. Please help!

eddy johns
Ranch Hand

Joined: Feb 16, 2010
Posts: 67
A bit more info regarding my previous post: I'm working with Eclipse 3.5.1 and Java 1.6 on windows 7.

I am able to generate the artifacts for the samples that ship with JAXWS2.2-2 using ant, and it works fine, but I'm probably missing something with the Eclipse configuration. Please help...

Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
My experience is that developing web services in Eclipse is slightly more work, compared to developing web services in NetBeans.
In my tutorial (section 4.7 in this document: I also used an Ant-script to generate artifacts such as WSDL.
Apart from that, I haven't found much tooling for developing JAX-WS web services in Eclipse.
Thus: I fear that there is not much to be found, but if you do find something, it would be interesting to hear about it!
Best wishes!
I agree. Here's the link:
subject: Web Services, APT, and Eclipse
Similar Threads
websphere 7.0 JAXWS webservice deployed in tomcat 6.0.32 not working
How to access GlassFish's web service testing facility
Looking for advices
Webservice filter on OC4j for annotated EJBs
Generate code from WSDL which re-uses previous objects