Jump to content

Problem runing jasperreport where i have xmlparser


aaa_aaa

Recommended Posts

i have application where i'm using xml publisher and thereforce i have such jar file included xmlparserv2-904.jar

then i write several reports in jasper and it works fine when there not included xmlparserv2-904.jar

but when i include xmlparserv2-904.jar in my app jasper not working

this problem is on tomcat server

how can i do that both reports can runing anyone can help me?



Post Edited by iraklijasper at 05/14/2010 11:40
Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

JR will use the default SAX parser as returned by http://java.sun.com/javase/6/docs/api/javax/xml/parsers/SAXParserFactory.html#newInstance()

I'm not sure what xmlparserv2-904.jar, but I assume it contains a SAX parser implementation which doesn't support the features required by JR.  We recommend Xerces, but JR doesn't use it if it's not the default SAX parser.  Log a bug or feature request for this if you think JR should automatically handle such cases.  You can also look into extending net.sf.jasperreports.engine.xml.JRReportSaxParserFactory to force it to use Xerces instead of the default parser.

Regards,

Lucian

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...