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 J 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(TransactionFactory.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=""> <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] |