That is not possible in Java (not only in Tomcat, but not possible in any java
application). You must extract jar B from jar A and put both on the classpath.
But it would be a nice feature and you can probably vote for an issue about it
in the bug database of Sun/Oracle.
Ronald.
Op maandag, 26 april 2010 14:05 schreef Adam Lipscombe
<[email protected]>:
Folks,
Firstly, apologies if this question is a no-brainer.
I have a war file containing a jar file (jar A) in the WEB-INF/lib directory.
Jar A contains another another jar file (jar B).
The structure of Jar A is class files under com/... and jar B.
Classes inside jar B do not seem to be accessible to code in the application. Tomcat
throws a "SEVERE: Servlet /ExpenSysWT threw load() exception
javax.servlet.UnavailableException: ... "
How do I arrange it so that code in my application can see classes in jar B?
TIA - Adam
--------------
Adam Lipscombe
E: [email protected]
Skype: adam_lipscombe
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]