Reputation: 1134
I am trying to configure Log4J 1.2.17 for JBoss EAP 6.4 and keep getting
ClassNotFoundException: org.apache.log4j.PropertyConfigurator.
I was not having this problem with EAP 6.2 and not sure what to do. The only support I could find was a migration guide but that didn't help much because everything it said to change I had already configured.
Upvotes: 2
Views: 419
Reputation: 1134
I found my problem. I orginally defined my dependency in my MANIFEST.MF like so:
Dependencies: org.apache.log4j
With this defined I get the above error. However when I remove this entry from my MANIFEST.MF and add the dependency to a jboss-deployment-structure.xml:
<jboss-deployment-structure>
<deployment>
<dependencies>
<module name ="org.apache.log4j"/>
</dependencies>
</deployment>
</jboss-deployment-structure>
My problem is resolved. Not sure if this is a bug or if it works as designed in EAP 6.4. I also tested that this solution is backwards compatible to EAP 6.2.
Upvotes: 2