简体   繁体   中英

Why doesn't Tomcat server start with the Eclipse although it is possible to start it manually

I have been trying to configure Eclipse to run the Tomcat 8.0.28 with Mars. When I start the server manually using the startup.bat it starts the server as expected. But when I try to run using eclipse it gives the following error.

'Starting Tomcat v8.0 Server at localhost' has encountered a problem. The archive: /../apache-tomcat-8.0.28/bin/bootstrap.jar which is referenced by the classpath, does not exist.

But when I go to,

apache-tomcat-8.0.28/bin

it shows the bootstrap.jar . What am I doing wrong here? Some help is really appreciated.

I find the best way to debug this sort of problem is to go to the second line of the debug view, right click and choose properties, and then check which path is actually being used by Eclipse. Here you will see the exact command that Eclipse uses to run Tomcat.

If necessary you can then change the classpath in the "Run (or Debug) Configuration).

Right click on the second line, then choose properties 在此处输入图片说明

I could get it solved by removing all the projects created so far, including server folder and configuring the tomcat server as usual. Thanks everyone for the time taken to give me a solution.

first set the classpath. set CATALINA=C:\\apache-tomcat-5.5.29 set CLASSPATH=%CATALINA%\\common\\lib\\servlet-api.jar;

add server when you create the Project or you can add after creating the project also.

To run your project there is an option to run on server, when you select this option server will get started automatically

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM