Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
JSP - A mailing list about Java Server Pages specification and reference
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
- 2 PersistenceUnits: Adding multiple last resources i

- 2 PersistenceUnits: Adding multiple last resources i

2007-07-16       - By baz

 Back
Hello,
i have a Seam app for Seam 1.2.1 and JBoss 4.0.5 GA which uses 2 persistent
uinits. After migrating this app to SEAM 2.0.0Beta1 and JBoss 4.2.0GA i get an
exception when both persistance units are used.
The experiment comes from one database and after that a query to the other db
should be executed, but raises this exception.
16:17:17,890 INFO  [STDOUT] Hibernate: select experiment0_.ExperimentID as
Experime1_76_, experiment0_.Size as Size76_, experiment0_.SowingYear as
SowingYear76_, experiment0_.Description as Descript4_76_, experiment0_
.HarvestYear as HarvestY5_76_, experiment0_.SowingDate as SowingDate76_,
experiment0_.AddressCode as AddressC7_76_, experiment0_.AddressFAOCode as
AddressF8_76_, experiment0_.PartnerCode as PartnerC9_76_, experiment0_
.ProjectCode as Project10_76_, experiment0_.ExperimentCode as Experim11_76_,
experiment0_.ExperimentName as Experim12_76_, experiment0_.SiteID as SiteID76_,
experiment0_.HarvestDate as Harvest14_76_, experiment0_.Design as Design76_,
experiment0_.Samples as Samples76_, experiment0_.Replications as Replica17_76_
from EXPERIMENT experiment0_ limit ?
 | 16:17:17,984 WARN  [loggerI18N] [com.arjuna.ats.internal.jta.transaction
.arjunacore.lastResource.disallow] [com.arjuna.ats.internal.jta.transaction
.arjunacore.lastResource.disallow] Adding multiple last resources is disallowed.
Current resource is org.jboss.resource.connectionmanager.TxConnectionManager Source code of org.jboss.resource.connectionmanager.TxConnectionManager
$LocalXAResource@(protected)
 | 16:17:18,000 WARN  [JDBCExceptionReporter] SQL Error: 0, SQLState: null
 | 16:17:18,000 ERROR [JDBCExceptionReporter] Could not enlist in transaction
on entering meta-aware object!; - nested throwable: (javax.transaction
.SystemException: java.lang.Throwable Source code of java.lang.Throwable.html>java.lang.Throwable Source code of java.lang.Throwable java.lang.Throwable Source code of java.lang.Throwable.java.html>Source code of <a href=http://www.docjar.com/docs/api/java/lang/Throwable.html>java.lang.Throwable</a> <a href=http://www.docjar.com/html/api/java/lang/Throwable.java.html><img src=/j.gif alt=' border=0>: Unabled to enlist resource, see the
previous warnings. tx=TransactionImple < ac, BasicAction: -53e0d9e7:77e
:469b7d96:41 status: ActionStatus.ABORT_ONLY >); - nested throwable: (org.jboss
.resource.JBossResourceException: Could not enlist in transaction on entering
meta-aware object!; - nested throwable: (javax.transaction.SystemException Source code of javax.transaction.SystemException:
java.lang.Throwable Source code of java.lang.Throwable.html>java.lang.Throwable Source code of java.lang.Throwable java.lang.Throwable Source code of java.lang.Throwable.java.html>Source code of <a href=http://www.docjar.com/docs/api/java/lang/Throwable.html>java.lang.Throwable</a> <a href=http://www.docjar.com/html/api/java/lang/Throwable.java.html><img src=/j.gif alt=' border=0>: Unabled to enlist resource, see the previous warnings. tx
=TransactionImple < ac, BasicAction: -53e0d9e7:77e:469b7d96:41 status:
ActionStatus.ABORT_ONLY >))
 | 16:17:18,000 FATAL [application] javax.persistence.PersistenceException:
org.hibernate.exception.GenericJDBCException Source code of org.hibernate.exception.GenericJDBCException: Cannot open connection
 | javax.faces.el.EvaluationException Source code of javax.faces.el.EvaluationException: javax.persistence.PersistenceException:
org.hibernate.exception.GenericJDBCException Source code of org.hibernate.exception.GenericJDBCException: Cannot open connection
 |   at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke
(MethodBindingMethodExpressionAdapter.java:91)
 |   at com.sun.faces.application.ActionListenerImpl.processAction
(ActionListenerImpl.java:91)
 |   at javax.faces.component.UICommand Source code of javax.faces.component.UICommand(UICommand.java:383)
 |

Both connections are working. I can access each database in isolated state. But
not the two togehter.
It would be fine if someone has an idea what this error means. Any pointer
(even it is a pointer to the right forum to ask: hibernate,EJB3,JCA etc) are
welcome.
Googling yield only this link:http://lists.jboss.org/pipermail/jboss-svn
-commits/2007-March/006849.html and was not helpful
Ciao,
Carsten

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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode
=reply&p=4064581
__ ____ ____ ____ ____ ____ ____ ____ ____ ____
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user