Thursday, September 30, 2010

Atomikos, hosted mode (Jetty): No Constructor:

I'm following these instructions
and got stuck on Step 2 in the hosted mode; stand-alone mode works

I added these lines to jetty-web.xml:

<New id="tx" class="">
<Arg><New class="com.atomikos.icatch.jta.UserTransactionImp" /></

In hosted mode I'm getting an exception:

java.lang.IllegalStateException: No Constructor: <New id="tx"
<Arg><New class="com.atomikos.icatch.jta.UserTransactionImp" /></

If I empty the <Arg/> like this:
<New id="tx" class="">
there is no error. UserTransactionImpl by itself
<New class="com.atomikos.icatch.jta.UserTransactionImp" />
does not create an error.

The error occurs only when I try to pass UserTransactionImpl to
Transaction, and only in the hosted mode.

There is a post
that says that there could be multiple copies of UserTransaction (an
argument for parameter)
But I could not find anything yet in the jars that would contain
another copy of UserTransaction.
(the original UserTransaction sits in jta.jar described in Step 1 of
the intstructions)

Any help on how to fix this error would be greatly appreciated.

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment