StorageCleaner and java:comp/UserTransaction in JBoss EAP 6.1

Brian Reindel brian at reindel.com
Tue Nov 19 16:41:12 EST 2013


The java:comp/UserTransaction is not exposed by the container to
independent threads. So when the server starts up we get the following
exception:

16:25:57,318 ERROR [org.hibernate.transaction.JTATransaction]
(Thread-100) Could not find UserTransaction in JNDI:
javax.naming.NameNotFoundException: java:comp/UserTransaction
        at org.jboss.as.naming.InitialContext.findContext(InitialContext.java:198)
        at org.jboss.as.naming.InitialContext.lookup(InitialContext.java:118)
        at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:183)
        at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:179)
        at javax.naming.InitialContext.lookup(InitialContext.java:411)
[rt.jar:1.7.0_25]
        at org.hibernate.transaction.JTATransaction.<init>(JTATransaction.java:60)
[hibernate-3.2.6.ga.jar:3.2.6.ga]
        at org.hibernate.transaction.JTATransactionFactory.createTransaction(JTATransactionFactory.java:57)
[hibernate-3.2.6.ga.jar:3.2.6.ga]
        at org.hibernate.jdbc.JDBCContext.getTransaction(JDBCContext.java:197)
[hibernate-3.2.6.ga.jar:3.2.6.ga]
        at org.hibernate.impl.SessionImpl.getTransaction(SessionImpl.java:1315)
[hibernate-3.2.6.ga.jar:3.2.6.ga]
        at org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1325)
[hibernate-3.2.6.ga.jar:3.2.6.ga]
        at net.clareitysecurity.shibboleth.db.SessionObjectDAOImpl.openSession(SessionObjectDAOImpl.java:343)
[db-storage-service-1.1.3.jar:]
        at net.clareitysecurity.shibboleth.db.SessionObjectDAOImpl.getExpiredSessions(SessionObjectDAOImpl.java:243)
[db-storage-service-1.1.3.jar:]
        at net.clareitysecurity.shibboleth.storage.StorageCleaner.run(StorageCleaner.java:50)
[db-storage-service-1.1.3.jar:]
        at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_25]

We have our own session cleanup scheduled within the application using
a Spring task. Is it possible to disable this in the storage service
configuration?


More information about the users mailing list