[jboss-user] [JBoss Seam] - seam 2.0.1.CR1 with Tomcat 6.0 and Postgres DB

pabloc2112 do-not-reply at jboss.com
Sun Jan 27 14:31:30 EST 2008


I'm having a hard time upgrading from seam 1.2.1 to seam 2.0.1.CR1. I saw that there is a new version of Embedded JBoss and decided it is now or never for the upgrade. I followed all the instructions on the wiki. I'm using a Postrgres DB, so I created a postgress-ds.xml file and copied to the deploy dir. However, I get a java.lang.ClassCastException: com.arjuna.ats.jbossatx.jta.TransactionManagerDelegate cannot be cast to javax.transaction.TransactionManager exception. I'm new to jboss configuration, so maybe I'm missing a file (maybe need to delete a file) or configuration? can somebody please point me on the right direction? 

Here is my ds configuration:


  <local-tx-datasource>
    <jndi-name>PostgresDS</jndi-name>
    <connection-url>jdbc:postgresql://localhost/beta_xxx</connection-url>
    <driver-class>org.postgresql.Driver</driver-class>
    <user-name>genie</user-name>
    genie4.0
  </local-tx-datasource>


And the stack trace:

java.lang.ClassCastException: com.arjuna.ats.jbossatx.jta.TransactionManagerDelegate cannot be cast to javax.transaction.TransactionManager
	at org.hibernate.transaction.JNDITransactionManagerLookup.getTransactionManager(JNDITransactionManagerLookup.java:23)
	at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:325)
	at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294)
	at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:915)
	at org.jboss.seam.persistence.HibernateSessionFactory.createSessionFactory(HibernateSessionFactory.java:165)
	at org.jboss.seam.persistence.HibernateSessionFactory.startup(HibernateSessionFactory.java:79)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
	at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:125)
	at org.jboss.seam.Component.callComponentMethod(Component.java:2082)
	at org.jboss.seam.Component.callCreateMethod(Component.java:2005)
	at org.jboss.seam.Component.newInstance(Component.java:1976)
	at org.jboss.seam.contexts.Contexts.startup(Contexts.java:304)
	at org.jboss.seam.contexts.Contexts.startup(Contexts.java:278)
	at org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:95)
	at org.jboss.seam.init.Initialization.init(Initialization.java:573)
	at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:34)
	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3830)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4337)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)




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

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



More information about the jboss-user mailing list