Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > Servlets
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Servlets section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 6th, 2006, 10:38 AM
Registered User
 
Join Date: Jun 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Not able to compile jasper jrxml file

When iam compiling jasper jrxml file iam getting following stack trace


org.xml.sax.SAXParseException: Attribute "" bound to namespace "null" was already specified for element "jasperReport".
    at com.documentum.xerces_2_3_0.xerces.parsers.Abstrac tSAXParser.parse(Unknown Source)
    at org.apache.commons.digester.Digester.parse(Digeste r.java:1647)
    at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXM L(JRXmlLoader.java:238)
    at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXM L(JRXmlLoader.java:225)
    at net.sf.jasperreports.engine.xml.JRXmlLoader.load(J RXmlLoader.java:213)
    at net.sf.jasperreports.engine.xml.JRXmlLoader.load(J RXmlLoader.java:167)
    at net.sf.jasperreports.engine.xml.JRXmlLoader.load(J RXmlLoader.java:151)
    at net.sf.jasperreports.engine.JasperCompileManager.c ompileReport(JasperCompileManager.java:142)
    at com.metricstream.systemi.client.servlet.servant.Ja sperreportsengine.generateReport(Jasperreportsengi ne.java:22)
    at com.metricstream.systemi.client.servlet.servant.Ja sperreportsengine.producePageData(Jasperreportseng ine.java:46)
    at com.metricstream.systemi.client.servlet.servant.Ba seFormProcessor.serve(BaseFormProcessor.java:473)
    at com.metricstream.systemi.client.servlet.Dispatcher .doRequest(Dispatcher.java:393)
    at com.metricstream.systemi.client.servlet.Dispatcher .doGet(Dispatcher.java:290)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:689)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:802)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:237)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:157)
    at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:214)
    at org.apache.catalina.core.StandardValveContext.invo keNext(StandardValveContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:520)
    at org.apache.catalina.core.StandardContextValve.invo keInternal(StandardContextValve.java:198)
    at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:152)
    at org.apache.catalina.core.StandardValveContext.invo keNext(StandardValveContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:520)
    at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:137)
    at org.apache.catalina.core.StandardValveContext.invo keNext(StandardValveContext.java:104)
    at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:118)
    at org.apache.catalina.core.StandardValveContext.invo keNext(StandardValveContext.java:102)
    at org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:520)
    at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:109)
    at org.apache.catalina.core.StandardValveContext.invo keNext(StandardValveContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:520)
    at org.apache.catalina.core.ContainerBase.invoke(Cont ainerBase.java:929)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(Co yoteAdapter.java:160)
    at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyo teHandler.java:300)
    at org.apache.jk.common.HandlerRequest.invoke(Handler Request.java:374)
    at org.apache.jk.common.ChannelSocket.invoke(ChannelS ocket.java:743)
    at org.apache.jk.common.ChannelSocket.processConnecti on(ChannelSocket.java:675)
    at org.apache.jk.common.SocketConnection.runIt(Channe lSocket.java:866)
    at org.apache.tomcat.util.threads.ThreadPool$ControlR unnable.run(ThreadPool.java:683)
    at java.lang.Thread.run(Thread.java:595)

NESTED BY :
net.sf.jasperreports.engine.JRException: Attribute "" bound to namespace "null" was already specified for element "jasperReport".
    at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXM L(JRXmlLoader.java:242)
    at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXM L(JRXmlLoader.java:225)
    at net.sf.jasperreports.engine.xml.JRXmlLoader.load(J RXmlLoader.java:213)
    at net.sf.jasperreports.engine.xml.JRXmlLoader.load(J RXmlLoader.java:167)
    at net.sf.jasperreports.engine.xml.JRXmlLoader.load(J RXmlLoader.java:151)
    at net.sf.jasperreports.engine.JasperCompileManager.c ompileReport(JasperCompileManager.java:142)
    at com.metricstream.systemi.client.servlet.servant.Ja sperreportsengine.generateReport(Jasperreportsengi ne.java:22)
    at com.metricstream.systemi.client.servlet.servant.Ja sperreportsengine.producePageData(Jasperreportseng ine.java:46)
    at com.metricstream.systemi.client.servlet.servant.Ba seFormProcessor.serve(BaseFormProcessor.java:473)
    at com.metricstream.systemi.client.servlet.Dispatcher .doRequest(Dispatcher.java:393)
    at com.metricstream.systemi.client.servlet.Dispatcher .doGet(Dispatcher.java:290)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:689)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:802)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:237)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:157)
    at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:214)
    at org.apache.catalina.core.StandardValveContext.invo keNext(StandardValveContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:520)
    at org.apache.catalina.core.StandardContextValve.invo keInternal(StandardContextValve.java:198)
    at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:152)
    at org.apache.catalina.core.StandardValveContext.invo keNext(StandardValveContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:520)
    at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:137)
    at org.apache.catalina.core.StandardValveContext.invo keNext(StandardValveContext.java:104)
    at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:118)
    at org.apache.catalina.core.StandardValveContext.invo keNext(StandardValveContext.java:102)
    at org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:520)
    at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:109)
    at org.apache.catalina.core.StandardValveContext.invo keNext(StandardValveContext.java:104)
    at org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:520)
    at org.apache.catalina.core.ContainerBase.invoke(Cont ainerBase.java:929)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(Co yoteAdapter.java:160)
    at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyo teHandler.java:300)
    at org.apache.jk.common.HandlerRequest.invoke(Handler Request.java:374)
    at org.apache.jk.common.ChannelSocket.invoke(ChannelS ocket.java:743)
    at org.apache.jk.common.ChannelSocket.processConnecti on(ChannelSocket.java:675)
    at org.apache.jk.common.SocketConnection.runIt(Channe lSocket.java:866)
    at org.apache.tomcat.util.threads.ThreadPool$ControlR unnable.run(ThreadPool.java:683)
    at java.lang.Thread.run(Thread.java:595)
Caused by: org.xml.sax.SAXParseException: Attribute "" bound to namespace "null" was already specified for element "jasperReport".
    at com.documentum.xerces_2_3_0.xerces.parsers.Abstrac tSAXParser.parse(Unknown Source)
    at org.apache.commons.digester.Digester.parse(Digeste r.java:1647)
    at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXM L(JRXmlLoader.java:238)
    ... 38 more
Caused by:


Can any body help me out
Thanks
 
Old March 9th, 2006, 05:58 PM
Registered User
 
Join Date: Mar 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

May be you have (ALSO) some old version of xerces' jar in your classpath !

May be that you've something like a xercesImpl.jar in you jdk libs

Bye,
Let me know

Ivan Rosina





Similar Threads
Thread Thread Starter Forum Replies Last Post
why can't i compile this java file? poorguy Java Basics 1 June 11th, 2007 08:03 AM
can't get dll file to compile stevecist ASP.NET 1.0 and 1.1 Basics 3 January 2nd, 2007 01:10 PM
unable to compile class file derricktancf JSP Basics 0 November 1st, 2006 04:42 AM
How to compile C# file - Please get me started gau404 C# 2 November 12th, 2005 05:29 AM
how to run jasper report from java file? hiraal_thoria J2EE 1 March 14th, 2005 04:41 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.