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

How can i get data sources from jasper server?


erez.raveh

Recommended Posts

Hi All,

I am using JDeploy (v.02.00.00) app to upload my report to jasper server 6.2.0 (cummunity version)

i cannot deploy my report becuse i cant get all of my data sources on my server.

List dsList = jserver.getWSClient().listDatasources();

public java.util.List listDatasources() throws Exception {
Request req = new Request();
req.setOperationName(Request.OPERATION_LIST);
req.setResourceDescriptor(null);
req.setLocale(getServer().getLocale());
req.getArguments().add(new Argument(Argument.LIST_DATASOURCES, Argument.VALUE_TRUE));
StringWriter xmlStringWriter = new StringWriter();
Marshaller.marshal(req, xmlStringWriter);
return list(xmlStringWriter.toString());
}
 
this is the xml without the data sources.
 
<?xml version="1.0" encoding="UTF-8"?>
<request operationName="list">
<argument name="LIST_DATASOURCES"><![CDATA[true]]></argument>
</request>
 
listDatasources() function throw this exeption:
 
1 - Unknown entity: com.jaspersoft.jasperserver.api.metadata.jasperreports.domain.impl.datasource.RepoReportDataSource; 
nested exception is org.hibernate.MappingException: Unknown entity: com.jaspersoft.jasperserver.api.metadata.jasperreports.domain.impl.datasource.RepoReportDataSource
 
what is wrong with this implementation?
how can i get list of all my data sources from jasper server?
 
thanks,
erez
 
 
 
Link to comment
Share on other sites

  • 4 years 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...