Hi Sean,
Ok, so I ran jetty in debug mode. Acessing
http://localhost:8080/RecommenderServlet?userID=1 gave this error
HTTP ERROR 503
Problem accessing /RecommenderServlet. Reason:
org.apache.mahout.cf.taste.common.TasteException:
java.lang.ClassNotFoundException: ${recommender.class}
Caused by:
javax.servlet.UnavailableException:
org.apache.mahout.cf.taste.common.TasteException:
java.lang.ClassNotFoundException: ${recommender.class}
at
org.eclipse.jetty.servlet.ServletHolder.makeUnavailable(ServletHolder.java:394)
at
org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:432)
at
org.eclipse.jetty.servlet.ServletHolder.doStart(ServletHolder.java:245)
at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
at
org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:691)
at
org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:192)
at
org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:995)
at
org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:579)
at
org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:381)
at
org.mortbay.jetty.plugin.JettyWebAppContext.doStart(JettyWebAppContext.java:114)
at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
at
org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:165)
at
org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:162)
at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
at
org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:165)
at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
at
org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:92)
at org.eclipse.jetty.server.Server.doStart(Server.java:226)
at org.mortbay.jetty.plugin.JettyServer.doStart(JettyServer.java:67)
at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
at
org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:433)
at
org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:377)
at org.mortbay.jetty.plugin.JettyRunMojo.execute(JettyRunMojo.java:577)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Was this a build error?
Thanks for your help!
On Sat, Nov 6, 2010 at 4:58 PM, Sean Owen <[email protected]> wrote:
> I would try 'localhost' to be sure. I am guessing the servlet did not
> deploy
> for some reason. You'd have to dig into the logs or debug output to see
> what
> it is complaining about. Otherwise it looks right.
>
> On Sat, Nov 6, 2010 at 6:26 AM, Deche Pangestu <[email protected]> wrote:
>
> > Hi all,
> >
> > I'm very excited about using recommendation system in my web apps and am
> > new
> > to Mahout.
> > I tried installing it and everything seemed to install smoothly until I
> ran
> > this command: mvn jetty:run-war
> > Jetty was started up, but when I tried to access
> http://mydomain.com:8080/
> > this is what I get:
> > HTTP ERROR: 404
> >
> > Problem accessing /. Reason:
> >
> > Not Found
> >
> > ------------------------------
> > *Powered by Jetty://*
> > *I also tried http://173.255.212.208:8080/RecommenderServlet?userID=1*
> > which resulted in:
> > HTTP ERROR: 404
> >
> > Problem accessing /RecommenderServlet. Reason:
> >
> > Not Found
> >
> > ------------------------------
> > *Powered by Jetty:/*
> >
> >
> > Does anyone know what I'm missing and what I need to do?
> > Thanks!
> >
>