You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by zahis Rahman <za...@gmail.com> on 2019/11/15 20:30:43 UTC

specific : WARNING

Hi,

I googled for this warning. There are similar results, but not for this particular warning.
I would like to get rid of it as this is the only warning left.

[INFO] --- jetty-maven-plugin:9.4.22.v20191022:run (default-cli) @ allapps ---
[INFO] Logging initialized @1895ms to org.eclipse.jetty.util.log.Slf4jLog
[INFO] webAppSourceDirectory not set. Trying src\main\webapp
[INFO] Reload Mechanic: automatic
[INFO] nonBlocking:false
[INFO] Classes = C:\struts2\work_dir\allapp\target\classes
[INFO] Configuring Jetty for project: Struts 2 AllApps Webapp
[INFO] Context path = /allapps
[INFO] Tmp directory = C:\struts2\work_dir\allapp\target\tmp
[INFO] Web defaults = org/eclipse/jetty/webapp/webdefault.xml
[INFO] Web overrides =  none
[INFO] web.xml file = file:///C:/struts2/work_dir/allapp/src/main/webapp/WEB-INF/web.xml
[INFO] Webapp directory = C:\struts2\work_dir\allapp\src\main\webapp
[INFO] jetty-9.4.22.v20191022; built: 2019-10-22T13:37:13.455Z; git: b1e6b55512e008f7fbdf1cbea4ff8a6446d1073b; jvm 13.0.1+9
[INFO] Scanning elapsed time=144ms
[INFO] DefaultSessionIdManager workerName=node0
[INFO] No SessionScavenger set, using defaults
[INFO] node0 Scavenging every 660000ms
[INFO] Started o.e.j.m.p.JettyWebAppContext@23f02d67{Struts2 AllApps,/allapps,file:///C:/struts2/work_dir/allapp/src/main/webapp/,AVAILABLE}{file:///C:/struts2/
work_dir/allapp/src/main/webapp/}
[INFO] Started ServerConnector@b182c056{HTTP/1.1,[http/1.1]}{0.0.0.0:8080}
[INFO] Started @3780ms
[INFO] Started Jetty Server
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.opensymphony.xwork2.util.AbstractLocalizedTextProvider (file:/C:/Users/zahid/.m2/repository/org/apache/struts/struts2-
core/2.5.20/struts2-core-2.5.20.jar) to field java.util.ResourceBundle.cacheList
WARNING: Please consider reporting this to the maintainers of com.opensymphony.xwork2.util.AbstractLocalizedTextProvider
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

Re: specific : WARNING : Redundant code

Posted by Lukasz Lenart <lu...@apache.org>.
sob., 16 lis 2019 o 12:24 zahis Rahman <za...@gmail.com> napisał(a):
>
> Thank you.
> I am just pleased that I found a JVM [JDK8 ] version which ensures stability in the underlying application dependency.
> IBM  are also  only releasing jdk8,  I suspect they are also waiting for the resolution.  The same error was appearing in Spring frame work..

Struts 2.5.22 was officially released so you can check it on Java 11

> Also I like to mention that the following code is redundant in the blank application template in Web.xml and  index.html due the way struts2 framework works.
>
> <welcome-file-list>
>     <welcome-file>index.jsp</welcome-file>
> </welcome-file-list>

Hm... I recall some issues when request is FORWARDed, instead of a
pure request. I would left it as this is also a good documentation
like option.


Regard
-- 
Ł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


RE: specific : WARNING : Redundant code

Posted by zahis Rahman <za...@gmail.com>.
Thank you.
I am just pleased that I found a JVM [JDK8 ] version which ensures stability in the underlying application dependency.   
IBM  are also  only releasing jdk8,  I suspect they are also waiting for the resolution.  The same error was appearing in Spring frame work.. 

Also I like to mention that the following code is redundant in the blank application template in Web.xml and  index.html due the way struts2 framework works.

<welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
</welcome-file-list>


From: Lukasz Lenart
Sent: 16 November 2019 07:45
To: Struts Users Mailing List
Subject: Re: specific : WARNING

pt., 15 lis 2019 o 21:31 zahis Rahman <za...@gmail.com> napisał(a):
> WARNING: An illegal reflective access operation has occurred
> WARNING: Illegal reflective access by com.opensymphony.xwork2.util.AbstractLocalizedTextProvider (file:/C:/Users/zahid/.m2/repository/org/apache/struts/struts2-
> core/2.5.20/struts2-core-2.5.20.jar) to field java.util.ResourceBundle.cacheList
> WARNING: Please consider reporting this to the maintainers of com.opensymphony.xwork2.util.AbstractLocalizedTextProvider
> WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
> WARNING: All illegal access operations will be denied in a future release

Struts 2.5.x is not fully compatible with JDK11+, but soon we will
release a new version which should resolve the problem.


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



Re: specific : WARNING

Posted by Lukasz Lenart <lu...@apache.org>.
pt., 15 lis 2019 o 21:31 zahis Rahman <za...@gmail.com> napisał(a):
> WARNING: An illegal reflective access operation has occurred
> WARNING: Illegal reflective access by com.opensymphony.xwork2.util.AbstractLocalizedTextProvider (file:/C:/Users/zahid/.m2/repository/org/apache/struts/struts2-
> core/2.5.20/struts2-core-2.5.20.jar) to field java.util.ResourceBundle.cacheList
> WARNING: Please consider reporting this to the maintainers of com.opensymphony.xwork2.util.AbstractLocalizedTextProvider
> WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
> WARNING: All illegal access operations will be denied in a future release

Struts 2.5.x is not fully compatible with JDK11+, but soon we will
release a new version which should resolve the problem.


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