> On Jul 11, 2016, at 12:43 PM, Damianos Metallidis <[email protected]>
> wrote:
>
> I am too using IntelliJ as IDE and also maven for managing the dependencies.
> Yes it seems that i am missing /java.lang.NoClassDefFoundError:
> org/eclipse/jetty/jmx/ObjectMBean//.
> /Should this be included in the fortress-web.war or as a standalone in the
> classpath? I am a little bit confused of it.
The War file doesn’t contain everything needed by Jetty server to run
fortress-web. Take a look at the fortress-web pom.xml, dependency’s marked
with a scope of ‘test’. These might also be needed on the server’s classpath.
But those test dependencies are for processes other than jetty. For example,
another test module uses selenium.
These two are for sure needed on the server’s classpath:
<!-- JETTY used for embedded testing -->
<dependency>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty</artifactId>
<version>6.1.25</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.eclipse.jetty.aggregate</groupId>
<artifactId>jetty-all-server</artifactId>
<version>${jetty.version}</version>
<scope>provided</scope>
</dependency>
Experiment with the version of jetty that you use. I haven’t tested the jetty
for a long time. Tomcat is almost as lean and doesn’t require loading
credentials into a flat file, unencrypted.
I really like Jetty. It would be cool if someone could figure out how to use
its security SPI and write a new plug-in that uses fortress instead files.
Shawn