的Tomcat起价Netbeans的失败 [英] Starting of Tomcat failed from Netbeans

查看:194
本文介绍了的Tomcat起价Netbeans的失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有问题,从NetBeans IDE 7.4开始的Apache Tomcat 6(7.3版我有同样的烦恼。其他人提到,这个问题也存在于其他版本,如8.0等)。

I have problem with starting Apache Tomcat 6 from Netbeans IDE 7.4 (on 7.3 version I had the same troubles. Other people mentioned that this problem exist also in other versions, like 8.0 etc).

我做了什么:


  • 删除已安装的Tomcat 7(而不移除它,我有同样的困难)

  • 添加新的服务器,从的Apache Tomcat网站下载(版本的Apache,Tomcat的6.0.39,与其他版本我有同样的问题)

  • 我的服务器位置:D:\\ Apache的Tomcat的netbeans的

  • 系统变量CATALINA_HOME:D:\\ Apache的Tomcat的netbeans的

  • 系统变量JAVA HOME:C:\\ Program Files文件\\的Java \\ jdk1.7.0_51 \\

  • tomcat的用户:我让的NetBeans创建新的用户,名为tomcat,密码tomcat的。当我打开{}的tomcat \\的conf \\ tomcat-users.xml文件中添加服务器之后,有关于我的用户信息:

  • remove installed Tomcat 7 (without removing it, I had the same difficulties)
  • add new server, downloaded from Apache Tomcat website (version apache-tomcat-6.0.39, with other version I had the same problems)
  • my server location: D:\apache-tomcat-netbeans
  • system variable CATALINA_HOME: D:\apache-tomcat-netbeans
  • system variable JAVA HOME: C:\Program Files\Java\jdk1.7.0_51\
  • tomcat user: I let netbeans creating new user, called tomcat with password tomcat. When I open {tomcat}\conf\tomcat-users.xml file after adding server, there is info about my user:

<用户密码=雄猫角色=管理员,管理员用户名=雄猫/>

< user password="tomcat" roles="manager,admin" username="tomcat"/ >

当我现在单击开始,我得到了的Tomcat启动失败

When I now click "start", I got "Starting of Tomcat failed".

我的怀疑:


  • 我的工作Windows 7作为管理员,所以我觉得这是不符合权限的文件有问题。

  • 禁用代理并没有帮助。

  • 日志:有只创建一个日志文件:localhost.2014-03-06.log,这完全是空的。

  • 启动Netbeans的以管理员身份,没有帮助。

  • 从命令行一切正常,我没有问题,在正常或调试模式下启动( catalina.bat中JPDA启动的startup.bat 的)

  • I'm working on Windows 7 as administrator, so I think this is not a problem with privileges to files.
  • Disabling proxy didn't helps.
  • Logs: There is only one log file created: localhost.2014-03-06.log and it is totally empty.
  • Starting Netbeans "as administrator" didn't helps.
  • From command line everything is all right, I have no problems with starting in normal or debug mode (catalina.bat jpda start or startup.bat)

推荐答案

我面临的apache-tomcat的-7.0.56和apache-tomcat的-8.0.14与netbeans7.4和netbeans8确切的问题。我安装了zip文件的Tomcat。我通过改变固定它的 catalina.bat中文件中tomcat的bin目录中。

I have faced the exact problem in apache-tomcat-7.0.56 and apache-tomcat-8.0.14 with netbeans7.4 and netbeans8. I installed tomcat from zip file. I fixed it by changing catalina.bat file in tomcat bin directory.

查找您catalina.bat中文件中的波纹管的配置。

Find the bellow configuration in your catalina.bat file.

:noJuliConfig
set "JAVA_OPTS=%JAVA_OPTS% %LOGGING_CONFIG%"

:noJuliManager
set "JAVA_OPTS=%JAVA_OPTS% %LOGGING_MANAGER%"

只是删除​​双引号

:noJuliConfig
set JAVA_OPTS=%JAVA_OPTS% %LOGGING_CONFIG%

:noJuliManager
set JAVA_OPTS=%JAVA_OPTS% %LOGGING_MANAGER%

现在保存并从NetBeans中启动Tomcat的。
它为我在Apache的Tomcat的7.0.56和apache-tomcat的-8.0.14。

Now save and start your tomcat from NetBeans. It works for me in apache-tomcat-7.0.56 and apache-tomcat-8.0.14.

这篇关于的Tomcat起价Netbeans的失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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