JasperReports does not work in an OSGi container with Groovy provided by another bundle
this is related to this topic: http://jasperforge.org/plugins/espforum/view.php?group_id=102&forumid=103&topicid=71955
In JRClassLoader, Thread.currentThread().getContextClassLoader() is used. This is bad.
Simply use getClass().getClassLoader() or ask for a classloader as parameter
Nota, if no bundle from your dependence provides groovy implementation and that groovy-all is just aside your jasperReports, it works. But it leaks classes in the Perm Gen.
Attachments:
osgi-patch.zip
Recommended Comments
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 accountSign in
Already have an account? Sign in here.
Sign In Now