[jboss-dev-forums] [jBPM Development] - apache commons.io dependency problem in jbpm-console-server
Peter Courcoux
do-not-reply at jboss.com
Thu Aug 30 06:43:35 EDT 2012
Peter Courcoux [https://community.jboss.org/people/peter_courcoux] created the discussion
"apache commons.io dependency problem in jbpm-console-server"
To view the discussion, visit: https://community.jboss.org/message/756971#756971
--------------------------------------------------------------
The org.apache.batik.pdf_1.6.0.v201105071520.jar included with the birt report-engine integration appears to include an old version of the classes from commons.io.
As I understand it,to install the report engine, the libraries from reportEngine/lib, including the batik.pdf jar should be copied to WEB-INF/lib, which I have done.
In the jbpm-gwt-shared project the GuvnorConnectionUtils.getProcessSourceContent() method is throwing a NoSuchMethodError at line 212, which is not being caught or logged.
The cause is that method org.apache.commons.io.IOUtils.copy(InputStream, Writer) does not exist. This method was introduced in version 1.1 of commons.io.
Removing the org.apache.batik.pdf_1.6.0.v201105071520.jar, allows the classes in commons.io.1.4.jar to become visible and solves the problem.
I am not familiar with the jboss Modules system. Is there some configuration which can hide these offending classes from other libraries within the same deployment?
I can submit a patch which replaces the catch block at line 214 of GuvnorConnectionUtils to catch a Throwable, so at least the problem is logged if it affects anyone else.
Am I doing somethng daft or missing another obvious solution?
Any pointers to solutions will be much appreciated.
I have asked a question about the inclusion of the commons.io classes in the batik.pdf jar on the eclipse Birt forum.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/756971#756971]
Start a new discussion in jBPM Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2035]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120830/22a6a9d6/attachment.html
More information about the jboss-dev-forums
mailing list