无法加载Tomcat服务器配置 [英] Could not load the Tomcat server configuration

查看:1127
本文介绍了无法加载Tomcat服务器配置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在ubuntu中使用sudo apt get安装了apache tomcat7。我已经使用Windows> Preferences> Server> Runtime Environment将apache tomcat 7添加到eclipse。但是当我从服务器视图启动服务器时,右键单击显示的 Tomcat v7.0服务器在本地主机[停止,重新发布]
它说:

I have installed apache tomcat7 using sudo apt get in ubuntu. I have added apache tomcat 7 to eclipse using Windows > Preferences > Server > Runtime Environment.But when I'm starting the server from server view by right clicking the shown Tomcat v7.0 Server at localhost [Stopped,Republish] It says:


无法将Tomcat服务器配置加载到/ Servers / Tomcat v7.0
服务器在localhost-config。配置可能已损坏或
不完整。

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

我提供的tomcat7的路径是 / usr / share / tomcat7

The path to tomcat7 that I've provided is /usr/share/tomcat7

推荐答案

我刚刚遇到一个非常类似的问题在Ubuntu同时试图让Eclipse Mars和Tomcat7集成在一起,因为Eclipse期待tomcat的配置文件等都在同一个位置,并具有必要的权限才能够更改这些文件。

I've just been encountering a very similar issue in Ubuntu while trying to get Eclipse Mars and Tomcat7 integrated because Eclipse was expecting the tomcat configuration files etc to be all in the same location, and with the necessary permissions to be able to change those files.

此博客文章中的以下说明最终帮助我:

The following instructions from this blog article helped me in the end:

cd /usr/share/tomcat7
sudo ln -s /var/lib/tomcat7/conf conf
sudo ln -s /var/log/tomcat7 log
sudo ln -s /etc/tomcat7/policy.d/03catalina.policy conf/catalina.policy
sudo chmod -R a+rwx /usr/share/tomcat7/conf

这篇关于无法加载Tomcat服务器配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆