当我为WindowsXP运行设置apache-tomcat-6.0.20.exe时,我从Tomcat安装程序收到消息“无法安装tomcat6服务检查您的设置和权限”。我有权限。唯一的事情我认为这与设置需求不同的是JRE版本。但是从coreservlets.com下载的tomcat-preconfigured6.0.18.zip可以正常使用J2SE 6 JRE。当安装对话框显示消息时,设置总是停止“使用jvm:c:\ program files \ java \ jre \ bin \ client \ jvm.dll”。即使作为服务,也没有安装任何其他服务或其他版本的Tomcat。
然后我尝试了以下!!!
我使用apache-tomcat-6.0.20.exe安装了Tomcat但是没有作为服务。然后从bin我试图运行“tomcat6.exe服务运行器”但它没有启动服务日志如下[2009-07-21 20:02:34] [info] Procrun (2.0.4.0) started
[2009-07-21 20:02:34] [info] Service Tomcat6 name Apache Tomcat 6
[2009-07-21 20:02:35] [info] Service Tomcat6 installed
[2009-07-21 20:02:35] [info] Procrun finished.
[2009-07-21 21:46:10] [info] Procrun (2.0.4.0) started
[2009-07-21 21:46:10] [info] Debugging Service...
[2009-07-21 21:46:10] [info] Starting service...
[2009-07-21 21:46:10] [1030 prunsrv.c] [error] Failed setting process executable
[2009-07-21 21:46:10] [1269 prunsrv.c] [error] ServiceStart returned 2
[2009-07-21 21:46:10] [info] Debug service finished.
[2009-07-21 21:46:10] [info] Procrun finished.
[2009-07-21 21:46:14] [info] Procrun (2.0.4.0) started
[2009-07-21 21:46:14] [info] Debugging Service...
[2009-07-21 21:46:14] [info] Starting service...
[2009-07-21 21:46:14] [1030 prunsrv.c] [error] Failed setting process executable
[2009-07-21 21:46:14] [1269 prunsrv.c] [error] ServiceStart returned 2
[2009-07-21 21:46:14] [info] Debug service finished.
[2009-07-21 21:46:14] [info] Procrun finished.
[2009-07-21 21:46:24] [info] Procrun (2.0.4.0) started
[2009-07-21 21:46:24] [info] Running Service...
[2009-07-21 21:46:24] [info] Starting service...
[2009-07-21 21:46:24] [1030 prunsrv.c] [error] Failed setting process executable
[2009-07-21 21:46:24] [1269 prunsrv.c] [error] ServiceStart returned 2
[2009-07-21 21:46:24] [info] Run service finished.
[2009-07-21 21:46:24] [info] Procrun finished.
[2009-07-21 21:46:28] [info] Procrun (2.0.4.0) started
[2009-07-21 21:46:28] [info] Running Service...
[2009-07-21 21:46:28] [info] Starting service...
[2009-07-21 21:46:28] [1030 prunsrv.c] [error] Failed setting process executable
[2009-07-21 21:46:28] [1269 prunsrv.c] [error] ServiceStart returned 2
[2009-07-21 21:46:28] [info] Run service finished.
[2009-07-21 21:46:28] [info] Procrun finished.
[2009-07-21 21:46:31] [info] Procrun (2.0.4.0) started
[2009-07-21 21:46:31] [info] Running Service...
[2009-07-21 21:46:31] [info] Starting service...
[2009-07-21 21:46:32] [1030 prunsrv.c] [error] Failed setting process executable
[2009-07-21 21:46:32] [1269 prunsrv.c] [error] ServiceStart returned 2
[2009-07-21 21:46:32] [info] Run service finished.
[2009-07-21 21:46:32] [info] Procrun finished.
[2009-07-21 21:46:35] [info] Procrun (2.0.4.0) started
[2009-07-21 21:46:35] [info] Running Service...
[2009-07-21 21:46:35] [info] Starting service...
[2009-07-21 21:46:35] [1030 prunsrv.c] [error] Failed setting process executable
[2009-07-21 21:46:35] [1269 prunsrv.c] [error] ServiceStart returned 2
[2009-07-21 21:46:35] [info] Run service finished.
[2009-07-21 21:46:35] [info] Procrun finished.
[2009-07-21 21:53:44] [info] Procrun (2.0.4.0) started
[2009-07-21 21:53:44] [info] Debugging Service...
[2009-07-21 21:53:44] [info] Starting service...
[2009-07-21 21:53:44] [1030 prunsrv.c] [error] Failed setting process executable
[2009-07-21 21:53:44] [1269 prunsrv.c] [error] ServiceStart returned 2
[2009-07-21 21:53:44] [info] Debug service finished.
[2009-07-21 21:53:44] [info] Procrun finished.
[2009-07-21 21:54:06] [info] Procrun (2.0.4.0) started
[2009-07-21 21:54:06] [info] Debugging Service...
[2009-07-21 21:54:06] [info] Starting service...
[2009-07-21 21:54:06] [1030 prunsrv.c] [error] Failed setting process executable
[2009-07-21 21:54:06] [1269 prunsrv.c] [error] ServiceStart returned 2
[2009-07-21 21:54:06] [info] Debug service finished.
[2009-07-21 21:54:06] [info] Procrun finished.
[2009-07-21 21:55:44] [info] Procrun (2.0.4.0) started
[2009-07-21 21:55:44] [info] Debugging Service...
[2009-07-21 21:55:44] [info] Starting service...
[2009-07-21 21:55:44] [1030 prunsrv.c] [error] Failed setting process executable
[2009-07-21 21:55:44] [1269 prunsrv.c] [error] ServiceStart returned 2
[2009-07-21 21:55:44] [info] Debug service finished.
[2009-07-21 21:55:44] [info] Procrun finished.
[2009-07-21 21:55:44] [info] Procrun (2.0.4.0) started
[2009-07-21 21:55:44] [info] Debugging Service...
[2009-07-21 21:55:44] [info] Starting service...
[2009-07-21 21:55:44] [1030 prunsrv.c] [error] Failed setting process executable
[2009-07-21 21:55:44] [1269 prunsrv.c] [error] ServiceStart returned 2
[2009-07-21 21:55:44] [info] Debug service finished.
[2009-07-21 21:55:44] [info] Procrun finished.
[2009-07-21 21:55:45] [info] Procrun (2.0.4.0) started
[2009-07-21 21:55:45] [info] Debugging Service...
[2009-07-21 21:55:45] [info] Starting service...
[2009-07-21 21:55:45] [1030 prunsrv.c] [error] Failed setting process executable
[2009-07-21 21:55:45] [1269 prunsrv.c] [error] ServiceStart returned 2
[2009-07-21 21:55:45] [info] Debug service finished.
[2009-07-21 21:55:45] [info] Procrun finished.
你的想法请!!!!!!!!!!!!!!
答案 0 :(得分:1)
我的安装基于Windows Server 2003 SP2和Tomcat 7.我认为问题与Windows XP上的安装相同。
首先尝试更改变量值。默认的系统变量值是%SystemRoot%\ TEMP,默认的用户变量值是%USERPROFILE%\ Local Settings \ Temp。将用户变量和系统变量中TEMP和TMP的值从默认值更改为C:\ temp。
(右键单击“我的电脑”,转到“属性”。在“启动和恢复”下查看并按“环境变量”按钮)
如果您还有Tomcat安装的问题,请尝试以下SørenLøvborg的解决方案,这个适用于我。要稍后安装服务监视器,只需启动安装程序并忽略错误。之后我有一个工作安装。
答案 1 :(得分:0)
不确定是否与上述问题有关,但在使用
安装Tomcat服务后我遇到了同样的错误tomcat6 //IS//
问题是这没有配置必要的设置。
要解决此问题,请先重新删除服务(如果已安装):
tomcat6 //DS//
然后使用
安装service.bat install