Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[equinox-dev] Problems with http.jetty...

I'm following the instructions for embedded HTTP into Equinox for static
content here:

http://www.eclipse.org/equinox/server/http_in_equinox.php
http://www.eclipse.org/equinox/server/http_writing_application.php

A couple of problems.  Jetty by defaults tries to use port 80.  I've changed
this by setting a VM argument in the Run configuration:

-Dorg.eclipse.equinox.http.jetty.http.port=8080

Now, the framework seems to launch the server successfully:

osgi> Sep 9, 2007 7:56:15 AM org.mortbay.http.HttpServer doStart
INFO:
Version Jetty/5.1.x
Sep 9, 2007 7:56:15 AM org.mortbay.util.Container
start
INFO: Started org.mortbay.jetty.servlet.ServletHandler@def14f
Sep 9,
2007 7:56:15 AM org.mortbay.util.Container start
INFO: Started
HttpContext[/,/]
Sep 9, 2007 7:56:15 AM org.mortbay.http.SocketListener
start
INFO: Started SocketListener on 0.0.0.0:8080
Sep 9, 2007 7:56:15 AM
org.mortbay.util.Container start
INFO: Started
org.mortbay.http.HttpServer@aca5e2

But, my test bundle doesn't work.  I get:

HTTP ERROR: 404

ProxyServlet: /files/index.html

RequestURI=/files/index.html

Powered by Jetty://

Any ideas?  I'm following the directions verbatim, save for the package name
of the bundle - which probably shouldn't matter.

TIA,
Kit





Back to the top