struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vidula Hasaranga <>
Subject DMI issue with struts 2.3.29 in tomcat
Date Wed, 06 Jul 2016 07:19:18 GMT
My web app uses struts 2.3.15 and deployed in tomcat 7.0.47 (and in tomcat
8.0.15 too). I have used most of the calls using DMI (Dynamic Method
Invocation) using urls like /testapp/userspace/user!getRole.action

Now I have updated the application to struts version 2.3.29 and any of the
DMI methods are not working and return 404 error.

I do understand that struts has made default configuration for DMI to false
(struts.enable.DynamicMethodInvocation) after version 2.3.xx (where xx
above 15) but using struts configuration file I made that enabled, still
its not working. I checked using config-browser plugin and seems its not
getting enabled, although I have made the configuration to enable it.

My struts-config.xml

<?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
	<constant name="struts.enable.DynamicMethodInvocation" value="true" />
	<constant name="struts.objectFactory.spring.autoWire" value="name" />
	<constant name="struts.devMode" value="true" />



I have also learned that this issue is not with jboss server since we have
done the same change to another app that runs on jboss and it works as

Any suggestions on how to made struts.enable.DynamicMethodInvocation to

Tomcat - 7.0.47, Struts - 2.3.29



  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message