File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
OCM Java EE 6 Enterprise Architect Exam Guide
this week in the
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
I agree. Here's the link:
subject: Classpath question
cannot find resource - servlet
Custom WebApp servlet url problem
JSTL and EL
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014