This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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
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.
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
Joined: Feb 15, 2005
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.