You are here: Home > WebServices with Java, Axis, XDoclet and Eclipse > Eclipse and J2EE | deutsch | ||||
WebServices with Java, Axis, XDoclet and EclipseEffective WebServices Development |
To develop web services with Eclipse a couple of plugins are recommended. The Tomcat plugin of Sysdeo is well suitable for simple projects with Tomcat as application server. Since I would like to develop and debug web services with Tomcat as container later, it is used in this project. Substantially however the Lomboz Plugin of ObjectLearn supplies more functionality. In addition, it is primarily helpful for developing EJB applications, but also has a few functions for web services.
Optionally, the plugin JBOSS IDE can be used, in order to steer XDoclet more comfortably. I will present both kinds „manually “ (by ant script) and with JBOSS IDE.
First unpack the zip archiv in the directory hierarchy. After restarting Eclipse you can configure the plugin in „Windows / Preferences“:
The most important properties are:
Thus the Plugin can be used. In „Windows/Customize Perspective“ one activates the plugin in the „Debug-Perspective“:
Three new buttons are added to toolbar with which Tomcat can be start and stop directly from Eclipse.
The interesting thing is, that you can debug a web service including Tomcat in Eclipse by placing breakpoints in a doGet method of a servlet or in a web service method.
From now on you can choose „Tomcat project“, when creating a new project. An existing project can be change to „Tomcat project“ in „Project-Properties“:
If everything is set up like this, then the context menu of the project has an additional entry :
[3] (W)eb-(A)pplication-A(R)chive
XDoclet templates |
| 1 | 2 | 3 | |
Lomboz plugin from ObjectLearn |