EJBQL Connection problem


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?


bob_manteck's picture
Joined: Sep 12 2006 - 11:11pm
Last seen: 16 years 8 months ago

3 Answers:

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
fmcypriano's picture
Joined: Feb 14 2008 - 7:08pm
Last seen: 15 years 3 months ago
fmcypriano, I can't access the link you posted, is it moved? if it is, do you mind to let me know your solution? I am with iReport 4.0.0. Thanks.
scutws's picture
Joined: Feb 7 2011 - 5:37am
Last seen: 12 years 3 months ago

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 



NandiniBC's picture
Joined: Apr 8 2011 - 2:00am
Last seen: 1 year 11 months ago