This content has been marked as final.
Show 1 reply
-
1. Re: Newbiy deployment trouble
scraatz Apr 14, 2006 12:22 PM (in response to eiswind)Tom,
the format of the persistence.xml changed. The persistence unit is no longer automatically stored in JNDI. The following file works for me:<persistence> <persistence-unit name="WebappSample"> <jta-data-source>java:jdbc/WebappSample</jta-data-source> <properties> <!-- Hibernate Properties --> <property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect"/> <property name="hibernate.hbm2ddl.auto" value="create-drop"/> <property name="hibernate.show_sql" value="true"/> <property name="jboss.entity.manager.factory.jndi.name" value="java:EntityManagerFactories/WebappSample"/> <property name="jboss.entity.manager.jndi.name" value="java:EntityManagers/WebappSample"/> </properties> </persistence-unit> </persistence>
Somewhere in the EJB3 WIKI a description of all changes (Hibernate EntityManager) can be found. It is quite good hidden ;-) but you should take a look at it.
hope that helps
Stefan