tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Fischer <pfische...@fast-mail.org>
Subject no UserTransaction in jndi
Date Wed, 07 Nov 2007 09:25:56 GMT

Hello,

I try to configure a tomcat 6.0.14 to provide a
javax.transaction.UserTransaction in jndi "java:comp/UserTransaction".

For this I added to the <GlobalNamingResources> in the server.xml

<Transaction name="UserTransaction" auth="Container"        
    factory="com.atomikos.icatch.jta.UserTransactionFactory"
/>

and 
<ResourceLink global="UserTransaction" name="UserTransaction"
type="javax.transaction.UserTransaction" />
to the global <context>.

I put the needed jars into the folder "$catalina_home$/lib".

Listing all jndi-resources with "http://localhost:8080/manager/resources"
shows only the UserDatabase without the UserTransaction.

The log of lambdaprobe contains this error if I list the jndi-resources:

07 Nov 2007 10:16:19 [http-8080-1] INFO 
org.jstripe.tomcat.probe.beans.ContainerWrapperBean  - Using
org.jstripe.tomcat.probe.Tomcat55ContainerAdaptor
07 Nov 2007 10:16:19 [http-8080-1] INFO 
org.jstripe.tomcat.probe.beans.ContainerWrapperBean  - Using DEFAULT
resource resolver
07 Nov 2007 10:16:19 [http-8080-1] INFO 
org.jstripe.tomcat.probe.beans.ResourceResolverBean  - Reading CONTEXT 
07 Nov 2007 10:16:19 [http-8080-1] ERROR
org.jstripe.tomcat.probe.beans.ResourceResolverBean  - Failed to lookup:
UserTransaction
javax.naming.NameNotFoundException: Name UserTransaction is not bound in
this Context
	at org.apache.naming.NamingContext.lookup(NamingContext.java:770)
	at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
	at org.apache.naming.NamingContext.lookup(NamingContext.java:781)
	at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
	at org.apache.naming.NamingContext.lookup(NamingContext.java:781)
	at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
	at org.apache.naming.SelectorContext.lookup(SelectorContext.java:137)
	at javax.naming.InitialContext.lookup(InitialContext.java:392)
	at
org.jstripe.tomcat.probe.beans.ResourceResolverBean.lookupResource(ResourceResolverBean.java:107)
	at
org.jstripe.tomcat.probe.beans.ResourceResolverBean.getApplicationResources(ResourceResolverBean.java:89)
	at
org.jstripe.tomcat.probe.tools.ApplicationUtils.getApplicationDataSourceUsageScore(ApplicationUtils.java:150)
	at
org.jstripe.tomcat.probe.tools.ApplicationUtils.getApplication(ApplicationUtils.java:137)
	at
org.jstripe.tomcat.probe.controllers.AppSummaryController.handleContext(AppSummaryController.java:35)
	at
org.jstripe.tomcat.probe.controllers.ContextHandlerController.handleRequestInternal(ContextHandlerController.java:39)
	at
org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
	at
org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:44)
	at
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:723)
	at org.jstripe.tomcat.probe.ProbeServlet.doDispatch(ProbeServlet.java:49)
	at
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:663)
	at
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:394)
	at
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:348)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at
com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:120)
	at
com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
	at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
	at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
	at java.lang.Thread.run(Thread.java:619)
07 Nov 2007 10:16:19 [http-8080-1] INFO 
org.springframework.ui.context.support.ResourceBundleThemeSource  - Theme
created: name 'theme-classic', basename [theme-classic]
07 Nov 2007 10:16:19 [http-8080-1] INFO 
org.springframework.web.util.ExpressionEvaluationUtils  - Using JSP 2.0
ExpressionEvaluator
07 Nov 2007 10:16:22 [http-8080-1] INFO 
org.jstripe.tomcat.probe.beans.ResourceResolverBean  - Reading CONTEXT 
07 Nov 2007 10:16:22 [http-8080-1] ERROR
org.jstripe.tomcat.probe.beans.ResourceResolverBean  - Failed to lookup:
UserTransaction
javax.naming.NameNotFoundException: Name UserTransaction is not bound in
this Context
	at org.apache.naming.NamingContext.lookup(NamingContext.java:770)
	at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
	at org.apache.naming.NamingContext.lookup(NamingContext.java:781)
	at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
	at org.apache.naming.NamingContext.lookup(NamingContext.java:781)
	at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
	at org.apache.naming.SelectorContext.lookup(SelectorContext.java:137)
	at javax.naming.InitialContext.lookup(InitialContext.java:392)
	at
org.jstripe.tomcat.probe.beans.ResourceResolverBean.lookupResource(ResourceResolverBean.java:107)
	at
org.jstripe.tomcat.probe.beans.ResourceResolverBean.getApplicationResources(ResourceResolverBean.java:89)
	at
org.jstripe.tomcat.probe.controllers.ListApplicationResourcesController.handleContext(ListApplicationResourcesController.java:27)
	at
org.jstripe.tomcat.probe.controllers.ContextHandlerController.handleRequestInternal(ContextHandlerController.java:39)
	at
org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
	at
org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:44)
	at
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:723)
	at org.jstripe.tomcat.probe.ProbeServlet.doDispatch(ProbeServlet.java:49)
	at
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:663)
	at
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:394)
	at
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:348)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at
com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:120)
	at
com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
	at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
	at
org.jstripe.tomcat.probe.Tomcat55AgentValve.invoke(Tomcat55AgentValve.java:20)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
	at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
	at java.lang.Thread.run(Thread.java:619)

I tried it also with 5.5.25, but the result is the same.
Where is my mistake?

regards,
Peter
-- 
View this message in context: http://www.nabble.com/no-UserTransaction-in-jndi-tf4763485.html#a13623730
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message