Re: UserTransaction, JOTM and Tomcat 5.5.x

2007-05-27 Thread sxm
I am able to work with JOTM when I run tomcat stand alone, but when I run it from maven (embedded), UserTransaction doesn't get bind in the context resulting in following error. javax.naming.NamingException: Cannot create resource instance at

Re: UserTransaction, JOTM and Tomcat 5.5.x

2006-09-11 Thread Ignacio de Córdoba
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

Re: UserTransaction, JOTM and Tomcat 5.5.x

2006-04-12 Thread Derek Hulley
The java.lang.NoSuchMethodError goes away if you recompile the carol library using JDK 1.5. The JOTM uses the carol stubs, I presume. Anyway, I got the hint from this location: http://jira.ofbiz.org/browse/OFBIZ-737 I compiled JOTM for good measure as well. All seemed to work fine after

Re: UserTransaction, JOTM and Tomcat 5.5.x

2006-02-11 Thread Matt Raible
Just to follow up on this, the settings below work - but HSQLDB doesn't seem to support nested transactions. beginning the transaction DBTest javax.transaction.NotSupportedException: Nested transactions not suppo rted at org.objectweb.jotm.Current.begin(Current.java:233) at

Re: UserTransaction, JOTM and Tomcat 5.5.x

2006-02-11 Thread Remy Maucherat
On 2/11/06, Matt Raible [EMAIL PROTECTED] wrote: Just to follow up on this, the settings below work - but HSQLDB doesn't seem to support nested transactions. beginning the transaction DBTest javax.transaction.NotSupportedException: Nested transactions not suppo rted at

Re: UserTransaction, JOTM and Tomcat 5.5.x

2006-02-08 Thread Remy Maucherat
Since you're doing docs, META-INF/context.xml should be simplified to: Context Resource name=jdbc/myDB auth=Container type=javax.sql.DataSource factory=org.objectweb.jndi.DataSourceFactory driverClassName=org.hsqldb.jdbcDriver username=sa password=

Re: UserTransaction, JOTM and Tomcat 5.5.x

2006-02-07 Thread Remy Maucherat
On 2/7/06, Remy Maucherat [EMAIL PROTECTED] wrote: For 1), it's simple: Resources are bound in comp/env, while the UserTransaction should go in comp. ResourceLink has a special case for UserTransaction, so it works. There's a special Transaction element which would avoid having to do that, but

Re: UserTransaction, JOTM and Tomcat 5.5.x

2006-02-07 Thread Matt Raible
Thanks Remy - this is good stuff, I didn't know about the Transaction element. Is that new in 5.5.x? Is it documented anywhere? As far as the JARs location - this shouldn't matter should it? I can put it in $CATALINA_HOME/common/lib *or* in WEB-INF/lib - right? I've tried changing my context,

Re: UserTransaction, JOTM and Tomcat 5.5.x

2006-02-07 Thread Remy Maucherat
On 2/7/06, Matt Raible [EMAIL PROTECTED] wrote: Thanks Remy - this is good stuff, I didn't know about the Transaction element. Is that new in 5.5.x? Is it documented anywhere? No. It's not useful to anyone (well, almost) either. As far as the JARs location - this shouldn't matter should

Re: UserTransaction, JOTM and Tomcat 5.5.x

2006-02-07 Thread Matt Raible
On 2/7/06, Remy Maucherat [EMAIL PROTECTED] wrote: On 2/7/06, Matt Raible [EMAIL PROTECTED] wrote: Thanks Remy - this is good stuff, I didn't know about the Transaction element. Is that new in 5.5.x? Is it documented anywhere? No. It's not useful to anyone (well, almost) either. Just