Apache Tomcat 8.5.错误:服务因服务特定错误错误功能而终止 [英] Apache Tomcat 8.5 . Error: Service terminated with service specific error incorrect function

查看:34
本文介绍了Apache Tomcat 8.5.错误:服务因服务特定错误错误功能而终止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一个月前在 Windows Server 2008 上安装了带有 java 1.8 的 apache tomcat 8.5,并且运行正常.现在服务已停止,我无法从 apache 配置或 Windows 服务重新启动它.它总是停止.我收到以下错误:服务因服务特定错误不正确的功能而终止".

Windows 事件查看器中的其他错误并没有说明什么:

甚至它的详细信息标签:

我能做什么?

解决方案

我试图将 Apache Tomcat/8.5.31 安装为 Windows 服务,但我也遇到了同样的错误.

对我来说,最终奏效的是遵循这些步骤.进入Tomcat安装目录的bin文件夹.您将看到两个 EXE(tomcat8.exetomcat8w.exe).tomcat8w.exe 是一个用于监控和配置Tomcat服务的GUI应用程序.双击它,然后转到 Java 选项卡
1) 启用Use default
的复选框2) 在Java Classpath:部分,指定bootstrap.jartomcat-juli.jar的路径.这些应该存在于您的 tomcat 安装的 bin 目录本身中:

\bin\bootstrap.jar;\bin\tomcat-juli.jar

要获得更多帮助,您可以查看以下位置的日志,前提是您使用

Java Classpath 设置仍然需要如上所述.

i have installed apache tomcat 8.5 one month ago with java 1.8 on Windows Server 2008 and it works ok. now the service is stopped and i'm not able to restart it from apache configuration or Windows Services . It is always stopped. i got the following error: "service terminated with service specific error incorrect function".

ther error in Windows Event viewer does not saying nothing more:

even its details tab:

What can i do?

解决方案

I was trying to install Apache Tomcat/8.5.31 as Windows service and i was also facing the same error.

For me what finally worked was following these steps. Go to Tomcat installation directory's bin folder. You will see two EXEs (tomcat8.exe and tomcat8w.exe). tomcat8w.exe is a GUI application for monitoring and configuring Tomcat services. Double-click it and then go to Java tab
1) Enable the check box for Use default
2) In Java Classpath: section, specify the path to bootstrap.jar and tomcat-juli.jar. These should be present in your tomcat installation's bin directory itself:

<path_to_tomcat_installation>\bin\bootstrap.jar;<path_to_tomcat_installation>\bin\tomcat-juli.jar

To get more help, you may check the log at the following location provided you installed your Tomcat as Windows service using default LogPath option as described in the documentation: %SystemRoot%\System32\LogFiles\Apache

UPDATE: In another recent installation, i noticed that despite having configuration settings exactly similar to another working setup, i was still getting Incorrect function error under System log in Event Viewer. This time, i had to uncheck the Use default option and had to explicitly provide path to jvm.dll as shown below:

Java Classpath setting was still required as explained above.

这篇关于Apache Tomcat 8.5.错误:服务因服务特定错误错误功能而终止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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