Hi Kirk,

you ma also have a look at http://wiki.ops4j.org/confluence/x/CgNN.

Alin

On Sat, Feb 23, 2008 at 10:07 AM, Kirk Knoernschild <[EMAIL PROTECTED]> wrote:
>
> I've managed to embed Jetty in Felix and get it to serve up static content
> (thanx to some help from the ResourceServlet from PAX WEB). Now I'm onto
> JSPs. But this is where it's getting pretty tricky.
>
> The only documentation I can find is on the Jetty site, and that details how
> to embed Jetty in Equinox. I doubt the Jetty team has tested this
> thoroughly, though. When I try to install the appropriate bundles, I run
> into numerous problems:
>
> - The ant-1.6.5.jar isn't a valid bundle, and so I had to modify the
> jsp-2.1.jar to include the ant-1.6.5.jar in the bundle, then add it to the
> Bundle-Classpath.
> - The real kicker though is that jsp-2.1.jar depends on package exports from
> core-3.1.1.jar and core-3.1.1.jar requires equinox bundles. While it has
> those bundles listed as optionally required, core-3.1.1.jar doesn't resolve
> properly under felix. Since they were listed as optional, I removed them
> from the Manifest.mf and repackaged. After that, it resolved fine, but I get
> an NoClassDefFoundError when starting the bundle, as it can't load the
> org.eclipse.core.runtime.PlugIn class. I suppose it's the end of the road
> for hoping to embed Jetty in Felix until I can work with the Jetty team to
> get this resolved.
>
> Oh, I also had to add the following packages to the configuration, as Jetty
> was looking for them as well when resolve jsp-api-2.1.jar:
> com.sun.org.apache.xalan.internal.res; \
> com.sun.org.apache.xml.internal.utils; \
> com.sun.org.apache.xpath.internal; \
> com.sun.org.apache.xpath.internal.jaxp; \
> com.sun.org.apache.xpath.internal.objects; \
>
> --kirk
_______________________________________________
OSGi Developer Mail List
[email protected]
https://www2.osgi.org/mailman/listinfo/osgi-dev

Reply via email to