See here: https://github.com/tdunning/Chapter-16
On Sat, Aug 27, 2011 at 12:33 AM, Ramo Karahasan < [email protected]> wrote: > Thank you Sean, > > i'll try that today. > > Is there an similar example for classification/classify with an web > application? > > > -----Ursprüngliche Nachricht----- > Von: Lance Norskog [mailto:[email protected]] > Gesendet: Samstag, 27. August 2011 05:05 > An: [email protected] > Betreff: Re: How to get recommendation demo example working > > Thanks for doing that wiki maintenence. > > In the long run, is this the best way to package the query phase of a > recommender? There are design tensions: understandability, ease of > demonstrating, pathway to making a packaged app. > > On Fri, Aug 26, 2011 at 9:14 AM, Sean Owen <[email protected]> wrote: > > > Ah. You are right. This doesn't work at the moment. The good news is a > > can and have fixed it. And, the process for building the demo is > > faster and simpler now. See my updated instructions on the wiki, and > > make sure to get all the latest code from Subversion. > > > > The bad news is that it has become really hard to support the old > > functionality, that would take a .jar file with a Recommender and > > create a .war for the recommender. It's also become hard to keep the > > Axis functionality up-to-date and working, though that was quite out > > of date anyway. I removed these, which simplifies things. > > > > I think anyone who really uses this is going to want to build out > > there own servlet app, possibly on the simple template provided. So I > > don't know that anyone really used that auto-.war business anyway. > > > > Thanks, > > Sean > > > > On Fri, Aug 26, 2011 at 3:50 PM, Ramo Karahasan < > > [email protected]> wrote: > > > > > Hi Sean, > > > > > > thank you for your hints. I used now the original pom, where packing > > > is > > set > > > to .jar so I get no .war file created. Do you have an idea what to > > change? > > > > > > Thanks, > > > RK > > > > > > -----Ursprüngliche Nachricht----- > > > Von: Sean Owen [mailto:[email protected]] > > > Gesendet: Freitag, 26. August 2011 16:38 > > > An: [email protected] > > > Betreff: Re: How to get recommendation demo example working > > > > > > The problem may be your changes; I would start with exactly what's > > > in the distribution, since it works. > > > > > > I am not sure that the demo will work when accesses through Jetty, > > > as a > > web > > > service. I don't know that Jetty has Axis in it. But the > > > servlet-based > > API > > > should work fine. > > > > > > Really, you'd want to export the .war file which the build creates > > > for > > you > > > already and run it in an app server. It should package up Axis for > > > you > > and > > > all that. > > > > > > On Fri, Aug 26, 2011 at 3:33 PM, Ramo Karahasan < > > > [email protected]> wrote: > > > > > > > Hi there, > > > > > > > > i'm really new to Apache Mahout, did the Quickstart and started > > > > now this > > > > example: > > > > > > > > > > > > https://cwiki.apache.org/confluence/display/MAHOUT/Recommender+Doc > > > > umen > > > > tation > > > > > > > > I wanted to run the "Demo" section. If I start jetty per mvn > > > > jetty:run-war I'm getting the following Exceptions > > > > > > > > > > > > 2011-08-26 16:23:32.687::INFO: Extract > > > > jar:file:/home/developer/workspace/trunk/integration/target/mahout > > > > -int > > > > egration-0.6-SNAPSHOT.war!/ to > > > > /home/developer/workspace/trunk/integration/target/work/webapp > > > > 2011-08-26 16:23:36.322::INFO: No Transaction manager found - if > > > > your webapp requires one, please configure one. > > > > 2011-08-26 16:23:37.609::WARN: EXCEPTION > > > > java.lang.ClassNotFoundException: > > > > org.apache.axis.transport.http.AxisServlet > > > > at > > > > > > > > > org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(S > > elfFirstStrategy.java:50) > > > > at > > > > > > > > > org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm. > > java:244) > > > > at > > > > > > > > > org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm. > > java:230) > > > > at > > > > > > > > > org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader > > .java:375) > > > > at > > > > > > > > > org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader > > .java:337) > > > > at org.mortbay.util.Loader.loadClass(Loader.java:91) > > > > at org.mortbay.util.Loader.loadClass(Loader.java:71) > > > > at org.mortbay.jetty.servlet.Holder.doStart(Holder.java:73) > > > > at > > > > > org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:233) > > > > at > > > > > > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:3 > > 9) > > > > at > > > > org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler > > > > .jav > > > > a:612) > > > > > > > > > > > > and a lot more after this. > > > > > > > > What I've changed in the path trunk/integration.pom.xml is the > > following: > > > > > > > > Changed <packaging>jar</packaging> to war Added <dependency> > > > > <groupId>org.apache.axis2</groupId> > > > > <artifactId>axis2</artifactId> > > > > <version>1.6.0</version> > > > > </dependency> > > > > <dependency> > > > > <groupId>org.apache.axis2</groupId> > > > > <artifactId>axis2-transport-http</artifactId> > > > > <version>1.6.0</version> > > > > </dependency> > > > > > > > > And added: > > > > <plugin> > > > > <groupId>org.mortbay.jetty</groupId> > > > > <artifactId>maven-jetty-plugin</artifactId> > > > > <version>6.1.10</version> > > > > <configuration> > > > > <scanIntervalSeconds>10</scanIntervalSeconds> > > > > <stopKey>foo</stopKey> > > > > <stopPort>9999</stopPort> > > > > </configuration> > > > > <executions> > > > > <execution> > > > > <id>start-jetty</id> > > > > <phase>pre-integration-test</phase> > > > > <goals> > > > > <goal>run</goal> > > > > </goals> > > > > <configuration> > > > > > > > <scanIntervalSeconds>0</scanIntervalSeconds> > > > > <daemon>true</daemon> > > > > </configuration> > > > > </execution> > > > > <execution> > > > > <id>stop-jetty</id> > > > > <phase>post-integration-test</phase> > > > > <goals> > > > > <goal>stop</goal> > > > > </goals> > > > > </execution> > > > > </executions> > > > > </plugin> > > > > > > > > After this re-configuration I did a mvn clean package > > > > jetty:run-war > > > > > > > > But still getting this error. > > > > > > > > Does anyone have some hints how to solve this issue? > > > > > > > > Thanks, > > > > RK > > > > > > > > > > > > > > > > > > > > -- > Lance Norskog > [email protected] > >
