aspose file tools*
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
Author

Running tiles on weblogic 7 urgent

sangita kandel
Greenhorn

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><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
praveen patil
Greenhorn

Joined: Mar 03, 2003
Posts: 9
hi,
download commons-logging.jar and put it in CLASSPATH.
i dont know how you have deployed but use lib files
outside the deployed directory.
Praveen
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
author
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
HTH.
Srikanth Shenoy
Author: Struts Survival Guide - Basics to Best Practices


Srikanth Shenoy
Author of Struts Survival Guide : Basics to Best Practices
 
wood burning stoves
 
subject: Running tiles on weblogic 7 urgent