sorry, I meant, "java:comp/env/UserTransaction"
-- Vivek. On 7/24/06, Vivek Mohan <[EMAIL PROTECTED]> wrote:
try using java:comp/env.UserTransaction for JNDI lookup. -- Vivek. On 7/24/06, Seetha Rao <[EMAIL PROTECTED]> wrote: > Hi I'm using JOTM for transaction management with Tomcat 5.0.28. I have all > the required jar files as given in > http://jotm.objectweb.org/current/jotm/doc/howto-tomcat-jotm.html The JNDI > look up throws the following exception: > > Here is the code: > > Context ctx = new InitialContext(); > UserTransaction userTx = > (UserTransaction)ctx.lookup("java:comp/UserTransaction"); > > The Entry in the mywebapp.xml file: > > <Resource name="UserTransaction" auth="Container" > type="javax.transaction.UserTransaction" /> > <ResourceParams name="UserTransaction"> > <parameter> > <name>factory</name> > <value>org.objectweb.jotm.UserTransactionFactory</value> > </parameter> > <parameter> > <name>jotm.timeout</name> > <value>60</value> > </parameter> > </ResourceParams> > > Exception: > javax.naming.NameNotFoundException > at > org.objectweb.carol.jndi.enc.java.CompNamingContext.lookupCtx(CompNamingCont > ext.java:689) > at > org.objectweb.carol.jndi.enc.java.CompNamingContext.lookup(CompNamingContext > .java:179) > at > org.objectweb.carol.jndi.enc.java.JavaURLContext.lookup(JavaURLContext.java: > 138) > at javax.naming.InitialContext.lookup(Unknown Source) > at com.vcbp.struts.action.InsertuserAction.execute(InsertuserAction.java:81) > at > org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces > sor.java:484) > at > org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274) > at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) > at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525) > at javax.servlet.http.Http > > Could anyone give me home hints? > > Thanks > Seetha > > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- "This is your life and it's ending one minute at a time."
-- "This is your life and it's ending one minute at a time." --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]