• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

tomcat boot failed

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I cannot find a way out for this exception during tomcat booting process. It began with a tomcat version bundled with StrutsStudio. Then this "virus" arrived in my tomcat's main installation. I even downloaded a new one (v.4.1.31)and installed in a completely different directory and once again the same message:

java.lang.NoClassDefFoundError: org/apache/commons/collections/ArrayStack

I suppose this is a class used by tomcat's digester to read the configuration files. Needless to say that I already checked and ALL installations have the commons-collections jar.

Any hint?

Thanks in advance,

C�sar
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it the stock Tomcat - no modifications - that is giving this error?
Which Java version are you using?
It sounds like your Java is picking up the org.apache.commons.collections package from an earlier version installed elsewhere on your system, rather than the jar files that come with Tomcat.
Bill
 
Cesar Olavo
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for your response, Bill. I solved the problem by reinstalling the jsdk. In some way the struts application corrupted the java files.

Cesar
 
Cesar Olavo
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bingo! When I started this thread some time ago I was a bit hurried to have my code working, so I didn't bother to check what was really happening, why I was getting that missing ArrayStack message and why having a new java install solved my problem.

Now, less pressed, it took me no more than 5 minutes to see that Bill was right. THe problem is that there was a damn old commons-digester.jar (not commons-collection, as Bill suggested, but it was a good hint anyway) hanging around in the jre/lib/ext of the old java install. Once removed, no more problems. And as an extra bonus, now tomcat is displaying some new juicy messages that will help me debug old problems with log4j...

Thanks again Bill.

Cesar
 
Bras cause cancer. And tiny ads:
Enterprise-grade Excel API for Java
https://products.aspose.com/cells/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!