JasperException: Failed to load or instantiate TagExtraInfo

org.apache.jasper.JasperException: Failed to load or instantiate TagExtraInfo class

(I had to shorten the article title to fit!)

I’ve just had a problem when I’ve taken a web application from my local Tomcat 5.5 development server (where it worked fine) and uploaded it onto a public server (also using Tomcat 5.5).

I copied the whole application including all the jars in the WEB-INF/lib directory. The web application started up fine and showed up in the Manager as running properly, but when I went to the home page (index.jsp), I got an error saying that there were problems reading the TLD (I am using SiteMesh) in one of the jars, and in particular that it couldn’t instantiate or load the TagExtraInfo class.

Disabling SiteMesh didn’t help, though I discovered it only affected JSPs not HTML pages or Groovy Server Pages.

Comparing the list of Jars in WEB-INF/lib with another application that worked, I discovered that I had included jsp-api-2.0.jar. Removing this jar and restarting the application from the manager sorted the problem.

I’m not sure why I didn’t get the same error on the development server but presumably the problem arises from version incompatibilities.

If you get similar problems, try making sure that you haven’t got this extra Jar in your WEB-INF/lib directory.

7 thoughts on “JasperException: Failed to load or instantiate TagExtraInfo”

  1. Thanks a lot. I’ve been trying to solve this problem for the past couple of hours to no avail until now. Appreciate it.

  2. I am facing exactly the same problem, app working fine on local environment but the same “failed to load or instantiate tagextrainfo” error on public server. In my case I don’t even have the jsp-api-2.0.jar in my lib but tomcat(5.5.x)/lib has jsp-api.jar

    I have removed all the common jar files between my app and tomcat. Moreover I get this error ONLY when i deploy the application on root context, it works perfectly fine on /abc context.

    Appreciate any inputs !! Needless to mention this is driving me crazy !!!


  3. Thanks a lot. Its working. I have been struck up with for the coulpe of days. Thanks for ur solution.

Leave a Reply

Your email address will not be published. Required fields are marked *