我正在尝试通过修改Rexster中的rexster.xml文件来配置Rexster来使用泰坦。但当我跑
http ://localhost:8182/graphs/mygraph 在我的浏览器中,我收到一条消息:
{“消息”:“找不到图迷图”}。
这是我修改的rexster.xml文件的一部分:
<graph>
<graph-name>mygraph</graph-name>
<graph-type>com.thinkaurelius.titan.tinkerpop.rexster.TitanGraphConfiguration</graph-type>
<graph-location>C:/titan-server-jre6-0.4.4/bin/mygraph</graph-location>
<graph-read-only>false</graph-read-only>
<properties>
<storage.backend>local</storage.backend>
<buffer-size>100</buffer-size>
</properties>
<extensions>
<allows>
<allow>tp:gremlin</allow>
</allows>
</extensions>
</graph>我将Titans lib文件夹中的所有jar文件添加到config/ext/titan下的Rexster中,并使用gremlin shell i Titan在Titan中创建了一个图形:
g = TitanFactory.open('mygraph');
g.createKeyIndex('name', Vertex.class);
v = g.addVertex(null);
v.setProperty('name','x');
v.setProperty('type','person');
v.setProperty('age',20);
v1 = g.addVertex(null);
v1.setProperty('name','y');
v1.setProperty('type','person');
v1.setProperty('age',22);
e = g.addEdge(null, v, v1, 'knows');
e1 = g.addEdge(null, v1, v, 'knows');
g.shutdown();我遗漏了什么?
更新
我把来自泰坦的jar文件放在rexster中的错误目录中,现在这些jar文件在rexster中的位置是对的。但是,当我现在运行rexster服务器时,我得到了以下输出:
[INFO] Application - .:Welcome to Rexster:.
[INFO] RexsterProperties - Using [C:\rexster-server-2.5.0\config\rexster.xml] as
configuration source.
[INFO] Application - Rexster is watching [C:\rexster-server-2.5.0\config\rexster
.xml] for change.
Exception in thread "main" java.lang.AbstractMethodError: com.thinkaurelius.tita
n.tinkerpop.rexster.TitanGraphConfiguration.configureGraphInstance(Lcom/tinkerpo
p/rexster/config/GraphConfigurationContext;)Lcom/tinkerpop/blueprints/Graph;
at com.tinkerpop.rexster.config.GraphConfigurationContainer.getGraphFrom
Configuration(GraphConfigurationContainer.java:124)
at com.tinkerpop.rexster.config.GraphConfigurationContainer.<init>(Graph
ConfigurationContainer.java:54)
at com.tinkerpop.rexster.server.XmlRexsterApplication.reconfigure(XmlRex
sterApplication.java:99)
at com.tinkerpop.rexster.server.XmlRexsterApplication.<init>(XmlRexsterA
pplication.java:47)
at com.tinkerpop.rexster.Application.<init>(Application.java:97)
at com.tinkerpop.rexster.Application.main(Application.java:189)我怎么解决这个问题?
发布于 2014-09-15 12:21:07
在我使用2.5.0版本之前,通过更改rexster服务器的版本解决了问题。我现在使用的版本2.4.0和版本0.4.4的土卫六。
https://stackoverflow.com/questions/25844805
复制相似问题