Fill out the values of the recommender.properties file in the taste- web directory and it should set the web.xml correctly. Of course, you will need to make sure that the class is available.

Also, are you sure you're on the latest trunk of Mahout? What's "svn info" return in the taste-web directory?



On Mar 2, 2009, at 6:20 PM, Sean Owen wrote:

Yes perhaps the Maven-conversion crew can comment on how you pass
params to the build -- I think this part was brought over?

Basically you need to fill in the name of your Recommender class
implementation in web.xml -- you see the placeholder
${recommender.class}? The old script took this as a command line param
and I believe the new one has a similar mechanism.

I think for now you could just edit web.xml manually to achieve the same thing.

On Mon, Mar 2, 2009 at 11:11 PM, Matthew Roberson <[email protected] > wrote:
Have installed and built mahout following the directions @
cwiki.apache.org/MAHOUT

Wanted to run the Taste demo from Apache Taste Documentation: grouplens
demo.

Successfully built the example web application: mahout-taste.war using
ant.

However, when trying to run web application in Tomcat, I get the
following error:
HTTP Status 500 -

________________________________________________________________________

type Exception report

message

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception

javax.servlet.ServletException:
org.apache.mahout.cf.taste.common.TasteException:
java.lang.ClassNotFoundException: ${recommender.class}

org .apache .mahout .cf.taste.web.RecommenderServlet.init(RecommenderServlet.java:78)

org .apache .catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

org .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java: 286)

org .apache.coyote.http11.Http11Processor.process(Http11Processor.java: 845)

org.apache.coyote.http11.Http11Protocol $Http11ConnectionHandler.process(Http11Protocol.java:583)

org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java: 447)
      java.lang.Thread.run(Thread.java:619)

root cause

org.apache.mahout.cf.taste.common.TasteException:
java.lang.ClassNotFoundException: ${recommender.class}

org .apache .mahout .cf.taste.web.RecommenderSingleton.<init>(RecommenderSingleton.java: 53)

org.apache.mahout.cf.taste.web.RecommenderSingleton.initializeIfNeeded (RecommenderSingleton.java:42)

org .apache .mahout .cf.taste.web.RecommenderServlet.init(RecommenderServlet.java:76)

org .apache .catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

org .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java: 286)

org .apache.coyote.http11.Http11Processor.process(Http11Processor.java: 845)

org.apache.coyote.http11.Http11Protocol $Http11ConnectionHandler.process(Http11Protocol.java:583)

org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java: 447)
      java.lang.Thread.run(Thread.java:619)

root cause

java.lang.ClassNotFoundException: ${recommender.class}

org .apache .catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1387)

org .apache .catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1233)
      java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
      java.lang.Class.forName0(Native Method)
      java.lang.Class.forName(Class.java:169)

org .apache .mahout .cf.taste.web.RecommenderSingleton.<init>(RecommenderSingleton.java: 51)

org.apache.mahout.cf.taste.web.RecommenderSingleton.initializeIfNeeded (RecommenderSingleton.java:42)

org .apache .mahout .cf.taste.web.RecommenderServlet.init(RecommenderServlet.java:76)

org .apache .catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

org .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java: 286)

org .apache.coyote.http11.Http11Processor.process(Http11Processor.java: 845)

org.apache.coyote.http11.Http11Protocol $Http11ConnectionHandler.process(Http11Protocol.java:583)

org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java: 447)
      java.lang.Thread.run(Thread.java:619)

note The full stack trace of the root cause is available in the Apache
Tomcat/6.0.18 logs.


________________________________________________________________________
Apache Tomcat/6.0.18

I am new to this and have not been able to resolve this problem...

Can anyone help???


--------------------------
Grant Ingersoll
http://www.lucidimagination.com/

Search the Lucene ecosystem (Lucene/Solr/Nutch/Mahout/Tika/Droids) using Solr/Lucene:
http://www.lucidimagination.com/search

Reply via email to