RE: java:comp/UserTransaction NameNotFoundException Tomcat 5.0.28
I don't have that enabled. Isn't it by default set to true? Here is my context element. -Original Message- From: Pid [mailto:[EMAIL PROTECTED] Sent: Monday, July 24, 2006 5:07 PM To: Tomcat Users List Subject: Re: java:comp/UserTransaction NameNotFoundException Tomcat 5.0.28 Have you got useNaming="true" enabled in your context.xml, or server.xml Thanks, but got the same exception. > > -Original Message- > From: Vivek Mohan [mailto:[EMAIL PROTECTED] > Sent: Monday, July 24, 2006 4:16 PM > To: Tomcat Users List; [EMAIL PROTECTED] > Subject: Re: java:comp/UserTransaction NameNotFoundException Tomcat > 5.0.28 > > > 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: >>> >>> >> type="javax.transaction.UserTransaction" /> >>> >>> >>> factory >>> org.objectweb.jotm.UserTransactionFactory >>> >>> >>> jotm.timeout >>> 60 >>> >>> >>> >>> 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] > > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java:comp/UserTransaction NameNotFoundException Tomcat 5.0.28
Have you got useNaming="true" enabled in your context.xml, or server.xml Thanks, but got the same exception. > > -Original Message- > From: Vivek Mohan [mailto:[EMAIL PROTECTED] > Sent: Monday, July 24, 2006 4:16 PM > To: Tomcat Users List; [EMAIL PROTECTED] > Subject: Re: java:comp/UserTransaction NameNotFoundException Tomcat > 5.0.28 > > > 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: >>> >>> >> type="javax.transaction.UserTransaction" /> >>> >>> >>> factory >>> org.objectweb.jotm.UserTransactionFactory >>> >>> >>> jotm.timeout >>> 60 >>> >>> >>> >>> 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] > > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java:comp/UserTransaction NameNotFoundException Tomcat 5.0.28
Thanks, but got the same exception. -Original Message- From: Vivek Mohan [mailto:[EMAIL PROTECTED] Sent: Monday, July 24, 2006 4:16 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: java:comp/UserTransaction NameNotFoundException Tomcat 5.0.28 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: > > > > > type="javax.transaction.UserTransaction" /> > > > > > > factory > > org.objectweb.jotm.UserTransactionFactory > > > > > > jotm.timeout > > 60 > > > > > > > > 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] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java:comp/UserTransaction NameNotFoundException Tomcat 5.0.28
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: > > type="javax.transaction.UserTransaction" /> > > > factory > org.objectweb.jotm.UserTransactionFactory > > > jotm.timeout > 60 > > > > 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]
Re: java:comp/UserTransaction NameNotFoundException Tomcat 5.0.28
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: factory org.objectweb.jotm.UserTransactionFactory jotm.timeout 60 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." - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
java:comp/UserTransaction NameNotFoundException Tomcat 5.0.28
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: factory org.objectweb.jotm.UserTransactionFactory jotm.timeout 60 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]