Unable to read TLD “META-INF/c.tld” from JAR file

来源:互联网 发布:mysql 最近一年 编辑:程序博客网 时间:2024/05/16 19:14

I installed the lastest version of JasperServer on my my brand newserver based on tomcat6 with jdk6 but on the first page I got themessage “Unable to read TLD “META-INF/c.tld” from JAR file…”.

My first try was to downgrade tomcat and jdk to a previous versionandit seemed to work. I first thought in a bug somewhere in tomcat andafter some time (20 minutes of my precious time!!!!!) my attention gotcapured by a message in catalina.out “.. file geronimo.jar skiped …contains Servet violation spec….. ”

So JasperServer contains in WEB-INF/lib some servlet libraries?!?!Could be possible it’s not a war made by me so somebody could have madesome mistake. Listing the files in WEB-INF/lib i found the entire worldof web libraries, included jsp-api. Yes this is the problem!

Tomcat excludes genonimo.jar because it contains Servlet api’s butloads jsp-api located in WEB-INF/lib because no checkis made. No jspcan be compiled because jasper (not jasper reports) compiles from aclassloader and jsp-api are located in a different classloader.

Removig jsp-api everything works fine again.

 

http://blog.ilz.it/?p=3

原创粉丝点击