wood burning stoves 2.0*
The moose likes Struts and the fly likes tomcat and struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "tomcat and struts" Watch "tomcat and struts" New topic
Author

tomcat and struts

sudharshan tettu
Ranch Hand

Joined: Jul 17, 2006
Posts: 124
I have tomcat4.1[jdk5] installed on my machine ,after deploying war ,am not able to run any struts application ...
this is the error am gettin when i try deploying a war file...

org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy. You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed.


please any body help me clearly wat are the steps i have to follow to use struts with tomcat...
thanks
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
I suspect this may have something to do with the fact that Tomcat has commons-logging already in its classpath and the default Struts configuration also has commons-logging in its WEB-INF/lib directory. I'd suggest taking out the commons-logging jar file from WEB-INF/lib and see if that solves the problem.


Merrill
Consultant, Sima Solutions
sudharshan tettu
Ranch Hand

Joined: Jul 17, 2006
Posts: 124
thank you for your quick reply...
but the problem stillpersists even after removing commons.logging.....
if possible...could you clearly explain the way i can start doin that ...examples??

my tomcat is 4.1 and struts 1.2.9 ....is that any way problem...am using older version thats not compatible with the other??
thank u
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
When you stated that you were using Tomcat 4.1 with a Java 5 JDK, that did raise a bit of a red flag with me. My understanding is that Tomcat 4.1 was meant to run with JDK 1.4. You might try either upgrading Tomcat to version 5, or downgrading the JDK that Tomcat runs on to 1.4.
Lucas Lee
Ranch Hand

Joined: Oct 02, 2006
Posts: 53
Why do you not use Tomcat5?
sudharshan tettu
Ranch Hand

Joined: Jul 17, 2006
Posts: 124
Has it got anything to do with Tomcat Version.Please could you help me, I am quite confused .
Am still getting the same error....
Thansk very much..
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
This looks like a warning message to me. Are you 100 percent sure you can't still run the application? It should still deploy, even if there's a problem with the logging.

Yes, I would suggest you upgrade to Tomcat 5.5 and see if it makes a difference.
 
GeeCON Prague 2014
 
subject: tomcat and struts