Wondering if any one has tried JOTM with Jetty and starting jetty from maven using mvn jetty:run. I have looked at various places (e.g. http://docs.codehaus.org/display/JETTY/JOTM codeHaus ), I am not sure what is missing. I have added carol.properties in my resource folder and here is how the pom looks
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId>
<version>6.0.0</version>
<configuration>
<contextPath>/flex</contextPath>
<scanIntervalSeconds>3000</scanIntervalSeconds>
<scanTargets>
<scanTarget>src/main/webapp/WEB-INF</scanTarget>
</scanTargets>
<!-- Configure a Jotm instance which
provides a
javax.transaction.TransactionManager -->
<!-- and a
javax.transaction.UserTransaction implementation.
-->
<New id="jotm"
class="org.objectweb.jotm.Jotm">
<Arg type="boolean">True</Arg>
<Arg type="boolean">False</Arg>
<Call id="tm"
name="getTransactionManager" />
<Call id="ut"
name="getUserTransaction" />
</New>
<!-- Set up the UserTransaction impl
from JOTM as the transaction
manager for jetty6 -->
<New id="tx"
class="org.mortbay.jetty.plus.naming.Transaction">
<Arg>
<Ref id="ut" />
</Arg>
</New>
<New id="UserTransaction"
class="org.mortbay.jetty.plus.naming.Transaction">
<Arg>
<Ref id="ut" />
</Arg>
</New>
</configuration>
<dependencies>
<dependency>
<groupId>jotm</groupId>
<artifactId>jotm</artifactId>
<version>${jotm.version}</version>
</dependency>
</dependencies>
</plugin>
--
View this message in context:
http://www.nabble.com/Running-Jetty-via-maven-with-JOTM-tf3808610s2369.html#a10779206
Sent from the AppFuse - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
