NoSuchMethodError when using submitting form in Struts 2

I’m currently working through the tutorial found on the Apache Struts website.

Currently, whenever I press submit on the form, or when I click the Bruce Philips hyperlink, I get a NoSuchMethodError.

javax.servlet.ServletException: Filter execution threw an exception
root cause

java.lang.NoSuchMethodError: ognl.SimpleNode.isEvalChain(Lognl/OgnlContext;)Z

I’m not too sure what the issue is either and I believe I’ve included everything the tutorial states. I’ve tried including the dependency in my pom.xml, but that makes no difference either.

<?xml version="1.0" encoding="UTF-8"?>


Any ideas on how I would fix this problem?


Problem found… Turns out my server version is too old to handle struts 2. I was previously using Geronimo version 2.0.2, and it now runs fine on GlassFish 3.1.2.

Source: stackoverflow