Difference between version and version      View first change»»

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

At line 80 added 25 lines.
Fix the problem, then restart the application.
!!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.
See Also: [JAR files you should never include in your webapp]
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.
At line 123 added 2 lines.
Fix the problem, then restart the application.
At line 142 added 2 lines.
Fix the problem, then restart the application.
\\
At line 145 added 9 lines.
!!org.apache.jasper.JasperException: javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not initialize class org.apache.struts.taglib.html.HtmlTag
Submitter: [Neale Rudd]
{{{
org.apache.jasper.JasperException: javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not initialize class org.apache.struts.taglib.html.HtmlTag
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:522)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:398)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
...
}}}
At line 155 added 5 lines.
* See [java.lang.NoClassDefFoundError] for a full description of exactly why this occurs.
* This is usually caused by log4j not initializing properly, usually due to a log4j.properties config error (incorrect path for log file, or no access to the location specified due to security etc...)
* Fix the log4j error and this error should no longer appear.
\\
navigation
metawerx specific
search
Share
tools
help

referring pages

Share