Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts application deployment trouble in WAS 6.1

 
Dawn Charangat
Ranch Hand
Posts: 249
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ranchers,

I have this *.EAR app which containes a war module in it, which was working fine all this time.
However, when I did a redeployment this morning, I got the error :

Error 404: SRVE0201E: Servlet [org.apache.struts.action.ActionServlet]: not a servlet class

The logs in server did not guide me anywhere... has anyone met with this situation before?

Any help would be highly appreciated..

Thanks
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34672
367
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No. But the things I'd look at:
1) Did the struts.jar change?
2) Did a classpath change?
3) Did a classloader change?
 
Dawn Charangat
Ranch Hand
Posts: 249
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No Jeanne... neither of them has changed, and thats what stumps me !!!

I have just modified a single action class which was there already, and subsequent change was made in struts-config.xml as well. But the change is so small that it will not effect the entire app to break down. Also, I made sure I have't broken the struts-config with any bad XML construct [or just lets say that the XML is well formed]. Googling on this didnt help me at all.
 
Dawn Charangat
Ranch Hand
Posts: 249
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jeanne, I finally fixed it... Thought I would share it here so that if anyone else runs into this trouble, you could use this "know-how".
I had added another jar [strutstestcase.jar], which would help me unit test my struts action classes. This guy, infact was internally making use of the servlet-api.jar. Since I was using maven to build my project, this dependency was automatically injected.

I went ahead and added the "scope" to "test" for strutstestcase.jar, and also added an "exclude" block inside the same, to exclude servlet-api.jar...... A restart of the WAS app server, and my application started up like a charm....
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic