aspose file tools*
The moose likes Tomcat and the fly likes Application classpath Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Application classpath" Watch "Application classpath" New topic

Application classpath

Roel De Nijs

Joined: Jul 19, 2004
Posts: 4908

I need to place an xml-file under my application classpath. But where can i find this class path ? And i think it's the %tomcat_home%/webapps/MyWebApp/WEB-INF/classes or tomcat_home%/webapps/MyWebApp/WEB-INF/lib directory. But just to make sure (because it's not working): is this correct ?


SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12675
I think you need the getRealPath method in ServletContext.
I agree. Here's the link:
subject: Application classpath
Similar Threads
beer app not running
about myodbc
Servlet not running
Calling a web service in a java servlet,.. servlet not finding jar files from axis
jsp:include page="header.html" causes IllegalStateException