Mantis - Resin
Viewing Issue Advanced Details
1468 minor always 11-21-06 02:05 11-27-06 09:54
mogsie  
ferg  
normal  
closed 3.0.22  
fixed  
none    
none 3.1.0  
0001468: web.xml filter-config using the 'id' attribute fails
If you have the following line of code in your web.xml:

  <filter-config id="cheese">

deployment of that WAR file fails with the following error message:

com.caucho.config.LineConfigException: WEB-INF/web.xml:6: 'id' is an unknown property of 'com.caucho.server.dispatch.FilterConfigImpl'.

Since id is allowed, as it is in <servlet id="xxx"/>

I will try to attach a tiny web.xml which exposes the bug. By removing the id, the web application will work.

Notes
(0001599)
mogsie   
11-21-06 02:07   
Couldn't upload a file (I'm new to mantis), so here's a failing test case:

WEB-INF/web.xml:

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" [^]
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" [^]
         xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee [^] http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> [^]

  <filter id="cheese">
    <filter-name>filter-that-does-not-work</filter-name>
    <filter-class>com.NopFilter</filter-class>
  </filter>

</web-app>
(0001600)
mogsie   
11-21-06 02:11   
Stupid mantis made me report this bug three times. Sorry about that!
(0001603)
ferg   
11-27-06 09:54   
server/1714