[jboss-user] [EJB 3.0] - Re: Can't make SEAM unit test work

tuxzilla do-not-reply at jboss.com
Tue May 15 18:55:14 EDT 2007


Post the persistent.xml again:


  | <?xml version="1.0" encoding="UTF-8"?>
  | <!-- Persistence deployment descriptor for tests -->
  | <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_1_0.xsd" 
  |              version="1.0">             
  |    <persistence-unit name="n2">
  |       <provider>org.hibernate.ejb.HibernatePersistence</provider>
  |       <jta-data-source>java:/n2TestDatasource</jta-data-source>
  |       <properties>
  |          <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
  |          <property name="hibernate.cache.use_query_cache" value="true"/>
  |          <property name="hibernate.show_sql" value="true"/>
  |          <property name="jboss.entity.manager.factory.jndi.name" value="java:/n2EntityManagerFactory"/>
  |          <property name="hibernate.default_catalog" value="n2test"/>
  |          <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/>
  |          <property name="hibernate.search.default.directory_provider" value="org.hibernate.search.store.FSDirectoryProvider"/>
  |          <property name="hibernate.search.default.indexBase" value="C:\temp\testLuceneIndex"/>
  |       </properties>
  |    </persistence-unit>
  |     
  | </persistence>
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045982#4045982

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045982



More information about the jboss-user mailing list