I've added
| <core:entity-manager-factory persistence-unit-name="SeamGenProject"
name="entityManagerFactory" />
|
| <core:managed-persistence-context name="em"
| auto-create="true"
|
entity-manager-factory="#{entityManagerFactory}"/>
But now i have another exception now:
Exception sending context initialized event to listener instance of class
org.jboss.seam.servlet.SeamListener
| javax.persistence.PersistenceException: org.hibernate.HibernateException:
The chosen transaction strategy requires access to the JTA TransactionManager
| at
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:720)
| at
org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:121)
| at
javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:83)
| at
org.jboss.seam.core.EntityManagerFactory.startup(EntityManagerFactory.java:74)
| 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:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:20)
| at
org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:123)
| at org.jboss.seam.Component.callComponentMethod(Component.java:1842)
| at org.jboss.seam.Component.callCreateMethod(Component.java:1757)
| at org.jboss.seam.Component.newInstance(Component.java:1746)
| at org.jboss.seam.contexts.Lifecycle.startup(Lifecycle.java:175)
| at
org.jboss.seam.contexts.Lifecycle.endInitialization(Lifecycle.java:145)
| at org.jboss.seam.init.Initialization.init(Initialization.java:504)
| at
org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:33)
| at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4493)
| at
org.apache.catalina.core.StandardContext.start(StandardContext.java:5150)
| at com.sun.enterprise.web.WebModule.start(WebModule.java:308)
| at
com.sun.enterprise.web.LifecycleStarter.doRun(LifecycleStarter.java:45)
| at
com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:283)
| at
com.sun.appserv.management.util.misc.RunnableBase._submit(RunnableBase.java:155)
| at
com.sun.appserv.management.util.misc.RunnableBase.submit(RunnableBase.java:171)
| at
com.sun.enterprise.web.VirtualServer.startChildren(VirtualServer.java:1566)
| at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1218)
| at
org.apache.catalina.core.StandardHost.start(StandardHost.java:938)
| at
com.sun.enterprise.web.LifecycleStarter.doRun(LifecycleStarter.java:45)
| at
com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:283)
| at
com.sun.appserv.management.util.misc.RunnableBase._submit(RunnableBase.java:155)
| at
com.sun.appserv.management.util.misc.RunnableBase.submit(RunnableBase.java:171)
| at
com.sun.enterprise.web.EmbeddedWebContainer$WebEngine.startChildren(EmbeddedWebContainer.java:440)
| at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1218)
| at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:520)
| at org.apache.catalina.startup.Embedded.start(Embedded.java:923)
| at com.sun.enterprise.web.WebContainer.start(WebContainer.java:852)
| at
com.sun.enterprise.web.PEWebContainer.startInstance(PEWebContainer.java:750)
| at
com.sun.enterprise.web.PEWebContainerLifecycle.onStartup(PEWebContainerLifecycle.java:71)
| at
com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:332)
| at
com.sun.enterprise.server.ondemand.OnDemandServer.onStartup(OnDemandServer.java:112)
| at com.sun.enterprise.server.PEMain.run(PEMain.java:381)
| at com.sun.enterprise.server.PEMain.main(PEMain.java:308)
| 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:585)
| at com.sun.enterprise.server.PELaunch.main(PELaunch.java:274)
| Caused by: org.hibernate.HibernateException: The chosen transaction
strategy requires access to the JTA TransactionManager
| at
org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:329)
| at
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1291)
| at
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:713)
| ... 46 more
|
even if i use <persistence-unit name="SeamGenProject" transaction-type="JTA">
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4073460#4073460
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4073460
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user