【问题标题】:Apache Tomcat (8.5.13) startup issuesApache Tomcat (8.5.13) 启动问题
【发布时间】:2018-08-26 04:51:27
【问题描述】:

我将 Apache Tomcat (8.5.13) 与 JAVA 8 和 MSSQL 数据库一起使用。在尝试使用所有配置文件(server.xml 和 context.xml)启动 JVM 时,我无法启动 JVM 并且跑步。 在 Tomcat 标准错误日志中观察到以下提到的错误。

2018-03-16 20:26:01 Commons Daemon procrun stderr initialized
java.io.FileNotFoundException: D:TOMCAT_LOGS\CSX2L\csx2l-stderr.2018-03-16.log (The system cannot find the path specified)
    at java.io.FileOutputStream.open0(Native Method)
    at java.io.FileOutputStream.open(Unknown Source)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at java.io.FileOutputStream.<init>(Unknown Source)

java.io.FileNotFoundException: D:TOMCAT_LOGS\CSX2L\csx2l-stdout.2018-03-16.log (The system cannot find the path specified)
    at java.io.FileOutputStream.open0(Native Method)
    at java.io.FileOutputStream.open(Unknown Source)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at java.io.FileOutputStream.<init>(Unknown Source)

Mar 16, 2018 8:26:19 PM com.pega.pegarules.internal.bootstrap.phase2.PRBootstrapImpl 
SEVERE: Error initializing PRAppLoader
java.io.FileNotFoundException: D:\Apache\Tomcat\8.5.13\instances\CSX2L\work\Catalina\localhost\prweb\extractedFiles\apploader\prlog4jcustomappender.jar (Access is denied).

Mar 16, 2018 8:26:19 PM com.pega.pegarules.boot.internal.extbridge.AppServerBridgeToPega 
SEVERE: Problem during method invocation (contextInitialized)
java.lang.RuntimeException: PRAppLoader was not properly initialized, unable to load class com.pega.pegarules.web.servlet.WebAppLifeCycleListener.

Mar 16, 2018 8:26:19 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class com.pega.pegarules.internal.web.servlet.WebAppLifeCycleListenerBoot
java.lang.RuntimeException: Problem during method invocation (contextInitialized).

Mar 16, 2018 8:26:19 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: One or more listeners failed to start. Full details will be found in the appropriate container log file

Mar 16, 2018 8:26:19 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/prweb] startup failed due to previous errors

【问题讨论】:

  • 您是否尝试过授予您的 tomcat 文件夹的权限,因为它显示错误拒绝访问您的路径 D/Apache/Tomcat/8.5.3/....
  • 假设...\instances\CSX2LCATALINE_BASE文件夹,删除work文件夹上的内容。看来您之前以其他用户身份运行 Tomcat(例如,您自己从命令行),并且服务用户 (System?) 未获得当时创建的文件的授权。 --- 另外,TOMCAT_LOGS 可能应该是\Apache\Tomcat\8.5.13\instances,因此请在您用于创建服务条目的脚本中修复它。

标签: java tomcat stderr


【解决方案1】:

您的用户似乎没有对 tomcat 的访问权限,在为您的用户授予访问权限后尝试启动 JVM -> 右键单击您的 tomcat 目录,然后转到属性,然后转到安全选项卡并提供访问权限。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-07-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-03-21
    • 1970-01-01
    • 1970-01-01
    • 2011-08-29
    相关资源
    最近更新 更多