OK, I am getting closer. but when I try to run the app, I get errors.
On a side note, I can't get the new GraphRepository to work as aspectj is probably not run by Grails run app. But I commented them out just to see if I could get to run app.
I used the applicationContext.xml to add the two <neo4j> tagsCode:| Error 2011-11-20 18:28:58,698 [Thread-10] ERROR context.ContextLoader - Context initialization failed Message: Error creating bean with name 'org.springframework.data.neo4j.config.Neo4jConfiguration#0': Cannot resolve reference to bean 'graphDatabaseService' while setting bean property 'graphDatabaseService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'graphDatabaseService': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.neo4j.kernel.EmbeddedGraphDatabase]: Constructor threw exception; nested exception is org.neo4j.graphdb.TransactionFailureException: Could not create data source lucene[lucene] Line | Method ->> 303 | innerRun in java.util.concurrent.FutureTask$Sync - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 138 | run in java.util.concurrent.FutureTask | 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker | 908 | run in '' ^ 680 | run . . in java.lang.Thread …. …. Caused by TransactionFailureException: Could not create data source lucene[lucene] ->> 186 | registerDataSource in org.neo4j.kernel.impl.transaction.TxModule - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 213 | registerLuceneDataSource in org.neo4j.kernel.GraphDbInstance | 115 | start . in '' | 190 | <init> in org.neo4j.kernel.EmbeddedGraphDbImpl | 80 | <init> . in org.neo4j.kernel.EmbeddedGraphDatabase | 64 | <init> in '' | 303 | innerRun in java.util.concurrent.FutureTask$Sync | 138 | run in java.util.concurrent.FutureTask | 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker | 908 | run in '' ^ 680 | run . . in java.lang.Thread Caused by InvocationTargetException: null ->> 77 | create in org.neo4j.kernel.impl.transaction.XaDataSourceManager - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 180 | registerDataSource in org.neo4j.kernel.impl.transaction.TxModule | 213 | registerLuceneDataSource in org.neo4j.kernel.GraphDbInstance | 115 | start in '' | 190 | <init> . in org.neo4j.kernel.EmbeddedGraphDbImpl | 80 | <init> in org.neo4j.kernel.EmbeddedGraphDatabase | 64 | <init> . in '' | 303 | innerRun in java.util.concurrent.FutureTask$Sync | 138 | run . . in java.util.concurrent.FutureTask | 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker | 908 | run . . in '' ^ 680 | run in java.lang.Thread Caused by NoSuchMethodError: org.neo4j.kernel.impl.transaction.xaframework.XaContainer.create(Ljava/lang/String;Lorg/neo4j/kernel/impl/transaction/xaframework/XaCommandFactory;Lorg/neo4j/kernel/impl/transaction/xaframework/XaTransactionFactory;Ljava/util/Map;)Lorg/neo4j/kernel/impl/transaction/xaframework/XaContainer; ->> 126 | <init> in org.neo4j.index.lucene.LuceneDataSource - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 77 | create in org.neo4j.kernel.impl.transaction.XaDataSourceManager | 180 | registerDataSource in org.neo4j.kernel.impl.transaction.TxModule | 213 | registerLuceneDataSource in org.neo4j.kernel.GraphDbInstance | 115 | start . in '' | 190 | <init> in org.neo4j.kernel.EmbeddedGraphDbImpl | 80 | <init> . in org.neo4j.kernel.EmbeddedGraphDatabase | 64 | <init> in '' | 303 | innerRun in java.util.concurrent.FutureTask$Sync | 138 | run in java.util.concurrent.FutureTask | 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker | 908 | run in '' ^ 680 | run . . in java.lang.Thread | Error 2011-11-20 18:28:58,785 [Thread-10] ERROR context.GrailsContextLoader - Error executing bootstraps: Error creating bean with name 'org.springframework.data.neo4j.config.Neo4jConfiguration#0': Cannot resolve reference to bean 'graphDatabaseService' …. Constructor threw exception; nested exception is org.neo4j.graphdb.TransactionFailureException: Could not create data source lucene[lucene] Message: Error creating bean with name 'org.springframework.data.neo4j.config.Neo4jConfiguration#0': Cannot resolve reference to bean 'graphDatabaseService' while setting bean property 'graphDatabaseService'; nested exception is org.springframework.beans.factory.BeanCreationException: …. Constructor threw exception; nested exception is org.neo4j.graphdb.TransactionFailureException: Could not create data source lucene[lucene] Line | Method ->> 303 | innerRun in java.util.concurrent.FutureTask$Sync - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 138 | run in java.util.concurrent.FutureTask | 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker | 908 | run in '' ^ 680 | run . . in java.lang.Thread Caused by BeanCreationException: Error creating bean with name 'graphDatabaseService': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.neo4j.kernel.EmbeddedGraphDatabase]: Constructor threw exception; nested exception is org.neo4j.graphdb.TransactionFailureException: Could not create data source lucene[lucene] ->> 303 | innerRun in java.util.concurrent.FutureTask$Sync - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 138 | run in java.util.concurrent.FutureTask | 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker | 908 | run in '' ^ 680 | run . . in java.lang.Thread Caused by BeanInstantiationException: Could not instantiate bean class [org.neo4j.kernel.EmbeddedGraphDatabase]: Constructor threw exception; nested exception is org.neo4j.graphdb.TransactionFailureException: Could not create data source lucene[lucene] ->> 303 | innerRun in java.util.concurrent.FutureTask$Sync - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 138 | run in java.util.concurrent.FutureTask | 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker | 908 | run in '' ^ 680 | run . . in java.lang.Thread Caused by TransactionFailureException: Could not create data source lucene[lucene] ->> 186 | registerDataSource in org.neo4j.kernel.impl.transaction.TxModule - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 213 | registerLuceneDataSource in org.neo4j.kernel.GraphDbInstance | 115 | start . in '' | 190 | <init> in org.neo4j.kernel.EmbeddedGraphDbImpl | 80 | <init> . in org.neo4j.kernel.EmbeddedGraphDatabase | 64 | <init> in '' | 303 | innerRun in java.util.concurrent.FutureTask$Sync | 138 | run in java.util.concurrent.FutureTask | 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker | 908 | run in '' ^ 680 | run . . in java.lang.Thread Caused by InvocationTargetException: null ->> 77 | create in org.neo4j.kernel.impl.transaction.XaDataSourceManager - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 180 | registerDataSource in org.neo4j.kernel.impl.transaction.TxModule | 213 | registerLuceneDataSource in org.neo4j.kernel.GraphDbInstance | 115 | start in '' | 190 | <init> . in org.neo4j.kernel.EmbeddedGraphDbImpl | 80 | <init> in org.neo4j.kernel.EmbeddedGraphDatabase | 64 | <init> . in '' | 303 | innerRun in java.util.concurrent.FutureTask$Sync | 138 | run . . in java.util.concurrent.FutureTask | 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker | 908 | run . . in '' ^ 680 | run in java.lang.Thread Caused by NoSuchMethodError: org.neo4j.kernel.impl.transaction.xaframework.XaContainer.create(Ljava/lang/String;Lorg/neo4j/kernel/impl/transaction/xaframework/XaCommandFactory;Lorg/neo4j/kernel/impl/transaction/xaframework/XaTransactionFactory;Ljava/util/Map;)Lorg/neo4j/kernel/impl/transaction/xaframework/XaContainer; ->> 126 | <init> in org.neo4j.index.lucene.LuceneDataSource - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 77 | create in org.neo4j.kernel.impl.transaction.XaDataSourceManager | 180 | registerDataSource in org.neo4j.kernel.impl.transaction.TxModule | 213 | registerLuceneDataSource in org.neo4j.kernel.GraphDbInstance | 115 | start . in '' | 190 | <init> in org.neo4j.kernel.EmbeddedGraphDbImpl | 80 | <init> . in org.neo4j.kernel.EmbeddedGraphDatabase | 64 | <init> in '' | 303 | innerRun in java.util.concurrent.FutureTask$Sync | 138 | run in java.util.concurrent.FutureTask | 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker | 908 | run in '' ^ 680 | run . . in java.lang.Thread Process finished with exit code 1
ThanksCode:<context:spring-configured/> <neo4j:config storeDirectory="target/config"/> <neo4j:repositories base-package="com.perfectworldprogramming.eventgate.spring.data.repository"/>
Mark


Reply With Quote
