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+Documen
> 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(SelfFirstStrategy.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:39)
>        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
>
>

Reply via email to