Jump to content

jasper report in Jboss - JRXmlDataSource - xalan


arunicbe

Recommended Posts

I created a simple report with xml datasource in Jasper reports 3.6.1.  I call this report in a JSP file. I use JRXmlDataSource to fill the report.

First, I deployed in Tomcat  and copied xalan.lib in tomcat. It worked fine without any issues.

Then, I deployed same report  in Jboss Portal 2.72. I found that jboss already contains xalan.lib. But, when I run

the report it throws error.

I understood from this forum that Jboss has differenct xalan implementation and we can use jaxen lib instead.

It is given as we can set the property in jasperreports.properties file.

My problem is how to instruct Jasper to use jaxen. And where to keep this file while creating WAR file to deploy the report. 

Any help is appreciated.

Thanks

 

 

 

 

 

Link to comment
Share on other sites

  • 4 weeks later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Add the following property to jasperreports.properties in order to use Jaxen.  The file needs to be on the application classpath, so in web apps you can put it under WEB-INF/classes.

Regards,

Lucian

Code:
net.sf.jasperreports.xpath.executer.factory=net.sf.jasperreports.engine.util.xml.JaxenXPathExecuterFactory
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...