Build failed in Jenkins: Struts-JDK7-master #499

2016-07-27 Thread Apache Jenkins Server
See 

--
[...truncated 3140 lines...]
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/xerces/xercesImpl/2.9.1/xercesImpl-2.9.1.pom
 (2 KB at 41.6 KB/sec)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/xml-apis/xml-apis/1.3.04/xml-apis-1.3.04.pom
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/xml-apis/xml-apis/1.3.04/xml-apis-1.3.04.pom
 (2 KB at 55.6 KB/sec)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/apache/httpcomponents/httpclient/4.0.2/httpclient-4.0.2.pom
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/httpcomponents/httpclient/4.0.2/httpclient-4.0.2.pom
 (8 KB at 221.8 KB/sec)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/apache/httpcomponents/httpcomponents-client/4.0.2/httpcomponents-client-4.0.2.pom
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/httpcomponents/httpcomponents-client/4.0.2/httpcomponents-client-4.0.2.pom
 (9 KB at 273.6 KB/sec)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/apache/httpcomponents/project/4.1/project-4.1.pom
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/httpcomponents/project/4.1/project-4.1.pom
 (16 KB at 484.8 KB/sec)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/apache/httpcomponents/httpcore/4.0.1/httpcore-4.0.1.pom
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/httpcomponents/httpcore/4.0.1/httpcore-4.0.1.pom
 (5 KB at 149.2 KB/sec)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/apache/httpcomponents/httpcomponents-core/4.0.1/httpcomponents-core-4.0.1.pom
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/httpcomponents/httpcomponents-core/4.0.1/httpcomponents-core-4.0.1.pom
 (10 KB at 276.8 KB/sec)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/apache/httpcomponents/project/4.0/project-4.0.pom
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/httpcomponents/project/4.0/project-4.0.pom
 (13 KB at 400.2 KB/sec)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/commons-codec/commons-codec/1.3/commons-codec-1.3.pom
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/commons-codec/commons-codec/1.3/commons-codec-1.3.pom
 (6 KB at 186.3 KB/sec)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/apache/maven/doxia/doxia-module-xhtml/1.2/doxia-module-xhtml-1.2.pom
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/maven/doxia/doxia-module-xhtml/1.2/doxia-module-xhtml-1.2.pom
 (2 KB at 52.1 KB/sec)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/apache/maven/doxia/doxia-modules/1.2/doxia-modules-1.2.pom
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/maven/doxia/doxia-modules/1.2/doxia-modules-1.2.pom
 (3 KB at 76.3 KB/sec)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/apache/maven/doxia/doxia-module-apt/1.2/doxia-module-apt-1.2.pom
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/maven/doxia/doxia-module-apt/1.2/doxia-module-apt-1.2.pom
 (3 KB at 76.3 KB/sec)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/apache/maven/doxia/doxia-module-xdoc/1.2/doxia-module-xdoc-1.2.pom
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/maven/doxia/doxia-module-xdoc/1.2/doxia-module-xdoc-1.2.pom
 (6 KB at 160.5 KB/sec)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/apache/maven/doxia/doxia-module-fml/1.2/doxia-module-fml-1.2.pom
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/maven/doxia/doxia-module-fml/1.2/doxia-module-fml-1.2.pom
 (6 KB at 166.5 KB/sec)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/javax/servlet/servlet-api/2.5/servlet-api-2.5.pom
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/javax/servlet/servlet-api/2.5/servlet-api-2.5.pom
 (157 B at 4.6 KB/sec)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/apache/maven/doxia/doxia-decoration-model/1.2/doxia-decoration-model-1.2.pom
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/maven/doxia/doxia-decoration-model/1.2/doxia-decoration-model-1.2.pom
 (3 KB at 96.3 KB/sec)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/apache/maven/doxia/doxia-sitetools/1.2/doxia-sitetools-1.2.pom
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/maven/doxia/doxia-sitetools/1.2/doxia-sitetools-1.2.pom
 (16 KB at 475.4 KB/sec)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/apache/maven/doxia/doxia-site-renderer/1.2/doxia-site-renderer-1.2.pom
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/maven/doxia/doxia-site-renderer/1.2/doxia-site-renderer-1.2.pom
 (7 KB at 184.6 KB/sec)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-doxia-tools/1.4/maven-doxia-tools-1.4.pom
[INFO] Downloade

RE: Exception Mapping Annotation seems not inhierted

2016-07-27 Thread Adrian CHIA
Hi Łukasz



Sorry I meant to say that result mappings defined in the base class are being 
"inherited"  in the child class. I believe the framework actually will look for 
the result in the parent class if it cannot be found in itself. Anyway I 
updated the ExceptionMapping annotation with @Inherited so that my actions 
which extends this base class will inherit the exception handling.



Alternatively, I tried defining the global exceptions handling in the struts 
xml however it seems I cannot get it working together with annotation 
configurations. Information as listed below.



I defined this in the struts.xml







/ error/error.jsp

 /error/error.jsp

 error/error.jsp

















Then I have this in the package-info



@ParentPackage(value="struts-default")

@Namespace("/dbsweb-forms/personal-loan")



package com.dbs.ploan.action;

import org.apache.struts2.convention.annotation.Namespace;

import org.apache.struts2.convention.annotation.ParentPackage;



In the Configuration Browser Plugin



The global exceptions mapping and result mapping are not listed here and when I 
hit the action throwing the exception I did not get to see the error page.

[cid:image001.png@01D1E81C.DD63F960]



With regards

Adrian Chia



-Original Message-
From: Lukasz Lenart [mailto:lukaszlen...@apache.org]
Sent: Wednesday, July 27, 2016 2:52 PM
To: Struts Developers List
Subject: Re: Exception Mapping Annotation seems not inhierted



2016-07-26 10:14 GMT+02:00 Adrian CHIA 
mailto:adri...@dbs.com>>:

> Hi

>

> It seems that the struts 2.3.4.1 Exception Mapping annotation cannot be 
> inherited by the sub-classes. I attempted to put the annotation in the base 
> class but the child class is unable to inherit the exception mapping. However 
> results view can be inherited. Please advise ?



As far I see, it works that way from the very beginning. You can always define 
global-exception-mappings in struts.xml. Also what do you mean by that the 
"results view can be inherited" ?

@Results/@Result are defined without "@Inherited" meta-annotation so they work 
the same, they aren't inherited by child classes.





Regards

--

Łukasz

+ 48 606 323 122 http://www.lenart.org.pl/



-

To unsubscribe, e-mail: 
dev-unsubscr...@struts.apache.org

For additional commands, e-mail: 
dev-h...@struts.apache.org



CONFIDENTIAL NOTE:
The information contained in this email is intended only for the use of the 
individual or entity named above and may contain information that is 
privileged, confidential and exempt from disclosure under applicable law. If 
the reader of this message is not the intended recipient, you are hereby 
notified that any dissemination, distribution or copying of this communication 
is strictly prohibited. If you have received this message in error, please 
immediately notify the sender and delete the mail. Thank you.


Build failed in Jenkins: Struts-JDK7-master #500

2016-07-27 Thread Apache Jenkins Server
See 

--
[...truncated 919 lines...]
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/apache/httpcomponents/httpclient/4.0.2/httpclient-4.0.2.pom
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/httpcomponents/httpclient/4.0.2/httpclient-4.0.2.pom
 (8 KB at 215.3 KB/sec)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/apache/httpcomponents/httpcomponents-client/4.0.2/httpcomponents-client-4.0.2.pom
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/httpcomponents/httpcomponents-client/4.0.2/httpcomponents-client-4.0.2.pom
 (9 KB at 250.2 KB/sec)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/apache/httpcomponents/project/4.1/project-4.1.pom
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/httpcomponents/project/4.1/project-4.1.pom
 (16 KB at 444.4 KB/sec)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/apache/httpcomponents/httpcore/4.0.1/httpcore-4.0.1.pom
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/httpcomponents/httpcore/4.0.1/httpcore-4.0.1.pom
 (5 KB at 132.6 KB/sec)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/apache/httpcomponents/httpcomponents-core/4.0.1/httpcomponents-core-4.0.1.pom
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/httpcomponents/httpcomponents-core/4.0.1/httpcomponents-core-4.0.1.pom
 (10 KB at 268.6 KB/sec)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/apache/httpcomponents/project/4.0/project-4.0.pom
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/httpcomponents/project/4.0/project-4.0.pom
 (13 KB at 376.6 KB/sec)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/commons-codec/commons-codec/1.3/commons-codec-1.3.pom
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/commons-codec/commons-codec/1.3/commons-codec-1.3.pom
 (6 KB at 180.6 KB/sec)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/apache/maven/doxia/doxia-module-xhtml/1.2/doxia-module-xhtml-1.2.pom
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/maven/doxia/doxia-module-xhtml/1.2/doxia-module-xhtml-1.2.pom
 (2 KB at 49.1 KB/sec)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/apache/maven/doxia/doxia-modules/1.2/doxia-modules-1.2.pom
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/maven/doxia/doxia-modules/1.2/doxia-modules-1.2.pom
 (3 KB at 74.0 KB/sec)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/apache/maven/doxia/doxia-module-apt/1.2/doxia-module-apt-1.2.pom
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/maven/doxia/doxia-module-apt/1.2/doxia-module-apt-1.2.pom
 (3 KB at 69.8 KB/sec)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/apache/maven/doxia/doxia-module-xdoc/1.2/doxia-module-xdoc-1.2.pom
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/maven/doxia/doxia-module-xdoc/1.2/doxia-module-xdoc-1.2.pom
 (6 KB at 155.8 KB/sec)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/apache/maven/doxia/doxia-module-fml/1.2/doxia-module-fml-1.2.pom
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/maven/doxia/doxia-module-fml/1.2/doxia-module-fml-1.2.pom
 (6 KB at 161.6 KB/sec)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/javax/servlet/servlet-api/2.5/servlet-api-2.5.pom
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/javax/servlet/servlet-api/2.5/servlet-api-2.5.pom
 (157 B at 4.5 KB/sec)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/apache/maven/doxia/doxia-decoration-model/1.2/doxia-decoration-model-1.2.pom
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/maven/doxia/doxia-decoration-model/1.2/doxia-decoration-model-1.2.pom
 (3 KB at 87.8 KB/sec)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/apache/maven/doxia/doxia-sitetools/1.2/doxia-sitetools-1.2.pom
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/maven/doxia/doxia-sitetools/1.2/doxia-sitetools-1.2.pom
 (16 KB at 382.6 KB/sec)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/apache/maven/doxia/doxia-site-renderer/1.2/doxia-site-renderer-1.2.pom
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/maven/doxia/doxia-site-renderer/1.2/doxia-site-renderer-1.2.pom
 (7 KB at 174.1 KB/sec)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-doxia-tools/1.4/maven-doxia-tools-1.4.pom
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/maven/shared/maven-doxia-tools/1.4/maven-doxia-tools-1.4.pom
 (8 KB at 208.0 KB/sec)
[INFO] Downloading: 
https://repo.maven.apache.org/maven2/commons-io/commons-io/1.4/commons-io-1.4.pom
[INFO] Downloaded: 
https://repo.maven.apache.org/maven2/commons-io/commons-io/1.4/commons-io-1.4.pom
 (13 KB at 3

RE: Exception Mapping Annotation seems not inhierted

2016-07-27 Thread Adrian CHIA
Hi Lukaz

You can ignore my email, as I realized that the package-info is not updated to 
refer to the package defined in the xml.

With regards
Adrian Chia
Mobile: +65 93650999

From: Adrian CHIA
Sent: Wednesday, July 27, 2016 3:38 PM
To: Struts Developers List
Subject: RE: Exception Mapping Annotation seems not inhierted


Hi Łukasz



Sorry I meant to say that result mappings defined in the base class are being 
"inherited"  in the child class. I believe the framework actually will look for 
the result in the parent class if it cannot be found in itself. Anyway I 
updated the ExceptionMapping annotation with @Inherited so that my actions 
which extends this base class will inherit the exception handling.



Alternatively, I tried defining the global exceptions handling in the struts 
xml however it seems I cannot get it working together with annotation 
configurations. Information as listed below.



I defined this in the struts.xml







/ error/error.jsp

 /error/error.jsp

 error/error.jsp



















Then I have this in the package-info



@ParentPackage(value="struts-default")

@Namespace("/dbsweb-forms/personal-loan")



package com.dbs.ploan.action;

import org.apache.struts2.convention.annotation.Namespace;

import org.apache.struts2.convention.annotation.ParentPackage;



In the Configuration Browser Plugin



The global exceptions mapping and result mapping are not listed here and when I 
hit the action throwing the exception I did not get to see the error page.

[cid:image001.png@01D1E81F.008AC660]



With regards

Adrian Chia



-Original Message-
From: Lukasz Lenart [mailto:lukaszlen...@apache.org]
Sent: Wednesday, July 27, 2016 2:52 PM
To: Struts Developers List
Subject: Re: Exception Mapping Annotation seems not inhierted



2016-07-26 10:14 GMT+02:00 Adrian CHIA 
mailto:adri...@dbs.com>>:

> Hi

>

> It seems that the struts 2.3.4.1 Exception Mapping annotation cannot be 
> inherited by the sub-classes. I attempted to put the annotation in the base 
> class but the child class is unable to inherit the exception mapping. However 
> results view can be inherited. Please advise ?



As far I see, it works that way from the very beginning. You can always define 
global-exception-mappings in struts.xml. Also what do you mean by that the 
"results view can be inherited" ?

@Results/@Result are defined without "@Inherited" meta-annotation so they work 
the same, they aren't inherited by child classes.





Regards

--

Łukasz

+ 48 606 323 122 http://www.lenart.org.pl/



-

To unsubscribe, e-mail: 
dev-unsubscr...@struts.apache.org

For additional commands, e-mail: 
dev-h...@struts.apache.org



CONFIDENTIAL NOTE:
The information contained in this email is intended only for the use of the 
individual or entity named above and may contain information that is 
privileged, confidential and exempt from disclosure under applicable law. If 
the reader of this message is not the intended recipient, you are hereby 
notified that any dissemination, distribution or copying of this communication 
is strictly prohibited. If you have received this message in error, please 
immediately notify the sender and delete the mail. Thank you.