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

How can I use relative paths in a data adapter.


jomeyer

Recommended Posts

Hello,

I am facing a problem in Jaspersoft Studio which is driving me crazy: I create a data adapter (right click on the project >> New >> Data Adapter) and select the XML file which shall act as the data source. JSS saves a relative path to the file. Pressing the Test Connection button states "Successful". So I consider everything as configured properly.

But: When I want to use this data adapter in the Dataset and Query Dialog, I get a FileNotFoundException: The system cannot find the path specified. JSS prefixes the relative part coming from the data adapter with its installation directory - what is clearly wrong. I also tried to use variables (PROJECT_LOC, ...) and linked resources in the data adapter definition but both did not work.
What do I make wrong?

Any help/suggestion is highly appreciated.
Thanks in advance.

Link to comment
Share on other sites

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

Top Posters In This Topic

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