mahout-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sean Owen <sro...@gmail.com>
Subject Re: Jetty Http error 404
Date Sun, 07 Nov 2010 08:34:03 GMT
Moving to user@

No that is not what it should be. It should have been filled out with
the class name in recommender.properties. Are you sure you ran mvn
package and mvn jetty:run-war?

On Sun, Nov 7, 2010 at 1:03 AM, Deche Pangestu <csharper@gmail.com> wrote:
> Sean, this is the web.xml... is ${recommender.class} the correct setting?
>
>
> <web-app>
>
>  <servlet>
>    <servlet-name>taste-recommender</servlet-name>
>    <display-name>Taste Recommender</display-name>
>    <description>Taste recommender servlet</description>
>
>  <servlet-class>org.apache.mahout.cf.taste.web.RecommenderServlet</servlet-class>
>    <init-param>
>      <param-name>recommender-class</param-name>
>      <param-value>${recommender.class}</param-value>
>    </init-param>
>    <load-on-startup>1</load-on-startup>
>  </servlet>
>
>  <servlet>
>    <servlet-name>axis</servlet-name>
>    <display-name>Apache-Axis Servlet</display-name>
>
>  <servlet-class>org.apache.axis.transport.http.AxisServlet</servlet-class>
>  </servlet>
>
>  <servlet-mapping>
>    <servlet-name>taste-recommender</servlet-name>
>    <url-pattern>/RecommenderServlet</url-pattern>
>  </servlet-mapping>
>  <servlet-mapping>
>    <servlet-name>axis</servlet-name>
>    <url-pattern>*.jws</url-pattern>
>  </servlet-mapping>
>
>  <!-- The rest of the config is adapted from Axis's default web app -->
>
>  <session-config>
>    <session-timeout>5</session-timeout>
>  </session-config>
>
>  <!-- currently the W3C havent settled on a media type for WSDL;
>     http://www.w3.org/TR/2003/WD-wsdl12-20030303/#ietf-draft
>     for now we go with the basic 'it's XML' response -->
>  <mime-mapping>
>    <extension>wsdl</extension>
>    <mime-type>text/xml</mime-type>
>  </mime-mapping>
>  <mime-mapping>
>    <extension>xsd</extension>
>    <mime-type>text/xml</mime-type>
>  </mime-mapping>
>
> </web-app>
>
>
>
> On Sat, Nov 6, 2010 at 8:01 PM, Sean Owen <srowen@gmail.com> wrote:
>
>> It works for me by following those instructions. You can look inside the
>> generate .war file, at WEB-INF/web.xml, and see whether the
>> servlet org.apache.mahout.cf.taste.web.RecommenderServlet actually has its
>> recommender-class param set correctly. It does not seem to be in your case.
>>
>> On Sat, Nov 6, 2010 at 10:28 AM, Deche Pangestu <csharper@gmail.com>
>> wrote:
>>
>> > Yes I followed the instructions on that page and already edit my
>> > recommender.properties file to
>> > uncomment
>> >
>> recommender.class=org.apache.mahout.cf.taste.example.grouplens.GroupLensRecommender
>> > before I got that error...
>> >
>> > there's also already grouplens.jar in my examples/target folder
>> >
>> >
>>
>

Mime
View raw message