| Author |
Tomcat startup problem after adding struts
|
Matthew Phillips
Ranch Hand
Joined: Mar 09, 2001
Posts: 2676
|
|
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?
|
Matthew Phillips
|
 |
Ravi Veera
Ranch Hand
Joined: Jun 23, 2001
Posts: 127
|
|
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
Joined: Mar 09, 2001
Posts: 2676
|
|
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
Joined: Jun 23, 2001
Posts: 127
|
|
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
Joined: Mar 09, 2001
Posts: 2676
|
|
|
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
Joined: Mar 09, 2001
Posts: 2676
|
|
|
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
Joined: Mar 09, 2001
Posts: 2676
|
|
|
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.
|
 |
 |
|
|
subject: Tomcat startup problem after adding struts
|
|
|