-
1. Re: Class Loading exception from library Jars - - jboss-deployment-structure.xml - JBoss Eap 6.2 -
lylewang Jul 8, 2015 2:30 AM (in response to karthik227)What jar do you think it's in conflict, and could you upload the log showing the error ?
You want to use <exclusions> to exclude modules, or <exclude-subsystems> to exclude subsystems
Check these docs:
https://docs.jboss.org/author/display/AS72/Class+Loading+in+AS7
Some modules are loaded based on some "trigger conditions" we call it "implicit module dependency":
https://docs.jboss.org/author/display/AS7/Implicit+module+dependencies+for+deployments
If trigger conditions are met, those modules will be loaded, if you don't want JBoss to load them / want to use your own versions, you will exclude them in "jboss-deployment-structure.xml" file and package your own version as JBoss custom module , or just inside WEB-INF/lib.
-
2. Re: Class Loading exception from library Jars - - jboss-deployment-structure.xml - JBoss Eap 6.2 -
karthik227 Jul 8, 2015 4:43 AM (in response to lylewang)Hi Lyle Wang,
Thanks for responding.
The Conflicting jars are the above one listed seems to be certjFIPS.jar, cryptojFIPS.jar and ssljFIPS.jar .
Just as an alternative method, i forcefully tried to include it in the above jboss-deployment-structure.xml file but no luck.
Need help in what needs to be put inside the deployment descrypter file.
The Log is attached below:
14:10:52,657 ERROR [stderr] (Thread-79) Exception in thread "Thread-79" java.lang.ExceptionInInitializerError
14:10:52,658 ERROR [stderr] (Thread-79) at com.businessobjects.bcm.BCM.<clinit>(BCM.java:1144)
14:10:52,658 ERROR [stderr] (Thread-79) at com.crystaldecisions.enterprise.ocaframework.BCMInitializer.run(BCMInitializer.java:29)
14:10:52,658 ERROR [stderr] (Thread-79) at java.lang.Thread.run(Thread.java:724)
14:10:52,659 ERROR [stderr] (Thread-79) Caused by: java.lang.SecurityException: Toolkit not encapsulated by a jar.
14:10:52,659 ERROR [stderr] (Thread-79) at com.rsa.cryptoj.f.ug.d(Unknown Source)
14:10:52,659 ERROR [stderr] (Thread-79) at com.rsa.cryptoj.f.ug.b(Unknown Source)
14:10:52,659 ERROR [stderr] (Thread-79) at com.rsa.cryptoj.f.nd.b(Unknown Source)
14:10:52,659 ERROR [stderr] (Thread-79) at com.rsa.cryptoj.f.nd.c(Unknown Source)
14:10:52,659 ERROR [stderr] (Thread-79) at com.rsa.jsafe.CryptoJ.isFIPS140Compliant(Unknown Source)
14:10:52,660 ERROR [stderr] (Thread-79) at com.businessobjects.bcm.internal.BcmRsaLib.initialize(BcmRsaLib.java:214)
14:10:52,660 ERROR [stderr] (Thread-79) at com.businessobjects.bcm.internal.BcmRsaLib.<clinit>(BcmRsaLib.java:289)
14:10:52,660 ERROR [stderr] (Thread-79) ... 3 more
-
3. Re: Class Loading exception from library Jars - - jboss-deployment-structure.xml - JBoss Eap 6.2 -
lylewang Jul 9, 2015 12:17 AM (in response to karthik227)Found a similar discussion for you : ExceptionInInitializerError in JBoss 7.0.2