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 25 lines.
Fix the problem, then restart the application.
\\
!!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)
...
}}}
* 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.
\\
----
org.apache.jasper.JasperException: XML parsing error on file /WEB-INF/tld/c.tld: (line 5, col 117): General Schema Error: Can't get back Schema document's root element :http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd.
I am getting this exception can someone please help me solve this issue?
--[AnonymousCoward|mailto:prathibhag@infics.com], 07-Feb-2008
navigation
metawerx specific
search
Share
tools
help

referring pages

Share