Mantis - Resin
Viewing Issue Advanced Details
1079 minor always 04-30-06 14:10 05-18-06 16:33
fbertra  
ferg  
normal  
closed 3.0.18  
fixed  
none    
none 3.0.19  
0001079: Resin should parse resin-web.xml before web.xml
Hi:

If I deploy my webapp without compiling the java source files I get the following exception:

[16:57:32.531] com.caucho.config.LineConfigException: WEB-INF/web.xml:4: `cl.fbd.caja_negra.servlet.EquiposServlet' is not a known servlet. Servlets belong in the classpath, often in WEB-INF/classes.

In resin-web.xml I have:

  <class-loader>
    <compiling-loader path="WEB-INF/classes" source="${app.docDir}/../../src/java"/>
  </class-loader>

It seems that Resin process the "<servlet>" tag in "web.xml" before the "<class-loader>" in "resin-web.xml" because if I change the order in app-default.xml from

  <resin:import path="WEB-INF/web.xml" optional="true"/>
  <resin:import path="WEB-INF/resin-web.xml" optional="true"/>

to

  <resin:import path="WEB-INF/resin-web.xml" optional="true"/>
  <resin:import path="WEB-INF/web.xml" optional="true"/>

it works ok: Resin compiles the servlet source file and then loads the class file when processing the "<servlet>" tag.

Francois

Notes
(0001152)
ferg   
05-18-06 16:33   
The new <prologue> tag handles this. The <class-loader> shouldbe in a <prologue>.