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

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

问题描述

我已经在 ubuntu 中使用 sudo apt get 安装了 apache tomcat7.我已经使用 Windows > Preferences > Server > Runtime Environment 将 apache tomcat 7 添加到 Eclipse.但是当我通过右键单击显示的 Tomcat v7.0 Server at localhost [Stopped,Republish]<从服务器视图启动服务器时/强>它说:

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:

无法在/Servers/Tomcat v7.0 加载 Tomcat 服务器配置位于 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

推荐答案

我刚刚在尝试将 Eclipse Mars 和 Tomcat7 集成时在 Ubuntu 中遇到了一个非常相似的问题,因为 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天全站免登陆