-
1. Re: How to add jars in JBoss AS 7
valsaraj007 Dec 2, 2014 12:22 AM (in response to valsaraj007)1 of 1 people found this helpfulAbove issue fixed when I copied the jar from my custom module to built in module jboss:domain:security. Is this the right way to fix it?
The class org.app.security.auth.PasswordStoreEntry is using apache log4j and now the app server reporting log4j not found error.
Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Logger from [Module "org.jboss.as.security:main" from local module loader @1d140071
Do we need to add log4j jar also?
-
2. Re: How to add jars in JBoss AS 7
ksreen Dec 9, 2014 1:51 AM (in response to valsaraj007)1 of 1 people found this helpfulYou can try to add a module dependency to you module in the security module's module.xml ... Make sure you define your module and add its dependencies appropriately in the module.xml.
-
3. Re: How to add jars in JBoss AS 7
valsaraj007 Dec 10, 2014 3:47 AM (in response to ksreen)Fixed issues by adding a module and added jars in that module as <resource-root path="common.jar"/>. Earlier I used <resource-root path="."/> and this caused class not found.
Then added explicit dependency in security module to this static module because our security domain configuration used the class in the common.jar which was added in new module. There is no need to copy jar into security module, just need to set dependncy