RE: specific : WARNING : Redundant code
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. index.jsp 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 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-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
REFLECTION WARNING :SOLVED
Hi, I changed the jvm from jdk 13 to jdk 8. The run time error has disappeared. [INFO] --- jetty-maven-plugin:9.4.22.v20191022:run (default-cli) @ allapps --- [INFO] Logging initialized @7595ms 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 1.8.0_232-b09 [INFO] JVM Runtime does not support Modules [INFO] Scanning elapsed time=343ms [INFO] DefaultSessionIdManager workerName=node0 [INFO] No SessionScavenger set, using defaults [INFO] node0 Scavenging every 66ms [INFO] Started o.e.j.m.p.JettyWebAppContext@30d9e63{Struts2 AllApps,/allapps,file:///C:/struts2/work_dir/allapp/src/main/webapp/,AVAILABLE}{file:///C:/struts2/work_dir/al lapp/src/main/webapp/} [INFO] Started ServerConnector@2a134959{HTTP/1.1,[http/1.1]}{0.0.0.0:8080} [INFO] Started @10966ms [INFO] Started Jetty Server Sent from Mail for Windows 10
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 66ms [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: WEIRD Constraint
I wanted to write the code as follows , but that was giving me an error. I think you are suggesting it is by design. HelloWorld /example Sent from Mail for Windows 10 From: Dave Newton Sent: 15 November 2019 19:16 To: Struts Users Mailing List Subject: Re: WEIRD Constraint I’m not sure what you mean. The dtd defines the ordering of xml elements in the config file. On Fri, Nov 15, 2019 at 14:12 zahis Rahman wrote: > Hi, > > The constraint I have labelled as “WEIRD CONSTRAINT” in the file > struts.xml below , > is that by design ? > > > "-//Apache Software Foundation//DTD Struts Configuration 2.5//EN" > "http://struts.apache.org/dtds/struts-2.5.dtd;> > > > > > > > > > > > > /WEB-INF/jsp/error.jsp > > > > result="error"/> > > > > > > > HelloWorld > /example > > > > > > > > > > > -- em: davelnew...@gmail.com mo: 908-380-8699 tw: @dave_newton <https://twitter.com/dave_newton> li: dave-newton <https://www.linkedin.com/in/dave-newton/> gh: davelnewton <https://github.com/davelnewton> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton> bl[0]: Bucky Bits <http://buckybits.blogspot.com/> bl[1]: Maker's End Blog <https://blog.makersend.com> sk: davelnewton_skype
WEIRD Constraint
Hi, The constraint I have labelled as “WEIRD CONSTRAINT” in the file struts.xml below , is that by design ? http://struts.apache.org/dtds/struts-2.5.dtd;> /WEB-INF/jsp/error.jsp HelloWorld /example