Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Server configuration is missing in Eclipse

Tags:

eclipse

tomcat

Im using Eclipse Galileo, and have configured it for Apache Tomcat . I have added Apache Tomcat 6.0 to Windows->Server->Runtime Environments, with the following settings:

Tomcat Installation Directory - C:\apache-tomcat-6.0.24\apache-tomcat-6.0.24 JRE - Workbench Default JRE (This points to C:\Program Files\Java\jre6) 

Now, I create a Dynamic Web Project, and add a JSP file to it. But, when I run the project I get the following error:

The Tomcat server configuration at \Servers\Tomcat v6.0 Server at localhost-config is missing. Check the server for errors. 

Any way to fix this?

like image 854
John Avatar asked Feb 01 '10 09:02

John


People also ask

Why is server not showing in Eclipse?

This is because you haven't installed Eclipse IDE for Java EE Developers.

How do I get server option in Eclipse?

Select File > New > Other…, then open the 'Server' folder and select 'Server' (Figure 4). Click 'Next'. In the next dialogue box (Figure 6) you are required to specify the path to the installed server and to select a Java Runtime Environment (JRE).

Where can I find Servers tab in Eclipse?

In the Java EE perspective of Eclipse, you will find the Servers tab at the bottom. Since no server is added yet, you will see a link in the tab as shown in the following screenshot—No servers are available. Click this link to create a new server....


2 Answers

Probably, you have some problems with your server's configuration. Follow these steps to remove and create a new one, it might help you.

In Eclipse
1. Window -> Show view -> Servers (If you cannot see it, you might need to choose Others -> Server)
2. From Server view -> Delete the server which has problems.
3. Right click -> New -> Server : to create a new one

In my case, after new server was created, I get rid of this "localhost-config is missing"

like image 162
Linh Lino Avatar answered Oct 07 '22 13:10

Linh Lino


I faced the same problem once. THe reason for this is that even though the server is available, the config files are missing. You can see the server at Windows -> Show view -> Servers. Their configuration files can be seen at Project Explorer -> Servers. For some reason this second mentioned config files were missing.

I simply deleted the existing server and created a new one with this the config files were also created and the problem was solved!

Similar solution is given at here by Emertana EM java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory

like image 24
isuru chathuranga Avatar answered Oct 07 '22 13:10

isuru chathuranga