[jboss-user] [JBoss Seam] - Re: [1.3 CVS]Tomcat users getting the shaft?

dsmith@nesmi.com do-not-reply at jboss.com
Fri Jun 22 21:37:40 EDT 2007


"gavin.king at jboss.com" wrote : 
  | Please test this out for me, since I did it especially for you, and I need to release 1.3 in a couple of days. Thanks.

Thank you Gavin, for working on this.

Using 

  | <transaction:entity-transaction entityManager="#{myEntityManager}"/>
  | 

There is a circular dependency between EntityManager and EntityTransaction so I get one big nasty stack trace


  | ManagedPersistenceContext
  | ----
  |    @Unwrap
  |    public EntityManager getEntityManager() throws NamingException, SystemException
  |    {
  |       if (entityManager==null) initEntityManager();
  |       
  |       //join the transaction
  |       if ( !synchronizationRegistered && !Lifecycle.isDestroying() && Transaction.instance().isActive() )
  | 

and


  | EntityTransaction
  | ------
  |    @Unwrap
  |    @Override
  |    public UserTransaction getTransaction() throws NamingException
  |    {
  |       EntityManager em = entityManager.getValue();
  | 

  | <Snip repeating stacktrace>
  | 	at org.jboss.seam.persistence.ManagedPersistenceContext.getEntityManager(ManagedPersistenceContext.java:110)
  | 	at sun.reflect.GeneratedMethodAccessor58.invoke(Unknown Source)
  | 	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:124)
  | 	at org.jboss.seam.Component.callComponentMethod(Component.java:1978)
  | 	at org.jboss.seam.Component.unwrap(Component.java:2004)
  | 	at org.jboss.seam.Component.getInstance(Component.java:1791)
  | 	at org.jboss.seam.Component.getInstance(Component.java:1744)
  | 	at org.jboss.seam.Component.getInstance(Component.java:1738)
  | 	at org.jboss.seam.el.SeamELResolver.getValue(SeamELResolver.java:59)
  | 	at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:135)
  | 	at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
  | 	at org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
  | 	at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
  | 	at org.jboss.seam.core.Expressions$1.getValue(Expressions.java:115)
  | 	at org.jboss.seam.transaction.EntityTransaction.getTransaction(EntityTransaction.java:35)
  | 	at sun.reflect.GeneratedMethodAccessor57.invoke(Unknown Source)
  | 	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:124)
  | 	at org.jboss.seam.Component.callComponentMethod(Component.java:1978)
  | 	at org.jboss.seam.Component.unwrap(Component.java:2004)
  | 	at org.jboss.seam.Component.getInstance(Component.java:1791)
  | 	at org.jboss.seam.Component.getInstance(Component.java:1756)
  | 	at org.jboss.seam.Component.getInstance(Component.java:1733)
  | 	at org.jboss.seam.Component.getInstance(Component.java:1728)
  | 	at org.jboss.seam.transaction.Transaction.instance(Transaction.java:58)
  | 	at org.jboss.seam.persistence.ManagedPersistenceContext.getEntityManager(ManagedPersistenceContext.java:110)
  | 	at sun.reflect.GeneratedMethodAccessor58.invoke(Unknown Source)
  | 	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:124)
  | 	at org.jboss.seam.Component.callComponentMethod(Component.java:1978)
  | 	at org.jboss.seam.Component.unwrap(Component.java:2004)
  | 	at org.jboss.seam.Component.getInstance(Component.java:1791)
  | 

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

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



More information about the jboss-user mailing list