• 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
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Tomcat startup problem after adding struts

 
Ranch Hand
Posts: 2676
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just added everything for Thomas Paul's struts example. When I start Tomcat I get the following error:

Tomcat was running fine before that. Does anyone have any ideas on what may be causing this?
 
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out the XML Parser(Xerces). Could be that you copied over an older/different version of xerces or crimson. You do go through a mini version of "dll hell" when you are dealing with the xml parsers.
HTH
Ravi
 
Matthew Phillips
Ranch Hand
Posts: 2676
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, Ravi.
I resolved the previous problem by uninstalling Tomcat 4.1 and installing Tomcat 4.0.4. Now I am getting the following error in my log when it tries to load struts:

Other servlets in other web apps are able to load. Any thoughts on this?
[ September 18, 2002: Message edited by: Matthew Phillips ]
 
Ravi Veera
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How about checking for multiple servlet.jars? There's at least 3 places Tomcat looks for jars.
-In the classpath.
-In the common\lib directory under tomcat
-Under the WEB-INF\lib directory of your web-app
Also there are certain tomcat jar files under \lib directory of the Tomcat installation.
And of course your JDK_HOME directory.
I have had these kind of problems before and I sure wish Java had a decent versioning system for their jars. It does get to be painful to track down the offending jars and libraries.
Regards
Ravi
 
Matthew Phillips
Ranch Hand
Posts: 2676
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's what I was thinking too, but I checked for it. Servlets in other webapps are working. It only occurs with 1 webapp.
 
Matthew Phillips
Ranch Hand
Posts: 2676
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is definately something on this particular PC, because it worked on another PC. I will keep plugging away at it.
 
Matthew Phillips
Ranch Hand
Posts: 2676
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The problem was the copy of struts.jar in the jre/lib/ext folder. When I deleted that I was able to get past the startup error.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!