First, add ability to run servlet in Eclipse.
- Download Eclipse with Java EE.
- Add extensions for JAX-WS from
http://wiki.eclipse.org/images/b/bf/Jaxws-1.0.0-201003201732.psf - Add them to Eclipse with File->Import->Team->Team Project File. The username is anonymous and the password is an email address.
- Create a Dynamic Web Application. Create a New Runtime (Server) for Tomcat. Select Create local server, to save a step later.
- Create servlet from New -> Servlet.
- Works perfectly.
- After I had to restore my computer, the eclipse installation was no longer working. Tomcat was not recognized. I switched workspaces (File->Switch Workspace) and reinstalled the Tomcat plugin. It is working again, but there are still some red Xs for some packages.
- Be sure that the project is using the Tomcat runtime.
No comments:
Post a Comment