Thanks for the answers Shawn.
I've pulled the 1.0.1 version but i have the below error when try to
compile.
Building Apache Fortress Web 1.0.1-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[WARNING] The POM for
org.apache.directory.fortress:fortress-realm-impl:jar:1.0.1-SNAPSHOT is
missing, no dependency information available
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 3.004 s
[INFO] Finished at: 2016-07-12T15:12:26-04:00
[INFO] Final Memory: 15M/119M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal on project fortress-web: Could not
resolve dependencies for project
org.apache.directory.fortress:fortress-web:war:1.0.1-SNAPSHOT: Failure
to find
org.apache.directory.fortress:fortress-realm-impl:jar:1.0.1-SNAPSHOT in
http://repo1.maven.org/maven2 was cached in the local repository,
resolution will not be reattempted until the update interval of maven2
has elapsed or updates are forced -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the
-e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
There is a missing dependency perhaps?
Thanks,
D.
On 7/12/2016 3:50 PM, Shawn McKinney wrote:
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