Hi, actually I think persistence.xml IS being read, and that it can't find jboss-beans.xml (I have JPA configured, copied from the booking example)
BTW, my project structure is the following: | project | src | META-INF | persistence.xml | jboss-beans.xml | jboss-beans.xml (just in case) | jndi.properties | log4j.xml | seam.properties | test | WebContent | WEB-INF | here's 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_1_0.xsd" | version="1.0"> | <persistence-unit name="bookingDatabase" transaction-type="JTA"> | <provider>org.hibernate.ejb.HibernatePersistence</provider> | <jta-data-source>java:/DefaultDS</jta-data-source> | <properties> | <property name="hibernate.show_sql" value="true"/> | <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect"/> | <property name="hibernate.cache.provider_class" value="org.hibernate.cache.HashtableCacheProvider"/> | <property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.JBossTransactionManagerLookup"/> | <!-- alternative | <property name="jboss.entity.manager.factory.jndi.name" | value="java:/jpaBookingEntityManagerFactory"/> | --> | </properties> | </persistence-unit> | </persistence> | and here jboss-beans.xml: | <?xml version="1.0" encoding="UTF-8"?> | | <deployment xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | xsi:schemaLocation="urn:jboss:bean-deployer bean-deployer_1_0.xsd" | xmlns="urn:jboss:bean-deployer"> | | <bean name="Naming" class="org.jnp.server.SingletonNamingServer"/> | | <bean name="TransactionManagerFactory" | class="org.jboss.seam.microcontainer.TransactionManagerFactory"/> | <bean name="TransactionManager" class="java.lang.Object"> | <constructor factoryMethod="getTransactionManager"> | <factory bean="TransactionManagerFactory"/> | </constructor> | </bean> | | <bean name="bookingDatasourceFactory" | class="org.jboss.seam.microcontainer.DataSourceFactory"> | <property name="driverClass">org.postgresql.Driver</property> | <property name="connectionUrl">jdbc:postgresql://localhost/inmobiliarias?charSet=LATIN1</property> | <property name="userName">myuser</property> | <property name="password">mypassword</property> | <property name="jndiName">java:/DefaultDS</property> | <property name="minSize">0</property> | <property name="maxSize">10</property> | <property name="blockingTimeout">1000</property> | <property name="idleTimeout">100000</property> | <property name="transactionManager"> | <inject bean="TransactionManager"/> | </property> | </bean> | <bean name="bookingDatasource" class="java.lang.Object"> | <constructor factoryMethod="getDataSource"> | <factory bean="bookingDatasourceFactory"/> | </constructor> | </bean> | | </deployment> | Anybody can see some error? Regards View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4085581#4085581 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4085581 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user