问题描述
我在我的机器上安装了tomcat 6,当我使用 http:// localhost:8080
,它工作正常。
但是,只要我想在eclipse中创建服务器,我选择Tomcat 6,我收到以下消息
无法使用所选类型创建服务器
,我无法单击下一步。
任何想法为什么?
有一个更好的解决方法,所以你可以保留Ubuntu的Tomcat6 ,由DisDis)
在终端中:
sudo apt-get install tomcat6
cd / usr / share / tomcat6
sudo ln -s / var / lib / tomcat6 / conf conf
sudo ln -s /etc/tomcat6/policy.d/03catalina.policy conf / catalina .policy
sudo ln -s / var / log / tomcat6 log
sudo chm od -R 777 / usr / share / tomcat6 / conf
现在只需转到Window / Preferences / Sever / Runtime Environments,添加Apache Tomcat6 Server,并使用/ usr / share / tomcat6作为安装目录!
I'm having a problem running tomcat 6 with eclipse 3 in ubuntu.
I installed tomcat 6 on my machine and when I tested it using http://localhost:8080
, it worked fine.
But whenever i want to create a server in eclipse, i select Tomcat 6 , i get the following message"Cannot create a server using the selected type"
, and i can't click next.
Any idea why?
There’s a better workaround so you can keep Ubuntu’s Tomcat6 (taken from http://ubuntuforums.org/showthread.php?p=8541057, by DisDis)
In a terminal:
sudo apt-get install tomcat6
cd /usr/share/tomcat6
sudo ln -s /var/lib/tomcat6/conf conf
sudo ln -s /etc/tomcat6/policy.d/03catalina.policy conf/catalina.policy
sudo ln -s /var/log/tomcat6 log
sudo chmod -R 777 /usr/share/tomcat6/conf
There. Now just go to Window/Preferences/Sever/Runtime Environments, add the Apache Tomcat6 Server and use /usr/share/tomcat6 as the installation directory!
这篇关于Tomcat 6服务器创建使用eclipse IDE在ubuntu上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!