我试图安装Tomcat作为Windows Server 2008中不能安装Tomcat 7作为Windows
我搜索在计算器并不能找到任何回答这个问题,我可以服务看到其他所有相关问题都不一样(与代码错误0有关,我的代码错误是1)或者没有有效答案,所以我决定创建这个问题。
我用它来创建服务:
https://tomcat.apache.org/tomcat-7.0-doc/windows-service-howto.html#Installing_services
tomcat7 //IS//Tomcat7 --DisplayName="Apache Tomcat 7" \
的命令后,我可以看到在我的服务列出的Apache Tomcat 7的服务,问题是,它已停止,如果我尝试启动它,我可以看到这个错误:
Windows could not start the Apache Tomcat 7 on Local Computer. For
more information, review the System Event Log. If this is a
non-Microsoft service, contact the service vendor, and refer to
service-specific error code 1.
在系统事件查看器,我可以看到该日志此错误:
The Apache Tomcat 7 service terminated with service-specific error Incorrect function..
我使用的是Java 64位,我同时测试了tomcat 32和64位,两者都有同样的问题。我也tryed打开cmd.exe的具有管理员权限和我有同样的问题...
感谢您的帮助
FYI:如果我开始的startup.bat手动tomcat的,它开始正确
你能否在'HKLM \ SYSTEM \ CurrentControlSet \ Services \ Apache Tomcat 7'上检查你的注册表?有没有子密钥? –
它被称为Services \ Tomcat7不是Apache Tomcat 7,它有很多子项 – NullPointerException
是的,抱歉的名称。是否有'Parameters'子键? –