My code compiles and builds successfully. However, when I try to execute it in an xDM environment I get a ClassNotFound exception complaining that org.slf4j.LoggerFactory cannot be found. This happens during instantiation of my enricher class.
As far as I can see, the required libraries* are in the right place - Tomcat's lib folder. I've also tried adding them into the additional-libraries folder. Nothing seems to help.
Anyone got any ideas?
* slf4j-api-1.7.30.jar and slf4j-jdk14-1.7.30.jar
1 Comment
S
Steve Higgins
said
6 days ago
Found it. As pointed out in another article in this support site, I needed to add org.slf4j to the Imported Packages in the Dependencies section of my plugin.xml:
Steve Higgins
I've imported the following and created a Logger:
My code compiles and builds successfully. However, when I try to execute it in an xDM environment I get a ClassNotFound exception complaining that org.slf4j.LoggerFactory cannot be found. This happens during instantiation of my enricher class.
As far as I can see, the required libraries* are in the right place - Tomcat's lib folder. I've also tried adding them into the additional-libraries folder. Nothing seems to help.
Anyone got any ideas?
* slf4j-api-1.7.30.jar and slf4j-jdk14-1.7.30.jar