Hi,
I am porting a GWT 2.4 project to maven. When I run *mvn gwt:run* I'm
getting the following error in Jetty log:
java.lang.IllegalStateException: No Constructor:
<New id="tx" class="org.mortbay.jetty.plus.naming.Transaction">
<Arg>
<New class="com.atomikos.icatch.jta.UserTransactionImp"/>
</Arg>
</New>
on
com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload@2c40072a{...}
at org.mortbay.xml.XmlConfiguration.newObj(XmlConfiguration.java:631)
This post
<http://stackoverflow.com/questions/1368806/atomikos-jetty-in-a-maven-build-environment-classloader-issue>
says that the reason for the failure is a duplicate
javax.transaction.UserTransaction. I indeed had a duplicate UserTransaction:
- hibernate-core was indirectly pulling jta
- jetty-plus was pulling geronimo-spec-jta
and both jta and geronimo-spec-jta include javax.transaction package. I
excluded jta from jetty-plus, but *I'm still getting the same error when
running mvn gwt:run.*
The command line that mvn passes to java contains a long list of jars specified
using -classpath option. I grepped through all jars, only geronimo-spec-jta
defines UserTransaction.
Has anyone experienced this before? Your help would be greatly appreciated!
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-web-toolkit/-/7lkpsXbm0KYJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.