[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[jetty-users] Jetty-OSGi is not starting the webapp
|
Hi,
Having problems making Jetty-OSGi start my webapp. Does anyone have a
launch configuration they can share for the example at
http://wiki.eclipse.org/Jetty/Tutorial/Jetty-OSGi_SDK ?
I've gone through the link above and the WebApp section in the OSGi
specification, but can't get the webapp up. It's like Jetty is not
starting the server. I do get a message in the console:
osgi> No default jetty started.
Returning defaultJettyServer = null
I'm using Eclipse 3.6 and a managed target that is using the helios
update site, with the Equinox and Jetty components features enabled.
I've made sure the bundle has a proper WEB-INF/web.xml and that
META-INF/MANIFEST.MF has the Web-ContextPath header. Really, just trying
to follow the tutorial. Has anyone encountered a similar problem?
META-INF/MANIFEST.MF:
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: webapp
Bundle-SymbolicName: com.my.web
Bundle-Version: 1.0.1
Import-Package: org.osgi.framework,
javax.servlet;version="2.5.0",
javax.servlet.http;version="2.5.0"
Web-ContextPath: /web
Bundle-ActivationPolicy: lazy
WEB-INF/web.xml:
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
version="2.5">
<display-name>Webapp</display-name>
</web-app>
Plain web descriptor since I only have static content for now. So no
servlets yet. I should still be able to see static content from the root
of the bundle, correct?
Any tips will be appreciated,
-Renier