Problem

During the Struts initialization, it hits the following error messages.

SEVERE: Unable to initialize Struts ActionServlet due to an unexpected exception or error thrown, 
so marking the servlet as unavailable.  Most likely, this is due to an incorrect or missing library dependency.
java.lang.NoSuchMethodError: org.apache.commons.digester.Digester.parse(Ljava/net/URL;)Ljava/lang/Object;
	at org.apache.commons.chain.config.ConfigParser.parse(ConfigParser.java:190)
	at org.apache.struts.action.ActionServlet.initChain(ActionServlet.java:1687)

Solution

This is caused by certain method is not found in the commons digester library. You need to upgrade your commons-digester.jar to latest version.

In this case, I’m using “Struts 1.3.10 + commons-digester-1.6.jar + struts-tiles 1.3.10″ combination, and hits the above error message. After upgraded to the latest commons-digester-2.0.jar, the error message is gone.

Tags :
Founder of Mkyong.com, love Java and open source stuff. Follow him on Twitter, or befriend him on Facebook or Google Plus. If you like my tutorials, consider making a donation to the charity, thanks.

Related Posts

Popular Posts