You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Evan S <ev...@yahoo.com> on 2002/09/10 20:40:15 UTC

Proper usage of JDK1.4.0_01 Logger and Tomcat 4.0.3

Hi,

I am having some difficulties using the JDK1.4 logger
with Tomcat 4.0.3 in my current project.  The project
requires me to log certain errors into the database
and I thought having a custom DBHandler will easily
get the job done.  

When I tried to read the logging properties(i.e.
mylog.properties) from the context interceptor on
server startup, a ClassNotFoundException was thrown
when the LogManager tried to read my configuration
properties which is referring to the DBHandler class
in the WEB-INF/classes directory.  However, when I jar
the DBHandler class into the WEB-INF/lib directory,
that problem was resolved.  

By moving the DBHandler into the WEB-INF/lib
directory,  I no longer have
access(ClassNotFoundException) to the classes in the
WEB-INF/classes directory which is required for my
update.

Has anyone had this type of issues before?  Any help
or suggestions will be greatly appreciated.  The
following is my directory structure.

webapps
    -- myApplication
         -- jsp
         -- config
               -- mylog.properties
         -- WEB-INF
                -- classes
                      --
myproject.util.DBHandler.class
                -- lib

Thanks,
  Evan


__________________________________________________
Yahoo! - We Remember
9-11: A tribute to the more than 3,000 lives lost
http://dir.remember.yahoo.com/tribute

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