Re: Tomcat classpath fpr jar-within-jar

2010-04-27 Thread Ronald Klop




Op maandag, 26 april 2010 19:00 schreef Christopher Schultz 
:


 
-BEGIN PGP SIGNED MESSAGE-

Hash: SHA1

Ronald,

On 4/26/2010 8:53 AM, Ronald Klop wrote:
> 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.

Really? I would think that a custom ClassLoader would allow this behavior.

To answer the OPs question: there's no way to do this without at least
writing some of your own code (such as a ClassLoader).





Yep. You are right. It is possible, just not out of the box.



Re: Tomcat classpath fpr jar-within-jar

2010-04-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Ronald,

On 4/26/2010 8:53 AM, Ronald Klop wrote:
> 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.

Really? I would think that a custom ClassLoader would allow this behavior.

To answer the OPs question: there's no way to do this without at least
writing some of your own code (such as a ClassLoader).

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkvVxq4ACgkQ9CaO5/Lv0PDxigCfUtIH0n1cr3PSq6whmL04TvAN
yJIAn2NVFGjg8T/AMXC7O9DMHITDWlkC
=dVpp
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat classpath fpr jar-within-jar

2010-04-26 Thread Ronald Klop

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 
:


 
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: adam.lipsco...@gmail.com
Skype: adam_lipscombe


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org








Tomcat classpath fpr jar-within-jar

2010-04-26 Thread Adam Lipscombe

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: adam.lipsco...@gmail.com
Skype: adam_lipscombe


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org