looks like ManagedPersistenceContext.getEntitymanager() uses an old version of
EntityManager:
In hibernate-all.jar which is packaged with seam-1.0.0CR2 the method
EntityManager.joinTransaction() exists.
In ejb3-persistence.jar (jboss4.0.4.RC1) this method is removed...
| @Unwrap
| public EntityManager getEntityManager() throws NamingException,
SystemException
| {
| if ( Transactions.isTransactionActive() )
| {
| entityManager.joinTransaction();
| }
| return entityManager;
| }
|
I've attached the relevant piece of stacktrace from seam-issues example
application
| 15:07:59,718 ERROR [STDERR] Caused by:
java.lang.reflect.InvocationTargetException
| 15:07:59,718 ERROR [STDERR] at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 15:07:59,718 ERROR [STDERR] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 15:07:59,718 ERROR [STDERR] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 15:07:59,761 ERROR [STDERR] at
java.lang.reflect.Method.invoke(Method.java:585)
| 15:07:59,761 ERROR [STDERR] at
org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
| 15:07:59,761 ERROR [STDERR] at
org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:32)
| 15:07:59,761 ERROR [STDERR] ... 131 more
| 15:07:59,761 ERROR [STDERR] Caused by: java.lang.NoSuchMethodError:
javax.persistence.EntityManager.joinTransaction()V
| 15:07:59,761 ERROR [STDERR] at
org.jboss.seam.core.ManagedPersistenceContext.getEntityManager(ManagedPersistenceContext.java:70)
| 15:07:59,761 ERROR [STDERR] ... 137 more
|
Regards,
andreas
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3939874#3939874
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3939874
-------------------------------------------------------
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