Question
WellCare
US
Last activity: 22 Apr 2016 0:16 EDT
Help with JBoss and Pega third-party jars
Hi Guys,
I am trying to add this third-party jar to be use by Peg 7.1.7 using Jboss 6.1 but for some reason we are seeing this error message in the server log.
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NoClassDefFoundError: org/apache/pdfbox/multipdf/PDFMergerUtility
at com.pegarules.generated.MergePDF_010146_ZSAjujN5qTXuSs1HE7C$0A.MergePDF01_01_46(MergePDF_010146_ZSAjujN5qTXuSs1HE7C$0A.java:133)
at com.pegarules.generated.MergePDF_010146_ZSAjujN5qTXuSs1HE7C$0A.invoke(MergePDF_010146_ZSAjujN5qTXuSs1HE7C$0A.java:82)
I have created a path under the standalone configuration:
standalone/lib/ext/sharedlibs/pdfbox-app-2.0.0-RC1.jar
Then I added to the compilerDefaultPath DSS; but I am still getting the same error as above.
When Pega starts up I see the message that the jar has been added but no luck..
internal.mgmt.PRNodeImpl) INFO - Jar added to compile time classpath .../standalone/lib/ext/sharedlibs/pdfbox-app-2.0.0-RC1.jar
Message was edited by: Lochan to add Category

Hi Fabian,
First make sure your custom java code works outside pega as a standalone java program. Then follow the redhat article, pay special attention to the following - send the complete logs if there is still something wrong.
Have you tried to add your custom module in the (you need to redeploy the ear after making the changes)
prpc_j2ee14_jboss61JBM\META-INF\jboss-deployment-structure.xml
You need to add the module to the dependency of both prweb.war and prbean.jar – this is similar to reference the share lib from these two modules in Websphere.
Example (replace ‘foo’ with your module name):
<sub-deployment name="prweb.war">
<dependencies>
<module name="org.jboss.remote-naming"/>
<module name="org.hornetq"/>
<module name=”foo”/>
</dependencies>
<resources>
<resource-root path="APP-INF/lib/prbootstrap.jar" />
Hi Fabian,
First make sure your custom java code works outside pega as a standalone java program. Then follow the redhat article, pay special attention to the following - send the complete logs if there is still something wrong.
Have you tried to add your custom module in the (you need to redeploy the ear after making the changes)
prpc_j2ee14_jboss61JBM\META-INF\jboss-deployment-structure.xml
You need to add the module to the dependency of both prweb.war and prbean.jar – this is similar to reference the share lib from these two modules in Websphere.
Example (replace ‘foo’ with your module name):
<sub-deployment name="prweb.war">
<dependencies>
<module name="org.jboss.remote-naming"/>
<module name="org.hornetq"/>
<module name=”foo”/>
</dependencies>
<resources>
<resource-root path="APP-INF/lib/prbootstrap.jar" />
<resource-root path="APP-INF/lib/prresources.jar" />
<resource-root path="APP-INF/lib/prbootstrap-api.jar" />
</resources>
</sub-deployment>