Try and put this carol.properties in jakarta-tomcat/common/classes --------------------------------------------------------------------------------------------------- Start carol.properties # JNDI (Protocol Invocation) carol.protocols=jrmp
# Local RMI Invocation carol.jvm.rmi.local.call=true # do not use CAROL JNDI wrapper carol.start.jndi=false # do not start a name server carol.start.ns=false # Naming Factory carol.jndi.java.naming.factory.url.pkgs=org.apache.naming --------------------------------------------------------------------------------------------------- End carol.properties Then restart. If you are using Java 1.5+ you will need to recompile carol. Good Luck Moises Lejter-2 wrote: > > I cannot seem to get JOTM to work with Tomcat 5.5.17 on Suse Linux 10.0 > in my web app, even though I think I am doing all the right things - and > I am hoping someone here can spot my problem :-) > > The error I get is this, when looking up "java:comp/UserTransaction" in > the InitialContext: > > > > WARNING: while getting UserTransaction > > javax.naming.NamingException: Cannot create resource instance > > at > org.apache.naming.factory.TransactionFactory.getObjectInstance(Transacti > onFactory.java:112) > > at > javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304) > > at > org.apache.naming.NamingContext.lookup(NamingContext.java:792) > > at > org.apache.naming.NamingContext.lookup(NamingContext.java:139) > > at > org.apache.naming.NamingContext.lookup(NamingContext.java:780) > > at > org.apache.naming.NamingContext.lookup(NamingContext.java:152) > > at > org.apache.naming.SelectorContext.lookup(SelectorContext.java:136) > > at javax.naming.InitialContext.lookup(InitialContext.java:351) > > > > My context.xml for my web app is this: > > > > <Context path="/utech" reloadable="true"> > > <Resource name="jdbc/utekdb" auth="Container" > > type="javax.sql.DataSource" > > maxActive="10" maxIdle="3" maxWait="10000" > > username="x" password="x" > > factory="org.objectweb.jndi.DataSourceFactory" > > driverClassName="com.mysql.jdbc.Driver" > > url="jdbc:mysql://localhost:3306/utekdb"/> > > <Transaction factory="org.objectweb.jotm.UserTransactionFactory" > > jotm.timeout="60"/> > > </Context> > > > > (and I tried repeating the <Transaction .../> tag in my server.xml, with > no luck). > > > > I have all the JOTM jar files in both common/lib and my apps > /WEB-INF/lib... > > > > I am a little suspicious of the stack trace that says it's calling > org.apache.naming.factory.TransactionFactory.getObjectInstance - > shouldn't it be calling my own? > > > > Thank you! > > > > Moises Lejter > > > > Phone: 608-827-7772 > > Email: [EMAIL PROTECTED] > > > > > -- View this message in context: http://www.nabble.com/Problem-with-JOTM...-tf2047779.html#a7943808 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]