Is there an extension point to point to the web app context [message #530867] |
Sun, 02 May 2010 01:45  |
Eclipse User |
|
|
|
I am not sure whether it is proper to post the question here,If not ,please help to forward to the correct newsgroup.
I have a question:
I have a standard web app,that is,the web app has WEB-INF folder,and web.xml,filters and servlets are registered in the web.xml.
I want to know whether there is an extension point that I can point to the path of the web app,and then I can load the web app with the eclipse embedded jetty server?
Thanks.
|
|
|
Re: Is there an extension point to point to the web app context [message #531186 is a reply to message #530867] |
Tue, 04 May 2010 02:51  |
Eclipse User |
|
|
|
Hi,
afaik configuration via web.xml doesn't work with jetty. Instead you
have to use OSGi's standard HTTPService to register your servlets, etc.
Filters are supported with Eclipse 3.6, too.
You can do this either programmtically by acquiring an instance of
org.osgi.service.http.HttpService or use one of the extension points
org.eclipse.equinox.http.registry.*
Hope this helps,
Stefan.
eclipser schrieb:
> I am not sure whether it is proper to post the question here,If not
> ,please help to forward to the correct newsgroup.
>
> I have a question:
>
> I have a standard web app,that is,the web app has WEB-INF folder,and
> web.xml,filters and servlets are registered in the web.xml.
>
> I want to know whether there is an extension point that I can point to
> the path of the web app,and then I can load the web app with the eclipse
> embedded jetty server?
>
> Thanks.
|
|
|
Powered by
FUDForum. Page generated in 0.31383 seconds