> Hello
>
> I was trying to get an OSGi Http Service to run with a jetty version >= 7.
>
> I'm using felix and I'm successful till the point I can programmatically
> have a webserver running instantiation org.eclipse.jetty.server.Server
>
> for this I install the following bundles:
>
> javax.servlet - Servlet API Bundle (2.5.0.v200910301333)
> org.eclipse.jetty.server - Jetty :: Server Core (7.1.3.v20100526)
> org.eclipse.jetty.continuation - Jetty :: Continuation (7.1.3.v20100526)
> org.eclipse.jetty.util - Jetty :: Utilities (7.1.3.v20100526)
>
org.eclipse.jetty.io - Jetty :: IO Utility (7.1.3.v20100526)
> org.eclipse.jetty.http - Jetty :: Http Utility (7.1.3.v20100526)
>
> Now to get HttpService running I installed [1]
>
> org.eclipse.jetty.osgi.httpservice - OSGi HttpService provided by equinox
> HttpServiceServlet deployed on jetty (7.1.3.v20100526)
>
> and its dependency:
>
> org.eclipse.equinox.http.servlet - Http Services Servlet (1.1.0.v20100503)
>
> All bundles are active but I see no HttpService, as the name Bootstrap
> sounded promising I install the following bundles too:
>
> org.eclipse.jetty.osgi.boot - Jetty OSGi bootstrap (7.1.3.v20100526)
> org.eclipse.jetty.servlet - Jetty :: Servlet Handling (7.1.3.v20100526)
> org.eclipse.jetty.security - Jetty :: Security (7.1.3.v20100526)
> org.eclipse.jetty.webapp - Jetty :: Webapp Application Support
> (7.1.3.v20100526)
> org.eclipse.jetty.xml - Jetty :: XML utilities (7.1.3.v20100526)
> org.eclipse.jetty.deploy - Jetty :: Deployers (7.1.3.v20100526)
>
>
> I now get the following exception
>
> org.osgi.framework.BundleException: Activator start error in bundle
> org.eclipse.jetty.osgi.boot [112].
> at org.apache.felix.framework.Felix.activateBundle(Felix.java:1803)
> at org.apache.felix.framework.Felix.startBundle(Felix.java:1678)
> at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:905)
> [FelixDispatchQueue] INFO
> org.apache.clerezza.platform.documentation.DocumentationProvider -
> Unregistered documentation of bundle: org.eclipse.jetty.osgi.boot
> at
> org.apache.felix.shell.impl.StartCommandImpl.execute(StartCommandImpl.java:114)
> at
> org.apache.felix.shell.impl.Activator$ExecutePrivileged.run(Activator.java:375)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(Activator.java:274)
> at
> org.apache.felix.shell.tui.Activator$ShellTuiRunnable.run(Activator.java:184)
> at java.lang.Thread.run(Thread.java:636)
> Caused by: java.lang.NoClassDefFoundError: org/xml/sax/SAXException
> at
> org.eclipse.jetty.osgi.boot.internal.webapp.JettyContextHandlerServiceTracker.<init>(JettyContextHandlerServiceTracker.java:74)
> at
> org.eclipse.jetty.osgi.boot.JettyBootstrapActivator.start(JettyBootstrapActivator.java:92)
> at
> org.apache.felix.framework.util.SecureAction$Actions.run(SecureAction.java:1284)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:652)
> at org.apache.felix.framework.Felix.activateBundle(Felix.java:1756)
> ... 8 more
> Caused by: java.lang.ClassNotFoundException: org.xml.sax.SAXException
> at
> org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:814)
> at org.apache.felix.framework.ModuleImpl.access$100(ModuleImpl.java:61)
> at
> org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1733)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:334)
> ... 14 more
> java.lang.NoClassDefFoundError: org/xml/sax/SAXException
>
>
> I this this is cause by org.eclipse.jetty.osgi.boot not import ogr.xml.sax.
>
> I would be thankful for any hint on how to have an HttpService running with
> a recent jetty version.
>
> Cheers,
> reto
>
> 1.
http://www.eclipse.org/equinox/server/http_in_equinox.php
>