File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Running tiles on weblogic 7 urgent Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Running tiles on weblogic 7 urgent" Watch "Running tiles on weblogic 7 urgent" New topic

Running tiles on weblogic 7 urgent

sangita kandel

Joined: Jul 09, 2002
Posts: 12
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><>
i have all the required files in my path, are as follows:
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
praveen patil

Joined: Mar 03, 2003
Posts: 9
download commons-logging.jar and put it in CLASSPATH.
i dont know how you have deployed but use lib files
outside the deployed directory.
David Yutzy
tumbleweed and gunslinger
Ranch Hand

Joined: Jun 29, 2001
Posts: 192
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.
Srikanth Shenoy
Ranch Hand

Joined: Jan 24, 2004
Posts: 184
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
Srikanth Shenoy
Author: Struts Survival Guide - Basics to Best Practices

Srikanth Shenoy
Author of Struts Survival Guide : Basics to Best Practices
I agree. Here's the link:
subject: Running tiles on weblogic 7 urgent
jQuery in Action, 3rd edition