jQuery in Action, 2nd edition*
The moose likes Websphere and the fly likes Struts application deployment trouble in WAS 6.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "Struts application deployment trouble in WAS 6.1" Watch "Struts application deployment trouble in WAS 6.1" New topic
Author

Struts application deployment trouble in WAS 6.1

Dawn Charangat
Ranch Hand

Joined: Apr 26, 2007
Posts: 249
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30512
    
150

No. But the things I'd look at:
1) Did the struts.jar change?
2) Did a classpath change?
3) Did a classloader change?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Dawn Charangat
Ranch Hand

Joined: Apr 26, 2007
Posts: 249
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

Joined: Apr 26, 2007
Posts: 249
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....
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts application deployment trouble in WAS 6.1