Who can help me get out this? On Sat, Jun 4, 2011 at 10:08, Super Wang <wangxu...@gmail.com> wrote:
> Hi, I'm following this guide to run Felix 3.2.2 in my eclipse 3.6.2. One > simple different is I'm using a JavaSE-1.6 as execution environment JRE(see > the attached snapshot). > > After done, copy the following bundles from neo4j-1.4M03 into bundles > folder: > > geronimo-jta_1.1_spec-1.1.1.jar > lucene-core-3.1.0.jar > neo4j-graph-algo-1.4.M03.jar > neo4j-kernel-1.4.M03.jar > neo4j-lucene-index-1.4.M03.jar > > > Then, launch Felix, but in the console, it shows: > > ERROR: Bundle org.neo4j.graph-algo [3] Error starting > file:/E:/Workspaces/MyOwn/Felix/bundle/neo4j-graph-algo-1.4.M03.jar > (org.osgi.framework.BundleException: Unresolved constraint in bundle > org.neo4j.graph-algo [3]: Unable to resolve 3.0: missing requirement [3.0] > package; (&(package=org.neo4j.graphdb)(version>=1.4.0)) [caused by: Unable > to resolve 4.0: missing requirement [4.0] package; > (package=com.sun.source.tree)]) > org.osgi.framework.BundleException: Unresolved constraint in bundle > org.neo4j.graph-algo [3]: Unable to resolve 3.0: missing requirement [3.0] > package; (&(package=org.neo4j.graphdb)(version>=1.4.0)) [caused by: Unable > to resolve 4.0: missing requirement [4.0] package; > (package=com.sun.source.tree)] > at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3564) > at org.apache.felix.framework.Felix.startBundle(Felix.java:1797) > at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1192) > ERROR: Bundle org.neo4j.kernel [4] Error starting > file:/E:/Workspaces/MyOwn/Felix/bundle/neo4j-kernel-1.4.M03.jar > (org.osgi.framework.BundleException: Unresolved constraint in bundle > org.neo4j.kernel [4]: Unable to resolve 4.0: missing requirement [4.0] > package; (package=com.sun.source.tree)) > at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:266) > at java.lang.Thread.run(Thread.java:736) > org.osgi.framework.BundleException: Unresolved constraint in bundle > org.neo4j.kernel [4]: Unable to resolve 4.0: missing requirement [4.0] > package; (package=com.sun.source.tree) > at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3564) > at org.apache.felix.framework.Felix.startBundle(Felix.java:1797) > at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1192) > at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:266) > at java.lang.Thread.run(Thread.java:736) > ERROR: Bundle org.neo4j.lucene-index [5] Error starting > file:/E:/Workspaces/MyOwn/Felix/bundle/neo4j-lucene-index-1.4.M03.jar > (org.osgi.framework.BundleException: Unresolved constraint in bundle > org.neo4j.lucene-index [5]: Unable to resolve 5.0: missing requirement [5.0] > package; (package=org.apache.lucene.analysis)) > org.osgi.framework.BundleException: Unresolved constraint in bundle > org.neo4j.lucene-index [5]: Unable to resolve 5.0: missing requirement [5.0] > package; (package=org.apache.lucene.analysis) > at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3564) > at org.apache.felix.framework.Felix.startBundle(Felix.java:1797) > at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1192) > at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:266) > at java.lang.Thread.run(Thread.java:736) > ____________________________ > Welcome to Apache Felix Gogo > > Then, I typed "lb" in console to list all bundles loaded, and here's the > result: > > START LEVEL 1 > ID|State |Level|Name > 0|Active | 0|System Bundle (3.2.2) > 1|Active | 1|geronimo-jta_1.1_spec (1.1.1) > 2|Active | > 1|file:/E:/Workspaces/MyOwn/Felix/bundle/lucene-core-3.1.0.jar (0.0.0) > 3|Installed | 1|Neo4j - Graph Algorithms (1.4.0.M03) > 4|Installed | 1|Neo4j - Graph Database Kernel (1.4.0.M03) > 5|Installed | 1|Neo4j - Lucene Index (1.4.0.M03) > 6|Active | 1|Apache Felix Bundle Repository (1.6.2) > 7|Active | 1|Apache Felix Gogo Command (0.8.0) > 8|Active | 1|Apache Felix Gogo Runtime (0.8.0) > 9|Active | 1|Apache Felix Gogo Shell (0.8.0) > > > All neo4j bundles are in "Installed" state, and one more thing that it > looks like lucene-core-3.1.0.jar is not a OSGI friendly jar.... > > > On Sat, Jun 4, 2011 at 05:48, Peter Neubauer < > peter.neuba...@neotechnology.com> wrote: > >> Hi there, >> what JRE do you need to run with? Could you provide a testcase, maybe done >> with http://ops4j1.jira.com/wiki/display/paxexam/Pax+Exam so we can fix >> the >> issues? >> >> Thanks for your feedback! >> >> Cheers, >> >> /peter neubauer >> >> GTalk: neubauer.peter >> Skype peter.neubauer >> Phone +46 704 106975 >> LinkedIn http://www.linkedin.com/in/neubauer >> Twitter http://twitter.com/peterneubauer >> >> http://www.neo4j.org - Your high performance graph >> database. >> http://startupbootcamp.org/ - Öresund - Innovation happens HERE. >> http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party. >> >> >> On Fri, Jun 3, 2011 at 8:50 AM, Super Wang <wangxu...@gmail.com> wrote: >> >> > Finally, I found these in <JDK_HOME>\lib\tools.jar, this is not a part >> of >> > JRE but a part of JDK, which means neo4j can't run under OSGI with JRE >> only >> > >> > >> > On Fri, Jun 3, 2011 at 10:29, Super Wang <wangxu...@gmail.com> wrote: >> > >> > > Thanks, but I'm working on equinox OSGI environment. >> > > >> > > I found that org.neo4j.kernel requires same packages under >> com.sun.tree, >> > > com.sun.util and com.sun.javac, but my app needs to run under some >> > non-sun >> > > JRE, like openJDK or IBM jvm, there's no com.sun in these JREs.... >> > > >> > > Does this means neo4j can only run with sun JRE? >> > > >> > > >> > > >> > > On Thu, Jun 2, 2011 at 16:33, Nicolas Jouanin < >> nicolas.joua...@gmail.com >> > >wrote: >> > > >> > >> Hi, >> > >> >> > >> This page may help you : >> > >> >> > >> http://wiki.escapek.org/display/DEV/Neo4j+community+edition+installation >> > >> >> > >> >> > >> Le 2 juin 2011 à 09:30, Super Wang a écrit : >> > >> >> > >> > I've tried to expose org.neo4j.graphdb.GraphDatabaseService as a >> > service >> > >> > component directly and use a delegate class as implementation, but >> > >> failed... >> > >> > >> > >> > >> > >> > On Thu, Jun 2, 2011 at 12:34, Andreas Kollegger < >> > >> > andreas.kolleg...@neotechnology.com> wrote: >> > >> > >> > >> >> Hey, >> > >> >> >> > >> >> The Neo4j libraries should be usable within OSGi, though we're a >> bit >> > >> lax in >> > >> >> keeping on top of that. The best approach would be to use one >> bundle >> > to >> > >> >> instantiate the database and advertise the reference as a service >> for >> > >> use by >> > >> >> other bundles. >> > >> >> >> > >> >> Cheers, >> > >> >> Andreas >> > >> >> >> > >> >> On Jun 1, 2011, at 8:25 PM, Super Wang wrote: >> > >> >> >> > >> >>> Hi folks, >> > >> >>> >> > >> >>> I'm new to neo4j and I'm going to embed neo4j to my OSGI >> > >> >> environment(without >> > >> >>> Spring) as a component, so I can keep a single instance of graph >> > >> database >> > >> >>> and can make it available for all other bundles. >> > >> >>> >> > >> >>> Any ideas about how to implement this? >> > >> >>> >> > >> >>> Thank you very much. >> > >> >>> _______________________________________________ >> > >> >>> Neo4j mailing list >> > >> >>> User@lists.neo4j.org >> > >> >>> https://lists.neo4j.org/mailman/listinfo/user >> > >> >> >> > >> >> _______________________________________________ >> > >> >> Neo4j mailing list >> > >> >> User@lists.neo4j.org >> > >> >> https://lists.neo4j.org/mailman/listinfo/user >> > >> >> >> > >> > _______________________________________________ >> > >> > Neo4j mailing list >> > >> > User@lists.neo4j.org >> > >> > https://lists.neo4j.org/mailman/listinfo/user >> > >> >> > >> _______________________________________________ >> > >> Neo4j mailing list >> > >> User@lists.neo4j.org >> > >> https://lists.neo4j.org/mailman/listinfo/user >> > >> >> > > >> > > >> > _______________________________________________ >> > Neo4j mailing list >> > User@lists.neo4j.org >> > https://lists.neo4j.org/mailman/listinfo/user >> > >> _______________________________________________ >> Neo4j mailing list >> User@lists.neo4j.org >> https://lists.neo4j.org/mailman/listinfo/user >> > > _______________________________________________ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user