Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Filter problem - jar file not downloading  RSS feed

Ranch Hand
Posts: 624
IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My team and I are running into an interesting problem that I was hoping someone might have some insight on solving.

We are using a filter in our Web App that is mapped to all requests:

This is running on a Sun ONE Web Server v6.1 (which is Servlet 2.3 / JSP 1.2 compliant) on Solaris 8.
Client is a company standard configuration of Windows XP with IE 6, Sun JRE 1.4.2_xx.

Our solution leverages five separate MiddleWare Applets saved in separate jars:
One.jar - 20KB
Two.jar - 518KB
Three.jar - 297 KB
Four.jar - 94KB
Five.jar - 1,111KB

All the applets load and execute properly, with one exception, the applet in Five.jar. Further investigation shows that the problem applet�s jar file is not being downloaded. If we change the filter mapping�s URL to hard-coded URL patterns (and thus the filter is not implemented for the request of jar file), the jar is downloaded and the applet executes properly. If we then turn the filter back to "/*" (without clearing the client�s JRE cache) the applet works fine (since the jar file is cached in the JRE and does not need to be downloaded again). If we clear the JRE�s cache (leaving the filter "on"), the jar file is not downloaded and the applet fails.

We even set up a dummy filter that does nothing but calls the filter chain (in which there are no other filters mapped).

Using a "/*" URL pattern on this dummy filter also causes issues in that the problematic jar file (Five.jar) is not downloaded - the other four download fine. Therefore we can rule out that our specific filter is the issue.

Since the primary difference we see with the problematic jar file is its size, we are leaning towards that being the issue.

Based on what the filter does, we need to use a wild character url-pattern; so we really need to find a solution around this problem.

My questions are:
1) I am fairly certain there is no way to map an "exclude" URL in the filter mapping. Am I correct on this?
2) Does any one have any ideas as to what might be causing this? And does our "size of the jar file" theory make any sense? Any suggestions on solving?

Thanks very much in advance for any input and suggestions.
[ July 01, 2004: Message edited by: Mark Vedder ]
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!