Mahout
  1. Mahout
  2. MAHOUT-611

Please make taste-web working with mvn jetty:run (org.apache.mahout.cf.taste.common.TasteException: java.lang.ClassNotFoundException: ${recommender.class})

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Not a Problem
    • Affects Version/s: 0.5
    • Fix Version/s: None
    • Component/s: None
    • Environment:

      Description

      When trying to start the integrated jetty server in taste-web it can not load the class: "$

      {recommender.class}". When checking out trunk it should be possible to directly start up the taste-web application with: mvn jetty:run

      Complete command line output:

      $ pwd
      /Users/manuel/Projects/Masterarbeit/workspace/Mahout/taste-web
      dynamic218:taste-web manuel$ mvn jetty:run
      [INFO] Scanning for projects...
      [INFO] ------------------------------------------------------------------------
      [INFO] Building Mahout Taste Webapp
      [INFO] task-segment: [jetty:run]
      [INFO] ------------------------------------------------------------------------
      [INFO] Preparing jetty:run
      [INFO] [resources:resources {execution: default-resources}]
      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO] Copying 1 resource
      [INFO] Copying 0 resource to /Users/manuel/Projects/Masterarbeit/workspace/Mahout/taste-web/target/mahout-taste-webapp-0.5-SNAPSHOT/WEB-INF/lib
      [INFO] [compiler:compile {execution: default-compile}]
      [INFO] Nothing to compile - all classes are up to date
      [INFO] [resources:testResources {execution: default-testResources}]
      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO] skip non existing resourceDirectory /Users/manuel/Projects/Masterarbeit/workspace/Mahout/taste-web/src/test/resources
      [INFO] [compiler:testCompile {execution: default-testCompile}]
      [INFO] Nothing to compile - all classes are up to date
      [INFO] [jetty:run {execution: default-cli}]
      [INFO] Configuring Jetty for project: Mahout Taste Webapp
      [INFO] webAppSourceDirectory /Users/manuel/Projects/Masterarbeit/workspace/Mahout/taste-web/src/main/webapp does not exist. Defaulting to /Users/manuel/Projects/Masterarbeit/workspace/Mahout/taste-web/src/main/webapp
      [INFO] Reload Mechanic: automatic
      [INFO] Classes = /Users/manuel/Projects/Masterarbeit/workspace/Mahout/taste-web/target/classes
      2011-02-19 18:41:49.989:INFO::Logging to StdErrLog::DEBUG=false via org.eclipse.jetty.util.log.StdErrLog
      [INFO] Context path = /
      [INFO] Tmp directory = /Users/manuel/Projects/Masterarbeit/workspace/Mahout/taste-web/target/tmp
      [INFO] Web defaults = org/eclipse/jetty/webapp/webdefault.xml
      [INFO] Web overrides = none
      [INFO] web.xml file = file:/Users/manuel/Projects/Masterarbeit/workspace/Mahout/taste-web/src/main/webapp/WEB-INF/web.xml
      [INFO] Webapp directory = /Users/manuel/Projects/Masterarbeit/workspace/Mahout/taste-web/src/main/webapp
      [INFO] Starting jetty 7.1.2.v20100523 ...
      2011-02-19 18:41:50.077:INFO::jetty-7.1.2.v20100523
      2011-02-19 18:41:50.770:INFO::No Transaction manager found - if your webapp requires one, please configure one.
      2011-02-19 18:41:50.846:WARN:/:unavailable
      org.apache.mahout.cf.taste.common.TasteException: java.lang.ClassNotFoundException: ${recommender.class}

      at org.apache.mahout.cf.taste.web.RecommenderSingleton.<init>(RecommenderSingleton.java:53)
      at org.apache.mahout.cf.taste.web.RecommenderSingleton.initializeIfNeeded(RecommenderSingleton.java:42)
      at org.apache.mahout.cf.taste.web.RecommenderServlet.init(RecommenderServlet.java:74)
      at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:421)
      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)
      2011-02-19 18:41:50.873:INFO::Started SelectChannelConnector@0.0.0.0:8080
      [INFO] Started Jetty Server
      ^C[INFO] Jetty server exiting.
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESSFUL
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 14 seconds
      [INFO] Finished at: Sat Feb 19 18:42:00 CET 2011
      $

        Activity

          People

          • Assignee:
            Sean Owen
            Reporter:
            Manuel Blechschmidt
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 2h
              2h
              Remaining:
              Remaining Estimate - 2h
              2h
              Logged:
              Time Spent - Not Specified
              Not Specified

                Development