After getting errors from seam+entitymanager from and old version, I decided to dare to upgrade admitting that I will lose my local changes (patches that are still open in JIRA).
After upgrading (retrieved from CVS HEAD) I am getting user transaction errors: | java.lang.IllegalStateException: Could not start transaction | at org.jboss.seam.jsf.SeamExtendedManagedPersistencePhaseListener.begin(SeamExtendedManagedPersistencePhaseListener.java:67) | at org.jboss.seam.jsf.SeamExtendedManagedPersistencePhaseListener.beforePhase(SeamExtendedManagedPersistencePhaseListener.java:33) | ... | Caused by: javax.naming.NameNotFoundException: comp not bound | at org.jnp.server.NamingServer.getBinding(NamingServer.java:529) | at org.jnp.server.NamingServer.getBinding(NamingServer.java:537) | at org.jnp.server.NamingServer.getObject(NamingServer.java:543) | at org.jnp.server.NamingServer.lookup(NamingServer.java:267) | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625) | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587) | at javax.naming.InitialContext.lookup(InitialContext.java:351) | at org.jboss.seam.util.Transactions.getUserTransaction(Transactions.java:32) | ... | It was working on the old one. I think I have one of the many configuration files wrong or missing. Some configuration I have (this is on Tomcat deployment): | Archive: embedded-ejb-conf.jar | Length Date Time Name | -------- ---- ---- ---- | 0 04-23-06 19:13 META-INF/ | 106 04-23-06 19:13 META-INF/MANIFEST.MF | 839 01-19-06 19:02 default.persistence.properties | 16899 04-23-06 19:02 ejb3-interceptors-aop.xml | 4097 04-23-06 19:02 embedded-jboss-beans.xml | 1457 04-23-06 19:02 log4j.xml | -------- ------- | 23398 6 files | | Archive: bethany.jar | Length Date Time Name | -------- ---- ---- ---- | 0 04-23-06 19:19 META-INF/ | 106 04-23-06 19:19 META-INF/MANIFEST.MF | 151 01-24-06 21:54 META-INF/context.xml | 1066 03-20-06 23:05 META-INF/persistence.xml | 0 01-18-06 17:38 seam.properties | -------- ------- | 168973 81 files | persistence.xml: | <persistence> | <persistence-unit name="entityManager" transaction-type="RESOURCE_LOCAL"> | <provider>org.hibernate.ejb.HibernatePersistence</provider> | <jta-data-source>java:/bethanyDatasource</jta-data-source> | <properties> | <property name="hibernate.dialect" | value="org.hibernate.dialect.PostgreSQLDialect" /> | <property name="connection.release_mode">after_statement</property> | <property name="hibernate.default_schema">public</property> | <property name="hibernate.transaction.manager_lookup_class" | value="org.hibernate.transaction.JBossTransactionManagerLookup"/> | <property name="hibernate.transaction.flush_before_completion" value="true"/> | <property name="hibernate.show_sql" value="true"/> | <property name="hibernate.query.substitutions"></property> | <property name="jboss.entity.manager.factory.jndi.name" | value="java:/bethanyEntityManagerFactory"/> | </properties> | </persistence-unit> | </persistence> | 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="bethanyDatasourceBootstrap" | class="org.jboss.resource.adapter.jdbc.local.LocalTxDataSource"> | <property name="driverClass">org.postgresql.Driver</property> | <property name="connectionURL">jdbc:postgresql://localhost/bethany</property> | <property name="userName">bethany</property> | <property name="password">?</property> | <property name="jndiName">java:/bethanyDatasource</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> | <property name="cachedConnectionManager"><inject bean="CachedConnectionManager" /></property> | <property name="initialContextProperties"><inject bean="InitialContextProperties" /></property> | </bean> | | <bean name="bethanyDatasource" class="java.lang.Object"> | <constructor factoryMethod="getDatasource"> | <factory bean="bethanyDatasourceBootstrap" /> | </constructor> | </bean> | </deployment> | Any idea of what I am doing wrong? If you think JBoss deployment would be easier, do I just need to remove the embedded-ejb jars (anything that is easier at this point is good). Thank you, Andrew View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3938841#3938841 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3938841 ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
