Bug 35393

Summary: errorReportValveClass not found
Product: Tomcat 5 Reporter: bernard <bht>
Component: CatalinaAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED INVALID    
Severity: normal    
Priority: P2    
Version: 5.0.30   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Attachments: Java source file as testcase
jar file containing the error report valve class

Description bernard 2005-06-17 08:03:31 UTC
Configuration:

Tomcat 5.0.30
Red Hat Linux 9
j2sdk-1_4_2_08
All java including tomcat from jpackage.org

How to reproduce

- Install tomcat5-5.0.30-6jpp.noarch.rpm
- Add attribute to <Host name="localhost" in server.xml:
  errorReportValveClass="mypackage.MyErrorValve"
- Compile the attached source and create a jar file from it
- Copy the jar file into /usr/share/tomcat5/shared/lib
- Start tomcat: /etc/init.d/tomcat5 start

Expected behavior:
The log file should be without errors, as it is when I use Tomcat 5.5.

Actual behavior:
The following error is printed in the log file:
"Jun 17, 2005 8:04:43 PM org.apache.catalina.core.StandardHost start
SEVERE: Couldnt load specified error report valve class: {0}"

Notes:

I completely de-installed tomcat5 and cleaned the system of all remaining files
before I made the only two changes:
- edited server.xml
- copied the jar file
Comment 1 bernard 2005-06-17 08:09:04 UTC
Created attachment 15446 [details]
Java source file as testcase
Comment 2 bernard 2005-06-17 08:45:49 UTC
Created attachment 15447 [details]
jar file containing the error report valve class
Comment 3 Tim Funk 2005-06-17 12:34:20 UTC
Valves need to be in the server classloader. Either server/lib or server/classes.

Please tomcat-user for more information.