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

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

问题描述

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

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".

Windows事件查看器中的其他错误不再说明:

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

详细信息"标签:

我该怎么办?

推荐答案

我正在尝试将Apache Tomcat/8.5.31安装为Windows服务,并且也遇到了相同的错误.

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

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

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

更新:在另一个最新的安装中,我注意到尽管配置设置与另一个工作设置完全相似,但在System登录Event Viewer下仍然出现Incorrect function错误.这次,我不得不取消选中Use default选项,并且必须显式提供jvm.dll的路径,如下所示:

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设置.

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

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