Norman, Here's my persistence.xml file:
<?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_1_0.xsd" | version="1.0"> | <persistence-unit name="visitsDatabase" transaction-type="JTA"> | <provider>org.hibernate.ejb.HibernatePersistence</provider> | <jta-data-source>java:comp/env/jdbc/DataSource</jta-data-source> | <properties> | <property name="hibernate.show_sql" value="true" /> | <property name="hibernate.cache.provider_class" | value="org.hibernate.cache.HashtableCacheProvider" /> | <property name="hibernate.transaction.manager_lookup_class" | value="org.hibernate.transaction.JBossTransactionManagerLookup" /> | <property name="hibernate.bytecode.provider" value="javassist" /> | <property name="hibernate.jdbc.batch_size" value="0" /> | </properties> | </persistence-unit> | </persistence> | Actually, I have tried several ways of referencing the Tomcat JNDI data source, like: "jdbc/DataSource", "java:/jdbc/DataSource", "java:comp/env/jdbc/DataSource", "java:/DataSource". The JNDI name defined in Tomcat is "jdbc/DataSource" Thanks, Alex View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029859#4029859 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029859 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user