无法在Eclipse中设置Tomcat 6 - “无法加载Tomcat服务器配置”错误 [英] Can't setup Tomcat 6 in Eclipse - "Could not load the Tomcat server configuration" error
问题描述
在过去的几个小时中,我拼命地尝试在Eclipse中配置apache tomcat6,而且我遇到了一些困难。
我尝试过一切可以在线查找的内容,其中包括几个帖子堆栈溢出(我发现的大多数问题不完全像我的)。
最初,我按照,并解压缩,它以某种方式包含更多的文件,包括 / conf
文件夹。
那么在Eclipse中,我创建了一个新的服务器,并提供了新提取的文件夹的路径,而不是以前的 / usr / share / tomcat
。
这样做了。
For the last couple of hours, I'm desperately trying to configure apache tomcat6 in Eclipse, and I'm having some difficulties.
I tried everything I could find online, including several posts here in Stack Overflow (most of the problems I found wasn't exactly like mine).
Initially, I followed this tutorial, and after installing tomcat6 like this:
sudo apt-get install tomcat6-common
sudo apt-get install tomcat6
and making sure that the server is running.
Next, I followed the mentioned tutorial, and everything was fine, until I got to stage 5.4 in the tutorial: "Start Server".
When I click Start, I get the following error:
As I said, I tried to look online for an answer, but nothing seems to help...
Does anyone know why am I getting this error and how can I fix this?
I was able to solve it, after 3 and a half hours of trying...
Apparently, when I installed tomcat from the command line (sudo-apt-get etc) the /usr/share/tomcat6
folder (the default installation path) was missing some files, including this /conf
folder, which required for Eclipse (hence the error message).
But when I removed it, and download tomcat as a tar.gz
file from here, and extracted it, it somehow contains more files in it, including the /conf
folder.
So then in Eclipse I created a new Server, and provided the path of the new extracted folder, instead of the previous /usr/share/tomcat
.
This did the trick.
这篇关于无法在Eclipse中设置Tomcat 6 - “无法加载Tomcat服务器配置”错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!