You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2002/05/16 20:16:02 UTC

DO NOT REPLY [Bug 9172] New: - ClassLoader issue with custom Valve

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9172>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9172

ClassLoader issue with custom Valve

           Summary: ClassLoader issue with custom Valve
           Product: Tomcat 4
           Version: 4.0.2 Final
          Platform: PC
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: Enhancement
          Priority: Other
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: brian@experts-exchange.com


I'm trying to load a custom valve with the following tag.
<Valve className="com.ee.servlet.HandleJspServlet"/>
It will be loaded fine from within the server/lib directory, however I got a
ClassNotFoundException when I placed it's Jar file in the WEB-INF/lib directory.
 The problem is that the HandleJspServlet class depends on our sites main jar
file, forcing us to have to place it in the $tomcat_home/common/lib directory. 
This slows down developement, becuase we can't have our main jar file reloaded
everytime we recreate it.  If the Valve could be loaded from the Context it's
in, that would solve our problem.

Brian

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>