Could not load the Tomcat server configuration at /Servers/Tomcat v7.0 Server at

最近装了一个Ubuntu系统 在配置tomcat的时候总是出现这样的问题

Could not load the Tomcat server configuration at /Servers/Tomcat v7.0 Server at localhost-config. The configuration may be corrupt or incomplete.

我首先配置的是tomcat-7.0.27,我以为这不行。后来换成tomcat6.0结果还是报同样的错误 最后导致2个都添加不进去了如图:

解决方案:
      1.首先你的eclipse的配置需要重新回复到重装的状态,但是Eclipse没有这个功能,不过你可以更换一个新的workspace, file-switch workspace-other ,在新的workspace,原来的配置就不能用了。
      2.重新添加servers 。Window-showView-servers. 然后在servers里面右键-new-server,添加你电脑上的Tomcat版本.最后点击finish,此时可能会出现如下提示:/opt/tomcat/conf/catalina.policy(权限不够),如图:

直接点击ok-finish.完成添加。
      3.此时在<eclipse workspace>/Servers/<Tomcat version> Server at localhost-config下面应该有如下文件:
      catalina.policy
      catalina.properties
      context.xml
      server.xml
      tomcat-users.xml
      web.xml
      当我查看我的eclipse workspace,上面的文件没有在相应的文件夹,为了解决这个问题,你需要把这些文件从/opt/tomcat/conf文件夹中复制到<eclipse workspace>/Servers/<Tomcat version> Server at localhost-config下面。

www.linuxidc.com @linuxidc:/opt/apache-tomcat-7.0.27/conf$ ls -la

总用量 200

drwxr-xr-x 2 root root   4096  3月 31 22:45 .

drwxr-xr-x 9 root root   4096  6月 18 00:59 ..

-rw------- 1 root root  11955  3月 31 22:45 catalina.policy

-rw------- 1 root root   5402  3月 31 22:45 catalina.properties

-rw------- 1 root root   1394  3月 31 22:45 context.xml

-rw------- 1 root root   3288  3月 31 22:45 logging.properties

-rw------- 1 root root   6435  3月 31 22:45 server.xml

-rw------- 1 root root   1530  3月 31 22:45 tomcat-users.xml

-rw------- 1 root root 152716  3月 31 22:45 web.xml

[email protected]:~/java/test/Servers/Tomcat v7.0 Server at localhost-config$ sudo cp */home/bobo/java/test/Servers/Tomcat\v7.0\Server\at\localhost-config/

4.改变这些文件的权限,要不然就会报错。

[email protected]:~/java/test/Servers/Tomcat v7.0 Server at localhost-config$ sudo chmod 777*
 5.单击eclipse的Servers,按F5(刷新),或者右键-refresh.

6.启动服务

7.测试成功

转载于http://www.linuxidc.com/Linux/2012-06/63381.htm

时间: 2024-11-05 20:06:39

Could not load the Tomcat server configuration at /Servers/Tomcat v7.0 Server at的相关文章

eclipse Run On Server 异常:could not load the Tomcat Server configuration at Servers\tomcat V5.0 Sertomcat

eclipse Run On Server 异常:could not load the Tomcat Server configuration at Servers\tomcat V5.0 Sertomcat无法运行 servce运行不了的问题解决 :first-child { margin-top: 0; } blockquote > :last-child { margin-bottom: 0; } img { border: 0; max-width: 100%; height: auto

The Tomcat server configuration at \Servers\Tomcat v7.0 Server at localhost-config is missing. Check the server for errors.

tomcat突然报错,The Tomcat server configuration at \Servers\Tomcat v7.0 Server at localhost-config is missing. Check the server for errors. 具体报错原因不太清楚,不过肯定是因为一些关联的信息缺失导致 解决办法: 删掉原先关联的tomcat,重新关联一个新的 prefencen-->service-->runtime environments,删除原先所有的tomca

Could not load the Tomcat server configuration at /Servers/Tomcat v7.0 Server at localhost-config.

[问题] Eclipse[Ubuntu14.04]中启动Tomcat Server[7.0.55]的时候出现错误如下: [解决方法] 1.将左边的classpath中的server删除掉 2.在perference中的server中remove已经添加的tomcat7,然后重新安装添加 [备注] server的服务器设置被更改或删除

tomcat7 Could not load the Tomcat server configuration at /Servers/Tomcat v7.0 Server at localhost-config. The configuration may be corrupt or incomplete

参考连接: http://lucasterdev.altervista.org/wordpress/2012/05/12/could-not-load-the-tomcat-server-configuration-at-serverstomcat-v7-0-server-at-localhost-config-the-configuration-may-be-corrupt-or-incomplet/

Tomcat异常:The Tomcat server configuration at\Servers\Tomcat v9.0 Server at localhost-c

今天用Eclipse Java EE版写了几个java工程项目,然后再写java EE项目的jsp页面时,Tomcat出现了这个异常信息: 解决办法: 在菜单栏Window-->Preferences-->Server-->Runtime Environments,将列表中已经配置的Tomcat给Remove掉,再重新Add进来,重新运行java EE项目,eclipse恢复正常. 原文地址:https://www.cnblogs.com/dudududu/p/8490844.html

解决“The Tomcat server configuration at \Servers\Tomcat v8.0 Server at localhost-config is missing. Check the server for errors.”

remove已经创建的server

Eclipse提示Tomcat miss丢失bug:The Tomcat server configuration at \Servers\Tomcat v5.5 Server at localhost-config is missing.

解决办法:eclipse-window-preference-runtime,删除以前的tomcat,重新new一个

Tomcat启动失败错误解决Could not publish server configuration for Tomcat v7.0 Server at localhost

今天又碰到了Tomcat启动失败的错误,错误提示如下: Could not publish server configuration for Tomcat v7.0 Server at localhost. Multiple Contexts have a path of "/organ". 意思很很清楚,有重名的节点,然后我根据百度的方法去tomcat安装目录conf下面的server.xml去找这个重名的节点,但是没有相关的<Context>节点, 后来我转念一想,会不

Android-67-Tomcat启动出错:Server Tomcat v7.0 Server at localhost failed to start.

 错误:Server Tomcat v7.0 Server at localhost failed to start.如图: 唉!!!!图片上传不上去,悲哀啊!!!只能先写着错误提示语吧~~- 解决办法: 1.In Eclipse, Open the"Server" tab. 2.Double click on the "Tomcat6" entry to see the configuration. 3.Then click on the "Open