Difference between version and version      View first change»»

Back to Org.apache.jasper.JasperException, or Org.apache.jasper.JasperException version history

At line 82 added 20 lines.
!!org.apache.jasper.JasperException: Unable to initialize TldLocationsCache: XML parsing error on file /WEB-INF/someFile.tld
Submitter: [Neale Rudd]
{{{
org.apache.jasper.JasperException: Unable to initialize TldLocationsCache: XML parsing error on file /WEB-INF/someFile.tld
at org.apache.jasper.compiler.TldLocationsCache.init(TldLocationsCache.java:253)
at org.apache.jasper.compiler.TldLocationsCache.getLocation(TldLocationsCache.java:224)
at org.apache.jasper.JspCompilationContext.getTldLocation(JspCompilationContext.java:526)
at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:422)
at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:492)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1552)
at org.apache.jasper.compiler.Parser.parse(Parser.java:126)
at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
...
}}}
This error occurs when an old xerce.jar, xerces.jar or xercesImpl.jar file is in your WEB-INF/lib folder, in Tomcat 5.5 and above. These are causing a clash with the versions in Tomcat's own libraries folder.
Remove these jar files, then restart the application.
If the error also lists a line and column (line X, col Y), then see the "XML parsing error on file /WEB-INF/someFile.tld: (line X, col Y)" solution below.
navigation
metawerx specific
search
Share
tools
help

referring pages

Share