-
15. Re: JBoss 5.1.0.GA, JPA 2.0, and EClipseLink 2.0
dghighfill Jan 19, 2010 8:13 AM (in response to jaikiran)We've found the solution. I've got some code to clean up and then I'll post it here. There were a number of configuration files, a specialized session loader, and removing the persistence implementation from JBoss's install directory. Stay tuned... -
16. Re: JBoss 5.1.0.GA, JPA 2.0, and EClipseLink 2.0
mieleton Feb 25, 2010 5:08 AM (in response to dghighfill)Any change of getting that solution info?
Am in exact same situation at the moment and can't upgrade to JBoss-as 6 at this time.
-
17. Re: JBoss 5.1.0.GA, JPA 2.0, and EClipseLink 2.0
rajan11 Dec 6, 2010 10:01 AM (in response to dghighfill)Dale Highfill wrote:
We've found the solution. I've got some code to clean up and then I'll post it here. There were a number of configuration files, a specialized session loader, and removing the persistence implementation from JBoss's install directory. Stay tuned...Were you able to get JPA2 to work in JBoss 5.1?
Could you please share your findings?
Regards,
Rajan
-
18. Re: JBoss 5.1.0.GA, JPA 2.0, and EClipseLink 2.0
d2004 May 24, 2011 2:58 PM (in response to rajan11)I have made the following changes to my application
It is a .war file with hibernate 3.6 and JPA 2.0 jars
I have a jboss-cloading.xml in my WEB-INF/ folder and a persistence.xml in the WEB-INF/classes/META-INF folder.
As per this blog post I made the changes - http://community.jboss.org/thread/159628
but I get the error
14:23:17,716 ERROR [[requestFactoryServlet]] Servlet.service() for servlet requestFactoryServlet threw exception
javax.persistence.PersistenceException: Invalid persistence.xml.
Error parsing XML (line-1 : column -1): cvc-complex-type.4: Attribute 'version' must appear on element 'persistence'.
Here is the information from jboss-classloading. xml
<?xml version="1.0" encoding="UTF-8"?>
<classloading xmlns="urn:jboss:classloading:1.0"
domain="com.ihealth.rmi.web"
export-all="NON_EMPTY"
import-all="true"
parent-first="false">
</classloading>
the persistence.xml
<?xml version="1.0" encoding="UTF-8"?>
<persistence 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"
version="2.0">
<persistence-unit name="rmi.model.dev" transaction-type="RESOURCE_LOCAL">
<non-jta-data-source>jdbc/OracleDS</non-jta-data-source>
<class>com.ihealth.rmi.core.model.Aan</class>
<properties>
<property name="hibernate.dialect" value="org.hibernate.dialect.Oracle10gDialect" />
<property name="hibernate.show_sql" value="false" />
</properties>
</persistence-unit>
</persistence>
at org.hibernate.ejb.packaging.PersistenceXmlLoader.loadURL(PersistenceXmlLoader.java:145)
thanks in advance for your guidance
-
19. Re: JBoss 5.1.0.GA, JPA 2.0, and EClipseLink 2.0
stephan972 Jan 5, 2012 6:59 AM (in response to dghighfill)I have a created a workaround for this specific issue. You can find it here : http://stackoverflow.com/q/8476944/363573