*
The moose likes Web Services and the fly likes Create Web Services in Eclipse using Tomcat and Apache CXF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Create Web Services in Eclipse using Tomcat and Apache CXF" Watch "Create Web Services in Eclipse using Tomcat and Apache CXF" New topic
Author

Create Web Services in Eclipse using Tomcat and Apache CXF

Karl Kelley
Greenhorn

Joined: Apr 06, 2011
Posts: 1
I am new to creating web services... So, I found this really helpful tutorial, below...

Tutorial

It works great... However, I go back and add code to my implementation file and add new services... easy enough...

Then, re-run the create web service wizard, but it does not let me overwrite the generated wsdl and SEI interface created...

How do I "recompile" my new web service and deploy the new services?

Thanks in Advance...
Hayrol Reyes
Greenhorn

Joined: May 29, 2009
Posts: 1
Hi Karl,

I don't know if you already solved this issue, but anyway I will explain how I got rid of this same issue some time ago.

It looks like Eclipse (I was using Helios) has some problems with the CXF integration (same like it had with Axis before). So, when I got the problem I tried to configure the "overwrite existing files without warnings" as I did with Axis, but that did not work with CXF now.

Then, to recreate your CXF WS project correctly (I agree it is not the most cool way to do) you need to delete the SEI (only if it was autogenerated, like the tutorial you referenced do) and quit the implementation of this Interfase in the WS class, also delete the package where the classes code was generated (*.jaxws) and finally delete the wsdl folder which is inside the WebContent folder. After you do that, then recreate your web services with the changes you did to the WS class.

Regards,

Ps: I am almost sure that only one of those thing is needed to be deleted (I deleted all these to recreate my test), maybe the wsdl folder, no time to continue testing right now, you tell me.
 
Consider Paul's rocket mass heater.
 
subject: Create Web Services in Eclipse using Tomcat and Apache CXF