我为我的Ubuntu 12.04下载了ParliamentQuickStart-v2.7.6-gcc-64``。
不幸的是,当我尝试使用命令启动Paliament时,我遇到了以下异常(见下文)
./StartParliament.sh
显然tomcat服务器并没有真正运行
localhost:8080 responses HTTP ERROR: 404 NOT_FOUND
Using the following version of Java:
java version "1.7.0_75"
OpenJDK Runtime Environment (IcedTea 2.5.4) (7u75-2.5.4-1~precise1)
OpenJDK 64-Bit Server VM (build 24.75-b04, mixed mode)
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/home/leonzo/opt/parliament/lib/slf4j-log4j12- 1.6.4.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/tmp/Jetty_0_0_0_0_8080_parliament.war__parliament__.8k5u9b/webapp/WEB-INF/lib/slf4j-log4j12-1.6.4.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
2015-02-24 14:22:47,146 [main] INFO [com.bbn.parliament.jena.joseki.bridge.servlet.ParliamentServlet] Initializing parliament servlet
2015-02-24 14:22:47,600 [main] INFO [com.bbn.parliament.jena.joseki.bridge.ParliamentBridgeConfiguration] Initializing com.bbn.parliament.jena.joseki.bridge.configuration.IndexProcessorConfigurationHandler
2015-02-24 14:22:47,600 [main] INFO [com.bbn.parliament.jena.joseki.bridge.configuration.IndexProcessorConfigurationHandler] Loading com.bbn.parliament.jena.graph.index.temporal.TemporalIndexFactory
2015-02-24 14:22:47,626 [main] INFO [com.bbn.parliament.jena.joseki.bridge.configuration.IndexProcessorConfigurationHandler] Loading com.bbn.parliament.jena.graph.index.spatial.SpatialIndexFactory
2015-02-24 14:22:47,646 [main] INFO [com.bbn.parliament.jena.joseki.graph.ModelManager] Loading Model
2015-02-24 14:22:47,646 [main] INFO [com.bbn.parliament.jena.joseki.graph.ModelManager] Loading Parliament configuration with working directory "/home/leonzo/opt/parliament/."
2015-02-24 14:22:47,659 [main] WARN [org.mortbay.log] failed ParliamentServlet: java.lang.UnsatisfiedLinkError: /home/leonzo/opt/parliament/bin/libParliament.so: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.17' not found (required by ./bin/libdb-5.3.so)
2015-02-24 14:22:47,660 [main] INFO [com.bbn.parliament.jena.joseki.bridge.servlet.BulkServlet] -------- BulkServlet
2015-02-24 14:22:47,660 [main] INFO [com.bbn.parliament.jena.joseki.bridge.servlet.BulkServlet] Initializing BulkServlet
2015-02-24 14:22:47,661 [main] ERROR [/parliament] unavailable
java.lang.IllegalStateException: The ParliamentBridge class has not been initialized yet
at com.bbn.parliament.jena.joseki.bridge.ParliamentBridge.getInstance(ParliamentBridge.java:36)
at com.bbn.parliament.jena.joseki.bridge.servlet.BulkServlet.init(BulkServlet.java:79)
at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:440)
at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:263)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:685)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1272)
at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:489)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at org.mortbay.jetty.Server.doStart(Server.java:224)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at com.bbn.parliament.jena.jetty.JettyServerCore.start(JettyServerCore.java:114)
at com.bbn.parliament.jena.jetty.CmdLineJettyServer.main(CmdLineJettyServer.java:22)
2015-02-24 14:22:47,664 [main] WARN [org.mortbay.log] failed org.mortbay.jetty.webapp.WebAppContext@15afba6a{/parliament,file:/home/leonzo/opt/parliament/webapps/parliament.war}: java.lang.UnsatisfiedLinkError: /home/leonzo/opt/parliament/bin/libParliament.so: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.17' not found (required by ./bin/libdb-5.3.so)
2015-02-24 14:22:47,665 [main] WARN [org.mortbay.log] failed ContextHandlerCollection@43f79045: java.lang.UnsatisfiedLinkError: /home/leonzo/opt/parliament/bin/libParliament.so: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.17' not found (required by ./bin/libdb-5.3.so)
2015-02-24 14:22:47,667 [main] WARN [org.mortbay.log] failed HandlerCollection@610994db: java.lang.UnsatisfiedLinkError: /home/leonzo/opt/parliament/bin/libParliament.so: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.17' not found (required by ./bin/libdb-5.3.so)
2015-02-24 14:22:47,667 [main] ERROR [org.mortbay.log] Error starting handlers
java.lang.UnsatisfiedLinkError: /home/leonzo/opt/parliament/bin/libParliament.so: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.17' not found (required by ./bin/libdb-5.3.so)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1965)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1890)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1880)
at java.lang.Runtime.loadLibrary0(Runtime.java:849)
at java.lang.System.loadLibrary(System.java:1088)
at com.bbn.parliament.jni.Config.<clinit>(Config.java:184)
at com.bbn.parliament.jena.graph.KbGraphFactory.getKbConfigForDefaultGraph(KbGraphFactory.java:75)
at com.bbn.parliament.jena.graph.KbGraphFactory.createDefaultGraph(KbGraphFactory.java:31)
at com.bbn.parliament.jena.joseki.graph.ModelManager.initialize(ModelManager.java:290)
at com.bbn.parliament.jena.joseki.bridge.ParliamentBridge.<init>(ParliamentBridge.java:68)
at com.bbn.parliament.jena.joseki.bridge.ParliamentBridge.initialize(ParliamentBridge.java:53)
at com.bbn.parliament.jena.joseki.bridge.servlet.ParliamentServlet.init(ParliamentServlet.java:49)
at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:440)
at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:263)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:685)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1272)
at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:489)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at org.mortbay.jetty.Server.doStart(Server.java:224)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at com.bbn.parliament.jena.jetty.JettyServerCore.start(JettyServerCore.java:114)
at com.bbn.parliament.jena.jetty.CmdLineJettyServer.main(CmdLineJettyServer.java:22)
2015-02-24 14:22:47,676 [main] INFO [com.bbn.parliament.jena.jetty.JettyServerCore] Starting Parliament server
答案 0 :(得分:0)
这不是一个具体的编程问题。根据您的错误输出,问题是找不到glibc
的特定版本(>=2.17
)。这可能是因为您的操作系统12.04已经很老了,并附带了glibc
的旧版本。
您有三种选择。
1。将glibc
更新为足够高的版本。这可能会导致系统出现问题,因为安装的大多数应用程序将依赖于先前版本的glibc
,因此我会首先在VM中尝试此操作。您可能需要在服务器上使用编译器来执行此操作。
2. 将您的系统升级到更新版本的Ubuntu。这可能不是您的选择,因为您可能在服务器上运行此操作并因此使用LTS版本。但是,如果您可以升级,则14.04.2是最新的LTS版本,并且具有glibc
的最新版本。
3。失败的具体组件是libdb-5.3
。使用当前版本的glibc
将其编译为12.04,并替换应用程序服务器的bin/
路径中的库。
在执行上述任何步骤之前,请确保使用12.04(sudo apt-get update && sudo apt-get dist-upgrade
)的最新修补程序完全升级系统。