4

I am having trouble configuring my Eclipse EE to run Tomcat 6 (my company has not migrated to Tomcat 7 yet). I was trying to follow these instructions. I went into the servers tab in the bottom panel, hit New->Server, then chose Apache->Tomcat 6. Then I went through a succession of the following screens:

enter image description here enter image description here

and finally arrived to the error message:

enter image description here

Here are the contents of my Tomcat conf dir (C:\home\SFTWR\tomcat6\conf):

catalina.policy catalina.properties context.xml logging.properties server.xml web.xml wrapper.properties 

Any suggestion what may be wrong? It runs fine when running standalone and I can deploy apps from Eclipse but I would like to be able to run in in Eclipse for debugging purposes.

UPDATE:

Despite the error message, I noticed that the server was indeed registered, however, not functional -- when I tried to hit "Start", I got an error popup listing two problems:

  • Publishing to localhost (Details: Cannot publish to the server because it is missing its runtime environment.)

  • Starting localhost (Details: An internal error occurred during: "Starting localhost". java.lang.NullPointerException)

The detailed exception stack trace is as follows:

org.eclipse.core.runtime.CoreException: Could not load the Tomcat server configuration at \Servers\localhost-config. The configuration may be corrupt or incomplete. at org.eclipse.jst.server.tomcat.core.internal.Tomcat60Configuration.load(Tomcat60Configuration.java:313) at org.eclipse.jst.server.tomcat.core.internal.TomcatServer.getTomcatConfiguration(TomcatServer.java:124) at org.eclipse.jst.server.tomcat.core.internal.TomcatServerBehaviour.getTomcatConfiguration(TomcatServerBehaviour.java:80) at org.eclipse.jst.server.tomcat.core.internal.TomcatServerBehaviour.setupLaunch(TomcatServerBehaviour.java:496) at org.eclipse.jst.server.tomcat.core.internal.TomcatLaunchConfigurationDelegate.launch(TomcatLaunchConfigurationDelegate.java:96) at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:854) at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:703) at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:696) at org.eclipse.wst.server.core.internal.Server.startImpl2(Server.java:3402) at org.eclipse.wst.server.core.internal.Server.startImpl(Server.java:3340) at org.eclipse.wst.server.core.internal.Server$StartJob.run(Server.java:363) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) 
7
  • What does it say when you click 'Details >>' Commented Feb 26, 2013 at 22:38
  • just posted an update with the info you requested. thanks Commented Feb 26, 2013 at 22:43
  • Any errors in your Error log that are relevant? Window > Show View > Other... > General > Error log Commented Feb 27, 2013 at 5:36
  • added the detailed exception stack to OP. thanks Commented Feb 27, 2013 at 16:32
  • I was having this problem with the buggy 6.0.32 version. Once I installed 6.0.36, I was able to register a server Commented Feb 27, 2013 at 23:01

1 Answer 1

2

I seem to have had the same problem with Eclipse Juno and Tomcat 6.0_36 on Centos 6.3. It took me 2 days to realize that the problem only existed when the Tomcat server was started before Eclipse was started (e.g. at boot time).

Executing "/etc/init.d/tomcat stop" before starting Eclipse solved my problem.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.