Exception during installation of an application containing a GZIP Compression filter
 Technote (troubleshooting)
 
This document applies only to the following language version(s):
English
 
Problem(Abstract)
An exception is received during installation of an application containing a GZIP Compression filter.

This filter is a generic compression filter that has been deployed at other sites on WebLogic. This is an attempt to use the same filter code with the web.xml settings.

[4/20/04 10:10:56:530 PDT] 484596fe SystemErr R
com.ibm.etools.archive.exception.DeploymentDescriptorLoadException:
WEB-INF/web.xml
[4/20/04 10:10:56:530 PDT] 484596fe SystemErr R Stack trace of
nested exception:
[4/20/04 10:10:56:530 PDT] 484596fe SystemErr R
com.ibm.etools.j2ee.exception.WrappedRuntimeException: IWAE0099E An
 
Cause
In the Web.xml file contained in the WAR file, the <context-param> tag is misplaced at the bottom of the file instead of listed in sequence with the other <context-param> tag entries.
Any tag with multiple entries, including the <context-param> tag, must appear in sequence at one location. WebSphere Application Server functions use information in this file during the configuration and deployment phases of Web application development.

About Servlet Filter

Servlet filters are powerful tools that are available to Web application developers using Servlet specification 2.3 or higher. Servlet filters are designed to manipulate a request, response, or both, sent to a Web application. This functionality is provided in a manner that does not affect servlets and JavaServer Pages™ (JSP™s) used by the Web application (unless that is the desired effect). Think of servlet filters as a chain of steps that a request and response must go through before reaching a servlet, JSP, or static resource (such as an HTML page) in a Web application.

Figure 1 in this linked article contains an illustration of this concept: Two Servlet Filters Every Web Application Should Have

 
Resolving the problem
This is due to an XML error. The dtd does not match with the web.xml
file. org.xml.sax.SAXParseException: Element type "filter" must be declared.

You are using servlet 2.2 dtd as shown in the web.xml:

('http://java.sun.com/j2ee/dtds/web-app_2_2.dtd')

which does not have the filter element.

Change the dtd declaration to the following:

http://java.sun.com/dtd/web-app_2_3.dtd
 
 
Cross Reference information
Segment Product Component Platform Version Edition
Application Servers Runtimes for Java Technology Java SDK
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > Servlet Engine/Web Container
Operating system(s): Windows
Software version: 5.0
Software edition:
Reference #: 1169085
IBM Group: Software Group
Modified date: Dec 22, 2005