Also,
when I hack the code to lookup without the java:comp namespace
I get another exception which comes from the actual UserTransaction implementation.
Caused by: java.lang.IllegalStateException: Operation not allowed.
at com.sun.enterprise.distributedtx.UserTransactionImpl.checkUserTransactionMethodAccess(UserTransactionImpl.java:135)
at com.sun.enterprise.distributedtx.UserTransactionImpl.getStatus(UserTransactionImpl.java:262)
at org.hibernate.transaction.JTATransactionFactory.isTransactionInProgress(JTATransactionFactory.java:237)
at org.hibernate.jdbc.JDBCContext.isTransactionInProgress(JDBCContext.java:214)
at org.hibernate.impl.SessionImpl.afterOperation(SessionImpl.java:444)
at org.hibernate.impl.SessionImpl.get(SessionImpl.java:848)
at org.hibernate.impl.SessionImpl.get(SessionImpl.java:836)
at org.hibernate.ejb.AbstractEntityManagerImpl.find(AbstractEntityManagerImpl.java:182)
at com.sun.enterprise.util.EntityManagerWrapper.find(EntityManagerWrapper.java:546)
[Message sent by forum member 'milesy' (milesy)]
http://forums.java.net/jive/thread.jspa?messageID=361381