Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » snaps v.3.0.1 and resource servlet
snaps v.3.0.1 and resource servlet [message #754968] Sun, 06 November 2011 01:54 Go to next message
Jan Fetyko is currently offline Jan Fetyko
Messages: 28
Registered: April 2011
Junior Member
Hello,

I'm using the snaps and virgo 3.0.1 and wondering why is there this servlet being loaded by default in the default-web.xml:

<servlet>
  <servlet-name>__resource-servlet</servlet-name>
  <servlet-class>org.eclipse.virgo.snaps.core.internal.webapp.StaticResourceServlet</servlet-class>
</servlet>


Actually, I'm not getting completely does that file even exist? Shouldn't be this something users configure in their wars ?

The above resource servlet is causing me trouble because I have my own handling and I have to disable it by commenting it out in the snap jar, which is an ugly hack.

Thanks.

Jan
Re: snaps v.3.0.1 and resource servlet [message #755026 is a reply to message #754968] Sun, 06 November 2011 20:32 Go to previous messageGo to next message
Dmitry Sklyut is currently offline Dmitry Sklyut
Messages: 271
Registered: January 2010
Senior Member
You should be able to disable it by setting up a servlet with the same servlet name in your web.xml. If that does not work please submit a bugzilla issue.
Also, what kind of trouble does resource servlet causing you?

Regards
Dmitry
Re: snaps v.3.0.1 and resource servlet [message #755031 is a reply to message #755026] Sun, 06 November 2011 23:52 Go to previous messageGo to next message
Jan Fetyko is currently offline Jan Fetyko
Messages: 28
Registered: April 2011
Junior Member
Dmitry,

I'll try your suggestion.

The trouble is that I use tiles and there is a servlet that handles the jsp(s), and if I don't disable this servlet, it takes over and my tiles servlet is not executed.

Jan
Re: snaps v.3.0.1 and resource servlet [message #755143 is a reply to message #755031] Mon, 07 November 2011 09:00 Go to previous message
Dmitry Sklyut is currently offline Dmitry Sklyut
Messages: 271
Registered: January 2010
Senior Member
Hi Jan,

Can you please explain how jsp servlet or resource servlet gets in the way of Tiles? I have not used tiles since Struts days and have not kept up to date with it. As far as I remember - tiles only wanted an "initialization" servlet that does not map to anything. You would still need a "jsp" servlet to render the pages.

We are currently doing "stuff" to snaps - so cases like that would help to test the changes or help us adjust approach. A simple use case snap bundle would help a great deal also.

Thanks
Dmitry
Previous Topic:conflicting values of bundle-symbolic-name
Next Topic:bundle full path file name
Goto Forum:
  


Current Time: Mon Jul 28 10:41:42 EDT 2014

Powered by FUDForum. Page generated in 0.03749 seconds