在Netbeans 7中注册Tomcat 7服务器时出错(Catalina Home文件夹无效) [英] Error registering a Tomcat 7 server in Netbeans 7 (Catalina Home folder is not valid)

查看:417
本文介绍了在Netbeans 7中注册Tomcat 7服务器时出错(Catalina Home文件夹无效)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Linux Mint DE上运行Netbeans 7.0.1. Netbeans是通过发行版的存储库安装的.现在,我已经安装了tomcat7-user软件包,因此我可以创建一个Tomcat用户实例,可以根据需要启动或停止它.当我启动该实例(使用bin/startup.sh)时,脚本报告:

I'm running Netbeans 7.0.1 on Linux Mint DE. Netbeans was installed through the distro's repositories. I've now installed the package tomcat7-user so I can create a user instance of Tomcat which I can start or stop as required. When I start this instance (using bin/startup.sh) the script reports:

Using CATALINA_BASE:   /home/david/tomcat
Using CATALINA_HOME:   /usr/share/tomcat7
Using CATALINA_TMPDIR: /home/david/tomcat/temp
Using JRE_HOME:        /usr/lib/jvm/java-6-sun
Using CLASSPATH:       /usr/share/tomcat7/bin/bootstrap.jar:/usr/share/tomcat7/bin/tomcat-juli.jar
Tomcat started

因此,在Netbeans中,我转到工具"->服务器",单击添加服务器",选择"Apache Tomcat",单击下一步,然后在服务器位置(Catalina主页)"字段中放入/usr/share/tomcat7.但是Netbeans报告:

So, in Netbeans, I go to Tools -> Servers, click Add Server, select Apache Tomcat, click next and in the Server Location (Catalina Home) field I put /usr/share/tomcat7. But Netbeans reports:

指定的服务器位置(Catalina Home)文件夹无效.

The specified Server Location (Catalina Home) folder is not valid.

我认为这可能是权限问题,所以我(暂时)将/usr/share/tomcat7中的所有内容(包括该文件夹本身)更改为0777,但仍然出现该错误消息.因此,我的下一个想法可能是缺少某些内容,因此我将Catalina基地中的所有文件夹链接到Catalina的家中,但还是没有运气.

I thought perhaps it's a permissions issue so I (temporarily) chmoded everything in /usr/share/tomcat7 (including that folder itself) to 0777 but still that error message appears. So my next thought is maybe there's something missing, so I symlinked all of the folders in Catalina base into Catalina home, but still no luck.

现在,如果Netbeans不仅告诉您存在问题,而且告诉您实际上是什么问题,那将非常有帮助.我非常接近Netbeans源代码,以了解其真正的需求,但是如果有人能为我提供一些启示,那将为我省去很多麻烦!

Now it would be very helpful if Netbeans actually told you not just that a problem exists, but what the problem actually is, too. I'm quite close to going through the Netbeans source code to find out what it actually wants, but if anyone could shed some light on this for me that would save me an awful lot of fuss!

推荐答案

好吧,在网络上任何地方都没有任何有意义的地方的情况下,我本周末下载了Netbeans源代码,并找到了解决之道.

Okay, in the absence of anything sensible anywhere on the net, I downloaded the Netbeans source code this weekend and found out the hard way.

由于某种原因,Netbeans认为我有旧版本的Tomcat,因此它正在寻找${CATALINA_HOME}/common/lib文件夹.以下终端命令解决了该问题:

For some reason, Netbeans thinks I have an old version of Tomcat, so it's looking for the ${CATALINA_HOME}/common/lib folder. The following terminal commands fixed the problem:

cd /usr/share/tomcat7
sudo mkdir common
sudo ln -s lib common/lib

这篇关于在Netbeans 7中注册Tomcat 7服务器时出错(Catalina Home文件夹无效)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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