Re: DMI issue with struts 2.3.29 in tomcat

2016-07-07 Thread Vidula Hasaranga
Yes, That fixed my issue. I am going to convert the Codebehind to Convention now. But app is working well now with suggested changes. Thank you very much for the support. Regards, Vidula. Vidula Hasaranga Consultant Technology [image: ACCELaero]

Re: DMI issue with struts 2.3.29 in tomcat

2016-07-07 Thread Lukasz Lenart
It's a bug related to this change [1] and this commit [2] and the problem is here [3] & [4]. The best option is to migrate to the Convention plugin instead of using deprecated Codebehind or define you own JSONResult as follow: public class MyJSONResult extends JSONResult { public static final

Re: DMI issue with struts 2.3.29 in tomcat

2016-07-07 Thread Vidula Hasaranga
Yes, making the file rename to struts.xml and putting that in WEB-INF/classes folder resolved the 404 issue that I had. But now it gives a different error with code 500. Console log is as follows: 07-Jul-2016 14:48:33.430 SEVERE [http-nio-7070-exec-4] com.opensymphony.xwork2.util.logging.commons.

Re: DMI issue with struts 2.3.29 in tomcat

2016-07-06 Thread Lukasz Lenart
2016-07-06 9:19 GMT+02:00 Vidula Hasaranga : > web.xml > > > struts2 > > org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter > > config > struts-default.xml, >

Re: DMI issue with struts 2.3.29 in tomcat

2016-07-06 Thread Vidula Hasaranga
I changed my struts-config to below, but still no luck. ** *http://struts.apache.org/dtds/struts-2.3.dtd ">* ** * * * * * * ** Anyway thanks for the help. Regards, Vidula Hasaranga Consultant Technology [image: ACCELaero]

DMI issue with struts 2.3.29 in tomcat

2016-07-06 Thread Vidula Hasaranga
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

Re: DMI issue with struts 2.3.29 in tomcat

2016-07-06 Thread Lukasz Lenart
2016-07-06 13:22 GMT+02:00 Vidula Hasaranga : > No, I am not using getters, but some simple methods like searchUser(), > searchUserForUsername(), etc. Even the getRole() given as an example is not > a getter method, but it query the DB as per the logged in user to get roles. By convention it is a

Re: DMI issue with struts 2.3.29 in tomcat

2016-07-06 Thread Vidula Hasaranga
No, I am not using getters, but some simple methods like searchUser(), searchUserForUsername(), etc. Even the getRole() given as an example is not a getter method, but it query the DB as per the logged in user to get roles. Can it be an incompatibility with struts version and tomcat since struts.e

Re: DMI issue with struts 2.3.29 in tomcat

2016-07-06 Thread Lukasz Lenart
2016-07-06 12:25 GMT+02:00 Vidula Hasaranga : > 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 Probably because you are using gett

DMI issue with struts 2.3.29 in tomcat

2016-07-06 Thread Vidula Hasaranga
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