Thursday, February 10, 2011

Unable to read TLD "META-INF/tld/tiles-jsp.tld" from JAR file

I got this strange error saying:

org.apache.jasper.JasperException: Unable to read TLD "META-INF/tld/tiles-jsp.tld" from JAR file "file:/C:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/MY_APP/WEB-INF/lib/tiles-jsp-2.0.4.jar": org.apache.jasper.JasperException: Failed to load or instantiate TagExtraInfo class: org.apache.tiles.jsp.taglib.UseAttributeTag$Tei
    at org.apache.jasper.compiler.DefaultErrorHandler.jspError(
    at org.apache.jasper.compiler.ErrorDispatcher.dispatch(
    at org.apache.jasper.compiler.ErrorDispatcher.jspError(
    at org.apache.jasper.compiler.TagLibraryInfoImpl.(
    at org.apache.jasper.compiler.Parser.parseTaglibDirective(

It turns out that I have both jsp-api.jar and tiles-jsp-2.*.jar in WEB-INF/lib together in my deployment folder.  They don't seem to like each other in the same place.  By removing jsp-api.jar, the problem is gone. 
Normally, jsp-api.jar should not be bundled in the war because all application server should have jsp-api.jar in their common library.  So this jar should not exists in application WEB-INF/lib folder.  The reason I had it in my project is because a bug currently exists in Eclipse Maven (m2e) plugin that includes jar files even they are set to provided scope.  In my project pom.xml I set the jsp-api to have the 'provided' scope.  However, the plugin still push the jar into my maven dependencies which are then port over to my tomcat deploy folder.  This is a known issue in Maven plugin.  If you have the same issue with me and has to use maven and tomcat together, you need to delete the file manually after server synchronization.  I wrote a simple batch file on my desktop as a short cut to delete the file.  Until the bug is fixed, this is the only workaround....

Eclipse version: Helio build 20100917-0705
M2E plugin version:


  1. check out the post right here
    Market revises location very seriously 90%of our enterprise and why we’ve in no way opened up our process for the community read the full info here. SEO- the system will likely be open for the temporary until finally we fulfill up with a few far more considerable volume level customers and closed up. So, get into on the most effective Links you may ever try as the possibility is available

  2. Actively delivering quality on accelerated timelines, the team has effectively managed requirements and pushed the development to new heights. UX design firms ability to offer industry expertise and suggestions gave the engagement a consistent clarity that satisfied the partner. They were open to feedback.

  3. Each time I used to always check blog posts within the first hours in the break of day, because I like to get information increasingly more.
    visit their website

  4. Nice written!! I have been a big fan of your blogs. thanks
    UI/UX design company

  5. Whatever you have provided for us in these posts really appreciative.
    have a peek at this site

  6. Key strengths include flexibility with scope changes and premium niche edit the willingness to find cheaper solutions on behalf of their cost-sensitive clients.

  7. Their team is well-versed and experienced in various areas, and they managed and executed the project flexibly and reliably.
    graphic design folder structure

  8. They come in all shapes, sizes, shadings and surfaces. Regardless the need there will be a tile for the work. In any case, how would you realize which tile is the right tile to make it happen? breaking news

  9. Awesome work! That is quite appreciated. I hope you’ll get more success.
    app designing company

  10. Excellent Blog! I have been impressed by your thoughts and the way you
    top webdesign companies

  11. Personally I think overjoyed I discovered the blogs.
    top UX agencies

  12. Every day I visit a number of blog sites to see content, however this offers quality based content.
    UI UX design studio