struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yasser Zamani (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-4974) NullPointerException in DefaultStaticContentLoader#findStaticResource
Date Wed, 31 Oct 2018 13:37:01 GMT

    [ https://issues.apache.org/jira/browse/WW-4974?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16670116#comment-16670116
] 

Yasser Zamani commented on WW-4974:
-----------------------------------

:) Yes it should work because FYI I found {{reloadingConfigs}} is being set to {{true}} at
end of the whole action service cycle. This means authors of it have used it to found out
if they need to reload the whole configs in next request (rather than current one).

Anyway, this issue (WW-4974) is a separate one and is because of {{setHostConfig}} calling
takes place only once at {{StrutsPrepareAndExecuteFilter.init}}. However, as {{struts-core-x.jar!struts-default.xml}}
never considered to being changed during app life-cycle, then I think we can ignore this when
we re-fixed WW-4948 :)

> NullPointerException in DefaultStaticContentLoader#findStaticResource
> ---------------------------------------------------------------------
>
>                 Key: WW-4974
>                 URL: https://issues.apache.org/jira/browse/WW-4974
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.5.18
>         Environment: Tomcat 9 on Ubuntu 18 Java 8 struts 2.5.18
>            Reporter: nikos dimitrakas
>            Priority: Major
>             Fix For: 2.6, 2.5.19
>
>
> pathPrefixes is null. The defaults that were loaded correctly in previous versions are
now not loaded. The method setHostConfig does not get called like in previous versions.
> This causes all js files to not be found. For example 
> /struts/js/base/version.min.js
> /struts/js/base/jquery-2.2.4.min.js
> /struts/js/struts2/jquery.ui.struts2.min.js
> /struts/js/struts2/jquery.datatables.struts2.min.js
> /struts/js/plugins/jquery.dataTables.min.js



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message