Hello All, I am trying to run tiles on weblogic 7. I am getting this error.. java.lang.NoClassDefFoundError:/org/apache/commons/logging/LogFactory at org.apache.struts.taglib.tiles.InsertTag.<clinit><InsertTag.java:106> i have all the required files in my path, are as follows: ../web-inf/lib/struts.jar ../web-inf/lib/tilesForStruts1-0.jar ../web-inf/lib/tiles.jar In my web-inf, i have struts-tiles.tld i also tried to deploy tiles-blank.war file on weblogic but i am still getting the same error, so please help thanks sangeetha
We also had issues with WebLogic some time ago and it was because the logging libraries were already registered in the classpath and when we deployed applications including the log4j or commons-logging jar files, we got all kinds of conflicts and noclassdef errors. To fix it, we found and removed the logging jar's from the classpath and let the applications dictate their own logging mechanisms.
Due to classpath visibility issues, you are encouraged to have all the required jars (including struts jar et al.... plus commons-logging.jar etc..) at the same visibility level. That is you have struts.jar and tiles jars in WEB-INF/lib and commons logging in weblogic classpath it will work. However if you have it the other way round - (Struts in weblogic classpath and commons logging in WEBINF/lib) it is guaranteed NOT to work since parent classloader (for the classpath) cannot see the classes loaded by child class loader HTH. Srikanth Shenoy Author: Struts Survival Guide - Basics to Best Practices