Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001079 [Resin] minor always 04-30-06 14:10 05-18-06 16:33
Reporter fbertra View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version 3.0.18
Summary 0001079: Resin should parse resin-web.xml before web.xml
Description 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
Additional Information
Attached Files

- Relationships

- Notes
(0001152)
ferg
05-18-06 16:33

The new <prologue> tag handles this. The <class-loader> shouldbe in a <prologue>.
 

- Issue History
Date Modified Username Field Change
04-30-06 14:10 fbertra New Issue
05-18-06 16:33 ferg Note Added: 0001152
05-18-06 16:33 ferg Assigned To  => ferg
05-18-06 16:33 ferg Status new => closed
05-18-06 16:33 ferg Resolution open => fixed
05-18-06 16:33 ferg Fixed in Version  => 3.0.19


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker