Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Trouble starting tomcatv7 via Eclipse Kepler

I see that problems like mine have been posted before, some of which posts were answered. I've attempted the fixes, which indeed seem like they should have worked, but I'm still running into the same problem:

I'm trying to run a dynamic web project in Eclipse Kepler (Java EE) via apache tomcat 7.0.53 on my localhost. I've created tomcat as a server in Eclipse, and copied the config files from /tomcat/7.0.53/libexec/conf into /workspace/Servers/Tomcat v7.0 Server at localhost-config, and changed the permissions on the files so that they are all readable and writeable.

However, when I try to start the tomcat server in eclipse, I get this error:

Could not load the Tomcat server configuration at /Servers/Tomcat v7.0 Server at localhost-config. The configuration may be corrupt or incomplete.

In case it's helpful, it's all being run in mac osx 10.6.8, on a 64-bit machine.

Thanks in advance for your help.

like image 809
Ian Riley Avatar asked Apr 11 '14 04:04

Ian Riley


People also ask

How to configure tomcat in Eclipse?

For configuring the tomcat server in eclipse IDE, click on servers tab at the bottom side of the IDE -> right click on blank area -> New -> Servers -> choose tomcat then its version -> next -> click on Browse button -> select the apache tomcat root folder previous to bin -> next -> addAll -> Finish.

How do I fix the unknown version of tomcat specified?

You need to specify tomcat binary installation root directory, also known as CATALINA_HOME. Usually, this is where you untar apache-tomcat-7.0. 42.

How do I open tomcat editor?

Open Eclipse Get Server view form Window -> Show View -> Servers Then double click the tomcat server Configuration window open and you can change the ports there. Show activity on this post.


4 Answers

I am facing this issue. I have fixed as following way,

Step 1: Delete server at local host(Server tab)

Step 2: Delete Servers folder in (navigator/project explorer)

Step 3: After add New->server->Apache->choose path

Step 4: start the server

After it will work......

like image 135
Krishnakumar Subbaiyan Avatar answered Oct 26 '22 01:10

Krishnakumar Subbaiyan


How to solve:

1.Close Eclipse

2.Copy all files from TOMCAT_7_HOME/conf to WORKSPACE_FOLDER/Servers/Tomcat v7.0.53 Server at localhost-config

3.Start Eclipse

4.Expand the Servers project, click on the Tomcat 7 project and hit F5

5.Start Tomcat from Eclipse

like image 20
ROOT Avatar answered Oct 25 '22 23:10

ROOT


Go to Server --> Apache Tomcat v7.0 --> Add Select jre7 instead of Workbench default JRE Click on Finish Stop Server and then Start Server

like image 45
Pawan Kumar Baranwal Avatar answered Oct 25 '22 23:10

Pawan Kumar Baranwal


This is a permissions problem (I had the same issue in ubuntu 14.04, eclipse luna, tomcat7). The executable files are not marked as "executable" when tomcat is donwloaded from eclipse.

Just go to your "[tomcat]/bin" directory in your file system and add execution permission (x) to all .sh files. Then go back to eclipse/servers tab, delete the tomcat7 entry an create again, finally start tomcat from eclipse.

like image 24
angelito Avatar answered Oct 26 '22 00:10

angelito