- right-click in the view and selecting new > server
- Select the server you will be using (it was tomcat 5.5 in my case). You will want to have the server installed already.
- Choose a host name
- Choose a runtime. If there isn't one available, create one (press the available button)
- Press next
- Select any web projects you want to run on the new server. If there aren't any, you'll be creating one soon, I wager.
- Press finish and you are done.
Don't let eclipse overwrite the tomcat config (unless you want to)
From inside the server's editor (right-click the server in the view and select open) select the option to "Run modules directly from the workspace". Now any configuration that you have in the server's conf/ directory is safe from changes you make to the config of the server defined in eclipse.
In the same editor you can set up ports, MIME mappings and other important stuff.
Note: If you're going to have the server listen on port 80 rather than 8080, linux' root user is the only one that can bind that port. So, in linux you'll need to run eclipse as root. Or maybe you can come up with a better solution. Let me know if you do. This article describes other ways of running tomcat on port 80 with a user other than root. I have not tried these solutions, let me know how the work for you.
No comments:
Post a Comment