Tomcat服务器不是作为服务启动:%1不是有效的Win32应用程序 [英] Tomcat server is not starting as service: %1 is not a valid Win32 application

查看:1541
本文介绍了Tomcat服务器不是作为服务启动:%1不是有效的Win32应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的tomcat服务器在Eclipse中工作正常,但是当我尝试启动服务器时,它不会启动。

My tomcat server is working fine in Eclipse but when I try to start the server it is not starting.

以下是错误:

[2012-08-15 09:26:09] [info] Procrun (2.0.5.0) started
[2012-08-15 09:26:09] [info] Running Service...
[2012-08-15 09:26:09] [info] Starting service...
[2012-08-15 09:26:09] [197  javajni.c] [error] %1 is not a valid Win32 application.
[2012-08-15 09:26:09] [994  prunsrv.c] [error] Failed creating java C:\java\java\jre\bin\server\jvm.dll
[2012-08-15 09:26:09] [1269 prunsrv.c] [error] ServiceStart returned 1
[2012-08-15 09:26:09] [info] Run service finished.
[2012-08-15 09:26:09] [info] Procrun finished.
[2012-08-15 09:29:06] [info] Procrun (2.0.5.0) started
[2012-08-15 09:29:06] [info] Running Service...
[2012-08-15 09:29:06] [info] Starting service...
[2012-08-15 09:29:06] [197  javajni.c] [error] %1 is not a valid Win32 application.
[2012-08-15 09:29:06] [994  prunsrv.c] [error] Failed creating java C:\java\java\jre\bin\server\jvm.dll
[2012-08-15 09:29:06] [1269 prunsrv.c] [error] ServiceStart returned 1
[2012-08-15 09:29:06] [info] Run service finished.
[2012-08-15 09:29:06] [info] Procrun finished.
[2012-08-15 09:30:07] [info] Procrun (2.0.5.0) started
[2012-08-15 09:30:07] [info] Running Service...
[2012-08-15 09:30:07] [info] Starting service...
[2012-08-15 09:30:07] [197  javajni.c] [error] %1 is not a valid Win32 application.
[2012-08-15 09:30:07] [994  prunsrv.c] [error] Failed creating java C:\java\java\jre\bin\server\jvm.dll
[2012-08-15 09:30:07] [1269 prunsrv.c] [error] ServiceStart returned 1
[2012-08-15 09:30:07] [info] Run service finished.
[2012-08-15 09:30:07] [info] Procrun finished.
[2012-08-15 09:30:57] [info] Procrun (2.0.5.0) started
[2012-08-15 09:30:57] [info] Running Service...
[2012-08-15 09:30:57] [info] Starting service...
[2012-08-15 09:30:57] [197  javajni.c] [error] %1 is not a valid Win32 application.
[2012-08-15 09:30:57] [994  prunsrv.c] [error] Failed creating java C:\java\java\jre\bin\server\jvm.dll
[2012-08-15 09:30:57] [1269 prunsrv.c] [error] ServiceStart returned 1
[2012-08-15 09:30:57] [info] Run service finished.
[2012-08-15 09:30:57] [info] Procrun finished.

这些错误是什么意思,如何解决?

What does these errors mean and how do I fix them?

推荐答案

我有完全相同的问题,它是由64位Windows上运行32位Tomcat引起的。 (我在Windows 8 64位使用XAMPP 1.8.3。)

I had the exact same problem and it was caused by running a 32 bits Tomcat on a 64 bits windows. (I was using XAMPP 1.8.3 in a Windows 8 64 bits.)

首先:


  • 确保您有指向jdk文件夹的 JAVA_HOME 系统变量(而不是 \bin ) ;

  • 确保%JAVA_HOME%\bin; 位于您的%PATH%系统变量

  • Make sure you have JAVA_HOME system variable pointing to your jdk folder (not the \bin);
  • Make sure %JAVA_HOME%\bin; is in your %PATH% system variable.

解决方案:


  • 如果您已经安装了Tomcat7服务,请卸载Tomcat7服务;

  • 下载适用于Windows的Tomcat 7的 64位版本(检查此链接获取最新的 - 我使用7.0.42 版本);

  • 替换 tomcat7.exe tomcat7w.exe 文件的 C:\xampp\tomcat\\ bin 文件夹与最近下载的zip文件中存在的文件夹。

  • Uninstall the Tomcat7 service if you have installed it already;
  • Download a 64 bit version of Tomcat 7 for windows (check this link to get the latest - I used the 7.0.42 version);
  • Replace the tomcat7.exe and tomcat7w.exe files of the C:\xampp\tomcat\bin folder with those present in the recently downloaded zip file.

现在,您可以照常安装该服务(通过XAMPP控制面板,如果你使用它),它应该开始很好。

Now you can install the service as usual (through XAMPP control panel, if you use it) and it should start just fine.

这篇关于Tomcat服务器不是作为服务启动:%1不是有效的Win32应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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