我正在 tomcat 中尝试 wookie。每当我尝试通过 (http://本地主机:8080/wookie)我收到以下日志。
org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet jsp threw exception
java.lang.RuntimeException: PersistenceManagerFactory not initialized
at org.apache.wookie.beans.util.PersistenceManagerFactory.getPersistenceManager (PersistenceManagerFactory.java:296)
at org.apache.wookie.server.MainFilter.doFilter(MainFilter.java:51)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:558)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:636)
我已按照 wookie 文档 (incubator.apache.org/wookie/downloading-and-installing-wookie.html) 中的说明进行操作
这是我的构建.属性文件和 uploading.com/files/6cb5582d/build.xml 文件
造成上述问题的可能原因是什么?
答案1
servletEngine.context.conf.dir=CATALINA_HOME/conf/Catalina/localhost
conf 后不要遗漏 Catalina/localhost。否则会出现上述问题。我仍然不知道为什么它需要 Catalina/localhost 路径,而不是 conf dir 路径!!