...
If you are using the jetty maven plugin you should copy the etc/jetty-jmx.xml file into your webapp project somewhere, such as src/etc, then add a <jettyConfig> element to the plugin <configuration>:
| Code Block |
|---|
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId>
<version>${project.version}</version>
<configuration>
<scanIntervalSeconds>10</scanIntervalSeconds>
<jettyConfig>src/etc/jetty-jmx.xml</jettyConfig>
<userRealms>
<userRealm implementation="org.mortbay.jetty.security.HashUserRealm">
<name>Test Realm</name>
<config>../../etc/realm.properties</config>
</userRealm>
</userRealms>
</configuration>
</plugin>
|
If you are using mx4j with the jetty-plugin then you should add the mx4j-tools dependecy to the jetty plug-in declaration. It goes something like:
| Code Block |
|---|
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId>
<configuration>...</configuration>
<dependencies>
<dependency>
<groupId>mx4j</groupId>
<artifactId>mx4j-tools</artifactId>
<version>3.0.1</version>
</dependency>
</dependencies>
</plugin>
|
Running on Java 1.4 and below (with MX4J)
...