[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Using links to JAR files in WEB-INF/lib directory throws exceptions



Dear (Debian) Java Developers,

according to the Debian Java policy, JAR files used by a Java application (here:
Java web application) must reside in /usr/share/java.
If I establish soft links in the directory <mywebapp>/WEB-INF/lib and start
"mywebapp", I always get an InvalidArgumentException which tells me something
about an invalid or unparseable TLD within the linked JAR file(s). This doesn't
occur at all when I use physically present JAR files within the WEB-INF/lib
directory.

My environment is a testing/unstable one, using the latest kernel (2.4.20-5),
Catalina (4.1.18-1) and Blackdown Java (1.4.0.99beta). But I had this problem on
each earlier version within the last 6 months, therefore I don't think that the
problem is based on the unstable versions of the software...

I know that there is a directory (/usr/share/java/webapps) which is designed to
take the WAR files shared for each servlet runner, but what about a webapp which
is not distributed as such a WAR file? And why doesn't Tomcat itself suffer from
this problem (i.e. if I link a JAR file into Tomcat's common/lib directory,
everything works fine)?

Thank you in advance for each advice/help
Florian

------------------
Florian Steinsiepe
florian@steinsiepe.ch

--
This message was sent using Sake Mail, a web-based email tool from
Endymion Corporation.  http://www.endymion.com/products/sake



Reply to: