Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Trouble Deploying on Tomcat 6 on CentOS (XML parsing error Exception)
Trouble Deploying on Tomcat 6 on CentOS (XML parsing error Exception) [message #875318] Tue, 22 May 2012 14:16 Go to next message
bret lester is currently offline bret lesterFriend
Messages: 2
Registered: May 2012
Junior Member
Hello, I downloaded the 3.7.2 runtime, copied the WebViewerExample to the webapps directory, and renamed it to Birt as described in the eclipse wiki.

However it is not working. When I browse to /Birt, the only thing I see is this "XML parsing error on file /WEB-INF/web.xml" exception (full stack trace below). The funny thing is, after I refresh the page a few times i get a different exception (also below). It may be random.

Any information on how to fix this issue would be greatly appreciated. Thanks for your help!

Here's the 1st stacktrace. This one always comes up the first time i browse to /Birt:

org.apache.jasper.JasperException: org.apache.jasper.JasperException: XML parsing error on file /WEB-INF/web.xml
	org.apache.jasper.compiler.JspConfig.processWebDotXml(JspConfig.java:207)
	org.apache.jasper.compiler.JspConfig.init(JspConfig.java:222)
	org.apache.jasper.compiler.JspConfig.findJspProperty(JspConfig.java:277)
	org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:112)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:332)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:312)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:299)
	org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:589)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
root cause

org.apache.jasper.JasperException: XML parsing error on file /WEB-INF/web.xml
	org.apache.jasper.xmlparser.ParserUtils.parseXMLDocument(ParserUtils.java:98)
	org.apache.jasper.compiler.JspConfig.processWebDotXml(JspConfig.java:91)
	org.apache.jasper.compiler.JspConfig.init(JspConfig.java:222)
	org.apache.jasper.compiler.JspConfig.findJspProperty(JspConfig.java:277)
	org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:112)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:332)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:312)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:299)
	org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:589)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
root cause

javax.xml.parsers.ParserConfigurationException: expand-entity-references
	gnu.xml.dom.DomDocumentBuilderFactory.setParameter(libgcj.so.10)
	gnu.xml.dom.DomDocumentBuilderFactory.newDocumentBuilder(libgcj.so.10)
	org.apache.jasper.xmlparser.ParserUtils.parseXMLDocument(ParserUtils.java:93)
	org.apache.jasper.compiler.JspConfig.processWebDotXml(JspConfig.java:91)
	org.apache.jasper.compiler.JspConfig.init(JspConfig.java:222)
	org.apache.jasper.compiler.JspConfig.findJspProperty(JspConfig.java:277)
	org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:112)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:332)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:312)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:299)
	org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:589)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)



And the second stacktrace, which appears randomly after a few page refreshes:

exception

org.apache.jasper.JasperException: org.apache.jasper.JasperException: Unable to load class for JSP
	org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:156)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:329)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
root cause

org.apache.jasper.JasperException: Unable to load class for JSP
	org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:623)
	org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:144)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:329)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
root cause

java.lang.ClassNotFoundException: org.apache.jsp.index_jsp not found in org.apache.jasper.servlet.JasperLoader{urls=[file:/usr/share/tomcat6/work/Catalina/localhost/Birt/], parent=WebappClassLoader
  delegate: false
  repositories:
----------> Parent Classloader:
org.apache.catalina.loader.StandardClassLoader{urls=[file:/usr/share/java/tomcat6/,file:/usr/share/java/tomcat6/tomcat-i18n-fr-6.0.24.jar,file:/usr/share/java/tomcat6-el-2.1-api-6.0.24.jar,file:/usr/share/java/tomcat6/catalina-tribes-6.0.24.jar,file:/usr/share/java/ecj-3.4.2.jar,file:/usr/share/java/tomcat6/jasper-6.0.24.jar,file:/usr/share/tomcat6/bin/tomcat-juli-6.0.24.jar,file:/usr/share/java/tomcat6/tomcat-i18n-es-6.0.24.jar,file:/usr/share/java/tomcat6/catalina-6.0.24.jar,file:/usr/share/java/tomcat6/jasper-el-6.0.24.jar,file:/usr/share/java/tomcat6/catalina-ant-6.0.24.jar,file:/usr/share/java/jakarta-commons-pool-1.3.jar,file:/usr/share/java/tomcat6/tomcat-i18n-ja-6.0.24.jar,file:/usr/share/java/tomcat6/tomcat-coyote-6.0.24.jar,file:/usr/share/java/mx4j/mx4j-remote-3.0.1.jar,file:/usr/share/java/tomcat6/annotations-api-6.0.24.jar,file:/usr/share/java/jakarta-commons-dbcp-1.2.1.jar,file:/usr/share/java/jakarta-commons-collections-3.2.1.jar,file:/usr/share/java/tomcat6/catalina-ha-6.0.24.jar,file:/usr/share/java/tomcat6-jsp-2.1-api-6.0.24.jar,file:/usr/share/java/log4j-1.2.14.jar,file:/usr/share/java/tomcat6-servlet-2.5-api-6.0.24.jar,file:/usr/share/java/mx4j/mx4j-jmx-3.0.1.jar], parent=gnu.gcj.runtime.SystemClassLoader{urls=[file:./,file:/usr/share/tomcat6/bin/bootstrap.jar,file:/usr/share/tomcat6/bin/tomcat-juli.jar,file:/usr/share/java/commons-daemon.jar], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}}
}
	java.net.URLClassLoader.findClass(libgcj.so.10)
	org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:134)
	org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:66)
	org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:621)
	org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:144)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:329)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
Re: Trouble Deploying on Tomcat 6 on CentOS (XML parsing error Exception) [message #875365 is a reply to message #875318] Tue, 22 May 2012 15:51 Go to previous messageGo to next message
bret lester is currently offline bret lesterFriend
Messages: 2
Registered: May 2012
Junior Member
Nevermind. I installed JDK 7 and tomcat 7 and everything works. I do not recommend using the tomcat provided by "yum install tomcat6"
Re: Trouble Deploying on Tomcat 6 on CentOS (XML parsing error Exception) [message #1034538 is a reply to message #875318] Fri, 05 April 2013 15:09 Go to previous message
katie evans is currently offline katie evansFriend
Messages: 28
Registered: July 2012
Location: brisbane queensland austr...
Junior Member
I faced exactly those error messages (CentOS 6.4, Tomcat 6, Birt Report Engine 3.7.1).

I got BIRT engine to work with the Tomcat server installed through yum install tomcat6.

Installing JDK 1.6 through yum install java-1.6.0-openjdk.x86_64 then restarting tomcat with service tomcat6 restart solved the problem.

-- Frosty
Previous Topic:how to set a global variable
Next Topic:Web Viewer Issue
Goto Forum:
  


Current Time: Mon Oct 14 00:02:16 GMT 2024

Powered by FUDForum. Page generated in 0.03190 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top