Connecting Tomcat server to Eclipse

Viewed 56052

I am trying to use Tomcat 6.0 as a web development server within SpringSource Tool Suite 2.7.1. I create a runtime, download tomcat, create a server, etc as per these instructions http://www.ibm.com/developerworks/opensource/library/os-eclipse-tomcat/index.html#N10148

When I try to run a web app on the server though I get the following error:

The archive: /Servers/Tomcat/bin/bootstrap.jar which is referenced 
by the classpath, does not exist.

I know this bootstrap.jar file does exist in the exact place it says it should be yet it still causes an error. Any ideas?

12 Answers

If you have unzipped downloaded Tomcat archive into Eclipse Servers folder, User Entries in classpath have relative path (e.g. /Servers/....) of bootstrap.jar and tomcat-juli.jar which path I guess is not accessible as a relative path.

Once I removed Tomcat installation directory (with files) outside Eclipse's Servers folder, delete the old configuration and re-add Tomcat, everything worked as expected.

I hope this helps narrow down the cause.

Related