[ 
https://issues.apache.org/jira/browse/MAHOUT-611?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sean Owen resolved MAHOUT-611.
------------------------------

    Resolution: Not A Problem
      Assignee: Sean Owen

Yes, you have to set this in the properties file. The wiki and such says so I 
believe. It has to be set or else there's no way to know which recommender the 
user is trying to wrap.

> Please make taste-web working with mvn jetty:run 
> (org.apache.mahout.cf.taste.common.TasteException: 
> java.lang.ClassNotFoundException: ${recommender.class})
> -----------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: MAHOUT-611
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-611
>             Project: Mahout
>          Issue Type: Improvement
>    Affects Versions: 0.5
>         Environment: Mahout Hackathon (CBase Berlin):
> Mac OS X 10.6.6
> $ java -version
> java version "1.6.0_22"
> Java(TM) SE Runtime Environment (build 1.6.0_22-b04-307-10M3261)
> Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03-307, mixed mode)
> $ mvn -version
> Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
> Java version: 1.6.0_22
> Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
> Default locale: en_US, platform encoding: MacRoman
> OS name: "mac os x" version: "10.6.6" arch: "x86_64" Family: "mac"
>            Reporter: Manuel Blechschmidt
>            Assignee: Sean Owen
>            Priority: Trivial
>              Labels: Recommender, Servlet, mahout, taste-web
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> 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
> $

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to