gpt4 book ai didi

java - FAIL - 上下文路径/openrdf-sesame 中的应用程序无法启动

转载 作者:行者123 更新时间:2023-11-28 23:00:02 28 4
gpt4 key购买 nike

我是 Java Sesame 的新手,在开始时遇到了一些困难。我正在使用 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 - FAIL - 上下文路径/openrdf-sesame 中的应用程序无法启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20601584/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com