六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 34|回复: 0

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

[复制链接]

升级  1%

57

主题

57

主题

57

主题

举人

Rank: 3Rank: 3

积分
203
 楼主| 发表于 2013-1-26 16:21:31 | 显示全部楼层 |阅读模式
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
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表