Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Servlet API

Thank you for clarification. OSGi is so complex...

2013/8/1 Joakim Erdfelt <joakim@xxxxxxxxxxx>
The difference is the OSGi manifests and jar signatures.

Since we integrate with the rest of the Eclipse ecosystem as an OSGi component, we have to "play nice" with the rest of the projects at
The Orbit dependency is also signed by the Eclipse Foundation, suppressing the "unsigned" warning in eclipse when you attempt to install any eclipse component that uses the servlet-api.

You can think of the logic on which one to use like this.

if ( isProjectUsingOsgi() ) {
   if ( isProjectEclipseCore() ) {
      return "org.eclipse.jetty.orbit:javax.servlet:3.0.0.v201112011016"
   }  else {
      return "javax.servlet:javax.servlet-api:3.0.1"
} else {
   return "javax.servlet:javax.servlet-api:3.0.1"

Note: One important thing to point out..
Due to mass group dainbreaded-ness on the rest of the Eclipse ecosystem's part, the OSGi manifest for org.eclipse.jetty.orbit:javax.servlet:3.0.0.v201112011016 says

Export-Package: javax.servlet;version="2.6.0";uses:="javax.servlet.ann
Bundle-Version: 3.0.0.v201112011016

While the one for javax.servlet:javax.servlet-api:3.0.1 says
Export-Package: javax.servlet;uses:="javax.servlet.descriptor,
Tool: Bnd-0.0.255
Bundle-Version: 3.0.1

Yes, your eyes are not deceiving you.  The orbit dependency does export itself as Servlet API version "2.6.0".

Joakim Erdfelt <joakim@xxxxxxxxxxx>
Developer advice, services and support
from the Jetty & CometD experts

On Wed, Jul 31, 2013 at 8:21 PM, Mikhail Mazursky <ash2kk@xxxxxxxxx> wrote:

What is the difference between javax.servlet:javax.servlet-api:3.0.1 and org.eclipse.jetty.orbit:javax.servlet:3.0.0.v201112011016 ? Why Jetty uses the latter and which one of them should I use?


jetty-users mailing list

jetty-users mailing list

Back to the top