Jump to content
We've recently updated our Privacy Statement, available here ×

Report with remote XML Data Source


tchen_1

Recommended Posts

So I have a java servlet called MyServlet that returns xml data when I call http://localhost:8080/MyJavaApp/MyServlet, and I would like to use this as a data source.

The documentation for remote xml data sources (https://community.jaspersoft.com/wiki/remote-xml-datasource) seems very out of date, so I was wondering if there's documentation for doing so for the latest version of jasperserver and jasper studios?

In particular, the old documentation says:

[by default JasperReports Server does not ship with the xpath2 query executer, for this we'll need a jar file that comes with iReport.

  1. Copy jasperreports-extensions-3.5.3.jar from /ireport/modules/ext to JasperReports Server/jasperserver-pro/WEB-INF/lib/jasperreports-extensions-3.5.3.jar (or if using Jaspersoft Studio plugins/com.jaspersoft.studio.data_5.6.0.final.jar and plugins/com.jaspersoft.studio_5.6.0.final.jar)
  2. Add the following line to /jasperserver-pro/WEB-INF/classes/jasperreports.properties

    net.sf.jasperreports.query.executer.factory.xpath2=com.jaspersoft.jrx.query.JRXPathQueryExecuterFactory

  3. Restart Tomcat]

Is this still the case? If so, what jars from jasper studios are needed now?

Thanks!

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

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...