Java Mailing List Archive

http://www.junlu.com/

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
 
- JNDI-Lookup in Thread failed

- JNDI-Lookup in Thread failed

2007-07-12       - By slotties

 Back
Hi,

we use hibernate3 (for jbpm) in our application and we're encountering a
problem with jndi. We use some scheduling-mechanism which invokes a thread
which itself does something with jbpm. Anyway, because of another application
server (oc4j 10.1.3) we had to set a context-classloader to all user-threads.
But when we set the context-classloader to our threads jbpm is not possible to
do jndi-lookups:

 | org.hibernate.TransactionException Source code of org.hibernate.TransactionException: Unable to locate UserTransaction to
check status
 |         at com.pironet.pbng.prj.cms.workflow.jbpm
.CommandExecutorEventProcessor$1.doInJbpm(CommandExecutorEventProcessor.java:142
)
 |         at com.pironet.pbng.prj.cms.workflow.jbpm.spring.JbpmTemplate$1
.doInHibernate(JbpmTemplate.java:66)
 |         at org.springframework.orm.hibernate3.HibernateTemplate Source code of org.springframework.orm.hibernate3.HibernateTemplate
(HibernateTemplate.java:372)
 |         at org.springframework.orm.hibernate3.HibernateTemplate Source code of org.springframework.orm.hibernate3.HibernateTemplate
(HibernateTemplate.java:338)
 |         at com.pironet.pbng.prj.cms.workflow.jbpm.spring.JbpmTemplate
.execute(JbpmTemplate.java:59)
 |         at com.pironet.pbng.prj.cms.workflow.jbpm.JbpmAccessor.execute
(JbpmAccessor.java:52)
 |         at com.pironet.pbng.prj.cms.workflow.jbpm
.CommandExecutorEventProcessor.processEvent(CommandExecutorEventProcessor.java
:85)
 |         at com.pironet.pbng.prj.comet.scheduling
.WorkflowTimelineEventHandler.processEvent(WorkflowTimelineEventHandler.java:68)
 |         at com.pironet.pbng.messaging.notify.NotifierImpl.issueEvent
(NotifierImpl.java:212)
 |         at com.pironet.pbng.messaging.notify.NotifierForwarder$1.run
(NotifierForwarder.java:95)
 | Caused by: javax.naming.NameNotFoundException Source code of javax.naming.NameNotFoundException: UserTransaction not bound
 |         at org.jnp.server.NamingServer Source code of org.jnp.server.NamingServer(NamingServer.java:529)
 |         at org.jnp.server.NamingServer Source code of org.jnp.server.NamingServer(NamingServer.java:537)
 |         at org.jnp.server.NamingServer Source code of org.jnp.server.NamingServer(NamingServer.java:543)
 |         at org.jnp.server.NamingServer Source code of org.jnp.server.NamingServer(NamingServer.java:267)
 |         at org.jnp.interfaces.NamingContext Source code of org.jnp.interfaces.NamingContext(NamingContext.java:625)
 |         at org.jnp.interfaces.NamingContext Source code of org.jnp.interfaces.NamingContext(NamingContext.java:716)
 |         at org.jnp.interfaces.NamingContext Source code of org.jnp.interfaces.NamingContext(NamingContext.java:587)
 |         at javax.naming.InitialContext Source code of javax.naming.InitialContext(InitialContext.java:347)
 |         at org.hibernate.transaction.JTATransactionFactory Source code of org.hibernate.transaction.JTATransactionFactory
.isTransactionInProgress(JTATransactionFactory.java:98)
 |         at org.hibernate.jdbc.JDBCContext Source code of org.hibernate.jdbc.JDBCContext
(JDBCContext.java:187)
 |         at org.hibernate.impl.SessionImpl Source code of org.hibernate.impl.SessionImpl
(SessionImpl.java:369)
 |         at org.hibernate.impl.SessionImpl Source code of org.hibernate.impl.SessionImpl(SessionImpl
.java:962)
 |         at org.hibernate.impl.SessionImpl Source code of org.hibernate.impl.SessionImpl(SessionImpl.java:1188)
 |         at org.hibernate.impl.QueryImpl Source code of org.hibernate.impl.QueryImpl(QueryImpl.java:46)
 |         at org.jbpm.db.MessagingSession.getMessageIterator(MessagingSession
.java:118)
 |         at org.jbpm.db.MessagingSession.hasNextMessage(MessagingSession
.java:56)
 |         at com.pironet.pbng.prj.cms.workflow.jbpm
.CommandExecutorEventProcessor$1.doInJbpm(CommandExecutorEventProcessor.java:100
)
 |         ... 9 more
 |

we use this name to lookup: java:comp/UserTransaction

If we remove the setting of a context-classloader everything works fine (in
jboss, but not in oc4j 10.1.3). Do I have to change the name to lookup in some
way? Or even something in some jboss-configuration?

thanks,
stefan

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

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

©2008 junlu.com - Jax Systems, LLC, U.S.A.