Windows 无法在本地计算机启动Apache tomcat的解决方法

来源:互联网 发布:优化视频检索的方法 编辑:程序博客网 时间:2024/05/16 06:58

Windows不能在本地计算机启动Apache2.有关更多信息,查阅系统事件日志。如果这是非Microsoft服务,请与服务厂商联系,并参考特定服务错误代码1.

当我们把tomcat做成windows服务的时候,有时候我们启动tomcat的时候,我们会发现出现上面的错误,这种情况网上也是众说纷纭,我碰到的情况其实是,我的jdk是32位的,但是tomcat是64位的,换成32位 的tomcat就好了!大家可以查看tomcat 下的  commons-daemon.log日志


[2016-02-26 10:12:09] [info]  [ 1608] Commons Daemon procrun (1.0.15.0 64-bit) started[2016-02-26 10:12:09] [info]  [ 1608] Running 'tomcat832' Service...[2016-02-26 10:12:09] [info]  [ 7424] Starting service...[2016-02-26 10:12:09] [error] [ 7424] %1 不是有效的 Win32 应用程序。[2016-02-26 10:12:09] [error] [ 7424] Failed creating java D:\Program Files (x86)\Java\jdk1.7.0_79\jre\bin\server\jvm.dll[2016-02-26 10:12:09] [error] [ 7424] %1 不是有效的 Win32 应用程序。[2016-02-26 10:12:09] [error] [ 7424] ServiceStart returned 1[2016-02-26 10:12:09] [error] [ 7424] %1 不是有效的 Win32 应用程序。[2016-02-26 10:12:09] [info]  [ 1608] Run service finished.[2016-02-26 10:12:10] [info]  [ 1608] Commons Daemon procrun finished[2016-02-26 10:58:32] [info]  [18636] Commons Daemon procrun (1.0.15.0 64-bit) started[2016-02-26 10:58:32] [info]  [18636] Deleting service...[2016-02-26 10:58:33] [info]  [18636] Delete service finished.[2016-02-26 10:58:33] [info]  [18636] Commons Daemon procrun finished



0 0
原创粉丝点击