This week's book giveaway is in the
We're giving away four copies of
Head First Android
and have Dawn & David Griffiths on-line!
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Joined: Aug 31, 2004
Mar 11, 2005 08:35:00
Hi, I am having trouble setting up my classpath on
. I am receiving errors for log4j and hibernate.cfg.xml. Apparently they are not being found in the classpath.
I have a few questions:
1. Do I have to use the common/lib directory or can I use webapps/<mywebApp>/lib? I would prefer the latter since there are several other projects under Tomcat.
2. Is there
code I could use for debugging? In the past I have tried <%=System.getProperty("java.class.path") %>.
3. I am adding all of my jars and property files in webapps/<mywebApp>/lib. Will these get picked up and added to the classpath on startup?
Joined: Dec 11, 2004
Mar 11, 2005 16:04:00
Tomcat only looks for Jar files under WEB-INF/lib.
Put your log4j.properties file (and any other file that needs to be on the classpath) in WEB-INF/classes
How to ask a question...
Simple Servlet Examples
It is sorta covered in the
JavaRanch Style Guide
subject: Classpath question
cannot find resource - servlet
JSTL and EL
Custom WebApp servlet url problem
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015