我是Java芝麻的新手,上手时遇到了一些困难。我正在使用mac 10.5.8。为了进行配置,我应该在Tomcat服务器管理器中部署两个war文件:/openrdf-workbench/openrdf-sesame/openrdf-workbench文件已成功部署。不幸的是/openrdf-sesame没有部署。我收到以下消息:

FAIL - Application at context path /openrdf-sesame could not be started


运行Tomcat服务器时,收到以下消息:

SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base /apache-tomcat-7.0.32/wtpwebapps/openrdf-sesame does not exist or is not a readable directory
at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:138)
SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base /apache-tomcat-7.0.32/wtpwebapps/openrdf-sesame does not exist or is not a readable directory
at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:138)
at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4906)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5086)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1256)
at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:714)
at org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:219)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:193)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:581)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)
    Dec 16, 2013 12:16:23 AM org.apache.catalina.core.StandardContext startInternal
    SEVERE: Error in resourceStart()
    Dec 16, 2013 12:16:23 AM org.apache.catalina.core.StandardContext startInternal
    SEVERE: Error getConfigured
    Dec 16, 2013 12:16:23 AM org.apache.catalina.core.StandardContext startInternal
    SEVERE: Context [/openrdf-sesame] startup failed due to previous errors
    Dec 16, 2013 12:16:23 AM org.apache.catalina.util.LifecycleBase stop
    INFO: The stop() method was called on component [WebappLoader[/openrdf-sesame]]      after stop() had already been called. The second call will be ignored.
    Dec 16, 2013 12:16:24 AM org.apache.catalina.core.ApplicationContext log
    INFO: HTMLManager: list: Listing contexts for virtual host 'localhost'


我不知道如何解决这个问题。此外,我不知道下一步是什么。谁能帮我解决这两个问题。非常感谢您的协助。

最佳答案

我正在使用apache-tomcat-7.0.32。似乎不适合Mac 10.5.8Java 1.6。我安装了apache-tomcat-6.0.37。两个文件的部署均成功。

关于java - 失败-无法启动上下文路径/openrdf-sesame上的应用程序,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/20601584/

10-10 06:10