是否可以在Eclipse中使用tomcat 7.0.20靛蓝? [英] Is it possible to use tomcat 7.0.20 within eclipse indigo?
问题描述
在安装新的eclipse indigo IDE时,我尝试设置先前从Apache网站(tomcat 7.0.20)下载的tomcat服务器,但没有成功。当我以表单填写tomcat目录时,会出现一个错误,表示我选择的版本无效。它也建议下载tomcat版本7.0.12。为什么?有没有办法使用最新版本的tomcat与靛蓝eclipse?是否有7.0.12版本的兼容性问题?
While installing the new eclipse indigo IDE I've tried to setup the tomcat server previously downloaded from Apache web site (tomcat 7.0.20) with no success. When I fill the tomcat directory in the form it causes an error to appear saying the version I chosen is not valid. It also suggests to download the tomcat version 7.0.12. Why? Is there a way to use the latest version of tomcat with indigo eclipse? Is there a compatibility problem with version newer than 7.0.12?
我下载了Windows 64位版本的tomcat 7.0.20,但使用旧的7.0.16我已经结果是一样的。
I downloaded the windows 64bit version of tomcat 7.0.20, but using an old 7.0.16 I already had the result is the same.
推荐答案
我认为无效的版本信息有点误导;它只是不喜欢有关安装的东西。无论如何,这里对我来说有用,使用Ubuntu 11.10,eclipse Indigo JavaEE SR2,tomcat 7.0.21。
I think the invalid version message is a bit misleading; it just doesn't like something about the installation. Anyway, here's what worked for me, using Ubuntu 11.10, eclipse Indigo JavaEE SR2, tomcat 7.0.21.
根据标准的ubuntu tomcat7包,我有一个独立的tomcat安装。我使用tomcat7-instance-create为eclipse创建一个单独的tomcat实例:
I have a standalone tomcat installation as per the standard ubuntu tomcat7 package. I used tomcat7-instance-create to create a separate tomcat instance for eclipse:
$ tomcat7-instance-create -p 8000 -c 8003 ~/dev/eclipse/tomcat
这需要几个补充来保持eclipse快乐
This required a few additions to keep eclipse happy
$ cd ~/dev/eclipse/tomcat
$ ln -s /usr/share/tomcat7/lib
$ ln -s /var/lib/tomcat7/conf/policy.d/03catalina.policy conf/catalina.policy
$ ln -s /usr/share/tomcat7/bin/bootstrap.jar bin/bootstrap.jar
$ ln -s /usr/share/tomcat7/bin/tomcat-juli.jar bin/tomcat-juli.jar
$ tree
.
├── bin
│ ├── bootstrap.jar -> /usr/share/tomcat7/bin/bootstrap.jar
│ ├── setenv.sh
│ ├── shutdown.sh
│ ├── startup.sh
│ └── tomcat-juli.jar -> /usr/share/tomcat7/bin/tomcat-juli.jar
├── conf
│ ├── catalina.policy -> /var/lib/tomcat7/conf/policy.d/03catalina.policy
│ ├── catalina.properties
│ ├── context.xml
│ ├── logging.properties
│ ├── server.xml
│ ├── tomcat-users.xml
│ └── web.xml
├── lib -> /usr/share/tomcat7/lib
├── logs
├── temp
├── webapps
└── work
然后只需添加一个新的运行时环境和服务器,这一切都很好!
Then just add a new runtime environment and server as normal, and it's all good!
HTH,
这篇关于是否可以在Eclipse中使用tomcat 7.0.20靛蓝?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!