struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vidula Hasaranga <vhasara...@isa.ae>
Subject Re: DMI issue with struts 2.3.29 in tomcat
Date Thu, 07 Jul 2016 03:00:12 GMT
I changed my struts-config to below, but still no luck.

*<?xml version="1.0" encoding="UTF-8" ?>*
*<!DOCTYPE struts PUBLIC*
*    "-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"*
*    "http://struts.apache.org/dtds/struts-2.3.dtd
<http://struts.apache.org/dtds/struts-2.3.dtd>">*

*<struts>*
* <constant name="struts.enable.DynamicMethodInvocation" value="true" />*
* <constant name="struts.objectFactory.spring.autoWire" value="name" />*
* <constant name="struts.devMode" value="true" />*

*</struts>*

Anyway thanks for the help.

Regards,

Vidula Hasaranga
Consultant Technology

[image: ACCELaero] <http://www.accelaero.com>
<http://www.worldtravelawards.com/award-travel-technologys-leading-pss-provider-2015>
Information
Systems Associates (Pvt) Ltd, Colombo 3, Sri Lanka
Tel *+94112058886* - Mob *+94773799694* - Fax *+971 65528857*
*accelaero.com* <http://accelaero.com> ⸰ *LinkedIn*
<https://www.linkedin.com/company/information-systems-associates-fze> ⸰
*Twitter* <https://twitter.com/isafeeds>


On Wed, Jul 6, 2016 at 5:32 PM, Lukasz Lenart <lukaszlenart@apache.org>
wrote:

> 2016-07-06 13:22 GMT+02:00 Vidula Hasaranga <vhasaranga@isa.ae>:
> > 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 getter - it doesn't matter how did you implement it.
>
> > Can it be an incompatibility with struts version and tomcat
> > since struts.enable.DynamicMethodInvocation is not set to true even
> though
> > it set in the struts configurations by me as I found by config-browser
> > plugin.
> >
> > Just as a note that I am using codebehind still, not the convention
> plugin.
> >
> >
> > Error I am getting in console ::
> >
> > 06-Jul-2016 16:50:12.629 WARNING [http-nio-7070-exec-7]
> > com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn Could not
> > find action or result:
> > /test-app/aa/bb/ui/reports!searchInitialActualReportRegionsYears.action
> >  There is no Action mapped for namespace [/aa/bb/ui] and action name
> > [reports!searchInitialActualReportRegionsYears] associated with context
>
> This means that `struts.enable.DynamicMethodInvocation` is false and
> it's because you are using old DTD, instead of this
>
> <?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE struts PUBLIC
> "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
> "http://struts.apache.org/dtds/struts-2.3.dtd">
>
> you must set 2.3, like this
>
> <?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE struts PUBLIC
> "-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
> "http://struts.apache.org/dtds/struts-2.3.dtd">
>
>
> Regards
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

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