tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frédérik Bilhaut <fbilh...@wanadoo.fr>
Subject Bug with symbolic links in WEB-INF/lib/
Date Fri, 01 Nov 2002 16:37:35 GMT
Hi !

I noticed a Tomcat bug that may be of interest for you developers. When 
using  Tomcat 4.0.x, I used to set some symbolic links in my WEB-INF/lib 
directory. For example :

WEB-INF/lib/mm.mysql.jar => /usr/java/lib/mm.mysql-xx.x/mm.mysql.jar

But this won't work with Tomcat 4.1.12, which throws the following 
exception when deploying :

java.lang.IllegalArgumentException:
Invalid TLD resource path /WEB-INF/lib/mm.mysql.jar
at org.apache.catalina.startup.ContextConfig.tldScanJar
(ContextConfig.java:898)

It took a while to figure out what happened, so maybe a note in 
RELEASE-NOTES would be usefull to many people :o)

Best regards,
-- 
Frédérik Bilhaut
GREYC - Université de Caen
http://www.info.unicaen.fr/~fbilhaut



PS: Many thanks to Tomcat developers for such a great product
PS': You'll find below the complete stack trace




2002-11-01 17:20:14 ContextConfig[/trouba] Exception processing JAR at 
resource path /WEB-INF/lib/mm.mysql-2.0.14-bin.jar
javax.servlet.ServletException: Exception processing JAR at resource 
path /WEB-INF/lib/mm.mysql-2.0.14-bin.jar
         at 
org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:930)
         at 
org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:868)
         at 
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647)
         at 
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243)
         at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
         at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3493)
         at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
         at 
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
         at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
         at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
         at 
org.apache.catalina.core.StandardService.start(StandardService.java:497)
         at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:510)
         at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
         at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
----- Root Cause -----
java.lang.IllegalArgumentException: Invalid TLD resource path 
/WEB-INF/lib/mm.mysql-2.0.14-bin.jar
         at 
org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:898)
         at 
org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:868)
         at 
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647)
         at 
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243)
         at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
         at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3493)
         at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
         at 
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
         at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
         at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
         at 
org.apache.catalina.core.StandardService.start(StandardService.java:497)
         at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:510)
         at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
         at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)



--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message