Re: specific : WARNING

2019-11-15 Thread Lukasz Lenart
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

2019-11-15 Thread zahis Rahman
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

2019-11-15 Thread zahis Rahman
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

2019-11-15 Thread zahis Rahman
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 
li: dave-newton 
gh: davelnewton 
so: Dave Newton 
bl[0]: Bucky Bits 
bl[1]: Maker's End Blog 
sk: davelnewton_skype



Re: WEIRD Constraint

2019-11-15 Thread Dave Newton
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 
li: dave-newton 
gh: davelnewton 
so: Dave Newton 
bl[0]: Bucky Bits 
bl[1]: Maker's End Blog 
sk: davelnewton_skype


WEIRD Constraint

2019-11-15 Thread zahis Rahman
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


 









Re: s:property #attr working in header.jsp but not HTTP 404.jsp

2019-11-15 Thread Lukasz Lenart
pt., 15 lis 2019 o 16:06 albert kao  napisał(a):
>
> How to fix it?
> I like to use a variable instead of hard coding like this:
> ">

It isn't about JavaScript, but how do you redirect/forward to such JSP
page? You should define a global action `404.action` and use it
instead of the JSP


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



Re: s:property #attr working in header.jsp but not HTTP 404.jsp

2019-11-15 Thread albert kao
How to fix it?
I like to use a variable instead of hard coding like this:
">

On Fri, Nov 15, 2019 at 8:24 AM Lukasz Lenart 
wrote:

> pt., 15 lis 2019 o 14:13 albert kao  napisał(a):
> > but displays an empty string
> > in http404.jsp ("Page Not Found"):
> >">
>
> How do you access the http404.jsp? Directly, out of action? If so,
> there is no context that's why #attr doesn't work
>
>
> 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
>
>


Re: s:property #attr working in header.jsp but not HTTP 404.jsp

2019-11-15 Thread Lukasz Lenart
pt., 15 lis 2019 o 14:13 albert kao  napisał(a):
> but displays an empty string
> in http404.jsp ("Page Not Found"):
>">

How do you access the http404.jsp? Directly, out of action? If so,
there is no context that's why #attr doesn't work


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



s:property #attr working in header.jsp but not HTTP 404.jsp

2019-11-15 Thread albert kao
This line displays the proper value
   ">
in header.jsp:
   ">

but displays an empty string
in http404.jsp ("Page Not Found"):
   ">

Please help.
Thanks.