Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 14:47 Go to next message
Sasa Teofanovic is currently offline Sasa TeofanovicFriend
Messages: 12
Registered: July 2009
Junior Member
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 15:08 Go to previous messageGo to next message
Simon Kaegi is currently offline Simon KaegiFriend
Messages: 381
Registered: July 2009
Senior Member
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 15:15 Go to previous message
Sasa Teofanovic is currently offline Sasa TeofanovicFriend
Messages: 12
Registered: July 2009
Junior Member
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 Apr 26 02:42:32 GMT 2024

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

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

Back to the top