Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java Open Source > Apache Tomcat
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Apache Tomcat General discussion of the Apache Tomcat servlet container. For discussions specific to the Professional Apache Tomcat book, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Apache Tomcat section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 16th, 2014, 01:41 PM
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2014
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Question Query regarding Classpath in Tomcat

I wanted to understand how the classpath in tomcat can be modified to point to external directory.


I have a web application, say W that is deployed in tomcat. When I hit an API provided by W, the flow takes me to a jar, say A present in $CATALINA_HOME/lib, which internally calls another jar's API say B.jar.

The issue that I need to debug is that B.jar is present at two paths, i.e , at $CATALINA_HOME/lib and an external directory (outside context of tomcat", say /my/lib/.

When A calls B.jar it first picks the jar from external directory even when B.jar is present in $CATALINA_HOME/lib.

I have checked catalina.properties, for common and shared class loader libraries but I could n't B.jar anywhere specified.

Is there any way via which we can set custom libraries in Tomcat classpath ahead of libraries present in tomcat context?

How can I check the classpath being used by A.jar where external directory has been set by default for all other jars as well?


Please help!.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
classpath ekta BOOK: Beginning Java 2 1 March 28th, 2005 11:35 PM
classpath? abdi Java GUI 1 December 8th, 2004 04:44 PM
CLASSPATH Issue? gpgrimes BOOK: Professional Jakarta Struts 1 February 29th, 2004 06:50 PM
Simple Tomcat Query? Baztec Apache Tomcat 0 January 13th, 2004 11:38 PM
classpath problem amcp2002 JSP Basics 13 July 26th, 2003 12:50 AM



All times are GMT -4. The time now is 04:25 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.