struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yasser Zamani <yasser.zam...@live.com>
Subject Re: No container in actions after upgrading to 2.5.13
Date Mon, 11 Sep 2017 14:00:01 GMT
I recently have resolved very similar issue at [1].

That was because of wrong PUBLIC ID in his validator xmls.

But in general, please add <constant name="struts.devMode" value="true" 
/> to your struts.xml and configure log4j2 for your application [2] and 
then run your application and review it's output for any warnings. I 
guess you should look for something like "Unable to load config class X 
at Y probably due to a missing jar, which might be fine if you never 
plan to use the Z interceptor".

[1] https://issues.apache.org/jira/browse/WW-4841
[2] https://logging.apache.org/log4j/2.x/manual/migration.html

On 9/11/2017 6:21 PM, LAW Andy wrote:
> I recently upgraded the struts 2 library in an old web application from 2.5.10.1 to 2.5.13.
Simultaneously I upgraded Spring (which we use for managing the database connections and some
other bits and bobs) from 4.3.7 to 4.3.10.
>
> Now, the application runs but the actions do not have a Container injected. This manifests
itself when I try to call getText() - there is no TextProvider so the library tries to get
one from a TextProviderFactory which comes from the Container which is null which means I
get an NPE and a blank returned value. Rolling back the dependencies to the previous versions
reverts to correct behaviour.
>
> I am at a loss as to what needs to be reconfigured in order to get this web app back
up and running again with the more up-to-date libraries.
>
> FWIW, I’m developing in NetBeans using maven and running on Tomcat 8.0.21.
>
> Any suggestions will be gratefully received.
>
> TIA.
>
> Andy Law
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Mime
View raw message