[this process was accomplished using Ubuntu 12.04 LTS, Tomcat 7 and Eclipse Standard Keplerr 4.3]
Follow this tutorial (from step 1 to 9):
http://gridlab.dimes.unical.it/lackovic/eclipse-tomcat-ubuntu-jersey/
Notes for the above tutorial:
Download and install eclipse manually, from:
http://www.eclipse.org/downloads/packages/eclipse-standard-43/keplerr
Before starting up the tomcat7 server:
sudo mkdir /usr/share/tomcat7/logs
Before shutting down the tomcat7 server:
sudo mkdir /usr/share/tomcat7/conf
sudo cp /etc/tomcat7/server.xml to /usr/share/tomcat7/conf
Before creating a "Dynamic Web Project", run:
cd /usr/share/tomcat7
sudo ln -s /var/lib/tomcat7/conf conf
sudo ln -s /etc/tomcat7/policy.d/03catalina.policy conf/catalina.policy
sudo chmod -R 777 /usr/share/tomcat7/conf
If you try to add the Tomcat Server v7.0, and the server name doesn't appear:
Close Eclipse
cd ~/workspace/.metadata/.plugins/org.eclipse.core.runtime/.settings/
rm org.eclipse.jst.server.tomcat.core.prefs
rm org.eclipse.wst.server.core.prefs
Restart Eclipse
Then, to configure a servlet, follow this tutorial:
http://www.srccodes.com/p/article/3/Tomcat-Hello-World-Servlet-using-Eclipse-IDE
No comments:
Post a Comment