6.x worked well. By speaking with one of the Jetty developers I understood
(sort of) what the issue was: there is/was an error in their Maven
repository that identified a dead branch (beta3) as the latest version of
the plugin (and the latest gets picked by default). After identifying the
*actual* latest 7.0.0 plugin version, the problem vanished.

Nevertheless, thank you for the input dusty!


dusty wrote:
> 
> That is strange.  I use the older 6.x jetty maven plugin and the restarts
> work well.  The stacktrace is not very helpful in this case.  You may have
> more luck on a maven/jetty mailing list.
> 
> 
> 
> wild_oscar wrote:
>> 
>> Hi,
>> 
>> I'm developing using a Maven modular project (one module for the
>> persistence layer, another for the webapp) and using the maven-jetty
>> plugin in development.
>> 
>> However, I'm getting a strange error: when I make a change to the code
>> jetty (version 7.0.0) automatically restarts (as it should). However, it
>> throws the following error:
>> 
>> 2009-09-21 10:04:13.555::WARN:  EXCEPTION 
>> java.lang.ClassNotFoundException:
>> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
>>      at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>>      at java.security.AccessController.doPrivileged(Native Method)
>>      at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>>      at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>>      at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>>      at
>> org.codehaus.plexus.classworlds.realm.ClassRealm.loadRealmClass(ClassRealm.java:174)
>>      at
>> org.codehaus.plexus.classworlds.strategy.DefaultStrategy.loadClass(DefaultStrategy.java:67)
>>      at
>> org.codehaus.plexus.classworlds.strategy.ForeignStrategy.loadClass(ForeignStrategy.java:39)
>>      at
>> org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:201)
>>      at
>> org.codehaus.plexus.classworlds.strategy.DefaultStrategy.loadClass(DefaultStrategy.java:73)
>>      at
>> org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:201)
>>      at
>> org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:347)
>>      at
>> org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:300)
>>      at org.eclipse.jetty.util.Loader.loadClass(Loader.java:90)
>>      at org.eclipse.jetty.util.Loader.loadClass(Loader.java:70)
>>      at org.eclipse.jetty.servlet.Holder.doStart(Holder.java:75)
>>      at org.eclipse.jetty.servlet.FilterHolder.doStart(FilterHolder.java:58)
>>      at
>> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:56)
>>      at
>> org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:667)
>>      at
>> org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:193)
>>      at
>> org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:923)
>>      at
>> org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:584)
>>      at
>> org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:345)
>>      at
>> org.mortbay.jetty.plugin.JettyWebAppContext.doStart(JettyWebAppContext.java:89)
>>      at
>> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:56)
>>      at
>> org.mortbay.jetty.plugin.JettyRunMojo.restartWebApp(JettyRunMojo.java:410)
>>      at
>> org.mortbay.jetty.plugin.JettyRunMojo$1.filesChanged(JettyRunMojo.java:373)
>>      at org.eclipse.jetty.util.Scanner.reportBulkChanges(Scanner.java:485)
>>      at org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:351)
>>      at org.eclipse.jetty.util.Scanner.scan(Scanner.java:279)
>>      at org.eclipse.jetty.util.Scanner$1.run(Scanner.java:231)
>>      at java.util.TimerThread.mainLoop(Timer.java:512)
>>      at java.util.TimerThread.run(Timer.java:462)
>> 2009-09-21 10:04:13.557::WARN:  Failed startup of context
>> jettywebappcont...@49b09282@49b09282/,file:/home/malmeida/workspaceGestaoDoc/gs-information/webinterface/src/main/webapp/,/home/malmeida/workspaceGestaoDoc/gs-information/webinterface/src/main/webapp
>> javax.servlet.UnavailableException:
>> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
>>      at org.eclipse.jetty.servlet.Holder.doStart(Holder.java:81)
>>      at org.eclipse.jetty.servlet.FilterHolder.doStart(FilterHolder.java:58)
>>      at
>> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:56)
>>      at
>> org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:667)
>>      at
>> org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:193)
>>      at
>> org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:923)
>>      at
>> org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:584)
>>      at
>> org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:345)
>>      at
>> org.mortbay.jetty.plugin.JettyWebAppContext.doStart(JettyWebAppContext.java:89)
>>      at
>> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:56)
>>      at
>> org.mortbay.jetty.plugin.JettyRunMojo.restartWebApp(JettyRunMojo.java:410)
>>      at
>> org.mortbay.jetty.plugin.JettyRunMojo$1.filesChanged(JettyRunMojo.java:373)
>>      at org.eclipse.jetty.util.Scanner.reportBulkChanges(Scanner.java:485)
>>      at org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:351)
>>      at org.eclipse.jetty.util.Scanner.scan(Scanner.java:279)
>>      at org.eclipse.jetty.util.Scanner$1.run(Scanner.java:231)
>>      at java.util.TimerThread.mainLoop(Timer.java:512)
>>      at java.util.TimerThread.run(Timer.java:462)
>> [INFO] Restart completed at Mon Sep 21 10:04:13 WEST 2009
>> 
>> And it obviously fails restarting: I have to stop it and start it again.
>> Has any of you experienced something similar and/or knows why this is
>> happening?
>> 
>> Thank you,
>> 
>> Miguel
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Problem-with-the-jetty-maven-plugin---error-on-hot-redeployoment-tp25530258p25530613.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to