aspose file tools*
The moose likes Struts and the fly likes Tomcat startup problem after adding struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Tomcat startup problem after adding struts" Watch "Tomcat startup problem after adding struts" New topic
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat startup problem after adding struts
 
Similar Threads
Tomcat 5.0.28 giving exception while deploying struts applications
tomcat error deploying axis
New Context addition problem in Tomcat4.1.12
spring application does not delop successfully...
In My application i m getting error in tomcat server