Help needed - Unable to deploy on wildfly 8.1.0.Final
koganm Oct 7, 2014 9:54 AMHi All,
Firstly, I hope that I am posting in the correct section of the forum.
I need urgent help with an error i have while trying to deploy my project on Wildfly and since I am a total newbie to jboss, I have no idea what to do next. Below are the relevant info.
I am using IntelliJ for my development and trying to deploy using maven inside the ear folder.
ERROR:
[[0m^[[31m11:34:45,911 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 53) MSC000001: Failed to start service jboss.persistenceunit."ear-1.0.ear#RDBMS": org.jboss.msc.service.StartException in service jboss.persistenceunit."ear-1.0.ear#RDBMS": javax.persistence.PersistenceException: [PersistenceUnit: RDBMS] Unable to build Hibernate SessionFactory
at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:172) [wildfly-jpa-8.1.0.Final.jar:8.1.0.Final]
at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:117) [wildfly-jpa-8.1.0.Final.jar:8.1.0.Final]
at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.7.0_60]
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.1.0.Final.jar:8.1.0.Final]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_60]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_60]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_60]
at org.jboss.threads.JBossThread.run(JBossThread.java:122)
Caused by: javax.persistence.PersistenceException: [PersistenceUnit: RDBMS] Unable to build Hibernate SessionFactory
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.persistenceException(EntityManagerFactoryBuilderImpl.java:1225) [hibernate-entitymanager-4.3.5.Final.jar:4.3.5.Final]
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.access$600(EntityManagerFactoryBuilderImpl.java:119) [hibernate-entitymanager-4.3.5.Final.jar:4.3.5.Final]
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:853) [hibernate-entitymanager-4.3.5.Final.jar:4.3.5.Final]
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:843) [hibernate-entitymanager-4.3.5.Final.jar:4.3.5.Final]
at org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl.withTccl(ClassLoaderServiceImpl.java:397) [hibernate-core-4.3.5.Final.jar:4.3.5.Final]
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:842) [hibernate-entitymanager-4.3.5.Final.jar:4.3.5.Final]
at org.jboss.as.jpa.hibernate4.TwoPhaseBootstrapImpl.build(TwoPhaseBootstrapImpl.java:44) [jipijapa-hibernate4-3-1.0.1.Final.jar:]
at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:154) [wildfly-jpa-8.1.0.Final.jar:8.1.0.Final]
... 8 more
Caused by: org.hibernate.MappingException: Repeated column in mapping for entity: com.net1.netswitch.database.KeyGroup column: childKeyCheckValue (should be mapped with insert="false" update="false")
at org.hibernate.mapping.PersistentClass.checkColumnDuplication(PersistentClass.java:709) [hibernate-core-4.3.5.Final.jar:4.3.5.Final]
at org.hibernate.mapping.PersistentClass.checkPropertyColumnDuplication(PersistentClass.java:731) [hibernate-core-4.3.5.Final.jar:4.3.5.Final]
at org.hibernate.mapping.PersistentClass.checkColumnDuplication(PersistentClass.java:753) [hibernate-core-4.3.5.Final.jar:4.3.5.Final]
at org.hibernate.mapping.PersistentClass.validate(PersistentClass.java:506) [hibernate-core-4.3.5.Final.jar:4.3.5.Final]
at org.hibernate.mapping.RootClass.validate(RootClass.java:270) [hibernate-core-4.3.5.Final.jar:4.3.5.Final]
at org.hibernate.cfg.Configuration.validate(Configuration.java:1358) [hibernate-core-4.3.5.Final.jar:4.3.5.Final]
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1849) [hibernate-core-4.3.5.Final.jar:4.3.5.Final]
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:850) [hibernate-entitymanager-4.3.5.Final.jar:4.3.5.Final]
... 13 more
PERSISTENCE.XML (section that supposedly has an error according to the above error)
<persistence-unit name="RDBMS" transaction-type="RESOURCE_LOCAL">
<provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
<class>com.net1.netswitch.database.KeyGroup</class>
<class>com.net1.netswitch.database.Channels</class>
<class>com.net1.netswitch.database.Bin</class>
<class>com.net1.netswitch.database.ExternalResponseCodes</class>
<class>com.net1.netswitch.database.InternalResponseCodes</class>
<class>com.net1.netswitch.database.InternalExternalResponseCodeMap</class>
<class>com.net1.netswitch.database.StatusClient</class>
<class>com.net1.netswitch.database.StatusStandby</class>
<class>com.net1.netswitch.database.StatusUnit</class>
<class>com.net1.netswitch.database.StatusUnitClientLinks</class>
<class>com.net1.netswitch.database.StatusUnitType</class>
<class>com.net1.netswitch.database.Transaction</class>
<class>com.net1.netswitch.database.MastercardSmsTransaction</class>
<class>com.net1.netswitch.database.BankservATMTransaction</class>
<class>com.net1.netswitch.database.ATMBase24Transaction</class>
<class>com.net1.netswitch.database.CMFTransaction</class>
<class>com.net1.netswitch.database.Net1AtmTransaction</class>
<class>com.net1.netswitch.database.Mcc</class>
<class>com.net1.netswitch.database.ExceptionEvents</class>
<class>com.net1.netswitch.database.NotifyGroups</class>
<class>com.net1.netswitch.database.NotifyUsers</class>
<class>com.net1.netswitch.database.NotifyStatusLinks</class>
<class>com.net1.netswitch.database.NotifyGroupUserLinks</class>
<properties>
<property name="javax.persistence.jdbc.driver" value="com.microsoft.sqlserver.jdbc.SQLServerDriver" />
<property name="javax.persistence.jdbc.url" value="jdbc:sqlserver://10.1.1.31;databaseName=ACQUIRER_SETTLEMENT" />
<!-- nedbankserver.net1.com
com.mysql.jdbc.Driver
-->
<property name="javax.persistence.jdbc.user" value="ATMDEV" />
<property name="javax.persistence.jdbc.password" value="ATMDEV01@" />
<property name="hbm2ddl.auto" value="none" />
<property name="hibernate.dialect" value="org.hibernate.dialect.SQLServerDialect"/>
<property name="hibernate.connection.url" value="jdbc:sqlserver://10.1.1.31;databaseName=ACQUIRER_SETTLEMENT"/>
<property name="hibernate.connection.driver_class" value="com.microsoft.sqlserver.jdbc.SQLServerDriver"/>
<property name="hibernate.connection.username" value="ATMDEV"/>
<property name="hibernate.connection.password" value="ATMDEV01@"/>
<property name="hibernate.c3p0.min_size" value="5"/>
<property name="hibernate.c3p0.max_size" value="32"/>
<property name="hibernate.c3p0.timeout" value="15"/>
<property name="hibernate.c3p0.max_statements" value="10"/>
<property name="hibernate.c3p0.idle_test_period" value="300"/>
<property name="hibernate.c3p0.unreturnedConnectionTimeout" value="95"/>
<property name="hibernate.c3p0.debugUnreturnedConnectionStackTraces" value="true"/>
<property name="hibernate.show_sql" value ="true"/>
</properties>
</persistence-unit>
Please advise if there is any other info needed.
Regards
Kogan