Log4j in Weblogic - ClassNotFoundException
Helo my friends/readers
I need a hint to solve problem developed in JDeveloper 11g/ WebLogic Server 10.3.0.0.
Application - Struts, JSP , Java)
But when I install and start the web application using weblogic console it gives an error,
java.lang.ClassNotFoundException: org.apache.log4j.Category
My libries in WEB-INF/lib as follows,
antlr.jar commons-beanutils.jar commons-digester.jar commons-fileupload-1.0.jar commons-validator.jar dom4j-1.6.1.jar dwr.jar jakarta-oro.jar struts.jar log4j-1.2.15.jar
Do you have any idea? i post in Javaranch forum, not cleared yet.
Thank you very much for any hint.
I need a hint to solve problem developed in JDeveloper 11g/ WebLogic Server 10.3.0.0.
Application - Struts, JSP , Java)
But when I install and start the web application using weblogic console it gives an error,
java.lang.ClassNotFoundException: org.apache.log4j.Category
My libries in WEB-INF/lib as follows,
antlr.jar commons-beanutils.jar commons-digester.jar commons-fileupload-1.0.jar commons-validator.jar dom4j-1.6.1.jar dwr.jar jakarta-oro.jar struts.jar log4j-1.2.15.jar
Do you have any idea? i post in Javaranch forum, not cleared yet.
Thank you very much for any hint.
Update 1:
Created a new file call "weblogic.xml" in WEB-INF
<?xml version="1.0" encoding="ISO-8859-1"?>
<weblogic-web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/ns/weblogic/weblogic-web-app.xsd" xmlns="http://www.bea.com/ns/weblogic/weblogic-web-app">
<container-descriptor>
<prefer-web-inf-classes>true</prefer-web-inf-classes>
</container-descriptor>
</weblogic-web-app>
working fine now!
Comments