[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [equinox-dev] Servlet API support
|
Simon,
I am aware the the OSGi HttpService has a minimum expectation of Servlet API support which is being met by the equinox service. My point is, however, that the OSGi versioning and dependency resolution is broken here since I express a dependency on the desired version but still can't find out until runtime that my selection of bundles was incorrect.
Does this appear as a limitation of OSGi or is there something smarter that equinox can do in terms of declaring exports in its manifest?
Thanks for the jetty heads up!
Nikunj.
On 11/1/06, Kaegi, Simon <Simon.Kaegi@xxxxxxxxxx> wrote:
The OSGi HttpService requires a minimum of Servlet 2.1
support.
The org.eclipse.equinox.http bundle provides just such a
minimal implementation and is tiny in terms of its overall
size.
The trade-off is that it doesn't support the Servlet API
beyond 2.1. Changes were put in the code so that it would still be able to
resolve against a higher Servlet API albeit throws
UnsupportedOperationExceptions for the use of those methods.
If you want an Http Service that supports Servlet 2.4 you
can use the Jetty based implementation e.g.
org.eclipse.equinox.http.jetty.
HTH
The equinox bundle org.eclipse.equinox.servlet.api_1.0.0 containing
the servlet API says that it exports javax.servlet; version =2.3 and
javax.servlet.http; version =2.3.
However, none of the >2.1 servlet
API features work when using org.eclipse.equinox.http_1.0.100 bundle and result
in
java.lang.UnsupportedOperationException:
HttpService only supports servlet 2.1 specification.
Can someone
throw light on the reason behind such behavior?
Nikunj
This message may contain privileged and/or confidential information. If you have received this e-mail in error or are not the intended recipient, you may not use, copy, disseminate or distribute it; do not open any attachments, delete it immediately from your system and notify the sender promptly by e-mail that you have done so. Thank you.
_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev