Bug 35393 - errorReportValveClass not found
Summary: errorReportValveClass not found
Status: RESOLVED INVALID
Alias: None
Product: Tomcat 5
Classification: Unclassified
Component: Catalina (show other bugs)
Version: 5.0.30
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-17 08:03 UTC by bernard
Modified: 2005-06-17 04:34 UTC (History)
0 users



Attachments
Java source file as testcase (1.97 KB, text/plain)
2005-06-17 08:09 UTC, bernard
Details
jar file containing the error report valve class (2.07 KB, application/octet-stream)
2005-06-17 08:45 UTC, bernard
Details

Note You need to log in before you can comment on or make changes to this bug.
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.