aspose file tools*
The moose likes Struts and the fly likes Strange Tomcat Struts Startup Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Strange Tomcat Struts Startup Error" Watch "Strange Tomcat Struts Startup Error" New topic
Author

Strange Tomcat Struts Startup Error

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9426
    
    2

Guys,

I get the following exception during Tomcat startup of a Struts application:



I suspect that there is an offending class in the lib folder....



[Thumbnail for JAR.jpg]


SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9426
    
    2

I really do not know from where did the xwork-2.0.4 come from?
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9426
    
    2

I removed the dependency to xwork-core-2.2.4 and it worked fine.
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9426
    
    2

Hold on. Still the same problem persists. Baffles me... I'm not sure from where did this xwork-2.0.4 come from? I have not defined it in any of my dependencies.
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9426
    
    2

What even more confuses me is that the same project when build and run in a Linux box works without any problems, but when I use a Windows box, I get a ClassNotFoundException on com.opensymphony.xwork2.util.logging.LoggerFactory. I guess Struts 2.2.3, requires xwork-core 2.2.3. But if I include it as a dependency, then it leads me to the above error.

Allright, all I want to do now is to include xwork.core-2.2.3.jar as a dependency to my project and get rid of the xwork-2.0.4.jar. How can this be done?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Strange Tomcat Struts Startup Error