mahout-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nagu <thog...@gmail.com>
Subject Re: HTTP Status 404 while trying to run mahout demo
Date Sun, 24 May 2009 04:12:24 GMT
I noticed that my command in step 10, mvn jetty:run-war, was failed with the
following errors:

galois@galois-desktop:~/mahout/trunk/taste-web$ mvn jetty:run-war
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'jetty'.
[INFO]
------------------------------------------------------------------------
[INFO] Building Mahout Taste Webapp
[INFO]    task-segment: [jetty:run-war]
[INFO]
------------------------------------------------------------------------
[INFO] Preparing jetty:run-war
[INFO] [resources:resources]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO] Copying 1 resource to
/home/galois/mahout/trunk/taste-web/target/mahout-taste-webapp-0.2-SNAPSHOT/WEB-INF/lib
[INFO] [resources:copy-resources {execution: copy-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory
/home/galois/mahout/trunk/taste-web/src/test/resources
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] No tests to run.
[INFO] [war:war]
[INFO] Packaging webapp
[INFO] Assembling webapp[mahout-taste-webapp] in
[/home/galois/mahout/trunk/taste-web/target/mahout-taste-webapp-0.2-SNAPSHOT]
[INFO] Dependency[Dependency {groupId=org.apache.mahout,
artifactId=mahout-core, version=0.2-SNAPSHOT, type=jar}] has changed (was
Dependency {groupId=org.apache.mahout, artifactId=mahout-core,
version=0.2-SNAPSHOT, type=jar}).
[INFO] Dependency[Dependency {groupId=axis, artifactId=axis, version=1.4,
type=jar}] has changed (was Dependency {groupId=axis, artifactId=axis,
version=1.4, type=jar}).
[INFO] Dependency[Dependency {groupId=javax.servlet, artifactId=servlet-api,
version=2.4, type=jar}] has changed (was Dependency {groupId=javax.servlet,
artifactId=servlet-api, version=2.4, type=jar}).
[INFO] Dependency[Dependency {groupId=org.slf4j, artifactId=slf4j-api,
version=1.5.6, type=jar}] has changed (was Dependency {groupId=org.slf4j,
artifactId=slf4j-api, version=1.5.6, type=jar}).
[INFO] Dependency[Dependency {groupId=org.slf4j, artifactId=slf4j-jcl,
version=1.5.6, type=jar}] has changed (was Dependency {groupId=org.slf4j,
artifactId=slf4j-jcl, version=1.5.6, type=jar}).
[INFO] Processing war project
[INFO] Copying webapp
resources[/home/galois/mahout/trunk/taste-web/src/main/webapp]
[INFO] Webapp assembled in[62 msecs]
[INFO] Building war:
/home/galois/mahout/trunk/taste-web/target/mahout-taste-webapp-0.2-SNAPSHOT.war
[INFO] [jetty:run-war]
[INFO] Configuring Jetty for project: Mahout Taste Webapp
2009-05-23 21:05:31.120::INFO:  Logging to STDERR via
org.mortbay.log.StdErrLog
[INFO] Context path = /mahout-taste-webapp
[INFO] Tmp directory =  determined at runtime
[INFO] Web defaults = org/mortbay/jetty/webapp/webdefault.xml
[INFO] Web overrides =  none
[INFO] Starting jetty 7.0.0.pre5 ...
2009-05-23 21:05:31.188::INFO:  jetty-7.0.0.pre5
2009-05-23 21:05:31.203::INFO:  Extract
jar:file:/home/galois/mahout/trunk/taste-web/target/mahout-taste-webapp-0.2-SNAPSHOT.war!/
to /home/galois/mahout/trunk/taste-web/target/work/webapp
2009-05-23 21:05:32.819::INFO:  No Transaction manager found - if your
webapp requires one, please configure one.
2009-05-23 21:05:32.156::WARN:  failed SelectChannelConnector@0.0.0.0:8080
java.net.BindException: Address already in use
    at sun.nio.ch.Net.bind(Native Method)
    at
sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119)
    at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
    at
org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector.java:196)
    at
org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:283)
    at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    at org.mortbay.jetty.Server.doStart(Server.java:233)
    at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    at
org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:132)
    at
org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:384)
    at
org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:320)
    at org.mortbay.jetty.plugin.Jetty6RunWar.execute(Jetty6RunWar.java:67)
    at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512)
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482)
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
    at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
    at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
    at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
2009-05-23 21:05:32.157::WARN:  failed org.mortbay.jetty.Server@29e26602
java.net.BindException: Address already in use
    at sun.nio.ch.Net.bind(Native Method)
    at
sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119)
    at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
    at
org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector.java:196)
    at
org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:283)
    at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    at org.mortbay.jetty.Server.doStart(Server.java:233)
    at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    at
org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:132)
    at
org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:384)
    at
org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:320)
    at org.mortbay.jetty.plugin.Jetty6RunWar.execute(Jetty6RunWar.java:67)
    at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512)
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482)
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
    at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
    at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
    at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO] Jetty server exiting.
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failure

Embedded error: Address already in use
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 7 seconds
[INFO] Finished at: Sat May 23 21:05:32 PDT 2009
[INFO] Final Memory: 32M/356M
[INFO]
------------------------------------------------------------------------
2009-05-23 21:05:32.280::INFO:  Shutdown hook executing
2009-05-23 21:05:33.884::INFO:  Shutdown hook complete
galois@galois-desktop:~/mahout/trunk/taste-web$


Please advice.

Thank you,
Nagu




On Sat, May 23, 2009 at 8:13 PM, Nagu <thogiti@gmail.com> wrote:

> Hi,
>
> I am trying to run the demo at
> http://lucene.apache.org/mahout/taste.html#demo. When I try to access the
> web application in browser (step 11,
> http://localhost:8080/mahout-taste-webapp/RecommenderServlet?userID=1), I
> get HTTP 404 error.
>
> Here is the complete error message:
>
> HTTP Status 404 - /mahout-taste-webapp/RecommenderServlet
> ------------------------------
>
> *type* Status report
>
> *message* */mahout-taste-webapp/RecommenderServlet*
>
> *description* *The requested resource
> (/mahout-taste-webapp/RecommenderServlet) is not available.*
> ------------------------------
> Apache Tomcat/6.0.18
> Please advice.
>
> Thank you,
> Nagu
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message