Hi there, I am trying to follow docs in these messages to implement transaction support in my stand alone Tomcat 5.5.17, but not to use it with JDBC but with a remote JBoss server. I get a "comp not bound" error:
Caused by: javax.naming.NameNotFoundException: comp not bound at org.jnp.server.NamingServer.getBinding(NamingServer.java:529) at org.jnp.server.NamingServer.getBinding(NamingServer.java:537) at org.jnp.server.NamingServer.getObject(NamingServer.java:543) at org.jnp.server.NamingServer.lookup(NamingServer.java:267) at sun.reflect.GeneratedMethodAccessor108.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294) at sun.rmi.transport.Transport$1.run(Transport.java:153) at java.security.AccessController.doPrivileged(Native Method) when doing the lookup. I've tried to register the <Transaction> element in all places in tomcat (conf/context.xml, server.xml, META-INF/context.xml in my webapp, ...) but can't make it create the java:comp/UserTransaction name in the initial context. The code I am using is: return (UserTransaction)new javax.naming.InitialContext().lookup("java:comp/UserTransaction"); Thanks for any help... Ignacio -- View this message in context: http://www.nabble.com/UserTransaction%2C-JOTM-and-Tomcat-5.5.x-tf1073172.html#a6244225 Sent from the Tomcat - User forum at Nabble.com. --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]