• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

tomcat and struts

 
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
sudharshan tettu
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Why do you not use Tomcat5?
 
sudharshan tettu
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic