Hi all, I tried a couple of additional steps to resolve this issue. I'm curious if I'm heading in the right direction.
(1) I first enabled logging for the Jetty server by following the instructions here: http://stackoverflow.com/questions/2372670/enable-debug-logging-in-maven-jetty-7-plugin (2) This showed me that the Jetty server could not find the WAR file. So I changed the <packaging> field in integration/pom.xml to "war" file type for one time only. This change generated the WAR file in trunk/integration/target/, and I then switched it back to jar again. (3) When I tried to run Jetty, I got java.lang.ClassNotFoundException: ${recommender.class}. So I went into WEB-INF/web.xml, and manually changed <param-value> to org.apache.mahout.cf.taste.example.grouplens.GroupLensRecommender, and rebuilt the system again (I don't know why my changes in recommender.properties didn't take effect). (4) Now, I'm getting java.lang.ClassNotFoundException on the org.apache.mahout.cf.taste.example.grouplens.GroupLensRecommender class. I verified that I copied grouplens.jar to the lib/ directory correctly. I also tried installing everything from scratch for a second time. No luck. I'm running Fedora 15. What am I missing? Should I wait for Mahout's stable 0.6 release? Thank you, Ozgun. On Thu, Aug 18, 2011 at 10:53 AM, Ozgun Erdogan <[email protected]> wrote: > Hi Sean, > > Thanks for the help. I obtained the latest copy from Subversion, and > followed the rest of the instructions. > > When I typed "mvn jetty:run-war" however, I got the following error > message: "The plugin 'org.apache.maven.plugins:maven-jetty-plugin' > does not exist or no valid version could be found" > > I modified the pom.xml file in the integration/ directory, and added > the Jetty plugin: > > <plugin> > <groupId>org.mortbay.jetty</groupId> > <artifactId>maven-jetty-plugin</artifactId> > <version>6.1.0</version> > </plugin> > > Using version 6.1 removed the previous error, but now the Jetty server > responds with either a 404 or 503. I checked contexts known to the > Jetty server, and I don't see mahout-integration-0.6-SNAPSHOT.war in > the target directory (there is a jar file with the same name however). > > I'm thinking this is due to a configuration parameter I missed in the > Jetty plugin, but I can't be sure. Do I need to set the classpath, > scan path, or context path for the Jetty plugin? > > Thank you, > > Ozgun. > > On Wed, Aug 17, 2011 at 1:21 AM, Sean Owen <[email protected]> wrote: >> Use the latest code from Subversion -- this is what the wiki is referring >> to. You will find there is now an integration/ module. >> >> On Wed, Aug 17, 2011 at 2:12 AM, Ozgun Erdogan <[email protected]> wrote: >> >>> Hi all, >>> >>> I'm following the instructions on the Mahout wiki for launching a >>> non-distributed recommender service: >>> >>> $ cd integration >>> $ cp ../examples/target/grouplens.jar ./lib >>> >>> Unfortunately, I don't have an integration directory in my local file >>> system. I tried out my recommender by adding a simple .java file to >>> examples/src/main/java/org/apache/mahout/cf/taste/example/adsense, and >>> it works. >>> >>> I see .props files in src/conf for recommendations, and recommender >>> JWS and servlet files in taste-web. The recommender I'm using, as well >>> as the input files I'm feeding are pretty standard. I feel that all >>> the pieces are there for me to publish this as a web service, but I >>> just don't know which commands to run. >>> >>> Could somebody help? (I see Jetty as a dependency in the POM file. >>> Does Maven pull in all the needed dependencies, or do I also need to >>> install a webserver?) >>> >>> Thank you, >>> >>> Ozgun. >>> >> >
