0

在tomcat服务器运行时,我每10秒在idea的输出面板上收到以下错误:

    Jul 1, 2013 9:38:35 AM org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor processChildren
SEVERE: Exception invoking periodic operation: 
java.lang.NullPointerException
    at org.apache.catalina.startup.HostConfig.filterAppPaths(HostConfig.java:527)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:500)
    at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1385)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:306)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
    at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1389)
    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1653)
    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1662)
    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1642)
    at java.lang.Thread.run(Thread.java:662)

以前有人遇到过这个问题吗?

提前致谢

4

1 回答 1

1

此问题是由于appBasetomcat server.xml 中缺少目录。在 server.xml 中,

<Host appBase="/path/to/valide/dir/webapps" autoDeploy="false" name="localhost" unpackWARs="true" xmlNamespaceAware="false" xmlValidation="false">

appBase属性必须是有效目录。它可以是绝对路径或相对路径CATALINA_HOME

正如上面指定的@Stefan Beike,存在一个问题;

https://issues.apache.org/bugzilla/show_bug.cgi?id=51654

您还可以在此处查看主机配置的文档

于 2013-07-10T08:51:32.170 回答