SDG is using bundlor to generate the MANIFEST.MF file.I already fixed the MANIFEST and the spring data neo4j bundle can now be resolved.
But when the spring application context is loaded, the class "org.springframework.data.graph.neo4j.config.Neo4jConfiguration" cannot be found during bean postprocessing and aspectj magic (see stacktrace below). The class is available and exported. I checked that with clhas and clexport on the Virgo console. Does maybe the kernel space of Virgo has to to know the spring data neo4j bundle, because this aspectj "enhancements" are performed there? Best regards James [2011-05-12 16:44:23.865] region-dm-14 <AG0000E> Application context creation failure for bundle 'com.example.neo4j.domain' version '0.0.1.BUILD-SNAPSHOT'. java.lang.IllegalStateException: Cannot load configuration class: org.springframework.data.graph.neo4j.config.Neo4jConfiguration at org.springframework.context.annotation.ConfigurationClassPostProcessor.enhanceConfigurationClasses(ConfigurationClassPostProcessor.java:246) at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanFactory(ConfigurationClassPostProcessor.java:160) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.invokeBeanFactoryPostProcessors(AbstractDelegatedExecutionApplicationContext.java:479) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.invokeBeanFactoryPostProcessors(AbstractDelegatedExecutionApplicationContext.java:467) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.invokeBeanFactoryPostProcessors(AbstractDelegatedExecutionApplicationContext.java:395) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$3.run(AbstractDelegatedExecutionApplicationContext.java:281) at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.startRefresh(AbstractDelegatedExecutionApplicationContext.java:247) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:214) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:169) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175) at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:716) at org.eclipse.virgo.kernel.agent.dm.ContextPropagatingTaskExecutor$2.run(ContextPropagatingTaskExecutor.java:95) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) 2011/5/13 Nicolas Jouanin <nicolas.joua...@gmail.com> > > Well, at the minimum, it's only a question of adding some extra headers > (Bundle-Symbolic, Export-Package; ...) in the package MANIFEST and this can > be done automatically using the maven-bundle-plugin. > You can have a look at Neo4j pom file or this second article : > http://wiki.escapek.org/display/DEV/Create+OSGi+bundle+from+regular+jar+archive > > > > 2011/5/13 Michael Hunger <michael.hun...@neotechnology.com> > > > The issue is about Spring Data Graph not being correctly packaged as OSGi > > bundle / compatible jar. > > > > And I have neither the knowledge nor the resources at the moment to fix > > that. > > > > So if any one of you can help out with that, this would be most welcome. > > > > Thanks > > > > Michael > > > > Am 13.05.2011 um 11:42 schrieb Nicolas Jouanin: > > > > > Hi, > > > > > > I've written an article [1] showing how to run neo4j embedded database > > > inside an OSGi container. Starting from that I think you can create a > > bundle > > > which uses this database to create the appropriate Spring data > > > configuration. I suppose that spring-data-graph is packaged as a OSGi > > > compatible jar, so using spring-dm too should do it. > > > > > > > > > [1] > > http://wiki.escapek.org/display/DEV/Neo4j+community+edition+installation > > > > > > 2011/5/13 Michael Hunger <michael.hun...@neotechnology.com> > > > > > >> I'm no expert in OSGi so I did just the minimal thing, adding bundlor > > >> information to the maven build. This is obviously not successful enough. > > >> > > >> So I would be very happy I someone would pull spring data graph put in > > the > > >> correct OSGi information and send me a pull request. > > >> > > >> Cheers > > >> > > >> Michael > > >> > > >> Am 13.05.2011 um 11:26 schrieb Jean-Pierre Bergamin: > > >> > > >>> Dear neo4j community > > >>> > > >>> I'm so free to cross post a question to this list that I already posted > > >> in > > >>> the spring forum ( > > >>> > > >> > > http://forum.springsource.org/showthread.php?109267-Spring-Data-Graph-in-OSGi-environment > > >> ), > > >>> since most of the SDG experts probably are subscribed to this list. ;-) > > >>> Could anyone get spring data graph successfully up and running in an > > OSGi > > >>> container? > > >>> > > >>> > > >>> Best regards, > > >>> James > > >>> _______________________________________________ > > >>> 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