Hi, guys :) after upgrading to latest version (4.1.0.Beta4) i am unable to start my aplication when i try to deploy i get this error:
Code:
java.lang.ClassNotFoundException: org.neo4j.cypher.javacompat.ExecutionEngine from [Module "org.hibernate.ogm.neo4j:main" from local module loader ...
console output:
Code:
ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 10) MSC000001: Failed to start service jboss.persistenceunit."test.war#primary": org.jboss.msc.service.StartException in service jboss.persistenceunit."test.war#primary": java.lang.NoClassDefFoundError: org/neo4j/cypher/javacompat/ExecutionEngine
at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:172) [wildfly-jpa-8.0.0.Final.jar:8.0.0.Final]
at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:117) [wildfly-jpa-8.0.0.Final.jar:8.0.0.Final]
at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.8.0]
at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:474)
at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:182) [wildfly-jpa-8.0.0.Final.jar:8.0.0.Final]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0]
at java.lang.Thread.run(Thread.java:744) [rt.jar:1.8.0]
at org.jboss.threads.JBossThread.run(JBossThread.java:122)
Caused by: java.lang.NoClassDefFoundError: org/neo4j/cypher/javacompat/ExecutionEngine
at org.hibernate.ogm.datastore.neo4j.dialect.impl.Neo4jSequenceGenerator.<init>(Neo4jSequenceGenerator.java:76) [hibernate-ogm-neo4j-4.1.0.Beta4.jar:4.1.0.Beta4]
at org.hibernate.ogm.datastore.neo4j.impl.Neo4jDatastoreProvider.start(Neo4jDatastoreProvider.java:74) [hibernate-ogm-neo4j-4.1.0.Beta4.jar:4.1.0.Beta4]
at org.hibernate.service.internal.AbstractServiceRegistryImpl.startService(AbstractServiceRegistryImpl.java:301) [hibernate-core-4.3.1.Final.jar:4.3.1.Final]
at org.hibernate.ogm.service.impl.OgmSessionFactoryServiceRegistryImpl.startService(OgmSessionFactoryServiceRegistryImpl.java:61) [hibernate-ogm-core-4.1.0.Beta4.jar:4.1.0.Beta4]
at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:209) [hibernate-core-4.3.1.Final.jar:4.3.1.Final]
at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:178) [hibernate-core-4.3.1.Final.jar:4.3.1.Final]
at org.hibernate.ogm.datastore.neo4j.impl.Neo4jIntegrator.currentDialectIsNeo4j(Neo4jIntegrator.java:60) [hibernate-ogm-neo4j-4.1.0.Beta4.jar:4.1.0.Beta4]
at org.hibernate.ogm.datastore.neo4j.impl.Neo4jIntegrator.addNeo4jObserverIfRequired(Neo4jIntegrator.java:52) [hibernate-ogm-neo4j-4.1.0.Beta4.jar:4.1.0.Beta4]
at org.hibernate.ogm.datastore.neo4j.impl.Neo4jIntegrator.integrate(Neo4jIntegrator.java:38) [hibernate-ogm-neo4j-4.1.0.Beta4.jar:4.1.0.Beta4]
at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:311) [hibernate-core-4.3.1.Final.jar:4.3.1.Final]
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1857) [hibernate-core-4.3.1.Final.jar:4.3.1.Final]
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:850) [hibernate-entitymanager-4.3.1.Final.jar:4.3.1.Final]
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:843) [hibernate-entitymanager-4.3.1.Final.jar:4.3.1.Final]
at org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl.withTccl(ClassLoaderServiceImpl.java:399) [hibernate-core-4.3.1.Final.jar:4.3.1.Final]
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:842) [hibernate-entitymanager-4.3.1.Final.jar:4.3.1.Final]
at org.hibernate.jpa.HibernatePersistenceProvider.createContainerEntityManagerFactory(HibernatePersistenceProvider.java:150) [hibernate-entitymanager-4.3.1.Final.jar:4.3.1.Final]
at org.hibernate.ogm.jpa.HibernateOgmPersistence.createContainerEntityManagerFactory(HibernateOgmPersistence.java:106) [hibernate-ogm-core-4.1.0.Beta4.jar:4.1.0.Beta4]
at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.createContainerEntityManagerFactory(PersistenceUnitServiceImpl.java:318) [wildfly-jpa-8.0.0.Final.jar:8.0.0.Final]
at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.access$1100(PersistenceUnitServiceImpl.java:67) [wildfly-jpa-8.0.0.Final.jar:8.0.0.Final]
at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:167) [wildfly-jpa-8.0.0.Final.jar:8.0.0.Final]
... 8 more
Caused by: java.lang.ClassNotFoundException: org.neo4j.cypher.javacompat.ExecutionEngine from [Module "org.hibernate.ogm.neo4j:main" from local module loader @12bc6874 (finder: local module finder @de0a01f (roots: D:\_Prog\jBoss\servers\wildfly-8.0.0.Final\modules,D:\_Prog\jBoss\servers\wildfly-8.0.0.Final\modules\system\layers\base))]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:197) [jboss-modules.jar:1.3.0.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:443) [jboss-modules.jar:1.3.0.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:431) [jboss-modules.jar:1.3.0.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:373) [jboss-modules.jar:1.3.0.Final]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:118) [jboss-modules.jar:1.3.0.Final]
... 28 more
12:18:23,589 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 2) JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "test.war")]) - failure description: {"JBAS014671: Failed services" => {"jboss.persistenceunit.\"test.war#primary\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"test.war#primary\": java.lang.NoClassDefFoundError: org/neo4j/cypher/javacompat/ExecutionEngine
Caused by: java.lang.NoClassDefFoundError: org/neo4j/cypher/javacompat/ExecutionEngine
Caused by: java.lang.ClassNotFoundException: org.neo4j.cypher.javacompat.ExecutionEngine from [Module \"org.hibernate.ogm.neo4j:main\" from local module loader @12bc6874 (finder: local module finder @de0a01f (roots: D:\\_Prog\\jBoss\\servers\\wildfly-8.0.0.Final\\modules,D:\\_Prog\\jBoss\\servers\\wildfly-8.0.0.Final\\modules\\system\\layers\\base))]"}}
12:18:23,598 ERROR [org.jboss.as.server] (management-handler-thread - 2) JBAS015870: Deploy of deployment "test.war" was rolled back with the following failure message:
{"JBAS014671: Failed services" => {"jboss.persistenceunit.\"test.war#primary\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"test.war#primary\": java.lang.NoClassDefFoundError: org/neo4j/cypher/javacompat/ExecutionEngine
Caused by: java.lang.NoClassDefFoundError: org/neo4j/cypher/javacompat/ExecutionEngine
Caused by: java.lang.ClassNotFoundException: org.neo4j.cypher.javacompat.ExecutionEngine from [Module \"org.hibernate.ogm.neo4j:main\" from local module loader @12bc6874 (finder: local module finder @de0a01f (roots: D:\\_Prog\\jBoss\\servers\\wildfly-8.0.0.Final\\modules,D:\\_Prog\\jBoss\\servers\\wildfly-8.0.0.Final\\modules\\system\\layers\\base))]"}}
12:18:23,933 INFO [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015877: Stopped deployment test.war (runtime-name: test.war) in 321ms
12:18:23,936 INFO [org.jboss.as.controller] (management-handler-thread - 2) JBAS014774: Service status report
JBAS014775: New missing/unsatisfied dependencies:
service jboss.persistenceunit."test.war#primary" (missing) dependents: [service jboss.deployment.unit."test.war".POST_MODULE]
JBAS014777: Services which failed to start: service jboss.persistenceunit."test.war#primary"
My persistence.xml looks like this:
Code:
<persistence version="2.0"
xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
<persistence-unit name="primary" transaction-type="JTA">
<provider>org.hibernate.ogm.jpa.HibernateOgmPersistence</provider>
<class>org.civmmo.persistence.model.Region</class>
<class>org.civmmo.persistence.model.Civilization</class>
<class>org.civmmo.persistence.model.SocialPolicy</class>
<class>org.civmmo.persistence.model.Policy</class>
<class>org.civmmo.persistence.model.Technology</class>
<class>org.civmmo.persistence.model.City</class>
<class>org.civmmo.persistence.model.Tile</class>
<class>org.civmmo.persistence.model.TerrainType</class>
<class>org.civmmo.persistence.model.CombatModifier</class>
<class>org.civmmo.persistence.model.TerrainFeature</class>
<class>org.civmmo.persistence.model.TradeRoute</class>
<class>org.civmmo.persistence.model.River</class>
<class>org.civmmo.persistence.model.Resource</class>
<class>org.civmmo.persistence.model.Improvement</class>
<class>org.civmmo.persistence.model.Unit</class>
<class>org.civmmo.persistence.model.Promotion</class>
<class>org.civmmo.persistence.model.UnitType</class>
<class>org.civmmo.persistence.model.Action</class>
<class>org.civmmo.persistence.model.Building</class>
<properties>
<property name="hibernate.transaction.jta.platform"
value="org.hibernate.service.jta.platform.internal.JBossAppServerJtaPlatform" />
<property name="hibernate.ogm.datastore.provider" value="neo4j_embedded" />
<property name="hibernate.ogm.neo4j.database_path" value="D:\_Prog\Neo4j\_DB"/>
</properties>
</persistence-unit>
</persistence>
Is module missing a library, if so which one?
My project: https://github.com/mattysek/Civ-mmo