简体   繁体   English

错误:本地主机上的Server Tomcat v7.0 Server

[英]Error: Server Tomcat v7.0 Server at localhost

I was able to execute my servlet programs in eclipse or directly in portal by using startup bat and shutdown bat before. 我以前可以通过使用bat和shutdown bat在Eclipse中或直接在门户中执行servlet程序。 And also I already changed my port from 8080 to 8090 as 8080 was in use of oracle database. 而且我已经将端口从8080更改为8090,因为8080正在使用oracle数据库。 Suddenly I got this error Server Tomcat v7.0 Server at localhost has encountered a problem when I try to execute any servlet programs. 突然出现此错误,当我尝试执行任何servlet程序时,位于localhost的Server Tomcat v7.0 Server遇到问题。 Can anyone give me a solution for this? 谁能给我解决方案吗? I am using eclipse mars and windows 10 64bit 我正在使用Eclipse Mars和Windows 10 64bit

If you people are facing the same problem , follow this procedure 1. If you people have any important servlet programs, save all the programs in a separate folder. 如果您遇到相同的问题,请遵循以下步骤1.如果您有重要的servlet程序,请将所有程序保存在单独的文件夹中。

2.Delete all your servlet,dynamic web project programs..etc programs from the eclipse including the folder named as server. 2.从Eclipse中删除所有servlet,动态Web项目程序..etc程序,包括名为server的文件夹。

3.And in C folder delete the Apache tomcat server too (In short delete everything related to tomcat server) 3,在C文件夹中也删除Apache tomcat服务器(总之删除与tomcat服务器有关的所有内容)

4.Now reinstall the Apache tomcat 7.0 and go to bin folder and double click on Startup bat. 4.现在重新安装Apache tomcat 7.0并转到bin文件夹,然后双击Startup bat。 If command prompt blinks and goes off You have to change the path and class path in Environment variable which should contain %JAVA_HOME% 如果命令提示符闪烁并熄​​灭,则必须在环境变量中更改路径和类路径,该变量应包含%JAVA_HOME%

5.If your startup bat is success(Eg: Last line will show some milliseconds), server is working propery and ddouble click on shutdown bat 5.如果您的启动蝙蝠成功(例如:最后一行将显示毫秒),则服务器正在正常工作,并双击关闭蝙蝠

6.Now go to conf folder, open the server.xml and change"connection port=8080 "to "connection port=8081 or 8099 or 8090...something like this " and save it 6.现在转到conf文件夹,打开server.xml并将“ connection port = 8080”更改为“ connection port = 8081或8099或8090 ...类似的东西”并保存

7.Click on startup bat .Now go to browser and type " http://localhost:8090/ " It should open tomcat server on your browser. 7.单击启动bat。现在转到浏览器,然后输入“ http:// localhost:8090 / ”,它将在浏览器中打开tomcat服务器。 (WORKING OF TOMCAT IS SUCCESS) (TOMCAT工作成功)

  1. Recreate your servlet folder in ua E drive or D Drive....Now go to eclipse.. switch the workspace and open new dynamic web project--(your servlet folder name)---(generate web.xml) asusual coding. 在ua E驱动器或D驱动器中重新创建servlet文件夹。...现在转到eclipse ..切换工作区并打开新的动态Web项目-(您的servlet文件夹名称)-(生成web.xml)常规编码。 In your eclipse workspace server folder will not be there 在您的Eclipse工作区中,服务器文件夹将不存在

(Integrate tomcat with eclipse again) 9.Below you will "No Servers are available,Click the link to create a new server" Click on this---ApacheTomcat v7.0server---next---browse----C:ApacheTomcat---OK---Finish (再次将tomcat与eclipse集成)9.下面,“没有可用的服务器,单击链接以创建新服务器”。单击此--ApacheTomcat v7.0server-next-browse ---- C :ApacheTomcat ---确定---完成

10.Now you will see "Tomcat v7.0 server at localhost" Right Click on this..Properties--switch location--Apply---OK 10.现在,您将看到“ localhost上的Tomcat v7.0服务器”。右键单击此属性。属性-开关位置-应用-确定

11.Again Right click on "Tomcat v7.0" --open--(scrolldown)Select "Use Tomcat I stallation"---save it (For your confrimaation Right side you can see the port HTTP1.1 8081) 11.再次右键单击“ Tomcat v7.0”-打开-(向下滚动)选择“使用Tomcat I停止” ---保存它(对于您的名字,您可以在右侧看到端口HTTP1.1 8081)

12.Run on the server 12.在服务器上运行

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

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