简体   繁体   English

eclipse无法启动我的tomcat服务器,如何打开服务器

[英]eclipse can not start up my tomcat server, how to turn the server on

when i try to run the jsp-file using eclipse, eclipse shows me that my tomcat server is turned off although i turned it on from 'startup.bat' file which is located in the bin directory inside the tomcat installation folder. 当我尝试使用eclipse运行jsp文件时,eclipse向我显示了我的tomcat服务器已关闭,尽管我是从位于tomcat安装文件夹内bin目录中的“ startup.bat”文件打开它的。

I encounter the error shown in the image posted below.how to solve it? 我遇到下面发布的图像中显示的错误。如何解决? 在此处输入图片说明

When you configure Tomcat using Runtime configuration in eclipse, then you need NOT to run the tomcat manually. 当您在eclipse中使用运行时配置来配置Tomcat时,则无需手动运行tomcat。 When you execute a server side program such as jsp/servlet, eclipse will first start the associated runtime(Tomcat) and then deploy your jsp/servlet on it. 当您执行服务器端程序(例如jsp / servlet)时,eclipse将首先启动关联的运行时(Tomcat),然后在其上部署jsp / servlet。

In your case, as you have manually started the Tomcat, so when eclipse tries to launch the same tomcat, it throws and error saying port already in use. 在您的情况下,由于您手动启动了Tomcat,因此当eclipse尝试启动相同的tomcat时,它会抛出错误并指出端口已在使用中。

It seems your sever is already in running state and you are trying to start again. 看来您的服务器已经处于运行状态,并且您正尝试重新启动。 Any chance you started your server though comand prompt, before trying in eclipse. 在Eclipse尝试之前,您可能会通过命令提示符启动服务器。

If exsist try kiiling the java process of the server in task manager and try again 如果存在,请尝试在任务管理器中加载服务器的Java进程,然后重试

Let Eclipse handle the Tomcat instance. 让Eclipse处理Tomcat实例。 Run shutdown.bat, then start Tomcat from Eclipse by clicking Windows->Show view->Servers, right click and Start. 运行shutdown.bat,然后通过单击Windows->显示视图->服务器从Eclipse中启动Tomcat,右键单击并启动。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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