Failure running mvn jetty:run

280 views
Skip to first unread message

vito256

unread,
Oct 5, 2011, 3:51:15 PM10/5/11
to The Lift Book
Hi,
I have successfully built pocketchangeapp but when I run mvn
jetty:run
I get the following Error:

[INFO] Starting jetty 6.1.26 ...
2011-10-05 02:51:09.117:INFO::jetty-6.1.26
2011-10-05 02:51:09.220:INFO::No Transaction manager found - if your
webapp requires one, please configure one.
2011-10-05 02:51:09,907 [main] ERROR n.l.h.p.HTTPProvider - Failed to
Boot! Your application may not run properly
java.lang.ClassNotFoundException: bootstrap.liftweb.Brat
at java.net.URLClassLoader$1.run(URLClassLoader.java:202) ~[na:
1.6.0_26]
at java.security.AccessController.doPrivileged(Native Method) ~[na:
1.6.0_26]
at java.net.URLClassLoader.findClass(URLClassLoader.java:190) ~[na:
1.6.0_26]
at java.lang.ClassLoader.loadClass(ClassLoader.java:306) ~[na:
1.6.0_26]
at
org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:
195) ~[classworlds-1.1-final.jar:na]
at
org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:
255) ~[classworlds-1.1-final.jar:na]
at
org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:
274) ~[classworlds-1.1-final.jar:na]
at
org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:
214) ~[classworlds-1.1-final.jar:na]
at java.lang.ClassLoader.loadClass(ClassLoader.java:247) ~[na:
1.6.0_26]
at
org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:
401) ~[jetty-6.1.26.jar:6.1.26]
at
org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:
363) ~[jetty-6.1.26.jar:6.1.26]
at java.lang.Class.forName0(Native Method) ~[na:1.6.0_26]
at java.lang.Class.forName(Class.java:169) ~[na:1.6.0_26]
at net.liftweb.http.provider.HTTPProvider$$anonfun
$1.apply(HTTPProvider.scala:78) ~[lift-webkit_2.8.1-2.2.jar:2.2]
at net.liftweb.http.provider.HTTPProvider$$anonfun
$1.apply(HTTPProvider.scala:78) ~[lift-webkit_2.8.1-2.2.jar:2.2]
at net.liftweb.common.Full.map(Box.scala:398) ~[lift-
common_2.8.1-2.2.jar:2.2]
at net.liftweb.http.provider.HTTPProvider
$class.bootLift(HTTPProvider.scala:78) ~[lift-webkit_2.8.1-2.2.jar:
2.2]
at net.liftweb.http.LiftFilter.bootLift(LiftServlet.scala:635) [lift-
webkit_2.8.1-2.2.jar:2.2]
at net.liftweb.http.provider.servlet.ServletFilterProvider
$class.init(ServletFilterProvider.scala:40) [lift-webkit_2.8.1-2.2.jar:
2.2]
at net.liftweb.http.LiftFilter.init(LiftServlet.scala:635) [lift-
webkit_2.8.1-2.2.jar:2.2]
at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:
97) [jetty-6.1.26.jar:6.1.26]
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
50) [jetty-util-6.1.26.jar:6.1.26]
at
org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:
713) [jetty-6.1.26.jar:6.1.26]
at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
[jetty-6.1.26.jar:6.1.26]
at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:
1282) [jetty-6.1.26.jar:6.1.26]
at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:
518) [jetty-6.1.26.jar:6.1.26]
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:
499) [jetty-6.1.26.jar:6.1.26]
at
org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:
115) [maven-jetty-plugin-6.1.26.jar:6.1.26]
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
50) [jetty-util-6.1.26.jar:6.1.26]
at
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:
152) [jetty-6.1.26.jar:6.1.26]
at
org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:
156) [jetty-6.1.26.jar:6.1.26]
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
50) [jetty-util-6.1.26.jar:6.1.26]
at
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:
152) [jetty-6.1.26.jar:6.1.26]
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
50) [jetty-util-6.1.26.jar:6.1.26]
at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:
130) [jetty-6.1.26.jar:6.1.26]
at org.mortbay.jetty.Server.doStart(Server.java:224)
[jetty-6.1.26.jar:6.1.26]
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
50) [jetty-util-6.1.26.jar:6.1.26]
at
org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:
132) [maven-jetty-plugin-6.1.26.jar:6.1.26]
at
org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:
454) [maven-jetty-plugin-6.1.26.jar:6.1.26]
at
org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:
396) [maven-jetty-plugin-6.1.26.jar:6.1.26]
at
org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:
210) [maven-jetty-plugin-6.1.26.jar:6.1.26]
at org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:
184) [maven-jetty-plugin-6.1.26.jar:6.1.26]
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:
490) [maven-debian-uber.jar:na]
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:
694) [maven-debian-uber.jar:na]
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:
569) [maven-debian-uber.jar:na]
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:
539) [maven-debian-uber.jar:na]
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:
387) [maven-debian-uber.jar:na]
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:
348) [maven-debian-uber.jar:na]
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:
180) [maven-debian-uber.jar:na]
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
[maven-debian-uber.jar:na]
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
[maven-debian-uber.jar:na]
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) [maven-
debian-uber.jar:na]
at
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:
60) [maven-debian-uber.jar:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:
1.6.0_26]
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39) ~[na:1.6.0_26]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25) ~[na:1.6.0_26]
at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_26]
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:
315) [classworlds-1.1-final.jar:na]
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
[classworlds-1.1-final.jar:na]
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:
430) [classworlds-1.1-final.jar:na]
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[classworlds-1.1-final.jar:na]
2011-10-05 02:51:09,937 [main] ERROR net.liftweb.util.Props - Failed
to find a properties file (but properties were accessed).
Searched ...

TylerWeir

unread,
Oct 5, 2011, 4:01:17 PM10/5/11
to the-li...@googlegroups.com
This seems kind of weird:

" bootstrap.liftweb.Brat "

You can ignore the message about a transaction manager and you may want to solve the .props issue.

You can add a default.props file to main/src/resources

vito256

unread,
Oct 5, 2011, 4:52:39 PM10/5/11
to The Lift Book
Do you know in which artifact does bootstrap.liftweb.Brat suppose to
be in?

TylerWeir

unread,
Oct 5, 2011, 5:58:27 PM10/5/11
to the-li...@googlegroups.com
Pretty sure you want bootstrap.liftweb.Boot
Reply all
Reply to author
Forward
0 new messages