Skip to main content



      Home
Home » Eclipse Projects » Equinox » welcome-files not loaded when using equinox servlet bridge!?
welcome-files not loaded when using equinox servlet bridge!? [message #87203] Fri, 27 April 2007 10:47 Go to next message
Eclipse UserFriend
Hi,

I'm running my web application with OSGi bundles in a web container
(Tomcat 5.5), but I have an issue with the welcome-file-list - how can i
register welcome files to the servlet bridge?

Since the equinox BridgeServlet is the entry point to my web application,
delegating wrapped tomcat requests to my web bundles, the welcome files
defined in the web.xml can't be loaded - is there any other way to specify
them?

thx,
teos
Re: welcome-files not loaded when using equinox servlet bridge!? [message #87218 is a reply to message #87203] Fri, 27 April 2007 11:08 Go to previous messageGo to next message
Eclipse UserFriend
Hi Teos,

The servletbridge exposes an OSGi HttpService which unfortunately does not
have welcome file support built in.
I think we could certainly look at doing something implementation specific
however we're very late in the current cycle for adding support, but maybe
for 3.4.

You mentioned earlier that you're registering a resource at "/". You can
build welcome-file support by instead registering your own servlet that in
addition to resource handling handles situations where welcome-file support
would normally kick-in. If you were to do this I'd recommend looking at
ResourceServlet in equinox-incubator/org.eclipse.equinox.http.helper and
consider customizing it to do what you want.
HTH
-Simon

"teos" <sasa.teofanovic@gmx.at> wrote in message
news:a733120565ba90ecdc722fee58ddf160$1@www.eclipse.org...
> Hi,
>
> I'm running my web application with OSGi bundles in a web container
> (Tomcat 5.5), but I have an issue with the welcome-file-list - how can i
> register welcome files to the servlet bridge?
>
> Since the equinox BridgeServlet is the entry point to my web application,
> delegating wrapped tomcat requests to my web bundles, the welcome files
> defined in the web.xml can't be loaded - is there any other way to specify
> them?
>
> thx,
> teos
>
Re: welcome-files not loaded when using equinox servlet bridge!? [message #87233 is a reply to message #87218] Fri, 27 April 2007 11:15 Go to previous message
Eclipse UserFriend
Hi Simon,

ok, thanks for your support - I'll try it with the ResourceSerlvet.

thx,
teos
Previous Topic:"foo.jsp/" in the url is treated as a resource!??
Next Topic:Bug with recursive jsp includes (HttpServletRequestAdapter)???
Goto Forum:
  


Current Time: Fri May 02 09:42:22 EDT 2025

Powered by FUDForum. Page generated in 0.03920 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top