0
votes

I'm trying to create a dynamic web application on Ubuntu(14.04), using eclipse Java EE(4.5.1), and the Tomcat is v7.0
When I tried to run the server, it prompted "Could not load the Tomcat server configuration at Servers/Tomcat v7.0 Server at localhost-config".

I've already copied all files of /etc/tomcat7 to /workspace/Servers/Tomcat v7.0 Server at localhost-config, before I tried to run the server.
And I've also assigned the tomcat7 group to my user by running:

sudo adduser loh tomcat7

Besides, I can't find folder tomcat_7_home and subfolder config as other answers suggest
I only found /etc/tomcat7, and copied all files and subfolders to /workspace/Servers/Tomcat v7.0 Server at localhost-config

Anyone has clue what is going on?
Thanks in advance!

1
How did you create the server in Eclipse ?Fabien R
Through WTP. Menu: Window - Preferences - Server - Runtime Environments - Add. And then add a new server on the Servers tab. I've already got it done, I'll post it later!steveluoxin
Can you see a project 'Servers' in the explorer ?Fabien R
Tomcat 8 and the latest Eclipse (Mars) still works for me with the standard apt-get package install and tomcat-instance-create... see stackoverflow.com/questions/7171244/…. Cheers.Barney
@Barney Thanks Barney. For some strange reasons, I couldn't achieve it through 'apt-get' command. But that wouldn't be my most concern right now XDsteveluoxin

1 Answers

2
votes

I've finally started local server from eclipse on Ubuntu.


Here is my solution:


NOTE: I assume you've already installed WTP on eclipse

http://tomcat.apache.org/
sudo apt-get install tomcat7

sudo tar zxvf filename.tar.gz -C /opt









Remember to check "generate the web.xml"







If you run into trouble enter the server name, go get the permission of the directory: /opt/apache-tomcat-8.0.30(your directory)
sudo chmod -R 777 /opt/apache-tomcat-8.0.30(your directory)



Reference link: http://gridlab.dimes.unical.it/lackovic/eclipse-tomcat-ubuntu-jersey/