Guys, I have tracked down the issues now to the actual thing. https://github.com/neo4j/neo4j-osgi-examples/blob/master/src/test/java/org/neo4j/examples/osgi/OSGiTest.javanow wraps lucene, and loads the Activator that tries to get and index, see https://github.com/neo4j/neo4j-osgi-examples/blob/master/src/test/java/org/neo4j/examples/osgi/Neo4jActivator.java.
I now get [Framework Event Dispatcher] DEBUG BuildByTinyBundlestinybundles7256886623461679180UID - FrameworkEvent ERROR org.osgi.framework.BundleException: Exception in org.neo4j.examples.osgi.Neo4jActivator.start() of bundle BuildByTinyBundlestinybundles7256886623461679180UID. at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:806) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:755) at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:370) at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:374) at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1067) at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:561) at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:546) at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:459) at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243) at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:440) at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:227) at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:337) Caused by: java.lang.IllegalArgumentException: No index provider 'lucene' found at org.neo4j.kernel.IndexManagerImpl.getIndexProvider(IndexManagerImpl.java:69) at org.neo4j.kernel.IndexManagerImpl.findIndexConfig(IndexManagerImpl.java:109) at org.neo4j.kernel.IndexManagerImpl.getOrCreateIndexConfig(IndexManagerImpl.java:171) at org.neo4j.kernel.IndexManagerImpl.forNodes(IndexManagerImpl.java:242) at org.neo4j.examples.osgi.Neo4jActivator.start(Neo4jActivator.java:43) at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:783) at java.security.AccessController.doPrivileged(Native Method) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:774) ... 11 more which is exactly the kind of thing we are expecting. However, it seems the the ServiceLoader approach is not really compatible with OSGi, see http://jbossosgi.blogspot.com/2010/01/suns-serviceloader-and-how-it-relates.htmlfor details. Eelco, did you solve this problem in some nice way so I can adjust the tests? 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 Wed, Jun 8, 2011 at 2:01 PM, Super Wang <wangxu...@gmail.com> wrote: > OK, I will try this later, thank you very much! > > On Wed, Jun 8, 2011 at 19:48, Peter Neubauer <neubauer.pe...@gmail.com > >wrote: > > > Yes. > > You need the latest kernel package which will be online in some hour, and > > git pull again in this project :-) > > > > Sent from my phone. > > On Jun 8, 2011 1:45 PM, "Super Wang" <wangxu...@gmail.com> wrote: > > > Thanks Peter, and here's my error log: > > > > > > [INFO] Surefire report directory: > > > D:\git\neo4j-osgi-examples\target\surefire-reports > > > > > > ------------------------------------------------------- > > > T E S T S > > > ------------------------------------------------------- > > > Running org.neo4j.examples.osgi.OSGiTest > > > 516 [main] INFO org.ops4j.pax.exam.spi.DefaultExamSystem - Pax Exam > > System > > > (Version: 2.1.0) created. > > > 2011-6-8 19:41:34 org.ops4j.pax.url.mvn.internal.AetherBasedResolver > > resolve > > > INFO: Resolved (org.ops4j.pax.exam:pax-exam-container-rbc:jar:2.1.0) as > > > > > > > > D:\Software\Development\SDKandLibrary\maven\repository\org\ops4j\pax\exam\pax > > > exam-container-rbc\2.1.0\pax-exam-container-rbc-2.1.0.jar > > > 2011-6-8 19:41:41 org.ops4j.pax.url.mvn.internal.AetherBasedResolver > > resolve > > > INFO: Resolved (org.ops4j.pax.exam:pax-exam-extender-service:jar:2.1.0) > > as > > > > > > D:\Software\Development\SDKandLibrary\maven\repository\org\ops4j\pax\exam\ > > > ax-exam-extender-service\2.1.0\pax-exam-extender-service-2.1.0.jar > > > 2011-6-8 19:41:41 org.ops4j.pax.url.mvn.internal.AetherBasedResolver > > resolve > > > INFO: Resolved (org.osgi:org.osgi.compendium:jar:4.2.0) as > > > > > > > > D:\Software\Development\SDKandLibrary\maven\repository\org\osgi\org.osgi.compendium\4.2.0\ > > > rg.osgi.compendium-4.2.0.jar > > > 2011-6-8 19:41:46 org.ops4j.pax.url.mvn.internal.AetherBasedResolver > > resolve > > > INFO: Resolved (org.ops4j.pax.logging:pax-logging-api:jar:1.6.2) as > > > > > > > > D:\Software\Development\SDKandLibrary\maven\repository\org\ops4j\pax\logging\pax- > > > ogging-api\1.6.2\pax-logging-api-1.6.2.jar > > > 2011-6-8 19:42:01 org.ops4j.pax.url.mvn.internal.AetherBasedResolver > > resolve > > > INFO: Resolved (org.ops4j.pax.logging:pax-logging-service:jar:1.6.2) as > > > > > > > > D:\Software\Development\SDKandLibrary\maven\repository\org\ops4j\pax\logging\ > > > ax-logging-service\1.6.2\pax-logging-service-1.6.2.jar > > > 2011-6-8 19:42:25 org.ops4j.pax.url.mvn.internal.AetherBasedResolver > > resolve > > > INFO: Resolved > (org.apache.geronimo.specs:geronimo-jta_1.1_spec:jar:1.1) > > as > > > > D:\Software\Development\SDKandLibrary\maven\repository\org\apache\geronim > > > \specs\geronimo-jta_1.1_spec\1.1\geronimo-jta_1.1_spec-1.1.jar > > > 2011-6-8 19:42:46 org.ops4j.pax.url.mvn.internal.AetherBasedResolver > > resolve > > > INFO: Resolved (org.neo4j:neo4j-kernel:jar:1.4.M03) as > > > > > > > > D:\Software\Development\SDKandLibrary\maven\repository\org\neo4j\neo4j-kernel\1.4.M03\neo4j-ke > > > nel-1.4.M03.jar > > > [org.ops4j.pax.exam.rbc.internal.Activator] : Name, port or host is > null. > > So > > > this RBC remains inactive. > > > > > > > > org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.logging.internal.Activator] > > > : Enabling SLF4J API support. > > > > > > > > org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.logging.internal.Activator] > > > : Enabling Jakarta Commons Logging API support. > > > > > > > > org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.logging.internal.Activator] > > > : Enabling Log4J API support. > > > > > > > > org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.logging.internal.Activator] > > > : Enabling Avalon Logger API support. > > > > > > > > org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.logging.internal.Activator] > > > : Enabling JULI Logger API support. > > > ERROR: Bundle org.neo4j.kernel [7] Error starting > > > mvn:org.neo4j/neo4j-kernel/1.4.M03 (org.osgi.framework.BundleException: > > > Unresolved constraint in bu > > > dle org.neo4j.kernel [7]: Unable to resolve 7.0: missing requirement > > [7.0] > > > package; (package=com.sun.source.tree)) > > > [FelixDispatchQueue] DEBUG org.ops4j.pax.logging.pax-logging-service - > > > BundleEvent STARTED > > > org.osgi.framework.BundleException: Unresolved constraint in bundle > > > org.neo4j.kernel [7]: Unable to resolve 7.0: missing requirement [7.0] > > > package; ( > > > ackage=com.sun.source.tree) > > > at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3518) > > > at org.apache.felix.framework.Felix.startBundle(Felix.java:1750) > > > [FelixDispatchQueue] DEBUG [bundle@6] - BundleEvent RESOLVED > > > [FelixDispatchQueue] DEBUG [bundle@6] - BundleEvent STARTED > > > [FelixDispatchQueue] DEBUG org.neo4j.kernel - FrameworkEvent ERROR > > > org.osgi.framework.BundleException: Unresolved constraint in bundle > > > org.neo4j.kernel [7]: Unable to resolve 7.0: missing requirement [7.0] > > > package; ( > > > ackage=com.sun.source.tree) > > > at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3518) > > > at org.apache.felix.framework.Felix.startBundle(Felix.java:1750) > > > at > > > org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1179) > > > at > > > org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264) > > > at java.lang.Thread.run(Thread.java:736) > > > [FelixDispatchQueue] DEBUG org.apache.felix.framework - FrameworkEvent > > > STARTLEVEL CHANGED > > > at > > > org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1179) > > > at > > > org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264) > > > at java.lang.Thread.run(Thread.java:736) > > > [FelixDispatchQueue] DEBUG > > > > org.ops4j.pax.exam.spi.probesupport.intern.DefaultResourceWriter_3350335 > > - > > > BundleEvent INSTALLED > > > [FelixDispatchQueue] DEBUG > > > > org.ops4j.pax.exam.spi.probesupport.intern.DefaultResourceWriter_3350335 > > - > > > BundleEvent RESOLVED > > > [main] DEBUG org.ops4j.pax.exam.raw.extender.intern.Probe - Test > > > PaxExam-Executable to be in > > > PaxExam-dbf64ec7-cd20-4ef2-b168-67003529bb2e,PaxExam-58c > > > 8c7d-3f19-4037-a869-cf6ca9c09601, > > > [main] DEBUG org.ops4j.pax.exam.raw.extender.intern.Probe - Test > > > PaxExam-dbf64ec7-cd20-4ef2-b168-67003529bb2e to be in > > > PaxExam-dbf64ec7-cd20-4ef2-b16 > > > -67003529bb2e,PaxExam-58cb8c7d-3f19-4037-a869-cf6ca9c09601, > > > [main] DEBUG org.ops4j.pax.exam.raw.extender.intern.Probe - Registering > > > Service: org.ops4j.pax.exam.ProbeInvoker with > > > Probe-Signature="PaxExam-dbf64e > > > 7-cd20-4ef2-b168-67003529bb2e" and > > > expression="org.ops4j.pax.exam.testforge.SingleClassProvider;probe" > > > [main] DEBUG org.ops4j.pax.exam.raw.extender.intern.Probe - Test > > > PaxExam-58cb8c7d-3f19-4037-a869-cf6ca9c09601 to be in > > > PaxExam-dbf64ec7-cd20-4ef2-b16 > > > -67003529bb2e,PaxExam-58cb8c7d-3f19-4037-a869-cf6ca9c09601, > > > [main] DEBUG org.ops4j.pax.exam.raw.extender.intern.Probe - Registering > > > Service: org.ops4j.pax.exam.ProbeInvoker with > > > Probe-Signature="PaxExam-58cb8c > > > d-3f19-4037-a869-cf6ca9c09601" and > > > expression="org.ops4j.pax.exam.testforge.WaitForService;probe" > > > [main] DEBUG > > > > org.ops4j.pax.exam.spi.probesupport.intern.DefaultResourceWriter_3350335 > > - > > > ServiceEvent REGISTERED > > > [main] DEBUG > > > > org.ops4j.pax.exam.spi.probesupport.intern.DefaultResourceWriter_3350335 > > - > > > ServiceEvent REGISTERED > > > [FelixDispatchQueue] DEBUG > > > > org.ops4j.pax.exam.spi.probesupport.intern.DefaultResourceWriter_3350335 > > - > > > BundleEvent STARTED > > > [main] INFO org.ops4j.pax.url.mvn.internal.AetherBasedResolver - > Resolved > > > (org.ops4j.pax.exam:pax-exam-container-rbc:jar:2.1.0) as > > D:\Software\Develo > > > > > > > > ment\SDKandLibrary\maven\repository\org\ops4j\pax\exam\pax-exam-container-rbc\2.1.0\pax-exam-container-rbc-2.1.0.jar > > > [main] INFO org.ops4j.pax.url.mvn.internal.AetherBasedResolver - > Resolved > > > (org.ops4j.pax.exam:pax-exam-extender-service:jar:2.1.0) as > > D:\Software\Dev > > > > > > > > lopment\SDKandLibrary\maven\repository\org\ops4j\pax\exam\pax-exam-extender-service\2.1.0\pax-exam-extender-service-2.1.0.jar > > > [main] INFO org.ops4j.pax.url.mvn.internal.AetherBasedResolver - > Resolved > > > (org.osgi:org.osgi.compendium:jar:4.2.0) as > > D:\Software\Development\SDKandL > > > > > > > > brary\maven\repository\org\osgi\org.osgi.compendium\4.2.0\org.osgi.compendium-4.2.0.jar > > > [main] INFO org.ops4j.pax.url.mvn.internal.AetherBasedResolver - > Resolved > > > (org.ops4j.pax.logging:pax-logging-api:jar:1.6.2) as > > D:\Software\Developmen > > > > > > > > \SDKandLibrary\maven\repository\org\ops4j\pax\logging\pax-logging-api\1.6.2\pax-logging-api-1.6.2.jar > > > [main] INFO org.ops4j.pax.url.mvn.internal.AetherBasedResolver - > Resolved > > > (org.ops4j.pax.logging:pax-logging-service:jar:1.6.2) as > > D:\Software\Develo > > > > > > > > ment\SDKandLibrary\maven\repository\org\ops4j\pax\logging\pax-logging-service\1.6.2\pax-logging-service-1.6.2.jar > > > [main] INFO org.ops4j.pax.url.mvn.internal.AetherBasedResolver - > Resolved > > > (org.apache.geronimo.specs:geronimo-jta_1.1_spec:jar:1.1) as > > D:\Software\De > > > > > > > > elopment\SDKandLibrary\maven\repository\org\apache\geronimo\specs\geronimo-jta_1.1_spec\1.1\geronimo-jta_1.1_spec-1.1.jar > > > [main] INFO org.ops4j.pax.url.mvn.internal.AetherBasedResolver - > Resolved > > > (org.neo4j:neo4j-kernel:jar:1.4.M03) as > > D:\Software\Development\SDKandLibra > > > > > > y\maven\repository\org\neo4j\neo4j-kernel\1.4.M03\neo4j-kernel-1.4.M03.jar > > > [org.ops4j.pax.exam.rbc.internal.Activator] : Name, port or host is > null. > > So > > > this RBC remains inactive. > > > > > > > > org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.logging.internal.Activator] > > > : Enabling SLF4J API support. > > > > > > > > org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.logging.internal.Activator] > > > : Enabling Jakarta Commons Logging API support. > > > > > > > > org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.logging.internal.Activator] > > > : Enabling Log4J API support. > > > > > > > > org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.logging.internal.Activator] > > > : Enabling Avalon Logger API support. > > > > > > > > org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.logging.internal.Activator] > > > : Enabling JULI Logger API support. > > > [Framework Event Dispatcher] DEBUG > > org.ops4j.pax.logging.pax-logging-service > > > - BundleEvent STARTED > > > [Framework Event Dispatcher] DEBUG [bundle@6] - BundleEvent STARTED > > > [Framework Event Dispatcher] DEBUG org.neo4j.kernel - FrameworkEvent > > ERROR > > > org.osgi.framework.BundleException: The bundle > > "org.neo4j.kernel_1.4.0.M03 > > > [7]" could not be resolved. Reason: Missing Constraint: Import-Package: > > co > > > .sun.source.tree; version="0.0.0" > > > at > > > > > > > > org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolverError(AbstractBundle.java:1317) > > > at > > > > > > > > org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolutionFailureException(AbstractBundle.java:1301) > > > at > > > > > > > > org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:319) > > > at > > > > > > > > org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:374) > > > at > > > > > > > > org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1067) > > > at > > > > > > > > org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:561) > > > at > > > > > > > > org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:546) > > > at > > > > > > > > org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:459) > > > at > > > > > > > > org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243) > > > at > > > > > > > > org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:440) > > > at > > > > > > > > org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:227) > > > at > > > > > > > > org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:337) > > > [Framework Event Dispatcher] DEBUG org.eclipse.osgi - FrameworkEvent > > > STARTLEVEL CHANGED > > > [Framework Event Dispatcher] DEBUG > > > > org.ops4j.pax.exam.spi.probesupport.intern.DefaultResourceWriter_3350335 > > - > > > BundleEvent INSTALLED > > > [main] DEBUG org.ops4j.pax.exam.raw.extender.intern.Probe - Test > > > PaxExam-Executable to be in > > > PaxExam-dbf64ec7-cd20-4ef2-b168-67003529bb2e,PaxExam-58c > > > 8c7d-3f19-4037-a869-cf6ca9c09601, > > > [main] DEBUG org.ops4j.pax.exam.raw.extender.intern.Probe - Test > > > PaxExam-dbf64ec7-cd20-4ef2-b168-67003529bb2e to be in > > > PaxExam-dbf64ec7-cd20-4ef2-b16 > > > -67003529bb2e,PaxExam-58cb8c7d-3f19-4037-a869-cf6ca9c09601, > > > [main] DEBUG org.ops4j.pax.exam.raw.extender.intern.Probe - Registering > > > Service: org.ops4j.pax.exam.ProbeInvoker with > > > Probe-Signature="PaxExam-dbf64e > > > 7-cd20-4ef2-b168-67003529bb2e" and > > > expression="org.ops4j.pax.exam.testforge.SingleClassProvider;probe" > > > [main] DEBUG org.ops4j.pax.exam.raw.extender.intern.Probe - Test > > > PaxExam-58cb8c7d-3f19-4037-a869-cf6ca9c09601 to be in > > > PaxExam-dbf64ec7-cd20-4ef2-b16 > > > -67003529bb2e,PaxExam-58cb8c7d-3f19-4037-a869-cf6ca9c09601, > > > [main] DEBUG org.ops4j.pax.exam.raw.extender.intern.Probe - Registering > > > Service: org.ops4j.pax.exam.ProbeInvoker with > > > Probe-Signature="PaxExam-58cb8c > > > d-3f19-4037-a869-cf6ca9c09601" and > > > expression="org.ops4j.pax.exam.testforge.WaitForService;probe" > > > [Framework Event Dispatcher] DEBUG > > > > org.ops4j.pax.exam.spi.probesupport.intern.DefaultResourceWriter_3350335 > > - > > > BundleEvent RESOLVED > > > [main] DEBUG > > > > org.ops4j.pax.exam.spi.probesupport.intern.DefaultResourceWriter_3350335 > > - > > > ServiceEvent REGISTERED > > > [main] DEBUG > > > > org.ops4j.pax.exam.spi.probesupport.intern.DefaultResourceWriter_3350335 > > - > > > ServiceEvent REGISTERED > > > [Framework Event Dispatcher] DEBUG > > > > org.ops4j.pax.exam.spi.probesupport.intern.DefaultResourceWriter_3350335 > > - > > > BundleEvent STARTED > > > [FelixDispatchQueue] DEBUG org.neo4j.kernel - FrameworkEvent ERROR > > > org.osgi.framework.BundleException: Unresolved constraint in bundle > > > org.neo4j.kernel [7]: Unable to resolve 7.0: missing requirement [7.0] > > > package; ( > > > ackage=com.sun.source.tree) > > > at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3518) > > > at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1625) > > > at > > > org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:909) > > > at > > > > > > > > org.ops4j.pax.exam.testforge.SingleClassProvider.findSafe(SingleClassProvider.java:84) > > > at > > > > > > > > org.ops4j.pax.exam.testforge.SingleClassProvider.probe(SingleClassProvider.java:56) > > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > > at > > > > > > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60) > > > at > > > > > > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) > > > at java.lang.reflect.Method.invoke(Method.java:611) > > > at > > > > > > > > org.ops4j.pax.exam.raw.extender.intern.ProbeInvokerImpl.injectContextAndInvoke(ProbeInvokerImpl.java:112) > > > at > > > > > > > > org.ops4j.pax.exam.raw.extender.intern.ProbeInvokerImpl.findAndInvoke(ProbeInvokerImpl.java:71) > > > at > > > > > > > > org.ops4j.pax.exam.raw.extender.intern.ProbeInvokerImpl.call(ProbeInvokerImpl.java:58) > > > at > > > > > > > > org.ops4j.pax.exam.nat.internal.NativeTestContainer.call(NativeTestContainer.java:82) > > > at > > > > > > > > org.ops4j.pax.exam.spi.reactors.EagerSingleStagedReactor.invoke(EagerSingleStagedReactor.java:86) > > > at org.ops4j.pax.exam.player.Player.play(Player.java:111) > > > at org.ops4j.pax.exam.player.Player.play(Player.java:98) > > > at org.neo4j.examples.osgi.OSGiTest.lessonTest(OSGiTest.java:39) > > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > > at > > > > > > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60) > > > at > > > > > > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) > > > at java.lang.reflect.Method.invoke(Method.java:611) > > > at > > > > > > > > org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) > > > at > > > > > > > > org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) > > > at > > > > > > > > org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) > > > at > > > > > > > > org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) > > > at > > > > > > > > org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79) > > > at > > > > > > > > org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71) > > > at > > > > > > > > org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49) > > > at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) > > > at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) > > > at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) > > > at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) > > > at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) > > > at org.junit.runners.ParentRunner.run(ParentRunner.java:236) > > > at > > > > > > > > org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59) > > > at > > > > > > > > org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:120) > > > at > > > > > > > > org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:103) > > > at org.apache.maven.surefire.Surefire.run(Surefire.java:169) > > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > > at > > > > > > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60) > > > at > > > > > > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) > > > at java.lang.reflect.Method.invoke(Method.java:611) > > > at > > > > > > > > org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350) > > > at > > > > > > > > org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021) > > > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 82.828 > > sec > > > > > > Results : > > > > > > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0 > > > > > > [INFO] > > > > ------------------------------------------------------------------------ > > > [INFO] BUILD SUCCESS > > > [INFO] > > > > ------------------------------------------------------------------------ > > > [INFO] Total time: 9:15.266s > > > [INFO] Finished at: Wed Jun 08 19:42:49 CST 2011 > > > [INFO] Final Memory: 20M/40M > > > [INFO] > > > > ------------------------------------------------------------------------ > > > > > > On Wed, Jun 8, 2011 at 18:11, Peter Neubauer < > > > peter.neuba...@neotechnology.com> wrote: > > > > > >> Super, > > >> I have created a test case that exhibits this error. Git clone > > >> https://github.com/neo4j/neo4j-osgi-examples and do > > >> > > >> mvn test > > >> > > >> And you should see the error output. Let's work together on this in > > order > > >> to > > >> solve it, and then include it in the manual! > > >> > > >> 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 Sat, Jun 4, 2011 at 4:08 AM, 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 > > >> > > > >> > > > >> _______________________________________________ > > >> 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