struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukaszlen...@apache.org>
Subject Re: Struts2 Not Working After Migrating from 2.3.15.1 to 2.3.20 in Wildfly server
Date Sun, 14 Dec 2014 18:37:46 GMT
Looks like you HomepageAction was processed and it should be available at
/homepage and /common/homepage - see the log exercise below. What happens
in log when you try access these actions?

22:34:35,262 DEBUG
[org.apache.struts2.convention.PackageBasedActionConfigBuilder] (default
task-8) Processing class [org.egov.web.actions.common.HomepageAction] in
package [org.egov.web.actions.common]
22:34:35,263 TRACE
[org.apache.struts2.convention.PackageBasedActionConfigBuilder] (default
task-8) Using non-default action namespace from Namespace annotation of [/]
22:34:35,263 TRACE
[org.apache.struts2.convention.PackageBasedActionConfigBuilder] (default
task-8) Got actionName for class [class
org.egov.web.actions.common.HomepageAction] of [homepage]
22:34:35,264 TRACE
[org.apache.struts2.convention.PackageBasedActionConfigBuilder] (default
task-8) Using non-default parent package from annotation of [egov]
22:34:35,265 TRACE
[org.apache.struts2.convention.PackageBasedActionConfigBuilder] (default
task-8) Created package config named [org.egov.web.actions.common#egov#/]
with a namespace [/]
22:34:35,271 TRACE
[org.apache.struts2.convention.PackageBasedActionConfigBuilder] (default
task-8) Using non-default action namespace from the Action annotation of
[/common/homepage]
22:34:35,272 TRACE
[org.apache.struts2.convention.PackageBasedActionConfigBuilder] (default
task-8) Using non-default parent package from annotation of [egov]
22:34:35,272 TRACE
[org.apache.struts2.convention.PackageBasedActionConfigBuilder] (default
task-8) Created package config named
[org.egov.web.actions.common#egov#/common] with a namespace [/common]
22:34:35,273 DEBUG
[org.apache.struts2.convention.PackageBasedActionConfigBuilder] (default
task-8) Creating action config for class [class
org.egov.web.actions.common.HomepageAction], name [homepage] and package
name [org.egov.web.actions.common#egov#/common] in namespace [/common]
22:34:35,273 TRACE [org.apache.struts2.convention.DefaultResultMapBuilder]
(default task-8) Using final calculated namespace [/common]
22:34:35,274 TRACE [org.apache.struts2.convention.DefaultResultMapBuilder]
(default task-8) Searching for results in the Servlet container at
[/WEB-INF/jsp/common/] with result prefix of [/WEB-INF/jsp/common/homepage]
22:34:35,275 TRACE [org.apache.struts2.convention.DefaultResultMapBuilder]
(default task-8) Processing resource path [/WEB-INF/jsp/common/homepage.jsp]
22:34:35,275 TRACE [org.apache.struts2.convention.DefaultResultMapBuilder]
(default task-8) The result file [/WEB-INF/jsp/common/homepage.jsp] has no
result code and therefore will be associated with success, input and error
by default. This might be overridden by another result file or an
annotation.
22:34:35,276 TRACE [org.apache.struts2.convention.DefaultResultMapBuilder]
(default task-8) Processing resource path
[/WEB-INF/jsp/common/homepage-error.jsp]
22:34:35,276 TRACE [org.apache.struts2.convention.DefaultResultMapBuilder]
(default task-8) The result file [/WEB-INF/jsp/common/homepage-error.jsp]
has a result code and therefore will be associated with only that result
code.
22:34:35,277 TRACE [org.apache.struts2.convention.DefaultResultMapBuilder]
(default task-8) Searching for results in the class path at
[WEB-INF/jsp/common/] with a result prefix of
[/WEB-INF/jsp/common/homepage] and action name [homepage]


2014-12-14 18:24 GMT+01:00 Sreekanth S. Nair <
sreekanth.nair@egovernments.org>:
>
> Didn find anything in the log like you specified. Attaching trace log for
> your reference.
>
> --
> Thanks & Regards
>
> Sreekanth S Nair
> Java Developer
> -------------------------------------------
> eGovernments Foundation <http://www.egovernments.org>
> Ph : 9980078913
> -------------------------------------------
> <http://in.linkedin.com/pub/sreekanth-s-nair/b/946/5a0/>
> <https://github.com/sreekanthsnair>   <sreekanthsnair@hotmail.co.uk>
> <sreekanthsnyr@gmail.com>
> -------------------------------------------
>
> On Sun, Dec 14, 2014 at 10:19 PM, Lukasz Lenart <lukaszlenart@apache.org>
> wrote:
>>
>> Please check your logs for messages like this:
>> "The includeJars pattern ... did not match any jars in the classpath"
>>
>> 2014-12-14 17:29 GMT+01:00 Sreekanth S. Nair <
>> sreekanth.nair@egovernments.org>:
>> > Hi Lukasz,
>> >                  We are using this pattern for struts to check action
>> > classes in those specific jars, for this we are naming all our jars
>> > containing action classes with "org-" prefix.
>> >
>> > Yeah i can try removing those, we are using some custom
>> > interceptors(removed from the one i have attached to avoid confusion)
>> that
>> > required to be kept in some specific order in the interceptor stack.
>> >
>> >
>> > --
>> > Thanks & Regards
>> >
>> > Sreekanth S Nair
>> > Java Developer
>> > -------------------------------------------
>> > eGovernments Foundation <http://www.egovernments.org>
>> > Ph : 9980078913
>> > -------------------------------------------
>> > <http://in.linkedin.com/pub/sreekanth-s-nair/b/946/5a0/>
>> > <https://github.com/sreekanthsnair>   <sreekanthsnair@hotmail.co.uk>
>> > <sreekanthsnyr@gmail.com>
>> > -------------------------------------------
>> >
>> > On Sun, Dec 14, 2014 at 9:42 PM, Lukasz Lenart <lukaszlenart@apache.org
>> >
>> > wrote:
>> >>
>> >> 2014-12-13 15:24 GMT+01:00 Sreekanth S. Nair <
>> >> sreekanth.nair@egovernments.org>:
>> >> >
>> >> > Hi Lukasz,
>> >> >                   Anything you can give as a hint about it, if you
>> can
>> >> > tell me what are the components changed after 2.3.16.3 release, i can
>> >> > narrow down to find the exact cause.  I'm attaching my custom
>> struts.xml
>> >> > file
>> >> >
>> >>
>> >> I have reviewed the config and have few questions:
>> >> - why do you use this pattern? How do you name your jars?
>> >> <constant name="struts.convention.action.includeJars" value=".*org-.*"
>> />
>> >>
>> >> - switching to 2.3.20 you must throw away "exludeParams" - it overlaps
>> >> those defined by the framework
>> >>
>> >>
>> >> 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
>>
>>
>
> ---------------------------------------------------------------------
> 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