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

Remote XML Datasource in Java


rydenx

Recommended Posts

Hi All, i got an error while running this portion of my code.

CODE
String url = "http://localhost/testing.jsp";
String query = "home\funiture";
JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, parameters, new net.sf.jasperreports.engine.data.JRXmlDataSource(url, query));

ERROR
net.sf.jasperreports.engine.JRRuntimeException: net.sf.jasperreports.engine.JRException: No query executer factory class registered for xpath2 queries.
net.sf.jasperreports.engine.JRException: net.sf.jasperreports.engine.JRRuntimeException: net.sf.jasperreports.engine.JRException: No query executer factory class registered for xpath2 queries.
 

I search through the forum but still could not understand how to add in the xpath2 query executer factory class.

I added the jasper-extention jar into my project already and it does not help.

Anyone who has solved this issue can gimme a hand.??

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Hi all again,

I finally got it working but i can only use datadource with reference to C:\ and it must be a xml file.

How do i do it for if i want to reference from http://? Could not get it working with .xml or .jsp extention.

The error i had was error parsing xml file.

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