Hi,

I'm ready the M2 book and I try to build J2EE Applications.
On page 99 of the book, you can execute mvn jetty6:run-exploded goal to
deploy
the unpacked Web application located in target/.

But when I execute mvn -Pjetty-hack jetty6:run-exploded, it fails stating
[INFO] Jetty server exiting.
[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] org/apache/geronimo/samples/daytrader/util/Log
[INFO]
------------------------------------------------------------------------
[INFO] Trace
java.lang.NoClassDefFoundError:
org/apache/geronimo/samples/daytrader/util/Log
       at
org.apache.geronimo.samples.daytrader.web.TradeWebContextListener.contextInitialized
(TradeWebContextListener.java:32)
       at org.mortbay.jetty.handler.ContextHandler.startContext(
ContextHandler.java:368)
       ...

The pom.xml contains a dependency to daytrader-ejb that include
org/apache/geronimo/samples/daytrader/util/Log class.
So I don't understand why it is not working... Any idea ??

If I execute mvn -Pjetty-hack jetty6:run it works well.

Rémy

Reply via email to