-
1. Re: Can't deploy Spring + JPA application on Wildfly
smarlow Jul 30, 2014 9:54 AM (in response to phosics)From your question, I'm not really clear if you are trying to have Spring manage the JPA persistence context/entity manager or the EE container. The persistence.xml is configured for EE container use I think. If you agree, you could remove the JDBC properties, such that instead of:
<properties>
<property name="hibernate.connection.driver_class" value="oracle.jdb.OracleDriver" />
<property name="hibernate.dialect" value="org.hibernate.dialect.Oracle10gDialect" />
<property name="hibernate.connection.url" value="jdbc:oracle:thin:@//dana-scan:5326/stardb" />
<property name="hibernate.connection.username" value="*****" />
<property name="hibernate.connection.password" value="*****" />
<property name="hibernate.hbm2ddl.auto" value="none" />
<property name="hibenrate.show_sql" value="true" />
<property name="javax.persistence.lock.timeout" value="0" />
</properties>
You should have:
<properties>
<property name="hibernate.dialect" value="org.hibernate.dialect.Oracle10gDialect" />
<property name="hibernate.hbm2ddl.auto" value="none" />
<property name="hibernate.show_sql" value="true" />
<property name="javax.persistence.lock.timeout" value="0" />
</properties>
-
2. Re: Can't deploy Spring + JPA application on Wildfly
smarlow Jul 30, 2014 10:32 AM (in response to smarlow)Generally, you should include more descriptions of the symptoms that you are observing. Including the configuration files, as you did, is also good but we need to see the full deployment error (if there was one).
-
3. Re: Can't deploy Spring + JPA application on Wildfly
phosics Jul 31, 2014 2:36 AM (in response to smarlow)I've updated the first post with the error message.