This content has been marked as final.
Show 4 replies
-
1. Re: persistence.xml in EJB3.0 RC4
nickthegreat Jan 31, 2006 6:46 AM (in response to okism)Sorry, no clue, just experienced a similar problem with RC4 :(
got the trailblazer jboss-ide demo working under RC3.
Fails with RC4.
persistence.xml<?xml version="1.0" encoding="UTF-8"?> <persistence xmlns="http://java.sun.com/xml/ns/persistence"/> <entity-manager> <name>it</name> <provider>org.hibernate.ejb.HibernatePersistence</provider> <jta-data-source>java:/MySqlDS</jta-data-source> <properties> <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLInnoDBDialect"/> <property name="hibernate.hbm2ddl.auto" value="update"/> <property name="hibernate.show_sql" value="false"/> </properties> </entity-manager>
--- MBeans waiting for other MBeans --- ObjectName: jboss.j2ee:service=EJB3,jar=authors-beans.ejb3,name=AuthorsBean State: NOTYETINSTALLED I Depend On: persistence.units:unitName=it --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM --- ObjectName: persistence.units:unitName=it State: NOTYETINSTALLED Depends On Me: jboss.j2ee:service=EJB3,jar=authors-beans.ejb3,name=AuthorsBean
no errors reported, "just" doesnt deploy anymore ...
there is some vague / not really helpful hint at the FromJBossEJB3.0RC3ToRC4PFD wiki ->
The persistence.xml schema has changed in the specification.
See the tutorials or the spec for more details.
but couldnt find out what actually changed.
sorry for my stupidity if this is obvious :/ -
2. Re: persistence.xml in EJB3.0 RC4
jc7442 Jan 31, 2006 8:34 AM (in response to okism)It seems that peristence.xml xsd has changed, in demo, it looks like:
<?xml version="1.0" encoding="UTF-8"?> <persistence> <persistence-unit name="tempdb"> <jta-data-source>java:/DefaultDS</jta-data-source> <properties> <property name="hibernate.hbm2ddl.auto" value="create-drop"/> </properties> </persistence-unit> </persistence>
I do not know if both syntax are supported ! -
3. Re: persistence.xml in EJB3.0 RC4
nickthegreat Jan 31, 2006 9:09 AM (in response to okism)
Bingo :-)
Thx a lot jc7442, changing persistence.xml fixed the deplyoment problems.
now I'm getting problems with lookup, but that's a differnt story, need to look into this later ... -
4. Re: persistence.xml in EJB3.0 RC4
peterrusselluk Feb 19, 2006 5:27 PM (in response to okism)The persistence.xml has changed look here:
http://trailblazer.demo.jboss.com/EJB3Trail/persistence/config/index.html
Let me know how you get on.