...
- In Eclipse go to File -> New -> Server -> Next -> Next. If you have a server under "Server Runtime Environment" you can use it. If not, click "Add".
Include Page WST:Giving Apache Tomcat Enough MemoryWST: Giving Apache Tomcat Enough Memory - Now we have to add in your Apache Tomcat "Manager" webapp -- without it, the Survey Manager can't create surveys.
- Go to Window -> Show View -> Servers (if it's not in the list, click 'Other...' and add it
- In the Servers View, right click your Tomcat server and click "Open".
- At the bottom of the editor, click the "Modules" tab.
- Click "Add External Web Module..."
- Browse to your tomcat installation/webapps/manager and pick it.
- In your projects, notice your "Servers" project.
- Open that folder.
- Look for a folder named after your server that you picked in step 1. Go into that folder.
- Open "tomcat-users.xml" for editing.
- Just before </tomcat-users> at the end, add a line like this (you may choose any username or password that you want):
<user username="tomcat" password="tomcat8675792pass" roles="manager"/> - Why did we have to do this? In real deployments, WST edits this file automatically, but it requires a server reboot to take effect. But when the server reboots, Eclipse recopies this conf file back on top... So the program can never get access to it.
- Just before </tomcat-users> at the end, add a line like this (you may choose any username or password that you want):
- Open up the "server.xml" file for editing.
- Near the very end of the file, look for something that looks like "<Context ... path="/manager" ... />
- Just before that "/>" add this:
privileged="true" antiResourceLocking="false" antiJARLocking="false" - In my case, the final version looks like this but your docBase will have to be customized for your own installation:
<Context docBase="/home/apowers/Programs/apache-tomcat/apache-tomcat-6.0.20/webapps/manager" path="/manager" reloadable="true" privileged="true" antiResourceLocking="false" antiJARLocking="false"/> - We had to do this because without it, the manager wouldn't have the "privileged" controls it needs.
...