aspose file tools
The moose likes JBoss/WildFly and the fly likes could not passivate - datasource problem? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Products » JBoss/WildFly
Reply Bookmark "could not passivate - datasource problem?" Watch "could not passivate - datasource problem?" New topic
Author

could not passivate - datasource problem?

Robert Black
Greenhorn

Joined: May 20, 2003
Posts: 2
I'm using JBoss 3.0.6 and hsqldb 1.7.1. A few minutes after using the ejb I always get a "could not passivate":
javax.ejb.EJBException: Could not passivate; CausedByException is:
org.jboss.resource.adapter.jdbc.local.LocalConnection ...
Because of the "..LocalConnection-exception" I assumed a problem with the connection/datasource/database and commented out all lines of code but creation/closing of the connection/datasource. The error occured again, although I always close (or at least try to close) the connection in the ejbPassivate()! Any ideas, perhaps a property-problem within the hsqldb-service.xml??
Robert Black
Greenhorn

Joined: May 20, 2003
Posts: 2
Well, I found the problem. I've always closed the connection, but there was still a reference left. Now I close the connection and set it to null.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: could not passivate - datasource problem?
 
Similar Threads
Tomcat Connection Pool
Connection object from EJB or DAO
Problem Using DataSource and Creating Connection Pool
getConnection() from datasource is occasionally taking a very long time
Configuring a Postgres Datasource