Hi.
I want to use an EJBQL connection as datasource for my report.
I fill the "Name" and "Persistance Unit Name" fields and I select from the listbox "EJBQL connection".
I've tried to set the CLASSPATH to my persistence.xml file with the export command from a console and I've tried to set it inside iReport too.
The error is always the same: No Persistence provider for EntityManager named XXX.
Where's the problem? What I need to make this thing work?
Thanks.
Bob
I want to use an EJBQL connection as datasource for my report.
I fill the "Name" and "Persistance Unit Name" fields and I select from the listbox "EJBQL connection".
I've tried to set the CLASSPATH to my persistence.xml file with the export command from a console and I've tried to set it inside iReport too.
The error is always the same: No Persistence provider for EntityManager named XXX.
Where's the problem? What I need to make this thing work?
Thanks.
Bob
3 Answers:
Posted on February 15, 2008 at 11:35am
I create a topic about EJBQL connection tro try solve once for all our problem, take a look: [url=http://www.jasperforge.org/index.php?option=com_joomlaboard&Itemid=215&f... connection not working and no error messages
Posted on July 14, 2011 at 9:19pm
Place the persistence.xml in meta-inf directory and jar the entity class along with "META_INF" folder.
place the jar in ireprot\\platform9\\lib folder.
restart the ireport, set class path to persistence jar files, and custom jar file.
Hope this helps.
-Sonata software Limited