设置了tomcat 7的芝麻2.6.9无法正常工作 [英] sesame 2.6.9 with tomcat 7 set up won't work

查看:141
本文介绍了设置了tomcat 7的芝麻2.6.9无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试安装芝麻. 我首先遵循以下说明: http://www.openrdf.org/doc/sesame2/users/ch06.html

I was trying to install sesame. I first followed these instructions: http://www.openrdf.org/doc/sesame2/users/ch06.html

要预先安装tomcat,我使用了本教程: http://www .howtogeek.com/howto/linux/installing-tomcat-6-on-ubuntu/(我在自动启动部分之前停止了操作)

To install tomcat as a prerequesite I used this tutorial: http://www.howtogeek.com/howto/linux/installing-tomcat-6-on-ubuntu/ (I stopped before the automatic starting part)

设置教程说:部署过程是特定于容器的,有关如何部署Web应用程序,请查阅容器的文档." 根据此教程的说明: http://www. snee.com/bobdc.blog/2009/02/getting-started-with-sesame.htmlmit

The set up tutorial says "The deployment process is container-specific, please consult the documentation for your container on how to deploy a web application." according to this tutorial: http://www.snee.com/bobdc.blog/2009/02/getting-started-with-sesame.htmlmit says

要在Tomcat上安装芝麻服务器,我将两个war文件从openrdf-sesame-2.2.4 \ war复制到apache-tomcat-6.0.18 \ webapps.关闭并重新启动Tomcat之后,发送我在ttp://localhost:8080/openrdf-workbench和ttp://localhost:8080/openrdf-sesame的浏览器上显示了欢迎屏幕,显示这些应用程序的运行方式没有问题."

"To install a Sesame server on top of Tomcat, I copied the two war files from openrdf-sesame-2.2.4\war to apache-tomcat-6.0.18\webapps. After I shut down and restarted Tomcat, sending my browser to ttp://localhost:8080/openrdf-workbench and ttp://localhost:8080/openrdf-sesame showed welcome screens about how these apps were running with no problem."

我做到了. ttp://localhost:8080显示一个tomcat欢迎页面,ttp://localhost:8080/openrdf-workbench显示一个站点,但是ttp://localhost:8080/openrdf-sesame仅给出404错误.我也无法在工作台站点上执行任何操作,因为它迫使用户将其保留在更改服务器"输入字段中.尝试仅在输入字段下方输入即ttp://localhost:8080/openrdf-sesame"建议的路径时,只会显示无效的服务器URL" 在页面顶部还显示

Which I did. ttp://localhost:8080 shows a tomcat welcome page, ttp://localhost:8080/openrdf-workbench shows a site, but ttp://localhost:8080/openrdf-sesame gives only a 404 error. I also can't do anything on the workbench site, as it forces one to stay on the "Change Server" input field. Trying to just type in the path as proposed by "i.e. ttp://localhost:8080/openrdf-sesame" below the input fiels only says "Invalid Server URL" On top of the page it also says

Current Selections
Sesame server   none    change
Repository  none    change

看起来与应该完全不同,例如: http://www .jenitennison.com/blog/node/153

which just looks totally diffrent than how it should be, as like here: http://www.jenitennison.com/blog/node/153

我深入研究了一下,发现了这一点: http://www. openrdf.org/doc/sesame/users/ch02.html 但这似乎已过时,因为那里根本没有[SESAME_DIR]/WEB-INF/system.conf.example. 我也发现了这一点: http://www.openrdf.org/forum/mvnforum/viewthread?thread = 658 但也没有要重命名的示例文件".

I digged a bit more around and found this: http://www.openrdf.org/doc/sesame/users/ch02.html But it seems outdated, as there is simply no [SESAME_DIR]/WEB-INF/system.conf.example in there. I also found this: http://www.openrdf.org/forum/mvnforum/viewthread?thread=658 But there is also no "example-file" to be renamed.

我还用tomcat bin文件夹中的shutdown.sh脚本关闭了tomcat,并用startup.sh脚本重新启动了几次,但这似乎也无济于事.

Also I have shutdown tomcat with the shutdown.sh script in the tomcat bin folder and restarted it with the startup.sh script several times, but that doesn't seem to help any bit either.

我错过了什么吗?正如芝麻入门"所指出的,将它们复制到webapps文件夹应该已经足够了,但是它不能正常工作...

Am I missing something? As the "Getting started with Sesame" Blogpost indicated copying them to the webapps folder should have been enough, but it is not working right...

感谢您的帮助!

不幸的是,直接访问localhost:8080/openrdf-sesame/home/overview.view的变通办法也不起作用.我还不了解,如果Sesame Server运行正常,而麻烦仅在于重定向,则工作台应该找到服务器,而事实并非如此.

EDIT 1: The workaround with the direct access to localhost:8080/openrdf-sesame/home/overview.view does unfortunately not work either. What I also don't understand, if the Sesame Server were running properly and the trouble were only with the redirect, the workbench should find the server, which is just not the case.

catalina.2012-11-01.log包含以下内容:

EDIT 2: the catalina.2012-11-01.log contains the following:

Nov 01, 2012 11:49:28 AM org.openrdf.workbench.proxy.WorkbenchGateway canConnect
WARNING: java.io.FileNotFoundException: http://localhost:8080/openrdf-sesame/protocol
java.io.FileNotFoundException: http://localhost:8080/openrdf-sesame/protocol
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1613)
    at java.net.URL.openStream(URL.java:1037)
    at org.openrdf.workbench.proxy.WorkbenchGateway.canConnect(WorkbenchGateway.java:130)
    at org.openrdf.workbench.proxy.WorkbenchGateway.isValidServer(WorkbenchGateway.java:303)
    at org.openrdf.workbench.proxy.WorkbenchGateway.findWorkbenchServlet(WorkbenchGateway.java:209)
    at org.openrdf.workbench.proxy.WorkbenchGateway.service(WorkbenchGateway.java:100)
    at org.openrdf.workbench.base.BaseServlet.service(BaseServlet.java:40)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.openrdf.workbench.proxy.CookieCacheControlFilter.doFilter(CookieCacheControlFilter.java:52)
    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:472)
    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:312)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:722)

似乎正在寻找一些协议文件,但是该文件甚至在war软件包中都不存在,所以我对它想要的东西一无所知...

It seems looking for some protocol file, but that file doesn't even exist in the war package, so I am kind of clueless what it wants...

因此,在尝试找出到底出了什么问题时,我很累根据以下答案进行查找,然后通过Tomcat的Web应用程序管理器进行查找.尽管我仍然无法使该代码正常工作(尽管编辑了tomcat-users.xml,尽管出现了"403 Access Denied"错误),但在进行过程中一定有意外地做到了这一点.我唯一的猜测是,将其关闭并重新启动至少十二次可能会有所帮助,因为除了编辑tomcat-users.xml文件并在每次尝试使管理器工作时重新启动它,我实际上没有做任何其他事情.我完全不知道,为什么之前我至少要重启过tomcat至少四次才可以帮上忙.

EDIT 3: So while trying to figure out what the heck was wrong I tired looking it up according to below answer to look it up with the Tomcat's web application manager. While I still don't get that one to work (keeping to get "403 Access Denied" errors depite editing the tomcat-users.xml), something along the way must have been accidentially done the magic. My only guess is that shutting it down and restarting it at least a dozen times may have helped, as I really didn't do anything else than editing the tomcat-users.xml file and restarting it each time tryingto get the manager working. I have no clue, why that wouldn't have helped before, through, I did restart tomcat at least four times before.

推荐答案

有一个不错的但有点过时的演练

There is a nice but slightly out of date walk-through here, which gave me the key tip I needed when I ran into the same trouble you mentioned above.

此策略有一个主要区别:它从Tomcat Manager (http://localhost:8080)内而不是通过jar -xf [PATH/TO/]sesame.war命令部署WAR文件(对我来说是/home/joe/sesame/core/http/server/target/openrdf-sesame.war) 文档进行行调用.也许关键特性只是它部署到了openrdf-sesame而不是sesame ...

This strategy has one key difference: it deploys the WAR file (for me: /home/joe/sesame/core/http/server/target/openrdf-sesame.war) from within the Tomcat Manager (http://localhost:8080), rather than via the jar -xf [PATH/TO/]sesame.war command-line invocation from the docs. Perhaps the key feature is just that it deploys to openrdf-sesame rather than sesame...

无论如何,现在当我访问http://localhost:8080/openrdf-sesame/home/overview.view时,我抱怨我没有使用OpenRDF Workbench ...,否则一切都很好.

In any case, now when I visit http://localhost:8080/openrdf-sesame/home/overview.view I get a complaint that I'm not using the OpenRDF Workbench... but otherwise all is well.

这篇关于设置了tomcat 7的芝麻2.6.9无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆