[jira] [Commented] (TOMEE-2526) TomEE 7.1.0 supporting OpenJDK 11

2019-05-28 Thread Dinesh Gaddam (JIRA)


[ 
https://issues.apache.org/jira/browse/TOMEE-2526?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16850507#comment-16850507
 ] 

Dinesh Gaddam commented on TOMEE-2526:
--

Hi [~dblevins]
Do we have any supported platform matrix for TomEE 7.1.0

is it worth investigating TomEE 7.1.0 with OpenJDK 11?
Please suggest

Thanks

 

> TomEE 7.1.0 supporting OpenJDK 11
> -
>
> Key: TOMEE-2526
> URL: https://issues.apache.org/jira/browse/TOMEE-2526
> Project: TomEE
>  Issue Type: Bug
>  Components: TomEE Core Server
>Affects Versions: 7.1.0
>Reporter: Dinesh Gaddam
>Priority: Major
>
> *Hi,* 
> *When I am trying to run TomEE 7.1.0 with OpenJDK 11 & my EAR deployed, I am* 
>  *seeing below exception straightaway*
> com.test.install.api.InstallException: 05/24/2019 09:08:26:799, Error 0 
>  (Unknown), Message 026-004-0109: A JAXB Exception occurred. 
>          at 
>  com.test.install.api.InstallException.getOne(InstallException.java:134) 
>          at 
>  
> com.test.install.api.InstallParameters.getUnmarshaller(InstallParameters.java:1122)
>  
>          at 
>  
> com.test.install.api.InstallParameters.loadInstallParameters(InstallParameters.java:631)
>  
>          at 
>  
> com.test.install.api.InstallParameters.loadInstallParameters(InstallParameters.java:522)
>  
>          at com.test.install.api.InstallOps.main(InstallOps.java:5363) 
>  Nested exception is: 
>  javax.xml.bind.JAXBException: Provider 
>  com.sun.xml.internal.bind.v2.ContextFactory not found 
>   - with linked exception: 
>  [java.lang.ClassNotFoundException: 
>  com.sun.xml.internal.bind.v2.ContextFactory] 
>          at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:149) 
>          at javax.xml.bind.ContextFinder.find(ContextFinder.java:362) 
>          at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:446) 
>          at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:409) 
>          at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:313) 
>          at 
>  
> com.test.install.api.InstallParameters.getUnmarshaller(InstallParameters.java:1117)
>  
>          at 
>  
> com.test.install.api.InstallParameters.loadInstallParameters(InstallParameters.java:631)
>  
>          at 
>  
> com.test.install.api.InstallParameters.loadInstallParameters(InstallParameters.java:522)
>  
>          at com.test.install.api.InstallOps.main(InstallOps.java:5363) 
>  Caused by: java.lang.ClassNotFoundException: 
>  com.sun.xml.internal.bind.v2.ContextFactory 
>          at 
>  
> java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)
>  
>          at 
>  
> java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
>  
>          at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521) 
>          at 
>  javax.xml.bind.ContextFinder.safeLoadClass(ContextFinder.java:578) 
>          at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:146) 
>          ... 8 more 
> Nested exception is: 
>  javax.xml.bind.JAXBException: Provider 
>  com.sun.xml.internal.bind.v2.ContextFactory not found 
>   - with linked exception: 
>  [java.lang.ClassNotFoundException: 
>  com.sun.xml.internal.bind.v2.ContextFactory] 
>          at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:149) 
>          at javax.xml.bind.ContextFinder.find(ContextFinder.java:362) 
>          at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:446) 
>          at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:409) 
>          at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:313) 
>          at 
>  
> com.test.install.api.InstallParameters.getUnmarshaller(InstallParameters.java:1117)
>  
>          at 
>  
> com.test.install.api.InstallParameters.loadInstallParameters(InstallParameters.java:631)
>  
>          at 
>  
> com.test.install.api.InstallParameters.loadInstallParameters(InstallParameters.java:522)
>  
>          at com.test.install.api.InstallOps.main(InstallOps.java:5363) 
>  Caused by: java.lang.ClassNotFoundException: 
>  com.sun.xml.internal.bind.v2.ContextFactory 
>          at 
>  
> java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)
>  
>          at 
>  
> java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
>  
>          at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521) 
>          at 
>  javax.xml.bind.ContextFinder.safeLoadClass(ContextFinder.java:578) 
>          at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:146) 
> *Few other issues are*
> 24-May-2019 09:36:26.805 SEVERE [rh75test167-startStop-1] 
>  org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal Error merging 
>  Java EE JNDI entries in to war /test: Exception: Cannot 

svn commit: r34303 - /release/tomee/KEYS

2019-05-28 Thread dblevins
Author: dblevins
Date: Wed May 29 00:04:04 2019
New Revision: 34303

Log:
Adding new public keys

Modified:
release/tomee/KEYS

Modified: release/tomee/KEYS
==
--- release/tomee/KEYS (original)
+++ release/tomee/KEYS Wed May 29 00:04:04 2019
@@ -869,4 +869,71 @@ o8heZdq3ZTzPyfaa+TaDFZ31pa7kB93UDM/8aRvM
 1uknU2pM7Hdl3b6iYWZAG9DXERaV2TCDNbb711RUPuDpjNEuRwD7beAwcvxfMAInvp/B++9d
 qMPQbRQqtb3715KljoisDXtpjg==
 =ER+5
--END PGP PUBLIC KEY BLOCK-
\ No newline at end of file
+-END PGP PUBLIC KEY BLOCK-
+
+pub   rsa2048 2017-05-15 [SC] [expires: 2021-04-15]
+  294A 395F FDC9 FCF2 5A7E  2BFD CF6F C99C 2CC7 7782
+uid   [ultimate] David Blevins 
+sub   rsa2048 2017-05-15 [E] [expires: 2021-04-15]
+
+pub   rsa2048 2017-08-07 [SC] [expires: 2019-08-07]
+  5E50 65FF 5C1A ACE7 DF9F  F769 C0D9 5C51 81D2 2F04
+uid   [ultimate] David Blevins 
+sub   rsa2048 2017-08-07 [E] [expires: 2019-08-07]
+
+-BEGIN PGP PUBLIC KEY BLOCK-
+
+mQENBFkZCdMBCACxG3eafG+IlA8HHrRRr00NaXpE21ez0nDGg62NdDKfl/zYKZBt
+BjJwpS10X1vU6qYYF6XjE4LBZAGto+jcqlGygATop2aYh0KcP0Bqag/5BlF7wh3Q
+CrbXenFe6K3dtIHnoLNlO2y/xYRkVenxJ05vJQ7u56+npRNgFvrl3RDDXP5yk/nz
+FihuwfzyyjUxOHE7TtRocsrpYMZepEtIgMXMSw2kZAFNGALLqqY0hcXGv0MmcE5w
+F4YB+XUpeU7NB7JEwLhVj3qp6IjWf03SW5XEchqUVzM+WjyShSvaynS2/x+wOpnc
+Z+I/M3QClZqGUxgRsvTs2kxhsI3JjapUvmJ7ABEBAAG0JkRhdmlkIEJsZXZpbnMg
+PGRibGV2aW5zQHRvbWl0cmliZS5jb20+iQFUBBMBCAA+AhsDBQsJCAcCBhUICQoL
+AgQWAgMBAh4BAheAFiEEKUo5X/3J/PJafiv9z2/JnCzHd4IFAly2pvUFCQdfobIA
+CgkQz2/JnCzHd4LW5Qf/SfwvbK41B0gvFNVizRjGNmEy/T6XtpkA5fd8b+EwJ6eR
+SMHgkA/OoflUeG0KkxK4tgSBQ46Ii77c21GxwaLEiNa4WIK88OfZNUsweoaMirG5
+FO1xLlJC9MDkota0sv9NboEufqL2/9/PvqZSVmj87ixwWbzK5oAJv8szRncBLI2S
+Hc/SUjWQJcHN41IhL50hAFaaRdSlkCedYdgxXN/K571jjJylf9+uj6EMUhUv2HbR
+ZvL8Orx7RgDuI/TnAIpgc2yVignBvmuIZjK+Qfb15aZx3R6U4opy4zn1/jqLZxVJ
+Wf7zb7SMhqf/4EIMJ6FuCX42vFlOXWdiDH977DCoO7kBDQRZGQnTAQgAphtLuxnh
+7jxcLoDM/HUecUh5RKd8pkFhwTvfdM+iinBBQVhmfggh7XQU0JHLF4A24P1P4i/o
+Hde3qI/rbmoOS6Rh6S6aH3SRge/k7/yNKeHsh85hyY3OMd4CWywaFNGkPEzndO3h
+dtQCuz/c7GeMle2y5woDn0IA76sB7cLC4Z3M23lSnQQRdkdv7WdzjkgIiZHmYqVo
+gjh0zEzPKvaLuB70YmORJzWL35h9UVMKLxALhJDd6p3wpcQXmMLuQeIG7hfQ7NqB
+tXnttVIJAfD4dvdvu6Cbh/GgpveeggTNnDE4cPJtVtGdBnBF7Pb60/AQg0XyN+6T
+0YN2Rz2ce734EQARAQABiQE8BBgBCAAmAhsMFiEEKUo5X/3J/PJafiv9z2/JnCzH
+d4IFAly2pvYFCQdfobMACgkQz2/JnCzHd4Iq8gf+KPlYjpOxOdAC2CKBBgTU4hHu
+554XnRe3HUuzETIvkLKC8eMJkfTNUEa3PIqFyn17Kou12MqsYzNnVic65SJe+Kmg
++N6t1Ff36OGuZy+SjCHix2Wl3rxWhiDFzJTgz2InOdqZOyEh3HWKI98T0O5gEOY0
++n0VpQcIHPxjPrhUSMg1WQfCsk8wNI48g4ihLAMywq6x08ju0wz+G8Fa4apujLBk
+++FJVXm/PYySKRJeYz04tsuOhuFgrN2ILNl9+sGJFFtIBi7RUIZgwj7YuihoXcru
+tRcZJahJEXx/iyQ8TwGz7qBQ1vuyPZycDwtR9RsPwj7lgHNgXdZO8KGP513xjJkB
+DQRZiP50AQgA6WOsBSsIDm8mXjwULKdov124b6psD4IVfvQATmkCyQvrWkRpckrB
+H4Z3t6EKRUt8Xtogy3YxY3grSL830msJzp/wmDL/ixGITn1CiEVHLRp6b6UT5dOe
+bt5/9YdpbymbcljTUGCYJO43y+p+AaACfsTGLxkzksu750B+W7AK7Olg/j2S8JAK
+18YuIewAaAxnUNNKSFznmQZ8ucuotgnL2PVZu+5wMH+e0zvCijH37x+lWJ6UU6f+
+7fmd5MCoZmALtpb+E6RsvJlCA/dILZUW4lFjL2h4D8MPLPALEEXLQH85HrAbAstH
+Rpik7kmRB7kLSTIIzCvrTdSiVnUkmWOyywARAQABtCdEYXZpZCBCbGV2aW5zIDxk
+YXZpZC5ibGV2aW5zQGdtYWlsLmNvbT6JAVQEEwEIAD4WIQReUGX/XBqs59+f92nA
+2VxRgdIvBAUCWYj+dAIbAwUJA8JnAAULCQgHAgYVCAkKCwIEFgIDAQIeAQIXgAAK
+CRDA2VxRgdIvBP8gB/9QsRxyZIe5ssRbxc/oS3TV/BcJxg2hijId++5SWJIPkUVI
+vsqEMXlPF3guZ3xR8e0+svSc6a18USjwwCMCu+nriJryFuENkme3HOQJC2BYNBXP
+jF8WfAZQ340Oo2lhVfQ+lQn6hk+O+FJrAHWD9b5C0Wz9O2cSEi8nW3iQ81YBkaF9
+Y/kNdaoQvPQM5Zn5isliGAyP0RNCQkANiNOXRoWUZcypKoS7guiRnyjdUK7Lfgg/
+VfqohQULIAe3JwTvI9yQW7NIQ38Zd7UOgKrhoz/6kMzMhxarKniQl9iit+DJl4Wu
+zCML182Ur/aPjaW6QnP3ZYOwWz0E1xocP2O+4dFruQENBFmI/nQBCACzvozUK8vW
+S+3FZ9WcoG6J8a4h69MBVpgrkJKXJPf32mOIOyV3ydQ//ullUEadSilPxYt+w6al
+Vny3d7/1w4ZDOOkKdXqAMRMm8muyt6dl4kH5TrYX0/ZWo0TuV3YBrgyCsp/v61+g
+djNhrAgUiGO5U4HmDw/+1sAszkaA0ImegQhVpCcp8rXWYIATb/pX4NStSafJon9d
+QTXlPf0x5pCykj+g2VXhG/oykllZpIIevpjIJj3o8wXeCJWNHqH0TsoijfjcCmB6
+KTU6CnithVzHqOoVq3MNu9Wky8ugTrQFmmawyEGqoFt8zqu3T+acx6UYrpMndMHM
+Wr+ajp6MYxTHABEBAAGJATwEGAEIACYWIQReUGX/XBqs59+f92nA2VxRgdIvBAUC
+WYj+dAIbDAUJA8JnAAAKCRDA2VxRgdIvBJFCCAC6EtG1buP0UJF/BbSt1fRuypz5
+OX6cyRG7soZ9cMmwpoB6Nst8X83gjTyBkXiie2W8LasgdWRH4ZaYOSsjo62SmkM6
+aG/WUHWYuDwNHPTsIG+lt14A0Yd2hRzYmPKUTZDUiDBCoxQZG19UGQ6qgwuKpwHS
+JgoTXApiCXGET4QLuIrEpqZ0YIKeVLHcGzfG6/ERytsbnyxkqjKQ8gszxDVeycL3
+p0g1O1kNOnzqg1IWUEh72Mj8lwmAKuloKajJWaZXF992sjw+pSBxHMUzve+0tCR5
+6nLaN1u2ib1WLE1dp+PREog8h+RZTopW6ZW7bhXAwTivWbhB+7q0EaURBA/s
+=HU3D
+-END PGP PUBLIC KEY BLOCK-




svn commit: r34302 - /dev/tomee/tomee-8-staging/

2019-05-28 Thread dblevins
Author: dblevins
Date: Tue May 28 23:48:30 2019
New Revision: 34302

Log:
Delete staged release

Removed:
dev/tomee/tomee-8-staging/



svn commit: r34301 - /dev/tomee/staging-1135/

2019-05-28 Thread dblevins
Author: dblevins
Date: Tue May 28 23:48:10 2019
New Revision: 34301

Log:
Delete staged release

Removed:
dev/tomee/staging-1135/



svn commit: r34300 - /dev/tomee/tomee-8.0.0-M2/

2019-05-28 Thread dblevins
Author: dblevins
Date: Tue May 28 23:47:48 2019
New Revision: 34300

Log:
Delete promoted release

Removed:
dev/tomee/tomee-8.0.0-M2/



svn commit: r34299 - /dev/tomee/staging-1136/

2019-05-28 Thread dblevins
Author: dblevins
Date: Tue May 28 23:47:02 2019
New Revision: 34299

Log:
Delete staging directory

Removed:
dev/tomee/staging-1136/



svn commit: r34298 - /dev/tomee/staging-1136/tomee-8.0.0-M3/ /release/tomee/tomee-8.0.0-M3/

2019-05-28 Thread dblevins
Author: dblevins
Date: Tue May 28 23:46:17 2019
New Revision: 34298

Log:
Promoting passed TomEE 8.0.0-M3 release

Added:
release/tomee/tomee-8.0.0-M3/
  - copied from r34297, dev/tomee/staging-1136/tomee-8.0.0-M3/
Removed:
dev/tomee/staging-1136/tomee-8.0.0-M3/



[tomee] annotated tag tomee-8.0.0-M3 updated (d84b061 -> 48266cc)

2019-05-28 Thread dblevins
This is an automated email from the ASF dual-hosted git repository.

dblevins pushed a change to annotated tag tomee-8.0.0-M3
in repository https://gitbox.apache.org/repos/asf/tomee.git.


*** WARNING: tag tomee-8.0.0-M3 was modified! ***

from d84b061  (commit)
  to 48266cc  (tag)
 tagging d84b061c37516e88c158735e180e6b9c5f86537c (commit)
 replaces tomee-7.0.5
  by David Blevins
  on Wed May 22 23:59:25 2019 -0700

- Log -
[maven-release-plugin] copy for tag tomee-8.0.0-M3
---


No new revisions were added by this update.

Summary of changes:



[jira] [Work started] (TOMEE-2534) Translate to Portuguese: examples/access-timeout

2019-05-28 Thread Gabriel Ferreira (JIRA)


 [ 
https://issues.apache.org/jira/browse/TOMEE-2534?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Work on TOMEE-2534 started by Gabriel Ferreira.
---
> Translate to Portuguese: examples/access-timeout
> 
>
> Key: TOMEE-2534
> URL: https://issues.apache.org/jira/browse/TOMEE-2534
> Project: TomEE
>  Issue Type: Sub-task
>Reporter: Gabriel Ferreira
>Assignee: Gabriel Ferreira
>Priority: Major
>  Labels: pull-request-available
> Fix For: 8.0.0-Final
>
>
> Translate into Portuguese the README file using a suffix `_pt` to allow the 
> Tomee Website to pick up and configure this version and corresponding language



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


[jira] [Updated] (TOMEE-2533) Compliance with MicroProfile JWT Auth

2019-05-28 Thread Alexander Rettner (JIRA)


 [ 
https://issues.apache.org/jira/browse/TOMEE-2533?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alexander Rettner updated TOMEE-2533:
-
Description: 
The Specification of MicroProfile JWT RBAC requests that an issuer claim must 
be present in the token and valid. But TomEE is in the tested version 8.0.0-M2 
not compliant with respect to MP.

The specification says exactly:

"The {{mp.jwt.verify.issuer}} config property allows for the expected value of 
the {{iss}} claim to be specified. A MicroProfile JWT implementation must 
verify the {{iss}} claim of incoming JWTs is present and matches the configured 
value of {{mp.jwt.verify.issuer}}."

TomEE, however, accepts any issuer in the token if  it is not specified in its 
configuration.


The test environment is the demo (as attached to this issue), which can be 
created at [https://start.microprofile.io|https://start.microprofile.io/] with 
MicroProfile Version MP 2.0, Apache TomEE 8.0.0-M2 as the MP-server and JWT 
Auth from the Examples for specifications, in order to create a request with 
JWT in its header. With this setup, there is no accepted issuer configured, but 
any issuer can be defined in the JWTClient-class and the request is still 
successful.

  was:
The Specification of MicroProfile JWT RBAC requests that an issuer claim must 
be present in the token and valid. But TomEE is in the tested version 8.0.0-M2 
not compliant with respect to MP.

The specification says exactly:

"The {{mp.jwt.verify.issuer}} config property allows for the expected value of 
the {{iss}} claim to be specified. A MicroProfile JWT implementation must 
verify the {{iss}} claim of incoming JWTs is present and matches the configured 
value of {{mp.jwt.verify.issuer}}."

TomEE, however, accepts any issuer in the token if  it is not specified in its 
configuration.


The test environment is the demo, which can be created at 
[https://start.microprofile.io|https://start.microprofile.io/] with 
MicroProfile Version MP 2.0, Apache TomEE 8.0.0-M2 as the MP-server and JWT 
Auth from the Examples for specifications, in order to create a request with 
JWT in its header. With this setup, there is no accepted issuer configured, but 
any issuer can be defined in the JWTClient-class and the request is still 
successful.


> Compliance with MicroProfile JWT Auth
> -
>
> Key: TOMEE-2533
> URL: https://issues.apache.org/jira/browse/TOMEE-2533
> Project: TomEE
>  Issue Type: Bug
>  Components: TomEE Core Server
>Affects Versions: 8.0.0-M2
>Reporter: Alexander Rettner
>Priority: Major
> Attachments: jwt.zip
>
>
> The Specification of MicroProfile JWT RBAC requests that an issuer claim must 
> be present in the token and valid. But TomEE is in the tested version 
> 8.0.0-M2 not compliant with respect to MP.
> The specification says exactly:
> "The {{mp.jwt.verify.issuer}} config property allows for the expected value 
> of the {{iss}} claim to be specified. A MicroProfile JWT implementation must 
> verify the {{iss}} claim of incoming JWTs is present and matches the 
> configured value of {{mp.jwt.verify.issuer}}."
> TomEE, however, accepts any issuer in the token if  it is not specified in 
> its configuration.
> The test environment is the demo (as attached to this issue), which can be 
> created at [https://start.microprofile.io|https://start.microprofile.io/] 
> with MicroProfile Version MP 2.0, Apache TomEE 8.0.0-M2 as the MP-server and 
> JWT Auth from the Examples for specifications, in order to create a request 
> with JWT in its header. With this setup, there is no accepted issuer 
> configured, but any issuer can be defined in the JWTClient-class and the 
> request is still successful.



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


[jira] [Created] (TOMEE-2534) Translate to Portuguese: examples/access-timeout

2019-05-28 Thread Gabriel Ferreira (JIRA)
Gabriel Ferreira created TOMEE-2534:
---

 Summary: Translate to Portuguese: examples/access-timeout
 Key: TOMEE-2534
 URL: https://issues.apache.org/jira/browse/TOMEE-2534
 Project: TomEE
  Issue Type: Sub-task
Reporter: Gabriel Ferreira
Assignee: Gabriel Ferreira
 Fix For: 8.0.0-Final


Translate into Portuguese the README file using a suffix `_pt` to allow the 
Tomee Website to pick up and configure this version and corresponding language



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


[jira] [Updated] (TOMEE-2533) Compliance with MicroProfile JWT Auth

2019-05-28 Thread Alexander Rettner (JIRA)


 [ 
https://issues.apache.org/jira/browse/TOMEE-2533?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alexander Rettner updated TOMEE-2533:
-
Description: 
The Specification of MicroProfile JWT RBAC requests that an issuer claim must 
be present in the token and valid. But TomEE is in the tested version 8.0.0-M2 
not compliant with respect to MP.

The specification says exactly:

"The {{mp.jwt.verify.issuer}} config property allows for the expected value of 
the {{iss}} claim to be specified. A MicroProfile JWT implementation must 
verify the {{iss}} claim of incoming JWTs is present and matches the configured 
value of {{mp.jwt.verify.issuer}}."

TomEE, however, accepts any issuer in the token if  it is not specified in its 
configuration.


The test environment is the demo, which can be created at 
[https://start.microprofile.io|https://start.microprofile.io/] with 
MicroProfile Version MP 2.0, Apache TomEE 8.0.0-M2 as the MP-server and JWT 
Auth from the Examples for specifications, in order to create a request with 
JWT in its header. With this setup, there is no accepted issuer configured, but 
any issuer can be defined in the JWTClient-class and the request is still 
successful.

  was:
The Specification of MicroProfile JWT RBAC requests that an issuer claim must 
be present in the token and valid. But TomEE is in the tested version 8.0.0-M2 
not compliant with respect to MP.

The specification says exactly:

"The {{mp.jwt.verify.issuer}} config property allows for the expected value of 
the {{iss}} claim to be specified. A MicroProfile JWT implementation must 
verify the {{iss}} claim of incoming JWTs is present and matches the configured 
value of {{mp.jwt.verify.issuer}}."

TomEE, however, accepts any issuer in the token if  it is not specified in its 
configuration.

 

 The test environment is the demo, which can be created at 
[https://start.microprofile.io|https://start.microprofile.io/] 


> Compliance with MicroProfile JWT Auth
> -
>
> Key: TOMEE-2533
> URL: https://issues.apache.org/jira/browse/TOMEE-2533
> Project: TomEE
>  Issue Type: Bug
>  Components: TomEE Core Server
>Affects Versions: 8.0.0-M2
>Reporter: Alexander Rettner
>Priority: Major
> Attachments: jwt.zip
>
>
> The Specification of MicroProfile JWT RBAC requests that an issuer claim must 
> be present in the token and valid. But TomEE is in the tested version 
> 8.0.0-M2 not compliant with respect to MP.
> The specification says exactly:
> "The {{mp.jwt.verify.issuer}} config property allows for the expected value 
> of the {{iss}} claim to be specified. A MicroProfile JWT implementation must 
> verify the {{iss}} claim of incoming JWTs is present and matches the 
> configured value of {{mp.jwt.verify.issuer}}."
> TomEE, however, accepts any issuer in the token if  it is not specified in 
> its configuration.
> The test environment is the demo, which can be created at 
> [https://start.microprofile.io|https://start.microprofile.io/] with 
> MicroProfile Version MP 2.0, Apache TomEE 8.0.0-M2 as the MP-server and JWT 
> Auth from the Examples for specifications, in order to create a request with 
> JWT in its header. With this setup, there is no accepted issuer configured, 
> but any issuer can be defined in the JWTClient-class and the request is still 
> successful.



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


[jira] [Updated] (TOMEE-2533) Compliance with MicroProfile JWT Auth

2019-05-28 Thread Alexander Rettner (JIRA)


 [ 
https://issues.apache.org/jira/browse/TOMEE-2533?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alexander Rettner updated TOMEE-2533:
-
Attachment: jwt.zip

> Compliance with MicroProfile JWT Auth
> -
>
> Key: TOMEE-2533
> URL: https://issues.apache.org/jira/browse/TOMEE-2533
> Project: TomEE
>  Issue Type: Bug
>  Components: TomEE Core Server
>Affects Versions: 8.0.0-M2
>Reporter: Alexander Rettner
>Priority: Major
> Attachments: jwt.zip
>
>
> The Specification of MicroProfile JWT RBAC requests that an issuer claim must 
> be present in the token and valid. But TomEE is in the tested version 
> 8.0.0-M2 not compliant with respect to MP.
> The specification says exactly:
> "The {{mp.jwt.verify.issuer}} config property allows for the expected value 
> of the {{iss}} claim to be specified. A MicroProfile JWT implementation must 
> verify the {{iss}} claim of incoming JWTs is present and matches the 
> configured value of {{mp.jwt.verify.issuer}}."
> TomEE, however, accepts any issuer in the token if  it is not specified in 
> its configuration.
> The test environment is the demo, which can be created at 
> [https://start.microprofile.io|https://start.microprofile.io/] with 
> MicroProfile Version MP 2.0, Apache TomEE 8.0.0-M2 as the MP-server and JWT 
> Auth from the Examples for specifications, in order to create a request with 
> JWT in its header. With this setup, there is no accepted issuer configured, 
> but any issuer can be defined in the JWTClient-class and the request is still 
> successful.



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


[jira] [Updated] (TOMEE-2533) Compliance with MicroProfile JWT Auth

2019-05-28 Thread Alexander Rettner (JIRA)


 [ 
https://issues.apache.org/jira/browse/TOMEE-2533?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alexander Rettner updated TOMEE-2533:
-
Description: 
The Specification of MicroProfile JWT RBAC requests that an issuer claim must 
be present in the token and valid. But TomEE is in the tested version 8.0.0-M2 
not compliant with respect to MP.

The specification says exactly:

"The {{mp.jwt.verify.issuer}} config property allows for the expected value of 
the {{iss}} claim to be specified. A MicroProfile JWT implementation must 
verify the {{iss}} claim of incoming JWTs is present and matches the configured 
value of {{mp.jwt.verify.issuer}}."

TomEE, however, accepts any issuer in the token if  it is not specified in its 
configuration.

 

 The test environment is the demo, which can be created at 
[https://start.microprofile.io|https://start.microprofile.io/] 

  was:
The Specification of MicroProfile JWT RBAC requests that an issuer claim must 
be present in the token and valid. But TomEE is in the tested version 8.0.0-M2 
not compliant with respect to MP.

The specification says exactly:

"The {{mp.jwt.verify.issuer}} config property allows for the expected value of 
the {{iss}} claim to be specified. A MicroProfile JWT implementation must 
verify the {{iss}} claim of incoming JWTs is present and matches the configured 
value of {{mp.jwt.verify.issuer}}."

TomEE, however, accepts any issuer in the token if  it is not specified in its 
configuration.

 

 The test environment is the demo, which can be created in


> Compliance with MicroProfile JWT Auth
> -
>
> Key: TOMEE-2533
> URL: https://issues.apache.org/jira/browse/TOMEE-2533
> Project: TomEE
>  Issue Type: Bug
>  Components: TomEE Core Server
>Affects Versions: 8.0.0-M2
>Reporter: Alexander Rettner
>Priority: Major
>
> The Specification of MicroProfile JWT RBAC requests that an issuer claim must 
> be present in the token and valid. But TomEE is in the tested version 
> 8.0.0-M2 not compliant with respect to MP.
> The specification says exactly:
> "The {{mp.jwt.verify.issuer}} config property allows for the expected value 
> of the {{iss}} claim to be specified. A MicroProfile JWT implementation must 
> verify the {{iss}} claim of incoming JWTs is present and matches the 
> configured value of {{mp.jwt.verify.issuer}}."
> TomEE, however, accepts any issuer in the token if  it is not specified in 
> its configuration.
>  
>  The test environment is the demo, which can be created at 
> [https://start.microprofile.io|https://start.microprofile.io/] 



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


[jira] [Updated] (TOMEE-2533) Compliance with MicroProfile JWT Auth

2019-05-28 Thread Alexander Rettner (JIRA)


 [ 
https://issues.apache.org/jira/browse/TOMEE-2533?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alexander Rettner updated TOMEE-2533:
-
Description: 
The Specification of MicroProfile JWT RBAC requests that an issuer claim must 
be present in the token and valid. But TomEE is in the tested version 8.0.0-M2 
not compliant with respect to MP.

The specification says exactly:

"The {{mp.jwt.verify.issuer}} config property allows for the expected value of 
the {{iss}} claim to be specified. A MicroProfile JWT implementation must 
verify the {{iss}} claim of incoming JWTs is present and matches the configured 
value of {{mp.jwt.verify.issuer}}."

TomEE, however, accepts any issuer in the token if  it is not specified in its 
configuration.

 

 

  was:
The Specification of MicroProfile JWT RBAC requests that an issuer claim must 
be present in the token and valid. But TomEE is in the tested version 8.0.0-M2 
not compliant with respect to MP.

The specification says exactly:"The {{mp.jwt.verify.issuer}} config property 
allows for the expected value of the {{iss}} claim to be specified. A 
MicroProfile JWT implementation must verify the {{iss}} claim of incoming JWTs 
is present and matches the configured value of {{mp.jwt.verify.issuer}}."

 


> Compliance with MicroProfile JWT Auth
> -
>
> Key: TOMEE-2533
> URL: https://issues.apache.org/jira/browse/TOMEE-2533
> Project: TomEE
>  Issue Type: Bug
>  Components: TomEE Core Server
>Affects Versions: 8.0.0-M2
>Reporter: Alexander Rettner
>Priority: Major
>
> The Specification of MicroProfile JWT RBAC requests that an issuer claim must 
> be present in the token and valid. But TomEE is in the tested version 
> 8.0.0-M2 not compliant with respect to MP.
> The specification says exactly:
> "The {{mp.jwt.verify.issuer}} config property allows for the expected value 
> of the {{iss}} claim to be specified. A MicroProfile JWT implementation must 
> verify the {{iss}} claim of incoming JWTs is present and matches the 
> configured value of {{mp.jwt.verify.issuer}}."
> TomEE, however, accepts any issuer in the token if  it is not specified in 
> its configuration.
>  
>  



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


[jira] [Created] (TOMEE-2533) Compliance with MicroProfile JWT Auth

2019-05-28 Thread Alexander Rettner (JIRA)
Alexander Rettner created TOMEE-2533:


 Summary: Compliance with MicroProfile JWT Auth
 Key: TOMEE-2533
 URL: https://issues.apache.org/jira/browse/TOMEE-2533
 Project: TomEE
  Issue Type: Bug
  Components: TomEE Core Server
Affects Versions: 8.0.0-M2
Reporter: Alexander Rettner


The Specification of MicroProfile JWT RBAC requests that an issuer claim must 
be present in the token and valid. But TomEE is in the tested version 8.0.0-M2 
not compliant with respect to MP.

The specification says exactly:"The {{mp.jwt.verify.issuer}} config property 
allows for the expected value of the {{iss}} claim to be specified. A 
MicroProfile JWT implementation must verify the {{iss}} claim of incoming JWTs 
is present and matches the configured value of {{mp.jwt.verify.issuer}}."

 



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


[jira] [Closed] (TOMEE-2509) wrap FileWriter with BufferedWriter for better performance

2019-05-28 Thread Martin Wiesner (JIRA)


 [ 
https://issues.apache.org/jira/browse/TOMEE-2509?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Martin Wiesner closed TOMEE-2509.
-
Resolution: Resolved

Resolved for > TomEE-8.0.0-M3 (i.e.: >=M4) via PR: 
https://github.com/apache/tomee/pull/459

> wrap FileWriter with BufferedWriter for better performance
> --
>
> Key: TOMEE-2509
> URL: https://issues.apache.org/jira/browse/TOMEE-2509
> Project: TomEE
>  Issue Type: Bug
>Affects Versions: 8.0.0-M1, 8.0.0-M2, 8.0.0-M3
>Reporter: bd2019us
>Priority: Major
>  Labels: patch, pull-request-available
> Fix For: 8.0.0-Final, 8.0.0-M4
>
> Attachments: 1.patch
>
>
> Location: 
> maven/jarstxt-maven-plugin/src/main/java/org/apache/openejb/maven/jarstxt/JarsTxtMojo.java
> When writing a file intensively in a loop, the FileWriter should be wrapped 
> with a BufferedWriter for better performance since it can significantly 
> reduce the overhead of IO operation.



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


[jira] [Updated] (TOMEE-2509) wrap FileWriter with BufferedWriter for better performance

2019-05-28 Thread Martin Wiesner (JIRA)


 [ 
https://issues.apache.org/jira/browse/TOMEE-2509?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Martin Wiesner updated TOMEE-2509:
--
Affects Version/s: 8.0.0-M3

> wrap FileWriter with BufferedWriter for better performance
> --
>
> Key: TOMEE-2509
> URL: https://issues.apache.org/jira/browse/TOMEE-2509
> Project: TomEE
>  Issue Type: Bug
>Affects Versions: 8.0.0-M1, 8.0.0-M2, 8.0.0-M3
>Reporter: bd2019us
>Priority: Major
>  Labels: patch, pull-request-available
> Fix For: 8.0.0-Final, 8.0.0-M4
>
> Attachments: 1.patch
>
>
> Location: 
> maven/jarstxt-maven-plugin/src/main/java/org/apache/openejb/maven/jarstxt/JarsTxtMojo.java
> When writing a file intensively in a loop, the FileWriter should be wrapped 
> with a BufferedWriter for better performance since it can significantly 
> reduce the overhead of IO operation.



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


[jira] [Updated] (TOMEE-2509) wrap FileWriter with BufferedWriter for better performance

2019-05-28 Thread Martin Wiesner (JIRA)


 [ 
https://issues.apache.org/jira/browse/TOMEE-2509?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Martin Wiesner updated TOMEE-2509:
--
Fix Version/s: 8.0.0-M4
   8.0.0-Final

> wrap FileWriter with BufferedWriter for better performance
> --
>
> Key: TOMEE-2509
> URL: https://issues.apache.org/jira/browse/TOMEE-2509
> Project: TomEE
>  Issue Type: Bug
>Affects Versions: 8.0.0-M1, 8.0.0-M2
>Reporter: bd2019us
>Priority: Major
>  Labels: patch, pull-request-available
> Fix For: 8.0.0-Final, 8.0.0-M4
>
> Attachments: 1.patch
>
>
> Location: 
> maven/jarstxt-maven-plugin/src/main/java/org/apache/openejb/maven/jarstxt/JarsTxtMojo.java
> When writing a file intensively in a loop, the FileWriter should be wrapped 
> with a BufferedWriter for better performance since it can significantly 
> reduce the overhead of IO operation.



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


[jira] [Updated] (TOMEE-2509) wrap FileWriter with BufferedWriter for better performance

2019-05-28 Thread Martin Wiesner (JIRA)


 [ 
https://issues.apache.org/jira/browse/TOMEE-2509?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Martin Wiesner updated TOMEE-2509:
--
Affects Version/s: 8.0.0-M1
   8.0.0-M2

> wrap FileWriter with BufferedWriter for better performance
> --
>
> Key: TOMEE-2509
> URL: https://issues.apache.org/jira/browse/TOMEE-2509
> Project: TomEE
>  Issue Type: Bug
>Affects Versions: 8.0.0-M1, 8.0.0-M2
>Reporter: bd2019us
>Priority: Major
>  Labels: patch, pull-request-available
> Attachments: 1.patch
>
>
> Location: 
> maven/jarstxt-maven-plugin/src/main/java/org/apache/openejb/maven/jarstxt/JarsTxtMojo.java
> When writing a file intensively in a loop, the FileWriter should be wrapped 
> with a BufferedWriter for better performance since it can significantly 
> reduce the overhead of IO operation.



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


[jira] [Closed] (TOMEE-2493) Upgrade bcprov-jdk15on

2019-05-28 Thread Martin Wiesner (JIRA)


 [ 
https://issues.apache.org/jira/browse/TOMEE-2493?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Martin Wiesner closed TOMEE-2493.
-
Resolution: Resolved

Resolved for TomEE 8.0.0-M3 via PR: https://github.com/apache/tomee/pull/440

> Upgrade bcprov-jdk15on
> --
>
> Key: TOMEE-2493
> URL: https://issues.apache.org/jira/browse/TOMEE-2493
> Project: TomEE
>  Issue Type: Dependency upgrade
>Affects Versions: 7.0.5, 7.1.0, 8.0.0-M2
>Reporter: Daniel Cunha
>Assignee: Daniel Cunha
>Priority: Major
>  Labels: pull-request-available
> Fix For: 7.0.6, 7.1.1, 8.0.0-M3, 8.0.0-Final
>
>




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


[jira] [Closed] (TOMEE-2381) Add README.adoc to deltaspike-i18n/

2019-05-28 Thread Martin Wiesner (JIRA)


 [ 
https://issues.apache.org/jira/browse/TOMEE-2381?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Martin Wiesner closed TOMEE-2381.
-
   Resolution: Resolved
Fix Version/s: 8.0.0-M3

Resolved via PR: https://github.com/apache/tomee/pull/435

> Add README.adoc to deltaspike-i18n/
> ---
>
> Key: TOMEE-2381
> URL: https://issues.apache.org/jira/browse/TOMEE-2381
> Project: TomEE
>  Issue Type: Sub-task
>Reporter: David Blevins
>Assignee: Marcos Roberto Ferreira
>Priority: Major
>  Labels: pull-request-available
> Fix For: 8.0.0-M3
>
>




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


[jira] [Closed] (TOMEE-2521) Apache BVal 2.0.3-SNAPSHOT

2019-05-28 Thread Martin Wiesner (JIRA)


 [ 
https://issues.apache.org/jira/browse/TOMEE-2521?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Martin Wiesner closed TOMEE-2521.
-
   Resolution: Resolved
Fix Version/s: 8.0.0-M3

Fixed: 
https://github.com/apache/tomee/commit/fcb41fb8f0f2d6f6b3092ea76490d41fbdee8091

> Apache BVal 2.0.3-SNAPSHOT
> --
>
> Key: TOMEE-2521
> URL: https://issues.apache.org/jira/browse/TOMEE-2521
> Project: TomEE
>  Issue Type: Dependency upgrade
>Reporter: David Blevins
>Assignee: David Blevins
>Priority: Major
> Fix For: 8.0.0-M3
>
>
> Source:
>  - https://svn.apache.org/repos/asf/tomee/deps/branches/bval-2/



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


[jira] [Commented] (TOMEE-2527) Table on ActiveMQ Resource Adapter Configuration page not rendered correctly

2019-05-28 Thread Martin Wiesner (JIRA)


[ 
https://issues.apache.org/jira/browse/TOMEE-2527?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16850057#comment-16850057
 ] 

Martin Wiesner commented on TOMEE-2527:
---

For reference, PR is here: https://github.com/apache/tomee/pull/472

> Table on ActiveMQ Resource Adapter Configuration page not rendered correctly
> 
>
> Key: TOMEE-2527
> URL: https://issues.apache.org/jira/browse/TOMEE-2527
> Project: TomEE
>  Issue Type: Documentation
>  Components: Examples and Documentation
>Reporter: David Salter
>Assignee: David Salter
>Priority: Major
>  Labels: pull-request-available
>
> On the ActiveMQ Resource Adapter and Configuration page 
> (https://tomee.apache.org/tomee-8.0/docs/activemqresourceadapter-config.html),
>  the table at the end of the page is rendered incorrectly and not as a table.



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


[jira] [Closed] (TOMEE-2527) Table on ActiveMQ Resource Adapter Configuration page not rendered correctly

2019-05-28 Thread Martin Wiesner (JIRA)


 [ 
https://issues.apache.org/jira/browse/TOMEE-2527?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Martin Wiesner closed TOMEE-2527.
-
Resolution: Resolved

Fixed: 
https://github.com/apache/tomee/commit/18113d1755ad768cb05bbe39b26ec04c979ec427

> Table on ActiveMQ Resource Adapter Configuration page not rendered correctly
> 
>
> Key: TOMEE-2527
> URL: https://issues.apache.org/jira/browse/TOMEE-2527
> Project: TomEE
>  Issue Type: Documentation
>  Components: Examples and Documentation
>Reporter: David Salter
>Assignee: David Salter
>Priority: Major
>  Labels: pull-request-available
>
> On the ActiveMQ Resource Adapter and Configuration page 
> (https://tomee.apache.org/tomee-8.0/docs/activemqresourceadapter-config.html),
>  the table at the end of the page is rendered incorrectly and not as a table.



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


[jira] [Closed] (TOMEE-2497) Upgrade Tomcat in TomEE 7.0.x/7.1.x/8.0.x for CVE-2019-0199

2019-05-28 Thread Martin Wiesner (JIRA)


 [ 
https://issues.apache.org/jira/browse/TOMEE-2497?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Martin Wiesner closed TOMEE-2497.
-
Resolution: Duplicate

Closed as duplicate of TOMEE-2523 which will bring Tomcat to version 9.0.20 in 
TomEE 8.0.0-M3.

> Upgrade Tomcat in TomEE 7.0.x/7.1.x/8.0.x for CVE-2019-0199
> ---
>
> Key: TOMEE-2497
> URL: https://issues.apache.org/jira/browse/TOMEE-2497
> Project: TomEE
>  Issue Type: Documentation
>  Components: TomEE Core Server
>Affects Versions: 7.0.5, 7.1.0, 8.0.0-M2
>Reporter: Alexandre Vermeerbergen
>Assignee: Jonathan Gallimore
>Priority: Major
> Fix For: 7.0.6, 7.1.1, 8.0.0-M3
>
>
> Hello,
> CVE-2019-0199 Apache Tomcat HTTP/2 DoS seems rather easy to exploit, see: 
> [https://www.mail-archive.com/dev@tomcat.apache.org/msg132386.html]
> Would it be possible to upgrade embedded Tomcat to 8.5.38 / 9.0.16 ASAP for 
> snapshot releases of TomEE 7.0.6, TomEE 7.1.1, TomEE 8.x ?
> Kind regards,
> Alexandre
>  
>  
>  



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


[jira] [Updated] (TOMEE-2498) Translate to Spanish: examples/mp-faulttolerance-fallback

2019-05-28 Thread Martin Wiesner (JIRA)


 [ 
https://issues.apache.org/jira/browse/TOMEE-2498?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Martin Wiesner updated TOMEE-2498:
--
Affects Version/s: (was: 8.0.0-Final)
Fix Version/s: 8.0.0-M3

> Translate to Spanish: examples/mp-faulttolerance-fallback
> -
>
> Key: TOMEE-2498
> URL: https://issues.apache.org/jira/browse/TOMEE-2498
> Project: TomEE
>  Issue Type: Task
>  Components: Examples and Documentation
>Reporter: Guillermo Díaz Solís
>Assignee: Guillermo Díaz Solís
>Priority: Major
> Fix For: 8.0.0-M3
>
>
> Translate into Spanish the README file using a suffix `_es` to allow the 
> Tomee Website to pick up and configure this version and corresponding language



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


[jira] [Closed] (TOMEE-2480) Translate to Portuguese: examples/simple-rest

2019-05-28 Thread Martin Wiesner (JIRA)


 [ 
https://issues.apache.org/jira/browse/TOMEE-2480?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Martin Wiesner closed TOMEE-2480.
-
   Resolution: Resolved
Fix Version/s: (was: 8.0.0-Final)
   8.0.0-M3

Resolved via PR: https://github.com/apache/tomee/pull/464

> Translate to Portuguese: examples/simple-rest
> -
>
> Key: TOMEE-2480
> URL: https://issues.apache.org/jira/browse/TOMEE-2480
> Project: TomEE
>  Issue Type: Sub-task
>Reporter: Gabriel Ferreira
>Assignee: Gabriel Ferreira
>Priority: Major
>  Labels: pull-request-available
> Fix For: 8.0.0-M3
>
>
> Translate into Portuguese the README file using a suffix `_pt` to allow the 
> Tomee Website to pick up and configure this version and corresponding language



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


[jira] [Closed] (TOMEE-2515) MicroProfile JWT 1.1 Cleanup

2019-05-28 Thread Martin Wiesner (JIRA)


 [ 
https://issues.apache.org/jira/browse/TOMEE-2515?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Martin Wiesner closed TOMEE-2515.
-
Resolution: Resolved

Resolved via PR: https://github.com/apache/tomee/pull/465

> MicroProfile JWT 1.1 Cleanup
> 
>
> Key: TOMEE-2515
> URL: https://issues.apache.org/jira/browse/TOMEE-2515
> Project: TomEE
>  Issue Type: Improvement
>Reporter: David Blevins
>Assignee: David Blevins
>Priority: Major
>  Labels: pull-request-available
> Fix For: 8.0.0-M3
>
>
> Generally impossible to get any logging output that tells the user what's 
> going on.



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


[jira] [Updated] (TOMEE-2274) Upgrade JAXB to latest version (2.3.2)

2019-05-28 Thread Martin Wiesner (JIRA)


 [ 
https://issues.apache.org/jira/browse/TOMEE-2274?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Martin Wiesner updated TOMEE-2274:
--
Affects Version/s: 8.0.0-M2
  Summary: Upgrade JAXB to latest version (2.3.2)  (was: Upgrade 
JAXB to latest version (2.3.1))

> Upgrade JAXB to latest version (2.3.2)
> --
>
> Key: TOMEE-2274
> URL: https://issues.apache.org/jira/browse/TOMEE-2274
> Project: TomEE
>  Issue Type: Dependency upgrade
>  Components: TomEE Core Server
>Affects Versions: 1.7.5, 7.0.5, 7.1.0, 8.0.0-M1, 8.0.0-M2
>Reporter: Jean-Louis MONTEIRO
>Assignee: Jean-Louis MONTEIRO
>Priority: Major
>  Labels: pull-request-available
> Fix For: 8.0.0-M3
>
>
> Issue with Java 11



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


[jira] [Closed] (TOMEE-2523) Update Tomcat to 8.5.41 and 9.0.20

2019-05-28 Thread Martin Wiesner (JIRA)


 [ 
https://issues.apache.org/jira/browse/TOMEE-2523?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Martin Wiesner closed TOMEE-2523.
-
Resolution: Resolved

Fixed: 
https://github.com/apache/tomee/commit/9d4df7b90ec666d4467147e22ebed065c58e5a37

> Update Tomcat to 8.5.41 and 9.0.20
> --
>
> Key: TOMEE-2523
> URL: https://issues.apache.org/jira/browse/TOMEE-2523
> Project: TomEE
>  Issue Type: Dependency upgrade
>Affects Versions: 7.1, 8.0.0-M2
>Reporter: Jonathan Gallimore
>Assignee: Jonathan Gallimore
>Priority: Major
> Fix For: 8.0.0-M3
>
>




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


[jira] [Commented] (TOMEE-2529) XBean 4.14

2019-05-28 Thread Martin Wiesner (JIRA)


[ 
https://issues.apache.org/jira/browse/TOMEE-2529?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16850040#comment-16850040
 ] 

Martin Wiesner commented on TOMEE-2529:
---

Fixed via 
https://github.com/apache/tomee/commit/eed53503ea8558b7fbeec58a5ee2b9fae544218c

> XBean 4.14
> --
>
> Key: TOMEE-2529
> URL: https://issues.apache.org/jira/browse/TOMEE-2529
> Project: TomEE
>  Issue Type: Dependency upgrade
>Affects Versions: 7.1.0, 8.0.0-M2
>Reporter: Jean-Louis MONTEIRO
>Priority: Major
> Fix For: 7.1.1, 8.0.0-M3
>
>




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


[jira] [Comment Edited] (TOMEE-2529) XBean 4.14

2019-05-28 Thread Martin Wiesner (JIRA)


[ 
https://issues.apache.org/jira/browse/TOMEE-2529?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16850040#comment-16850040
 ] 

Martin Wiesner edited comment on TOMEE-2529 at 5/28/19 6:57 PM:


Fixed: 
[https://github.com/apache/tomee/commit/eed53503ea8558b7fbeec58a5ee2b9fae544218c]


was (Author: mawiesne):
Fixed via 
https://github.com/apache/tomee/commit/eed53503ea8558b7fbeec58a5ee2b9fae544218c

> XBean 4.14
> --
>
> Key: TOMEE-2529
> URL: https://issues.apache.org/jira/browse/TOMEE-2529
> Project: TomEE
>  Issue Type: Dependency upgrade
>Affects Versions: 7.1.0, 8.0.0-M2
>Reporter: Jean-Louis MONTEIRO
>Priority: Major
> Fix For: 7.1.1, 8.0.0-M3
>
>




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


[jira] [Updated] (TOMEE-2529) XBean 4.14

2019-05-28 Thread Martin Wiesner (JIRA)


 [ 
https://issues.apache.org/jira/browse/TOMEE-2529?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Martin Wiesner updated TOMEE-2529:
--
Fix Version/s: (was: 8.0.0-Final)

> XBean 4.14
> --
>
> Key: TOMEE-2529
> URL: https://issues.apache.org/jira/browse/TOMEE-2529
> Project: TomEE
>  Issue Type: Dependency upgrade
>Affects Versions: 7.1.0, 8.0.0-M2
>Reporter: Jean-Louis MONTEIRO
>Priority: Major
> Fix For: 7.1.1, 8.0.0-M3
>
>




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


[jira] [Updated] (TOMEE-2523) Update Tomcat to 8.5.41 and 9.0.20

2019-05-28 Thread Martin Wiesner (JIRA)


 [ 
https://issues.apache.org/jira/browse/TOMEE-2523?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Martin Wiesner updated TOMEE-2523:
--
Fix Version/s: (was: 8.0.0-M4)
   8.0.0-M3

> Update Tomcat to 8.5.41 and 9.0.20
> --
>
> Key: TOMEE-2523
> URL: https://issues.apache.org/jira/browse/TOMEE-2523
> Project: TomEE
>  Issue Type: Dependency upgrade
>Affects Versions: 7.1, 8.0.0-M2
>Reporter: Jonathan Gallimore
>Assignee: Jonathan Gallimore
>Priority: Major
> Fix For: 8.0.0-M3
>
>




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


[jira] [Closed] (TOMEE-2510) Update to Tomcat 9.0.19, 8.5.40 and 7.096

2019-05-28 Thread Martin Wiesner (JIRA)


 [ 
https://issues.apache.org/jira/browse/TOMEE-2510?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Martin Wiesner closed TOMEE-2510.
-
Resolution: Duplicate

Closed as duplicate of TOMEE-2523.

> Update to Tomcat 9.0.19, 8.5.40 and 7.096
> -
>
> Key: TOMEE-2510
> URL: https://issues.apache.org/jira/browse/TOMEE-2510
> Project: TomEE
>  Issue Type: Dependency upgrade
>Affects Versions: 1.7.5, 7.1.0, 8.0.0-M2
>Reporter: Jonathan Gallimore
>Assignee: Jonathan Gallimore
>Priority: Major
> Fix For: 8.0.0-M3
>
>
> This update is necessary to mitigate CVE-2019-0232.



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


[jira] [Updated] (TOMEE-2510) Update to Tomcat 9.0.19, 8.5.40 and 7.096

2019-05-28 Thread Martin Wiesner (JIRA)


 [ 
https://issues.apache.org/jira/browse/TOMEE-2510?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Martin Wiesner updated TOMEE-2510:
--
Fix Version/s: 8.0.0-M3

> Update to Tomcat 9.0.19, 8.5.40 and 7.096
> -
>
> Key: TOMEE-2510
> URL: https://issues.apache.org/jira/browse/TOMEE-2510
> Project: TomEE
>  Issue Type: Dependency upgrade
>Affects Versions: 7.1.0, 8.0.0-M2
>Reporter: Jonathan Gallimore
>Assignee: Jonathan Gallimore
>Priority: Major
> Fix For: 8.0.0-M3
>
>
> This update is necessary to mitigate CVE-2019-0232.



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


[jira] [Updated] (TOMEE-2510) Update to Tomcat 9.0.19, 8.5.40 and 7.096

2019-05-28 Thread Martin Wiesner (JIRA)


 [ 
https://issues.apache.org/jira/browse/TOMEE-2510?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Martin Wiesner updated TOMEE-2510:
--
Affects Version/s: 1.7.5

> Update to Tomcat 9.0.19, 8.5.40 and 7.096
> -
>
> Key: TOMEE-2510
> URL: https://issues.apache.org/jira/browse/TOMEE-2510
> Project: TomEE
>  Issue Type: Dependency upgrade
>Affects Versions: 1.7.5, 7.1.0, 8.0.0-M2
>Reporter: Jonathan Gallimore
>Assignee: Jonathan Gallimore
>Priority: Major
> Fix For: 8.0.0-M3
>
>
> This update is necessary to mitigate CVE-2019-0232.



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


[jira] [Updated] (TOMEE-2523) Update Tomcat to 8.5.41 and 9.0.20

2019-05-28 Thread Martin Wiesner (JIRA)


 [ 
https://issues.apache.org/jira/browse/TOMEE-2523?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Martin Wiesner updated TOMEE-2523:
--
Fix Version/s: 8.0.0-M4

> Update Tomcat to 8.5.41 and 9.0.20
> --
>
> Key: TOMEE-2523
> URL: https://issues.apache.org/jira/browse/TOMEE-2523
> Project: TomEE
>  Issue Type: Dependency upgrade
>Affects Versions: 7.1, 8.0.0-M2
>Reporter: Jonathan Gallimore
>Assignee: Jonathan Gallimore
>Priority: Major
> Fix For: 8.0.0-M4
>
>




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


[jira] [Updated] (TOMEE-2510) Update to Tomcat 9.0.19, 8.5.40 and 7.096

2019-05-28 Thread Martin Wiesner (JIRA)


 [ 
https://issues.apache.org/jira/browse/TOMEE-2510?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Martin Wiesner updated TOMEE-2510:
--
Affects Version/s: 7.1.0
   8.0.0-M2

> Update to Tomcat 9.0.19, 8.5.40 and 7.096
> -
>
> Key: TOMEE-2510
> URL: https://issues.apache.org/jira/browse/TOMEE-2510
> Project: TomEE
>  Issue Type: Dependency upgrade
>Affects Versions: 7.1.0, 8.0.0-M2
>Reporter: Jonathan Gallimore
>Assignee: Jonathan Gallimore
>Priority: Major
>
> This update is necessary to mitigate CVE-2019-0232.



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


[jira] [Updated] (TOMEE-2523) Update Tomcat to 8.5.41 and 9.0.20

2019-05-28 Thread Martin Wiesner (JIRA)


 [ 
https://issues.apache.org/jira/browse/TOMEE-2523?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Martin Wiesner updated TOMEE-2523:
--
Affects Version/s: 7.1
   8.0.0-M2

> Update Tomcat to 8.5.41 and 9.0.20
> --
>
> Key: TOMEE-2523
> URL: https://issues.apache.org/jira/browse/TOMEE-2523
> Project: TomEE
>  Issue Type: Dependency upgrade
>Affects Versions: 7.1, 8.0.0-M2
>Reporter: Jonathan Gallimore
>Assignee: Jonathan Gallimore
>Priority: Major
>




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


[tomee] 03/03: Merge remote-tracking branch 'apache/master'

2019-05-28 Thread jgallimore
This is an automated email from the ASF dual-hosted git repository.

jgallimore pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomee.git

commit e4418b721102940f0cc4d80080add44fcbbdba9b
Merge: be0dd01 9f0a54e
Author: Jonathan Gallimore 
AuthorDate: Tue May 28 17:43:59 2019 +0100

Merge remote-tracking branch 'apache/master'

 .gitignore |  1 +
 .../openejb/assembler/classic/Assembler.java   |  2 ++
 .../classic/DelegatePermissionCollection.java  |  2 +-
 .../openejb/core/entity/EntityContainer.java   |  2 +-
 .../openejb/core/entity/EntityEjbHomeHandler.java  | 10 
 .../org/apache/openejb/util/ArrayEnumeration.java  | 28 ++---
 .../openejb/web/LightweightWebAppBuilder.java  |  1 +
 .../core/security/SecurityServiceImplTest.java |  2 +-
 .../openejb/server/httpd/HttpRequestImpl.java  | 29 +-
 9 files changed, 38 insertions(+), 39 deletions(-)



[tomee] branch master updated (9f0a54e -> e4418b7)

2019-05-28 Thread jgallimore
This is an automated email from the ASF dual-hosted git repository.

jgallimore pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/tomee.git.


from 9f0a54e  Merge pull request #436 from danielsoro/fix-ignore
 add 48f21ba  Merge pull request #3 from apache/master
 add 733e9f6  Update README.txt to include -alias flag
 add 7261278  Add necessary web.xml for build
 add 586d035  Resolve imports
 add ccf1211  Refactor example services for test consistency
 add 6bf39d4  Upgrade compiler source
 add fa83e2b  Update pom.xml with other examples
 add c20cb01  Merge pull request #2 from apache/master
 add ddd125b  Merge branch 'TOMEE-2482-synchronize-examples' of 
https://github.com/ShermanMarshall/TomEE into TOMEE-2482-synchronize-examples
 add 4d79ea4  Fix pom.xml typo
 add 5118930  Merge branch 'TOMEE-2482-synchronize-examples' of 
https://github.com/ShermanMarshall/tomee into TOMEE-2482-synchronize-examples
 add 3e7ab9f  Remove changes to original test
 add 5491c6d  Update module pom.xml files with build/finalName
 add 89f7f59  Fixing gitconfig, and repo with upstream
 add d0e9814  Merge branch 'jaxrs-filter-example' of 
https://github.com/ShermanMarshall/tomee into jaxrs-filter-example
 add 3f6abdf  Adding Apache license
 add 4515152  Merge branch 'jaxrs-filter-example' of 
https://github.com/ShermanMarshall/tomee into jaxrs-filter-example
 add db76818  Changing documentation status to published for 
tomee-site-generation
 new 81cf513  Merge branch 'jaxrs-filter-example' of 
github.com:ShermanMarshall/tomee into pr460
 new be0dd01  Exclude applet
 new e4418b7  Merge remote-tracking branch 'apache/master'

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 examples/applet/README.txt |  2 +-
 .../java/org/superbiz/applet/CalculatorApplet.java | 14 +--
 .../bval-evaluation-redeployment/WebApp1/pom.xml   |  1 +
 .../bval-evaluation-redeployment/WebApp2/pom.xml   |  1 +
 examples/bval-evaluation-redeployment/pom.xml  |  2 -
 .../bval-evaluation-redeployment/runner/pom.xml|  5 ++-
 .../runner/src/test/java/RedeploymentTest.java | 44 +++---
 .../src/main/webapp/WEB-INF/web.xml|  0
 .../src/main/webapp/index.jsp  |  0
 examples/jaxrs-filter/README.adoc  |  2 +-
 .../org/superbiz/filterexample/ExampleServlet.java | 16 
 .../org/superbiz/filterexample/InboundFilter.java  | 16 
 examples/pom.xml   |  6 +++
 13 files changed, 88 insertions(+), 21 deletions(-)
 copy examples/{jaxrs-filter => java-modules}/src/main/webapp/WEB-INF/web.xml 
(100%)
 copy examples/{jaxrs-filter => java-modules}/src/main/webapp/index.jsp (100%)



[tomee] 02/03: Exclude applet

2019-05-28 Thread jgallimore
This is an automated email from the ASF dual-hosted git repository.

jgallimore pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomee.git

commit be0dd01ec059b4c45b426fa7cd0b3d82274fb6f0
Author: Jonathan Gallimore 
AuthorDate: Tue May 28 17:42:34 2019 +0100

Exclude applet
---
 examples/pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/pom.xml b/examples/pom.xml
index 30aea46..002974e 100644
--- a/examples/pom.xml
+++ b/examples/pom.xml
@@ -37,7 +37,7 @@
 access-timeout-meta
 access-timeout
 alternate-descriptors
-applet
+
 application-composer
 applicationcomposer-jaxws-cdi
 applicationexception



[tomee] 01/03: Merge branch 'jaxrs-filter-example' of github.com:ShermanMarshall/tomee into pr460

2019-05-28 Thread jgallimore
This is an automated email from the ASF dual-hosted git repository.

jgallimore pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomee.git

commit 81cf513e5237d7aed8080a7cb895237ba226a19b
Merge: 4a5956b db76818
Author: Jonathan Gallimore 
AuthorDate: Tue May 28 15:48:49 2019 +0100

Merge branch 'jaxrs-filter-example' of github.com:ShermanMarshall/tomee 
into pr460

 examples/applet/README.txt |  2 +-
 .../java/org/superbiz/applet/CalculatorApplet.java | 14 +--
 .../bval-evaluation-redeployment/WebApp1/pom.xml   |  1 +
 .../bval-evaluation-redeployment/WebApp2/pom.xml   |  1 +
 examples/bval-evaluation-redeployment/pom.xml  |  2 -
 .../bval-evaluation-redeployment/runner/pom.xml|  5 ++-
 .../runner/src/test/java/RedeploymentTest.java | 44 +++---
 .../java-modules/src/main/webapp/WEB-INF/web.xml   |  7 
 examples/java-modules/src/main/webapp/index.jsp|  5 +++
 examples/jaxrs-filter/README.adoc  |  2 +-
 .../org/superbiz/filterexample/ExampleServlet.java | 16 
 .../org/superbiz/filterexample/InboundFilter.java  | 16 
 examples/pom.xml   |  6 +++
 13 files changed, 100 insertions(+), 21 deletions(-)

diff --cc examples/pom.xml
index 3a9998b,94db7b9..30aea46
--- a/examples/pom.xml
+++ b/examples/pom.xml
@@@ -106,14 -110,14 +109,17 @@@
  mp-config-source-database
  mp-faulttolerance-fallback
  mp-faulttolerance-retry
 +mp-jwt-bean-validation
 +mp-jwt-bean-validation-strongly-typed
  mp-metrics-counted
  mp-metrics-histogram
 -mp-metrics-metered
  mp-metrics-timed
 +mp-metrics-gauge
++mp-metrics-metered
+ mp-opentracing-traced
  mp-rest-jwt
  mp-rest-jwt-jwk
+ mp-rest-jwt-principal
  mp-rest-jwt-public-key
  mtom
  multi-jpa-provider-testing



[jira] [Resolved] (TOMEE-2499) Assembler.destroyApplication(final AppContext appContext) should be deprecated

2019-05-28 Thread Cesar Hernandez (JIRA)


 [ 
https://issues.apache.org/jira/browse/TOMEE-2499?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Cesar Hernandez resolved TOMEE-2499.

   Resolution: Fixed
Fix Version/s: 8.0.0-M3

> Assembler.destroyApplication(final AppContext appContext) should be deprecated
> --
>
> Key: TOMEE-2499
> URL: https://issues.apache.org/jira/browse/TOMEE-2499
> Project: TomEE
>  Issue Type: Bug
>  Components: TomEE Core Server
>Reporter: Doychin Bondzhev
>Assignee: Doychin Bondzhev
>Priority: Minor
> Fix For: 8.0.0-M3
>
>
> Current implementation in method 
> Assembler.destroyApplication({color:#80}final {color}AppContext 
> appContext) will always fail. All applications are registered with their path 
> instead of ID in {color:#660e7a}deployedApplications {color}map.
> Also this method is not used.



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


[jira] [Assigned] (TOMEE-2499) Assembler.destroyApplication(final AppContext appContext) should be deprecated

2019-05-28 Thread Cesar Hernandez (JIRA)


 [ 
https://issues.apache.org/jira/browse/TOMEE-2499?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Cesar Hernandez reassigned TOMEE-2499:
--

Assignee: Doychin Bondzhev

> Assembler.destroyApplication(final AppContext appContext) should be deprecated
> --
>
> Key: TOMEE-2499
> URL: https://issues.apache.org/jira/browse/TOMEE-2499
> Project: TomEE
>  Issue Type: Bug
>  Components: TomEE Core Server
>Reporter: Doychin Bondzhev
>Assignee: Doychin Bondzhev
>Priority: Minor
>
> Current implementation in method 
> Assembler.destroyApplication({color:#80}final {color}AppContext 
> appContext) will always fail. All applications are registered with their path 
> instead of ID in {color:#660e7a}deployedApplications {color}map.
> Also this method is not used.



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


[tomee] branch master updated: Ignore temp folder for tck tests

2019-05-28 Thread jgallimore
This is an automated email from the ASF dual-hosted git repository.

jgallimore pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomee.git


The following commit(s) were added to refs/heads/master by this push:
 new 4332b0d  Ignore temp folder for tck tests
 new 9f0a54e  Merge pull request #436 from danielsoro/fix-ignore
4332b0d is described below

commit 4332b0dad287a5cd5d29d924cbf444c81ede5bf1
Author: Daniel Cunha (soro) 
AuthorDate: Thu Mar 7 09:26:49 2019 -0300

Ignore temp folder for tck tests
---
 .gitignore | 1 +
 1 file changed, 1 insertion(+)

diff --git a/.gitignore b/.gitignore
index d6fac0a..fb7f4ae 100644
--- a/.gitignore
+++ b/.gitignore
@@ -17,3 +17,4 @@ nb-configuration.xml
 .factorypath
 .history
 **/test/key
+tck/**/temp



[tomee] branch master updated (57a8f9a -> 4be6ac2)

2019-05-28 Thread jgallimore
This is an automated email from the ASF dual-hosted git repository.

jgallimore pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/tomee.git.


from 57a8f9a  Merge pull request #452 from doychin/arrayEnumeration-generics
 new 43f5627  Remove unused method
 new ea9db73  Deprecate  destroyApplication(final AppContext appContext)
 new 4be6ac2  Merge pull request #451 from 
doychin/tomee-2499-remove-destroyApplication

The 12483 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../src/main/java/org/apache/openejb/assembler/classic/Assembler.java   | 2 ++
 1 file changed, 2 insertions(+)



[tomee] branch master updated: Make ArrayEnumeration generics aware. Cleanup some stuff in HttpRequestImpl.

2019-05-28 Thread jgallimore
This is an automated email from the ASF dual-hosted git repository.

jgallimore pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomee.git


The following commit(s) were added to refs/heads/master by this push:
 new f9e9a2f  Make ArrayEnumeration generics aware. Cleanup some stuff in 
HttpRequestImpl.
 new 57a8f9a  Merge pull request #452 from doychin/arrayEnumeration-generics
f9e9a2f is described below

commit f9e9a2f76c193e7cc48688d740aa4c1d7093794b
Author: Doychin Bondzhev 
AuthorDate: Tue Mar 26 19:04:35 2019 +0200

Make ArrayEnumeration generics aware. Cleanup some stuff in HttpRequestImpl.

Signed-off-by: Doychin Bondzhev 
---
 .../classic/DelegatePermissionCollection.java  |  2 +-
 .../openejb/core/entity/EntityContainer.java   |  2 +-
 .../openejb/core/entity/EntityEjbHomeHandler.java  | 10 
 .../org/apache/openejb/util/ArrayEnumeration.java  | 28 ++---
 .../openejb/web/LightweightWebAppBuilder.java  |  1 +
 .../core/security/SecurityServiceImplTest.java |  2 +-
 .../openejb/server/httpd/HttpRequestImpl.java  | 29 +-
 7 files changed, 35 insertions(+), 39 deletions(-)

diff --git 
a/container/openejb-core/src/main/java/org/apache/openejb/assembler/classic/DelegatePermissionCollection.java
 
b/container/openejb-core/src/main/java/org/apache/openejb/assembler/classic/DelegatePermissionCollection.java
index 584b330..e17d631 100644
--- 
a/container/openejb-core/src/main/java/org/apache/openejb/assembler/classic/DelegatePermissionCollection.java
+++ 
b/container/openejb-core/src/main/java/org/apache/openejb/assembler/classic/DelegatePermissionCollection.java
@@ -95,7 +95,7 @@ public class DelegatePermissionCollection extends 
PermissionCollection {
 
 @Override
 public synchronized Enumeration elements() {
-return new ArrayEnumeration(permissions);
+return new ArrayEnumeration<>(permissions);
 }
 }
 }
diff --git 
a/container/openejb-core/src/main/java/org/apache/openejb/core/entity/EntityContainer.java
 
b/container/openejb-core/src/main/java/org/apache/openejb/core/entity/EntityContainer.java
index a4ba406..d2cc06d 100644
--- 
a/container/openejb-core/src/main/java/org/apache/openejb/core/entity/EntityContainer.java
+++ 
b/container/openejb-core/src/main/java/org/apache/openejb/core/entity/EntityContainer.java
@@ -400,7 +400,7 @@ public class EntityContainer implements RpcContainer {
 final Object primaryKey = keys.nextElement();
 proxies.addElement(new ProxyInfo(beanContext, primaryKey));
 }
-returnValue = new ArrayEnumeration(proxies);
+returnValue = new ArrayEnumeration<>(proxies);
 } else {
 returnValue = new ProxyInfo(beanContext, returnValue);
 }
diff --git 
a/container/openejb-core/src/main/java/org/apache/openejb/core/entity/EntityEjbHomeHandler.java
 
b/container/openejb-core/src/main/java/org/apache/openejb/core/entity/EntityEjbHomeHandler.java
index 3b93ac2..562d286 100644
--- 
a/container/openejb-core/src/main/java/org/apache/openejb/core/entity/EntityEjbHomeHandler.java
+++ 
b/container/openejb-core/src/main/java/org/apache/openejb/core/entity/EntityEjbHomeHandler.java
@@ -70,14 +70,14 @@ public class EntityEjbHomeHandler extends 
EjbHomeProxyHandler {
 
 if (retValue instanceof Collection) {
 final Object[] proxyInfos = ((Collection) retValue).toArray();
-final Vector proxies = new Vector();
+final Vector proxies = new Vector<>();
 for (Object proxyInfo1 : proxyInfos) {
 final ProxyInfo proxyInfo = (ProxyInfo) proxyInfo1;
 proxies.addElement(createProxy(proxyInfo.getPrimaryKey(), 
getMainInterface()));
 }
 return proxies;
 } else if (retValue instanceof ArrayEnumeration) {
-final ArrayEnumeration enumeration = (ArrayEnumeration) retValue;
+@SuppressWarnings("unchecked") final ArrayEnumeration 
enumeration = (ArrayEnumeration) retValue;
 for (int i = enumeration.size() - 1; i >= 0; --i) {
 final ProxyInfo proxyInfo = (ProxyInfo) enumeration.get(i);
 enumeration.set(i, createProxy(proxyInfo.getPrimaryKey(), 
getMainInterface()));
@@ -86,12 +86,12 @@ public class EntityEjbHomeHandler extends 
EjbHomeProxyHandler {
 } else if (retValue instanceof Enumeration) {
 final Enumeration enumeration = (Enumeration) retValue;
 
-final List proxies = new ArrayList();
+final List proxies = new ArrayList<>();
 while (enumeration.hasMoreElements()) {
 final ProxyInfo proxyInfo = (ProxyInfo) 
enumeration.nextElement();
 proxies.add(createProxy(proxyInfo.getPrimaryKey(), 
getMainInterface()));
 }
-return new ArrayEnumeration(proxies);
+

[jira] [Updated] (TOMEE-2532) EJB Deployment fails when javax.security.jacc.policy.provider is set

2019-05-28 Thread ASF GitHub Bot (JIRA)


 [ 
https://issues.apache.org/jira/browse/TOMEE-2532?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated TOMEE-2532:
--
Labels: pull-request-available  (was: )

> EJB Deployment fails when javax.security.jacc.policy.provider is set
> 
>
> Key: TOMEE-2532
> URL: https://issues.apache.org/jira/browse/TOMEE-2532
> Project: TomEE
>  Issue Type: Bug
>Affects Versions: 7.0.5, 7.1.0, 8.0.0-M3
>Reporter: Jonathan Gallimore
>Assignee: Jonathan Gallimore
>Priority: Major
>  Labels: pull-request-available
> Fix For: 7.0.6, 7.1.1, 8.0.0-M4
>
>
> When javax.security.jacc.policy.provider is set, TomEE will not install its 
> own policy (which delegates to the system policy anyway), and therefore 
> anything relating to EJBPermissions will fail.



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


[jira] [Created] (TOMEE-2532) EJB Deployment fails when javax.security.jacc.policy.provider is set

2019-05-28 Thread Jonathan Gallimore (JIRA)
Jonathan Gallimore created TOMEE-2532:
-

 Summary: EJB Deployment fails when 
javax.security.jacc.policy.provider is set
 Key: TOMEE-2532
 URL: https://issues.apache.org/jira/browse/TOMEE-2532
 Project: TomEE
  Issue Type: Bug
Affects Versions: 7.1.0, 7.0.5, 8.0.0-M3
Reporter: Jonathan Gallimore
Assignee: Jonathan Gallimore
 Fix For: 7.0.6, 7.1.1, 8.0.0-M4


When javax.security.jacc.policy.provider is set, TomEE will not install its own 
policy (which delegates to the system policy anyway), and therefore anything 
relating to EJBPermissions will fail.



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


[jira] [Resolved] (TOMEE-2531) Update Commons-Daemon

2019-05-28 Thread Jonathan Gallimore (JIRA)


 [ 
https://issues.apache.org/jira/browse/TOMEE-2531?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jonathan Gallimore resolved TOMEE-2531.
---
Resolution: Fixed

> Update Commons-Daemon
> -
>
> Key: TOMEE-2531
> URL: https://issues.apache.org/jira/browse/TOMEE-2531
> Project: TomEE
>  Issue Type: Dependency upgrade
>Affects Versions: 7.0.5, 7.1.0, 8.0.0-M3
>Reporter: Jonathan Gallimore
>Assignee: Jonathan Gallimore
>Priority: Major
> Fix For: 7.0.6, 7.1.1, 8.0.0-M4
>
>
> Update Commons-Daemon to get latest patches, including 
> https://issues.apache.org/jira/browse/DAEMON-401



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


[tomee] branch tomee-7.0.x updated: TOMEE-2531 update Commons-Daemon

2019-05-28 Thread jgallimore
This is an automated email from the ASF dual-hosted git repository.

jgallimore pushed a commit to branch tomee-7.0.x
in repository https://gitbox.apache.org/repos/asf/tomee.git


The following commit(s) were added to refs/heads/tomee-7.0.x by this push:
 new aa609b7  TOMEE-2531 update Commons-Daemon
aa609b7 is described below

commit aa609b7851a5828461dba47df9fe2c32d8638fe6
Author: Jonathan Gallimore 
AuthorDate: Tue May 28 11:30:26 2019 +0100

TOMEE-2531 update Commons-Daemon
---
 .../src/main/resources/TomEE.amd64.exe | Bin 103936 -> 109056 bytes
 tomee/apache-tomee/src/main/resources/TomEE.exe| Bin 104448 -> 113152 bytes
 .../apache-tomee/src/main/resources/TomEE.x86.exe  | Bin 80384 -> 91136 bytes
 3 files changed, 0 insertions(+), 0 deletions(-)

diff --git a/tomee/apache-tomee/src/main/resources/TomEE.amd64.exe 
b/tomee/apache-tomee/src/main/resources/TomEE.amd64.exe
index 62e6875..5d99450 100644
Binary files a/tomee/apache-tomee/src/main/resources/TomEE.amd64.exe and 
b/tomee/apache-tomee/src/main/resources/TomEE.amd64.exe differ
diff --git a/tomee/apache-tomee/src/main/resources/TomEE.exe 
b/tomee/apache-tomee/src/main/resources/TomEE.exe
index 7302404..49e24db 100644
Binary files a/tomee/apache-tomee/src/main/resources/TomEE.exe and 
b/tomee/apache-tomee/src/main/resources/TomEE.exe differ
diff --git a/tomee/apache-tomee/src/main/resources/TomEE.x86.exe 
b/tomee/apache-tomee/src/main/resources/TomEE.x86.exe
index 9c7a7c7..be39f76 100644
Binary files a/tomee/apache-tomee/src/main/resources/TomEE.x86.exe and 
b/tomee/apache-tomee/src/main/resources/TomEE.x86.exe differ



[tomee] branch tomee-7.1.x updated: TOMEE-2531 update Commons-Daemon

2019-05-28 Thread jgallimore
This is an automated email from the ASF dual-hosted git repository.

jgallimore pushed a commit to branch tomee-7.1.x
in repository https://gitbox.apache.org/repos/asf/tomee.git


The following commit(s) were added to refs/heads/tomee-7.1.x by this push:
 new 36c94a7  TOMEE-2531 update Commons-Daemon
36c94a7 is described below

commit 36c94a76b677ca1f3df43a39d0c1a61d86bcb729
Author: Jonathan Gallimore 
AuthorDate: Tue May 28 11:30:26 2019 +0100

TOMEE-2531 update Commons-Daemon
---
 .../src/main/resources/TomEE.amd64.exe | Bin 103936 -> 109056 bytes
 tomee/apache-tomee/src/main/resources/TomEE.exe| Bin 104448 -> 113152 bytes
 .../apache-tomee/src/main/resources/TomEE.x86.exe  | Bin 80384 -> 91136 bytes
 3 files changed, 0 insertions(+), 0 deletions(-)

diff --git a/tomee/apache-tomee/src/main/resources/TomEE.amd64.exe 
b/tomee/apache-tomee/src/main/resources/TomEE.amd64.exe
index 62e6875..5d99450 100644
Binary files a/tomee/apache-tomee/src/main/resources/TomEE.amd64.exe and 
b/tomee/apache-tomee/src/main/resources/TomEE.amd64.exe differ
diff --git a/tomee/apache-tomee/src/main/resources/TomEE.exe 
b/tomee/apache-tomee/src/main/resources/TomEE.exe
index 7302404..49e24db 100644
Binary files a/tomee/apache-tomee/src/main/resources/TomEE.exe and 
b/tomee/apache-tomee/src/main/resources/TomEE.exe differ
diff --git a/tomee/apache-tomee/src/main/resources/TomEE.x86.exe 
b/tomee/apache-tomee/src/main/resources/TomEE.x86.exe
index 9c7a7c7..be39f76 100644
Binary files a/tomee/apache-tomee/src/main/resources/TomEE.x86.exe and 
b/tomee/apache-tomee/src/main/resources/TomEE.x86.exe differ



[tomee] branch master updated: TOMEE-2531 update Commons-Daemon

2019-05-28 Thread jgallimore
This is an automated email from the ASF dual-hosted git repository.

jgallimore pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomee.git


The following commit(s) were added to refs/heads/master by this push:
 new 4a5956b  TOMEE-2531 update Commons-Daemon
4a5956b is described below

commit 4a5956bbe32c30caae94ac773948c7624ba7e519
Author: Jonathan Gallimore 
AuthorDate: Tue May 28 11:30:26 2019 +0100

TOMEE-2531 update Commons-Daemon
---
 .../src/main/resources/TomEE.amd64.exe | Bin 103936 -> 109056 bytes
 tomee/apache-tomee/src/main/resources/TomEE.exe| Bin 104448 -> 113152 bytes
 .../apache-tomee/src/main/resources/TomEE.x86.exe  | Bin 80384 -> 91136 bytes
 3 files changed, 0 insertions(+), 0 deletions(-)

diff --git a/tomee/apache-tomee/src/main/resources/TomEE.amd64.exe 
b/tomee/apache-tomee/src/main/resources/TomEE.amd64.exe
index 62e6875..5d99450 100644
Binary files a/tomee/apache-tomee/src/main/resources/TomEE.amd64.exe and 
b/tomee/apache-tomee/src/main/resources/TomEE.amd64.exe differ
diff --git a/tomee/apache-tomee/src/main/resources/TomEE.exe 
b/tomee/apache-tomee/src/main/resources/TomEE.exe
index 7302404..49e24db 100644
Binary files a/tomee/apache-tomee/src/main/resources/TomEE.exe and 
b/tomee/apache-tomee/src/main/resources/TomEE.exe differ
diff --git a/tomee/apache-tomee/src/main/resources/TomEE.x86.exe 
b/tomee/apache-tomee/src/main/resources/TomEE.x86.exe
index 9c7a7c7..be39f76 100644
Binary files a/tomee/apache-tomee/src/main/resources/TomEE.x86.exe and 
b/tomee/apache-tomee/src/main/resources/TomEE.x86.exe differ



svn commit: r1860240 - /tomee/deps/tags/commons-daemon-5616a31/

2019-05-28 Thread jgallimore
Author: jgallimore
Date: Tue May 28 10:21:53 2019
New Revision: 1860240

URL: http://svn.apache.org/viewvc?rev=1860240=rev
Log:
TOMEE-2531 tagging version used

Added:
tomee/deps/tags/commons-daemon-5616a31/
  - copied from r1860239, tomee/deps/branches/commons-daemon/



svn commit: r1860239 - in /tomee/deps/branches/commons-daemon/src/native/windows/apps: prunmgr/prunmgr.h prunsrv/prunsrv.h

2019-05-28 Thread jgallimore
Author: jgallimore
Date: Tue May 28 10:21:43 2019
New Revision: 1860239

URL: http://svn.apache.org/viewvc?rev=1860239=rev
Log:
Updating version

Modified:
tomee/deps/branches/commons-daemon/src/native/windows/apps/prunmgr/prunmgr.h
tomee/deps/branches/commons-daemon/src/native/windows/apps/prunsrv/prunsrv.h

Modified: 
tomee/deps/branches/commons-daemon/src/native/windows/apps/prunmgr/prunmgr.h
URL: 
http://svn.apache.org/viewvc/tomee/deps/branches/commons-daemon/src/native/windows/apps/prunmgr/prunmgr.h?rev=1860239=1860238=1860239=diff
==
--- 
tomee/deps/branches/commons-daemon/src/native/windows/apps/prunmgr/prunmgr.h 
(original)
+++ 
tomee/deps/branches/commons-daemon/src/native/windows/apps/prunmgr/prunmgr.h 
Tue May 28 10:21:43 2019
@@ -24,7 +24,7 @@
 #define _PRUNMGR_H
 
 #undef  PRG_VERSION
-#define PRG_VERSION"1.1.1.0"
+#define PRG_VERSION"1.1.1-5616a31"
 #define PRG_REGROOT   L"Apache Software Foundation\\Procrun 2.0"
 
 #define IDM_TM_EXIT 2000

Modified: 
tomee/deps/branches/commons-daemon/src/native/windows/apps/prunsrv/prunsrv.h
URL: 
http://svn.apache.org/viewvc/tomee/deps/branches/commons-daemon/src/native/windows/apps/prunsrv/prunsrv.h?rev=1860239=1860238=1860239=diff
==
--- 
tomee/deps/branches/commons-daemon/src/native/windows/apps/prunsrv/prunsrv.h 
(original)
+++ 
tomee/deps/branches/commons-daemon/src/native/windows/apps/prunsrv/prunsrv.h 
Tue May 28 10:21:43 2019
@@ -25,7 +25,7 @@
 #define _PRUNSRV_H
 
 #undef  PRG_VERSION
-#define PRG_VERSION"1.1.1.0"
+#define PRG_VERSION"1.1.1-5616a31"
 #define PRG_REGROOT   L"Apache Software Foundation\\Procrun 2.0"
 
 #endif /* _PRUNSRV_H */




svn commit: r1860238 - /tomee/deps/tags/commons-daemon-5616a31/

2019-05-28 Thread jgallimore
Author: jgallimore
Date: Tue May 28 10:20:58 2019
New Revision: 1860238

URL: http://svn.apache.org/viewvc?rev=1860238=rev
Log:
Deleting to re-tag

Removed:
tomee/deps/tags/commons-daemon-5616a31/



svn commit: r1860228 - /tomee/deps/tags/commons-daemon-5616a31/

2019-05-28 Thread jgallimore
Author: jgallimore
Date: Tue May 28 09:50:56 2019
New Revision: 1860228

URL: http://svn.apache.org/viewvc?rev=1860228=rev
Log:
TOMEE-2531 tagging version used

Added:
tomee/deps/tags/commons-daemon-5616a31/
  - copied from r1860227, tomee/deps/branches/commons-daemon/



[jira] [Created] (TOMEE-2531) Update Commons-Daemon

2019-05-28 Thread Jonathan Gallimore (JIRA)
Jonathan Gallimore created TOMEE-2531:
-

 Summary: Update Commons-Daemon
 Key: TOMEE-2531
 URL: https://issues.apache.org/jira/browse/TOMEE-2531
 Project: TomEE
  Issue Type: Dependency upgrade
Affects Versions: 7.1.0, 7.0.5, 8.0.0-M3
Reporter: Jonathan Gallimore
Assignee: Jonathan Gallimore
 Fix For: 7.0.6, 7.1.1, 8.0.0-M4


Update Commons-Daemon to get latest patches, including 
https://issues.apache.org/jira/browse/DAEMON-401



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


svn commit: r1860225 [10/16] - in /tomee/deps/branches/commons-daemon: ./ src/ src/assembly/ src/changes/ src/docs/ src/main/ src/main/java/ src/main/java/org/ src/main/java/org/apache/ src/main/java/

2019-05-28 Thread jgallimore
Added: tomee/deps/branches/commons-daemon/src/native/windows/include/apxwin.h
URL: 
http://svn.apache.org/viewvc/tomee/deps/branches/commons-daemon/src/native/windows/include/apxwin.h?rev=1860225=auto
==
--- tomee/deps/branches/commons-daemon/src/native/windows/include/apxwin.h 
(added)
+++ tomee/deps/branches/commons-daemon/src/native/windows/include/apxwin.h Tue 
May 28 09:46:53 2019
@@ -0,0 +1,184 @@
+/* Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef _APXWIN_H_INCLUDED_
+#define _APXWIN_H_INCLUDED_
+
+
+#ifndef WIN32_LEAN_AND_MEAN
+#define WIN32_LEAN_AND_MEAN
+#endif
+
+#ifndef LOAD_LIBRARY_SEARCH_SYSTEM32
+#defineLOAD_LIBRARY_SEARCH_SYSTEM320x0800
+#endif
+
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+
+#ifndef _INTPTR_T_DEFINED
+#ifdef  _WIN64
+typedef __int64 intptr_t;
+#else
+typedef _W64 intintptr_t;
+#endif
+#define _INTPTR_T_DEFINED
+#endif
+
+#define APXMACRO_BEGIN  do {
+#define APXMACRO_END} while(0)
+
+#ifdef  __cplusplus
+#define __APXBEGIN_DECLSextern "C" {
+#define __APXEND_DECLS  }
+#else
+#define __APXBEGIN_DECLS
+#define __APXEND_DECLS
+#endif
+
+#define SET_BIT_FLAG(x, b) ((x) |= (1 << b))
+#define CLR_BIT_FLAG(x, b) ((x) &= ~(1 << b))
+#define TST_BIT_FLAG(x, b) ((x) & (1 << b))
+
+#define IS_INVALID_HANDLE(h) (((h) == NULL || (h) == INVALID_HANDLE_VALUE))
+#define IS_VALID_STRING(s)   ((s) != NULL && *(s) != 0)
+#define IS_EMPTY_STRING(s)   ((s) == NULL || *(s) == 0)
+
+#define DYNLOAD_TYPE_DECLARE(fnName, callconv, retType) \
+typedef retType (callconv *PFN_##fnName)\
+
+#define DYNLOAD_FPTR_DECLARE(fnName)\
+PFN_##fnName FP_##fnName
+
+#define DYNLOAD_FPTR(fnName)  FP_##fnName
+
+#define DYNLOAD_FPTR_ADDRESS(fnName, dllName)   \
+FP_##fnName = (PFN_##fnName)GetProcAddress( \
+GetModuleHandle(TEXT(#dllName)),\
+#fnName)
+
+#define DYNLOAD_FPTR_LOAD(fnName, dllHandle)\
+FP_##fnName = (PFN_##fnName)GetProcAddress( \
+dllHandle,  \
+#fnName)
+
+#define DYNLOAD_CALL(fnName)(*FP_##fnName)
+
+#ifndef ABS
+#define ABS(x)   (((x) > 0) ? (x) : (x) * (-1))
+#endif
+
+#define SIZ_RESLEN 256
+#define SIZ_RESMAX (SIZ_RESLEN -1)
+#define SIZ_BUFLEN 512
+#define SIZ_BUFMAX (SIZ_BUFLEN -1)
+#define SIZ_DESLEN 1024
+#define SIZ_DESMAX (SIZ_DESLEN -1)
+#define SIZ_HUGLEN 8192
+#define SIZ_HUGMAX (SIZ_HUGLEN -1)
+#define SIZ_PATHLEN4096
+#define SIZ_PATHMAX4095
+
+#include "handles.h"
+#include "log.h"
+#include "cmdline.h"
+#include "console.h"
+#include "rprocess.h"
+#include "registry.h"
+#include "service.h"
+#include "javajni.h"
+#include "gui.h"
+
+__APXBEGIN_DECLS
+
+LPWSTR  AsciiToWide(LPCSTR s, LPWSTR ws);
+LPSTR   MzWideToAscii(LPCWSTR ws, LPSTR s);
+LPSTR   WideToANSI(LPCWSTR ws);
+LPSTR   MzWideToANSI(LPCWSTR ws);
+
+typedef int (__stdcall *WPUTENV) (const wchar_t *env);
+
+typedef struct APXMULTISZ APXMULTISZ;
+typedef APXMULTISZ*   LPAPXMULTISZ;
+
+DWORD   apxMultiSzToArrayW(APXHANDLE hPool, LPCWSTR lpString, LPWSTR 
**lppArray);
+LPWSTR  apxMultiSzCombine(APXHANDLE hPool, LPCWSTR lpStrA, LPCWSTR lpStrB,
+  LPDWORD lpdwLength);
+
+LPAPXMULTISZapxMultiSzStrdup(LPCTSTR szSrc);
+LPTSTR  apxMultiSzStrcat(LPAPXMULTISZ lpmSz, LPCTSTR szSrc);
+LPCTSTR apxMultiSzGet(LPAPXMULTISZ lpmSz);
+/** Remove the specified character from the string
+ * Replacement is done in-place.
+ */
+LPTSTR  apxStrCharRemove(LPTSTR szString, TCHAR chSkip);
+DWORD   apxStrUnQuoteInplaceA(LPSTR szString);
+DWORD   apxStrUnQuoteInplaceW(LPWSTR szString);
+
+BOOLapxUltohex(ULONG n, LPTSTR lpBuff, DWORD dwBuffLength);
+BOOL   

svn commit: r1860225 [14/16] - in /tomee/deps/branches/commons-daemon: ./ src/ src/assembly/ src/changes/ src/docs/ src/main/ src/main/java/ src/main/java/org/ src/main/java/org/apache/ src/main/java/

2019-05-28 Thread jgallimore
Added: tomee/deps/branches/commons-daemon/src/native/windows/src/utils.c
URL: 
http://svn.apache.org/viewvc/tomee/deps/branches/commons-daemon/src/native/windows/src/utils.c?rev=1860225=auto
==
--- tomee/deps/branches/commons-daemon/src/native/windows/src/utils.c (added)
+++ tomee/deps/branches/commons-daemon/src/native/windows/src/utils.c Tue May 
28 09:46:53 2019
@@ -0,0 +1,741 @@
+/* Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include "apxwin.h"
+#include "private.h"
+
+LPWSTR __apxGetEnvironmentVariableW(APXHANDLE hPool, LPCWSTR wsName)
+{
+LPWSTR wsRet;
+DWORD  rc;
+
+rc = GetEnvironmentVariableW(wsName, NULL, 0);
+if (rc == 0 && GetLastError() == ERROR_ENVVAR_NOT_FOUND)
+return NULL;
+
+if (!(wsRet = apxPoolAlloc(hPool, (rc + 1) * sizeof(WCHAR
+return NULL;
+if (!GetEnvironmentVariableW(wsName, wsRet, rc)) {
+apxLogWrite(APXLOG_MARK_SYSERR);
+apxFree(wsRet);
+return NULL;
+}
+return wsRet;
+}
+
+LPSTR __apxGetEnvironmentVariableA(APXHANDLE hPool, LPCSTR szName)
+{
+LPSTR szRet;
+DWORD rc;
+
+rc = GetEnvironmentVariableA(szName, NULL, 0);
+if (rc == 0 && GetLastError() == ERROR_ENVVAR_NOT_FOUND)
+return NULL;
+
+if (!(szRet = apxPoolAlloc(hPool, rc + 1)))
+return NULL;
+if (!GetEnvironmentVariableA(szName, szRet, rc)) {
+apxLogWrite(APXLOG_MARK_SYSERR);
+apxFree(szRet);
+return NULL;
+}
+return szRet;
+}
+
+BOOL apxAddToPathW(APXHANDLE hPool, LPCWSTR szAdd)
+{
+LPWSTR wsAdd;
+DWORD  rc;
+DWORD  al;
+HMODULE hmodUcrt;
+WPUTENV wputenv_ucrt;
+
+rc = GetEnvironmentVariableW(L"PATH", NULL, 0);
+if (rc == 0 && GetLastError() == ERROR_ENVVAR_NOT_FOUND)
+return FALSE;
+al = 5 + lstrlenW(szAdd) + 1;
+if (!(wsAdd = apxPoolAlloc(hPool, (al + rc) * sizeof(WCHAR
+return FALSE;
+lstrcpyW(wsAdd, L"PATH=");
+lstrcatW(wsAdd, szAdd);
+lstrcatW(wsAdd, L";");
+if (GetEnvironmentVariableW(L"PATH", wsAdd + al, rc) != rc - 1) {
+apxLogWrite(APXLOG_MARK_SYSERR);
+apxFree(wsAdd);
+return FALSE;
+}
+
+hmodUcrt = LoadLibraryExA("ucrtbase.dll", NULL, 
LOAD_LIBRARY_SEARCH_SYSTEM32);
+if (hmodUcrt != NULL) {
+   wputenv_ucrt =  (WPUTENV) GetProcAddress(hmodUcrt, "_wputenv");
+}
+
+SetEnvironmentVariableW(L"PATH", wsAdd + 5);
+_wputenv(wsAdd);
+if (wputenv_ucrt != NULL) {
+   wputenv_ucrt(wsAdd);
+}
+
+apxFree(wsAdd);
+return TRUE;
+}
+
+LPWSTR AsciiToWide(LPCSTR s, LPWSTR ws)
+{
+LPWSTR pszSave = ws;
+
+if (!s) {
+*ws = L'\0';
+return pszSave;
+}
+do {
+*ws++ = (WCHAR)*s;
+} while (*s++);
+return pszSave;
+}
+
+LPSTR WideToANSI(LPCWSTR ws)
+{
+
+LPSTR s;
+int cch = WideCharToMultiByte(CP_ACP, 0, ws, -1, NULL, 0, NULL, NULL);
+s = (LPSTR)apxAlloc(cch);
+if (!WideCharToMultiByte(CP_ACP, 0, ws, -1, s, cch, NULL, NULL)) {
+apxFree(s);
+return NULL;
+}
+return s;
+}
+
+LPWSTR ANSIToWide(LPCSTR cs)
+{
+
+LPWSTR s;
+int cch = MultiByteToWideChar(CP_ACP, 0, cs, -1, NULL, 0);
+s = (LPWSTR)apxAlloc(cch * sizeof(WCHAR));
+if (!MultiByteToWideChar(CP_ACP, 0, cs, -1, s, cch)) {
+apxFree(s);
+return NULL;
+}
+return s;
+}
+
+LPSTR MzWideToAscii(LPCWSTR ws, LPSTR s)
+{
+LPSTR pszSave = s;
+
+if (ws) {
+do {
+*s++ = (CHAR)*ws;
+ws++;
+} while( *ws || *(ws + 1));
+}
+/* double terminate */
+*s++ = '\0';
+*s   = '\0';
+return pszSave;
+}
+
+LPSTR MzWideToANSI(LPCWSTR ws)
+{
+LPSTR str;
+LPSTR s;
+LPCWSTR p = ws;
+int cch = 0;
+
+for ( ; p && *p; p++) {
+int len = WideCharToMultiByte(CP_ACP, 0, p, -1, NULL, 0, NULL, NULL);
+if (len > 0)
+cch += len;
+while (*p)
+p++;
+}
+cch ++;
+str = s = (LPSTR)apxAlloc(cch + 1);
+
+p = ws;
+for ( ; p && *p; p++) {
+int len = WideCharToMultiByte(CP_ACP, 0, p, -1, s, cch, NULL, NULL);
+if (len > 0) {
+  

svn commit: r1860225 [6/16] - in /tomee/deps/branches/commons-daemon: ./ src/ src/assembly/ src/changes/ src/docs/ src/main/ src/main/java/ src/main/java/org/ src/main/java/org/apache/ src/main/java/o

2019-05-28 Thread jgallimore
Added: tomee/deps/branches/commons-daemon/src/native/unix/support/config.sub
URL: 
http://svn.apache.org/viewvc/tomee/deps/branches/commons-daemon/src/native/unix/support/config.sub?rev=1860225=auto
==
--- tomee/deps/branches/commons-daemon/src/native/unix/support/config.sub 
(added)
+++ tomee/deps/branches/commons-daemon/src/native/unix/support/config.sub Tue 
May 28 09:46:53 2019
@@ -0,0 +1,1798 @@
+#! /bin/sh
+# Configuration validation subroutine script.
+#   Copyright 1992-2019 Free Software Foundation, Inc.
+
+timestamp='2019-01-05'
+
+# This file is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, see .
+#
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that
+# program.  This Exception is an additional permission under section 7
+# of the GNU General Public License, version 3 ("GPLv3").
+
+
+# Please send patches to .
+#
+# Configuration subroutine to validate and canonicalize a configuration type.
+# Supply the specified configuration type as an argument.
+# If it is invalid, we print an error message on stderr and exit with code 1.
+# Otherwise, we print the canonical config type on stdout and succeed.
+
+# You can get the latest version of this script from:
+# https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
+
+# This file is supposed to be the same for all GNU packages
+# and recognize all the CPU types, system types and aliases
+# that are meaningful with *any* GNU software.
+# Each package is responsible for reporting which valid configurations
+# it does not support.  The user should be able to distinguish
+# a failure to support a valid configuration from a meaningless
+# configuration.
+
+# The goal of this file is to map all the various variations of a given
+# machine specification into a single specification in the form:
+#  CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
+# or in some cases, the newer four-part form:
+#  CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
+# It is wrong to echo any other type of specification.
+
+me=`echo "$0" | sed -e 's,.*/,,'`
+
+usage="\
+Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS
+
+Canonicalize a configuration name.
+
+Options:
+  -h, --help print this help, then exit
+  -t, --time-stamp   print date of last modification, then exit
+  -v, --version  print version number, then exit
+
+Report bugs and patches to ."
+
+version="\
+GNU config.sub ($timestamp)
+
+Copyright 1992-2019 Free Software Foundation, Inc.
+
+This is free software; see the source for copying conditions.  There is NO
+warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
+
+help="
+Try \`$me --help' for more information."
+
+# Parse command line
+while test $# -gt 0 ; do
+  case $1 in
+--time-stamp | --time* | -t )
+   echo "$timestamp" ; exit ;;
+--version | -v )
+   echo "$version" ; exit ;;
+--help | --h* | -h )
+   echo "$usage"; exit ;;
+-- ) # Stop option processing
+   shift; break ;;
+- )# Use stdin as input.
+   break ;;
+-* )
+   echo "$me: invalid option $1$help" >&2
+   exit 1 ;;
+
+*local*)
+   # First pass through any local machine types.
+   echo "$1"
+   exit ;;
+
+* )
+   break ;;
+  esac
+done
+
+case $# in
+ 0) echo "$me: missing argument$help" >&2
+exit 1;;
+ 1) ;;
+ *) echo "$me: too many arguments$help" >&2
+exit 1;;
+esac
+
+# Split fields of configuration type
+# shellcheck disable=SC2162
+IFS="-" read field1 field2 field3 field4 <&2
+   exit 1
+   ;;
+   *-*-*-*)
+   basic_machine=$field1-$field2
+   os=$field3-$field4
+   ;;
+   *-*-*)
+   # Ambiguous whether COMPANY is present, or skipped and 
KERNEL-OS is two
+   # parts
+   maybe_os=$field2-$field3
+   case $maybe_os in
+   nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc 
\
+   | linux-newlib* | linux-musl* | linux-uclibc* | 
uclinux-uclibc* \
+   | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | 
netbsd*-gnu* \
+

svn commit: r1860225 [4/16] - in /tomee/deps/branches/commons-daemon: ./ src/ src/assembly/ src/changes/ src/docs/ src/main/ src/main/java/ src/main/java/org/ src/main/java/org/apache/ src/main/java/o

2019-05-28 Thread jgallimore
Added: tomee/deps/branches/commons-daemon/src/native/unix/native/java.c
URL: 
http://svn.apache.org/viewvc/tomee/deps/branches/commons-daemon/src/native/unix/native/java.c?rev=1860225=auto
==
--- tomee/deps/branches/commons-daemon/src/native/unix/native/java.c (added)
+++ tomee/deps/branches/commons-daemon/src/native/unix/native/java.c Tue May 28 
09:46:53 2019
@@ -0,0 +1,604 @@
+/* Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include "jsvc.h"
+
+#ifdef OS_CYGWIN
+typedef long long __int64;
+#endif
+#include 
+#include 
+
+#ifdef CHARSET_EBCDIC
+#ifdef OSD_POSIX
+#include 
+#define jsvc_xlate_to_ascii(b) _e2a(b)
+#define jsvc_xlate_from_ascii(b) _a2e(b)
+#endif
+#else
+#define jsvc_xlate_to_ascii(b)  /* NOOP */
+#define jsvc_xlate_from_ascii(b)/* NOOP */
+#endif
+
+static JavaVM *jvm = NULL;
+static JNIEnv *env = NULL;
+static jclass cls  = NULL;
+
+#define FALSE 0
+#define TRUE !FALSE
+
+static void shutdown(JNIEnv *env, jobject source, jboolean reload)
+{
+log_debug("Shutdown requested (reload is %d)", reload);
+if (reload == TRUE)
+main_reload();
+else
+main_shutdown();
+}
+
+static void failed(JNIEnv *env, jobject source, jstring message)
+{
+if (message) {
+const char *msg = (*env)->GetStringUTFChars(env, message, NULL);
+log_error("Failed %s", msg ? msg : "(null)");
+if (msg)
+(*env)->ReleaseStringUTFChars(env, message, msg);
+}
+else
+log_error("Failed requested");
+main_shutdown();
+}
+
+/* Automatically restart when the JVM crashes */
+static void java_abort123(void)
+{
+exit(123);
+}
+
+char *java_library(arg_data *args, home_data *data)
+{
+char *libf = NULL;
+
+/* Did we find ANY virtual machine? */
+if (data->jnum == 0) {
+log_error("Cannot find any VM in Java Home %s", data->path);
+return NULL;
+}
+
+/* Select the VM */
+if (args->name == NULL) {
+libf = data->jvms[0]->libr;
+log_debug("Using default JVM in %s", libf);
+}
+else {
+int x;
+for (x = 0; x < data->jnum; x++) {
+if (data->jvms[x]->name == NULL)
+continue;
+if (strcmp(args->name, data->jvms[x]->name) == 0) {
+libf = data->jvms[x]->libr;
+log_debug("Using specific JVM in %s", libf);
+break;
+}
+}
+if (libf == NULL) {
+log_error("Invalid JVM name specified %s", args->name);
+return NULL;
+}
+}
+return libf;
+}
+
+typedef jint (*jvm_create_t)(JavaVM **, JNIEnv **, JavaVMInitArgs *);
+
+bool java_signal(void)
+{
+jmethodID method;
+jboolean ret;
+char start[] = "signal";
+char startparams[] = "()Z";
+
+jsvc_xlate_to_ascii(start);
+jsvc_xlate_to_ascii(startparams);
+method = (*env)->GetStaticMethodID(env, cls, start, startparams);
+if (method == NULL) {
+(*env)->ExceptionClear(env);
+log_error("Cannot find DaemonLoader \"signal\" method");
+return false;
+}
+
+ret = (*env)->CallStaticBooleanMethod(env, cls, method);
+/* Clear any pending exception
+ * so we can continue calling native methods
+ */
+(*env)->ExceptionClear(env);
+log_debug("Daemon signal method returned %s", ret ? "true" : "false");
+return ret;
+}
+
+/* Initialize the JVM and its environment, loading libraries and all */
+bool java_init(arg_data *args, home_data *data)
+{
+#ifdef OS_DARWIN
+dso_handle apph = NULL;
+char appf[1024];
+struct stat sb;
+#endif /* ifdef OS_DARWIN */
+jvm_create_t symb = NULL;
+JNINativeMethod nativemethods[2];
+JavaVMOption *opt = NULL;
+dso_handle libh   = NULL;
+JavaVMInitArgs arg;
+char *libf = NULL;
+jint ret;
+int x;
+char loaderclass[]= LOADER;
+char shutdownmethod[] = "shutdown";
+char shutdownparams[] = "(Z)V";
+char failedmethod[]   = "failed";
+char failedparams[]   = "(Ljava/lang/String;)V";
+char daemonprocid[64];
+/* Decide WHAT virtual machine we need to use */
+libf = java_library(args, data);
+if 

svn commit: r1860225 [9/16] - in /tomee/deps/branches/commons-daemon: ./ src/ src/assembly/ src/changes/ src/docs/ src/main/ src/main/java/ src/main/java/org/ src/main/java/org/apache/ src/main/java/o

2019-05-28 Thread jgallimore
Added: 
tomee/deps/branches/commons-daemon/src/native/windows/apps/prunsrv/prunsrv.c
URL: 
http://svn.apache.org/viewvc/tomee/deps/branches/commons-daemon/src/native/windows/apps/prunsrv/prunsrv.c?rev=1860225=auto
==
--- 
tomee/deps/branches/commons-daemon/src/native/windows/apps/prunsrv/prunsrv.c 
(added)
+++ 
tomee/deps/branches/commons-daemon/src/native/windows/apps/prunsrv/prunsrv.c 
Tue May 28 09:46:53 2019
@@ -0,0 +1,1841 @@
+/* Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/* 
+ * prunsrv -- Service Runner.
+ * Contributed by Mladen Turk 
+ * 05 Aug 2003
+ * 
+ */
+
+/* Force the JNI vprintf functions */
+#define _DEBUG_JNI  1
+#include "apxwin.h"
+#include "private.h"
+#include "prunsrv.h"
+
+#include 
+#include 
+#include 
+#include 
+#include  /* _open_osfhandle */
+
+#ifndef  MIN
+#define  MIN(a,b)(((a)<(b)) ? (a) : (b))
+#endif
+
+#define STDIN_FILENO  0
+#define STDOUT_FILENO 1
+#define STDERR_FILENO 2
+#define ONE_MINUTE(60 * 1000)
+
+#ifdef _WIN64
+#define KREG_WOW6432  KEY_WOW64_32KEY
+#define PRG_BITS  64
+#else
+#define KREG_WOW6432  0
+#define PRG_BITS  32
+#endif
+
+typedef struct APX_STDWRAP {
+LPCWSTR szLogPath;
+LPCWSTR szStdOutFilename;
+LPCWSTR szStdErrFilename;
+FILE   *fpStdOutFile;
+FILE   *fpStdErrFile;
+} APX_STDWRAP;
+
+/* Use static variables instead of #defines */
+static LPCWSTR  PRSRV_AUTO= L"auto";
+static LPCWSTR  PRSRV_JAVA= L"java";
+static LPCWSTR  PRSRV_JVM = L"jvm";
+static LPCWSTR  PRSRV_JDK = L"jdk";
+static LPCWSTR  PRSRV_JRE = L"jre";
+static LPCWSTR  PRSRV_MANUAL  = L"manual";
+static LPCWSTR  PRSRV_JBIN= L"\\bin\\java.exe";
+static LPCWSTR  PRSRV_PBIN= L"\\bin";
+static LPCWSTR  PRSRV_SIGNAL  = L"SIGNAL";
+static LPCWSTR  PRSV_JVMOPTS9 = L"JDK_JAVA_OPTIONS=";
+static LPCWSTR  STYPE_INTERACTIVE = L"interactive";
+
+static LPWSTR   _service_name = NULL;
+/* Allowed procrun commands */
+static LPCWSTR _commands[] = {
+L"TS",  /* 1 Run Service as console application (default)*/
+L"RS",  /* 2 Run Service */
+L"ES",  /* 3 Execute start */
+L"SS",  /* 4 Stop Service */
+L"US",  /* 5 Update Service parameters */
+L"IS",  /* 6 Install Service */
+L"DS",  /* 7 Delete Service */
+L"?",   /* 8 Help */
+L"VS",  /* 9 Version */
+NULL
+};
+
+static LPCWSTR _altcmds[] = {
+L"run", /* 1 Run Service as console application (default)*/
+L"service", /* 2 Run Service */
+L"start",   /* 3 Start Service */
+L"stop",/* 4 Stop Service */
+L"update",  /* 5 Update Service parameters */
+L"install", /* 6 Install Service */
+L"delete",  /* 7 Delete Service */
+L"help",/* 8 Help */
+L"version", /* 9 Version */
+NULL
+};
+
+/* Allowed procrun parameters */
+static APXCMDLINEOPT _options[] = {
+
+/* 0  */{ L"Description",   L"Description", NULL,   
APXCMDOPT_STR | APXCMDOPT_SRV, NULL, 0},
+/* 1  */{ L"DisplayName",   L"DisplayName", NULL,   
APXCMDOPT_STR | APXCMDOPT_SRV, NULL, 0},
+/* 2  */{ L"Install",   L"ImagePath",   NULL,   
APXCMDOPT_STE | APXCMDOPT_SRV, NULL, 0},
+/* 3  */{ L"ServiceUser",   L"ServiceUser", NULL,   
APXCMDOPT_STR | APXCMDOPT_SRV, NULL, 0},
+/* 4  */{ L"ServicePassword",   L"ServicePassword", NULL,   
APXCMDOPT_STR | APXCMDOPT_SRV, NULL, 0},
+/* 5  */{ L"Startup",   L"Startup", NULL,   
APXCMDOPT_STR | APXCMDOPT_SRV, NULL, 0},
+/* 6  */{ L"Type",  L"Type",NULL,   
APXCMDOPT_STR | APXCMDOPT_SRV, NULL, 0},
+
+/* 7  */{ L"DependsOn", L"DependsOn",   NULL,   
APXCMDOPT_MSZ | APXCMDOPT_REG, NULL, 0},
+/* 8  */{ L"Environment",   L"Environment", NULL,   
APXCMDOPT_MSZ | APXCMDOPT_REG, NULL, 0},
+/* 9  */{ L"User",  

svn commit: r1860225 [12/16] - in /tomee/deps/branches/commons-daemon: ./ src/ src/assembly/ src/changes/ src/docs/ src/main/ src/main/java/ src/main/java/org/ src/main/java/org/apache/ src/main/java/

2019-05-28 Thread jgallimore
Added: tomee/deps/branches/commons-daemon/src/native/windows/src/javajni.c
URL: 
http://svn.apache.org/viewvc/tomee/deps/branches/commons-daemon/src/native/windows/src/javajni.c?rev=1860225=auto
==
--- tomee/deps/branches/commons-daemon/src/native/windows/src/javajni.c (added)
+++ tomee/deps/branches/commons-daemon/src/native/windows/src/javajni.c Tue May 
28 09:46:53 2019
@@ -0,0 +1,1349 @@
+/* Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include "apxwin.h"
+#include "handles.h"
+#include "javajni.h"
+#include "private.h"
+
+#include 
+
+#ifndef JNI_VERSION_1_6
+#error ---
+#error JAVA 5 AND EARLIER ARE NO LONGER SUPPORTED
+#error ---
+#endif
+
+#define JNI_VERSION_DEFAULT JNI_VERSION_1_6
+
+/* Need to be able to detect Java 9 without requiring compilation against Java 
9
+ * headers.
+ */
+#ifndef JNI_VERSION_9
+#define JNI_VERSION_9  0x0009
+#endif
+
+/* Standard jvm.dll prototypes
+ * since only single jvm can exist per process
+ * make those global
+ */
+
+DYNLOAD_TYPE_DECLARE(JNI_GetDefaultJavaVMInitArgs, JNICALL, jint)(void *);
+static DYNLOAD_FPTR_DECLARE(JNI_GetDefaultJavaVMInitArgs) = NULL;
+
+DYNLOAD_TYPE_DECLARE(JNI_CreateJavaVM, JNICALL, jint)(JavaVM **, void **, void 
*);
+static DYNLOAD_FPTR_DECLARE(JNI_CreateJavaVM) = NULL;
+
+DYNLOAD_TYPE_DECLARE(JNI_GetCreatedJavaVMs, JNICALL, jint)(JavaVM **, jsize, 
jsize *);
+static DYNLOAD_FPTR_DECLARE(JNI_GetCreatedJavaVMs) = NULL;
+
+DYNLOAD_TYPE_DECLARE(JVM_DumpAllStacks, JNICALL, void)(JNIEnv *, jclass);
+static DYNLOAD_FPTR_DECLARE(JVM_DumpAllStacks) = NULL;
+
+static HANDLE  _st_sys_jvmDllHandle = NULL;
+static JavaVM *_st_sys_jvm = NULL;
+
+DYNLOAD_TYPE_DECLARE(SetDllDirectoryW, WINAPI, BOOL)(LPCWSTR);
+static DYNLOAD_FPTR_DECLARE(SetDllDirectoryW) = NULL;
+
+#define JVM_DELETE_CLAZZ(jvm, cl)  
 \
+APXMACRO_BEGIN 
 \
+if ((jvm)->lpEnv && (jvm)->cl.jClazz) {   \
+(*((jvm)->lpEnv))->DeleteGlobalRef((jvm)->lpEnv, (jvm)->cl.jClazz);   \
+(jvm)->cl.jClazz = NULL;  \
+} APXMACRO_END
+
+#define JVM_EXCEPTION_CHECK(jvm) \
+((*((jvm)->lpEnv))->ExceptionCheck((jvm)->lpEnv) != JNI_OK)
+
+#define JVM_EXCEPTION_CLEAR(jvm) \
+APXMACRO_BEGIN  \
+if ((jvm)->lpEnv) { \
+if ((*((jvm)->lpEnv))->ExceptionCheck((jvm)->lpEnv)) {  \
+(*((jvm)->lpEnv))->ExceptionDescribe((jvm)->lpEnv); \
+(*((jvm)->lpEnv))->ExceptionClear((jvm)->lpEnv);\
+}   \
+} APXMACRO_END
+
+#define JNI_LOCAL_UNREF(obj) \
+(*(lpJava->lpEnv))->DeleteLocalRef(lpJava->lpEnv, obj)
+
+#define JNICALL_0(fName)  \
+((*(lpJava->lpEnv))->fName(lpJava->lpEnv))
+
+#define JNICALL_1(fName, a1)  \
+((*(lpJava->lpEnv))->fName(lpJava->lpEnv, (a1)))
+
+#define JNICALL_2(fName, a1, a2)  \
+((*(lpJava->lpEnv))->fName(lpJava->lpEnv, (a1), (a2)))
+
+#define JNICALL_3(fName, a1, a2, a3)  \
+((*(lpJava->lpEnv))->fName(lpJava->lpEnv, (a1), (a2), (a3)))
+
+#define JNICALL_4(fName, a1, a2, a3, a4)  \
+((*(lpJava->lpEnv))->fName(lpJava->lpEnv, (a1), (a2), (a3), (a4)))
+
+typedef struct APXJAVASTDCLAZZ {
+CHARsClazz[1024];
+CHARsMethod[512];
+jclass  jClazz;
+jmethodID   jMethod;
+jobject jObject;
+jarray  jArgs;
+} APXJAVASTDCLAZZ, *LPAPXJAVASTDCLAZZ;
+
+typedef struct APXJAVAVM {
+DWORD   dwOptions;
+APXJAVASTDCLAZZ clString;
+APXJAVASTDCLAZZ clWorker;
+jintiVersion;
+jsize   iVmCount;
+JNIEnv  *lpEnv;
+JavaVM  *lpJvm;
+/* JVM worker thread info */
+HANDLE  hWorkerThread;
+DWORD   iWorkerThread;
+DWORD   dwWorkerStatus;
+SIZE_T  szStackSize;
+HANDLE  

svn commit: r1860225 [11/16] - in /tomee/deps/branches/commons-daemon: ./ src/ src/assembly/ src/changes/ src/docs/ src/main/ src/main/java/ src/main/java/org/ src/main/java/org/apache/ src/main/java/

2019-05-28 Thread jgallimore
Added: tomee/deps/branches/commons-daemon/src/native/windows/src/gui.c
URL: 
http://svn.apache.org/viewvc/tomee/deps/branches/commons-daemon/src/native/windows/src/gui.c?rev=1860225=auto
==
--- tomee/deps/branches/commons-daemon/src/native/windows/src/gui.c (added)
+++ tomee/deps/branches/commons-daemon/src/native/windows/src/gui.c Tue May 28 
09:46:53 2019
@@ -0,0 +1,920 @@
+/* Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include "apxwin.h"
+#include "private.h"
+
+#define BALLON_TIMEOUT  1000
+/* Offset for listview dots */
+#define DOTOFFSET   0
+
+/* To harden against DLL hijacking, dynamic loading is used for any DLL that is
+ * not one of the standard known DDLs pre-loaded by Windows.
+ * Currently, the only DLL this applies to is NETAPI32.dll
+ */
+DYNLOAD_TYPE_DECLARE(NetApiBufferFree, WINAPI, DWORD)(LPVOID);
+static DYNLOAD_FPTR_DECLARE(NetApiBufferFree) = NULL;
+
+DYNLOAD_TYPE_DECLARE(NetQueryDisplayInformation, WINAPI, DWORD)(LPCWSTR, 
DWORD, DWORD, DWORD, DWORD,
+LPDWORD, 
PVOID);
+static DYNLOAD_FPTR_DECLARE(NetQueryDisplayInformation) = NULL;
+
+DYNLOAD_TYPE_DECLARE(NetGetDCName, WINAPI, DWORD)(LPCWSTR, LPCWSTR, LPBYTE *);
+static DYNLOAD_FPTR_DECLARE(NetGetDCName) = NULL;
+
+DYNLOAD_TYPE_DECLARE(NetWkstaGetInfo, WINAPI, DWORD)(LMSTR, DWORD, LPBYTE *);
+static DYNLOAD_FPTR_DECLARE(NetWkstaGetInfo) = NULL;
+
+static HMODULE  _st_sys_riched;
+static APXGUISTORE  _st_sys_gui;
+static HIMAGELIST   _st_sel_users_il = NULL;
+static WNDPROC  _st_sel_users_lvm;
+
+typedef struct PROGRESS_DLGPARAM {
+LPCTSTR szHead;
+LPCWSTR szText;
+LPVOID  cbData;
+LPAPXFNCALLBACK fnCb;
+HANDLE  hThread;
+HWNDhDialog;
+} PROGRESS_DLGPARAM, *LPPROGRESS_DLGPARAM;
+
+APXLVITEM lvUsers[] = {
+{ 0, FALSE, 180, 180, LVCFMT_LEFT, TEXT("User") },
+{ 0, TRUE,  180, 180, LVCFMT_LEFT, TEXT("Full Name") },
+{ 0, TRUE,  235, 235, LVCFMT_LEFT, TEXT("Comment") }
+};
+
+
+#define NUMLVUSERS(sizeof(lvUsers) / sizeof(lvUsers[0]))
+
+/* Initialize the Gui
+ */
+LPAPXGUISTORE apxGuiInitialize(WNDPROC lpfnWndProc, LPCTSTR szAppName)
+{
+INITCOMMONCONTROLSEX stCmn;
+WNDCLASSEX wcex;
+
+_st_sys_gui.hInstance = GetModuleHandleA(NULL);
+GetStartupInfo(&_st_sys_gui.stStartupInfo);
+
+lstrcpy(_st_sys_gui.szWndClass, szAppName);
+lstrcat(_st_sys_gui.szWndClass, TEXT("_CLASS"));
+
+/* Single instance or general application mutex */
+lstrcpy(_st_sys_gui.szWndMutex, szAppName);
+lstrcat(_st_sys_gui.szWndMutex, TEXT("_MUTEX"));
+
+
+stCmn.dwSize = sizeof(INITCOMMONCONTROLSEX);
+stCmn.dwICC = ICC_WIN95_CLASSES | ICC_USEREX_CLASSES | ICC_COOL_CLASSES |
+  ICC_INTERNET_CLASSES | ICC_PAGESCROLLER_CLASS | 
ICC_BAR_CLASSES;
+
+InitCommonControlsEx();
+
+_st_sys_riched  = LoadLibraryExA("RICHED32.DLL", NULL, 
LOAD_LIBRARY_SEARCH_SYSTEM32);
+_st_sys_gui.hIconSm = LoadImage(_st_sys_gui.hInstance, 
MAKEINTRESOURCE(IDI_MAINICON),
+ IMAGE_ICON, 16, 16, LR_DEFAULTCOLOR);
+_st_sys_gui.hIcon   = LoadImage(_st_sys_gui.hInstance, 
MAKEINTRESOURCE(IDI_MAINICON),
+ IMAGE_ICON, 32, 32, LR_DEFAULTCOLOR);
+_st_sys_gui.hIconHg = LoadImage(_st_sys_gui.hInstance, 
MAKEINTRESOURCE(IDI_MAINICON),
+ IMAGE_ICON, 48, 48, LR_DEFAULTCOLOR);
+_st_sys_gui.hAccel  = LoadAccelerators(_st_sys_gui.hInstance,
+MAKEINTRESOURCE(IDC_APPLICATION));
+_st_sys_gui.stState.rcPosition.left   = CW_USEDEFAULT;
+_st_sys_gui.stState.rcPosition.top= CW_USEDEFAULT;
+_st_sys_gui.stState.rcPosition.right  = CW_USEDEFAULT;
+_st_sys_gui.stState.rcPosition.bottom = CW_USEDEFAULT;
+
+SystemParametersInfo(SPI_GETWHEELSCROLLLINES, 0, 
&_st_sys_gui.nWhellScroll, 0);
+
+wcex.cbSize = sizeof(WNDCLASSEX);
+
+wcex.style  = 0;
+wcex.lpfnWndProc= lpfnWndProc;
+wcex.cbClsExtra = 0;
+wcex.cbWndExtra = 0;
+wcex.hInstance  = _st_sys_gui.hInstance;
+wcex.hIcon

svn commit: r1860225 [7/16] - in /tomee/deps/branches/commons-daemon: ./ src/ src/assembly/ src/changes/ src/docs/ src/main/ src/main/java/ src/main/java/org/ src/main/java/org/apache/ src/main/java/o

2019-05-28 Thread jgallimore
Added: 
tomee/deps/branches/commons-daemon/src/native/windows/apps/prunmgr/prunmgr.c
URL: 
http://svn.apache.org/viewvc/tomee/deps/branches/commons-daemon/src/native/windows/apps/prunmgr/prunmgr.c?rev=1860225=auto
==
--- 
tomee/deps/branches/commons-daemon/src/native/windows/apps/prunmgr/prunmgr.c 
(added)
+++ 
tomee/deps/branches/commons-daemon/src/native/windows/apps/prunmgr/prunmgr.c 
Tue May 28 09:46:53 2019
@@ -0,0 +1,1889 @@
+/* Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/* 
+ * prunmgr -- Service Manager Application.
+ * Contributed by Mladen Turk 
+ * 05 Aug 2003
+ * 
+ */
+
+/* Force the JNI vprintf functions */
+#define _DEBUG_JNI  1
+#include "apxwin.h"
+#include "prunmgr.h"
+
+LPAPXGUISTORE _gui_store  = NULL;
+#define PRUNMGR_CLASS  TEXT("PRUNMGR")
+#define TMNU_CONF  TEXT("Configure...")
+#define TMNU_START TEXT("Start service")
+#define TMNU_STOP  TEXT("Stop service")
+#define TMNU_EXIT  TEXT("Exit")
+#define TMNU_ABOUT TEXT("About")
+#define TMNU_DUMP  TEXT("Thread Dump")
+
+/* Display only Started/Paused status */
+#define STAT_STARTEDTEXT("Started")
+#define STAT_PAUSED TEXT("Paused")
+#define STAT_STOPPEDTEXT("Stopped")
+#define STAT_DISABLED   TEXT("Disabled")
+#define STAT_NONE   TEXT("")
+
+#define STAT_SERVICEL"NT AUTHORITY\\LocalService"
+#define STAT_NET_SERVICEL"NT AUTHORITY\\NetworkService"
+#define STAT_SYSTEM L"LocalSystem"
+
+#define LOGL_ERROR  L"Error"
+#define LOGL_DEBUG  L"Debug"
+#define LOGL_INFO   L"Info"
+#define LOGL_WARN   L"Warn"
+
+#define START_AUTO   L"Automatic"
+#define START_MANUAL L"Manual"
+#define START_DISABLED   L"Disabled"
+#define START_BOOT   L"Boot"
+#define START_SYSTEM L"SystemInit"
+#define EMPTY_PASSWORD   L"   "
+
+#ifdef WIN64
+#define KREG_WOW6432  KEY_WOW64_32KEY
+#else
+#define KREG_WOW6432  0
+#endif
+
+/* Main application pool */
+APXHANDLE hPool = NULL;
+APXHANDLE hService  = NULL;
+APXHANDLE hRegistry = NULL;
+APXHANDLE hRegserv  = NULL;
+HICON hIcoRun   = NULL;
+HICON hIcoStop  = NULL;
+
+LPAPXSERVENTRY _currentEntry = NULL;
+
+BOOL  bEnableTry = FALSE;
+DWORD startPage  = 0;
+
+static LPCWSTR  _s_log  = L"Log";
+static LPCWSTR  _s_java = L"Java";
+static LPCWSTR  _s_start= L"Start";
+static LPCWSTR  _s_stop = L"Stop";
+
+/* Allowed prunmgr commands */
+static LPCWSTR _commands[] = {
+L"ES",  /* 1 Manage Service (default)*/
+L"MS",  /* 2 Monitor Service */
+L"MR",  /* 3 Monitor Service and start if not runing */
+L"MQ",  /* 4 Quit all running Monitor applications */
+NULL
+};
+
+static LPCWSTR _altcmds[] = {
+L"manage",  /* 1 Manage Service (default)*/
+L"monitor", /* 2 Monitor Service */
+L"start",   /* 3 Monitor Service and start if not runing */
+L"quit",/* 4 Quit all running Monitor applications */
+NULL
+};
+
+
+/* Allowed procrun parameters */
+static APXCMDLINEOPT _options[] = {
+/* 0  */{ L"AllowMultiInstances", NULL, NULL,   APXCMDOPT_INT, NULL, 0},
+/* NULL terminate the array */
+{ NULL }
+};
+
+/* Create RBUTTON try menu
+ * Configure... (default, or lbutton dblclick)
+ * Start 
+ * Stop  
+ * Exit
+ * Logo
+ */
+static void createRbuttonTryMenu(HWND hWnd)
+{
+HMENU hMnu;
+POINT pt;
+BOOL canStop  = FALSE;
+BOOL canStart = FALSE;
+hMnu = CreatePopupMenu();
+
+if (_currentEntry) {
+if (_currentEntry->stServiceStatus.dwCurrentState == SERVICE_RUNNING) {
+if (_currentEntry->stServiceStatus.dwControlsAccepted & 
SERVICE_ACCEPT_STOP)
+canStop = TRUE;
+}
+else if (_currentEntry->stServiceStatus.dwCurrentState == 
SERVICE_STOPPED) {
+if (_currentEntry->lpConfig->dwStartType != SERVICE_DISABLED)
+canStart = TRUE;
+}
+  

svn commit: r1860225 [16/16] - in /tomee/deps/branches/commons-daemon: ./ src/ src/assembly/ src/changes/ src/docs/ src/main/ src/main/java/ src/main/java/org/ src/main/java/org/apache/ src/main/java/

2019-05-28 Thread jgallimore
Added: 
tomee/deps/branches/commons-daemon/src/test/java/org/apache/commons/daemon/SimpleDaemon.java
URL: 
http://svn.apache.org/viewvc/tomee/deps/branches/commons-daemon/src/test/java/org/apache/commons/daemon/SimpleDaemon.java?rev=1860225=auto
==
--- 
tomee/deps/branches/commons-daemon/src/test/java/org/apache/commons/daemon/SimpleDaemon.java
 (added)
+++ 
tomee/deps/branches/commons-daemon/src/test/java/org/apache/commons/daemon/SimpleDaemon.java
 Tue May 28 09:46:53 2019
@@ -0,0 +1,344 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+package org.apache.commons.daemon;
+
+import java.io.*;
+import java.net.*;
+import java.text.SimpleDateFormat;
+import java.util.Date;
+import java.util.Enumeration;
+import java.util.Vector;
+import org.apache.commons.daemon.Daemon;
+import org.apache.commons.daemon.DaemonController;
+import org.apache.commons.daemon.DaemonContext;
+
+/**
+ */
+public class SimpleDaemon implements Daemon, Runnable, DaemonUserSignal {
+
+private ServerSocket server=null;
+private Thread thread=null;
+private DaemonController controller=null;
+private volatile boolean stopping=false;
+private String directory=null;
+private Vector handlers=null;
+private boolean softReloadSignalled;
+
+public SimpleDaemon() {
+super();
+System.err.println("SimpleDaemon: instance "+this.hashCode()+
+   " created");
+this.handlers=new Vector();
+}
+
+@Override
+protected void finalize() {
+System.err.println("SimpleDaemon: instance "+this.hashCode()+
+   " garbage collected");
+}
+
+/**
+ * init and destroy were added in jakarta-tomcat-daemon.
+ */
+@Override
+public void init(final DaemonContext context)
+throws Exception {
+System.err.println("SimpleDaemon: instance "+this.hashCode()+
+   " init");
+
+int port=1200;
+
+final String[] a = context.getArguments();
+
+if (a.length>0) {
+port=Integer.parseInt(a[0]);
+}
+if (a.length>1) {
+this.directory=a[1];
+} else {
+this.directory="/tmp";
+}
+
+/* Dump a message */
+System.err.println("SimpleDaemon: loading on port "+port);
+
+/* Set up this simple daemon */
+this.controller=context.getController();
+this.server=new ServerSocket(port);
+this.thread=new Thread(this);
+}
+
+@Override
+public void start() {
+/* Dump a message */
+System.err.println("SimpleDaemon: starting");
+
+/* Start */
+this.thread.start();
+}
+
+@Override
+public void stop()
+throws IOException, InterruptedException {
+/* Dump a message */
+System.err.println("SimpleDaemon: stopping");
+
+/* Close the ServerSocket. This will make our thread to terminate */
+this.stopping=true;
+this.server.close();
+
+/* Wait for the main thread to exit and dump a message */
+this.thread.join(5000);
+System.err.println("SimpleDaemon: stopped");
+}
+
+@Override
+public void destroy() {
+System.err.println("SimpleDaemon: instance "+this.hashCode()+
+   " destroy");
+}
+
+@Override
+public void run() {
+int number=0;
+
+System.err.println("SimpleDaemon: started acceptor loop");
+try {
+while(!this.stopping) {
+checkForReload();
+final Socket socket=this.server.accept();
+checkForReload();
+
+final Handler handler=new Handler(socket,this,this.controller);
+handler.setConnectionNumber(number++);
+handler.setDirectoryName(this.directory);
+new Thread(handler).start();
+}
+} catch (final IOException e) {
+/* Don't dump any error message if we are stopping. A IOException
+   is generated when the ServerSocket is closed in stop() */
+if (!this.stopping) {
+

svn commit: r1860225 [15/16] - in /tomee/deps/branches/commons-daemon: ./ src/ src/assembly/ src/changes/ src/docs/ src/main/ src/main/java/ src/main/java/org/ src/main/java/org/apache/ src/main/java/

2019-05-28 Thread jgallimore
Added: tomee/deps/branches/commons-daemon/src/samples/build.xml
URL: 
http://svn.apache.org/viewvc/tomee/deps/branches/commons-daemon/src/samples/build.xml?rev=1860225=auto
==
--- tomee/deps/branches/commons-daemon/src/samples/build.xml (added)
+++ tomee/deps/branches/commons-daemon/src/samples/build.xml Tue May 28 
09:46:53 2019
@@ -0,0 +1,133 @@
+
+
+
+
+
+  
+  
+  
+  
+
+  
+
+  
+
+  
+  
+
+  
+
+  
+
+
+  
+
+
+  
+  
+
+  
+
+  
+
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+  
+
+  
+
+
+  
+
+
+  
+  
+
+  
+
+  
+
+  
+
+
+  
+
+
+  
+  
+
+
+  
+
+  
+
+  
+
+
+  
+
+
+  
+  
+ 
+  
+  
+
+  
+
+  
+
+  
+   
+  
+
+  
+
+  
+
+
+  
+
+  
+  
+
+
+  
+
+

Added: tomee/deps/branches/commons-daemon/src/site/resources/download_daemon.cgi
URL: 
http://svn.apache.org/viewvc/tomee/deps/branches/commons-daemon/src/site/resources/download_daemon.cgi?rev=1860225=auto
==
--- tomee/deps/branches/commons-daemon/src/site/resources/download_daemon.cgi 
(added)
+++ tomee/deps/branches/commons-daemon/src/site/resources/download_daemon.cgi 
Tue May 28 09:46:53 2019
@@ -0,0 +1,4 @@
+#!/bin/sh
+# Just call the standard mirrors.cgi script. It will use download.html
+# as the input template.
+exec /www/www.apache.org/dyn/mirrors/mirrors.cgi $*
\ No newline at end of file

Propchange: 
tomee/deps/branches/commons-daemon/src/site/resources/download_daemon.cgi
--
svn:executable = *

Added: tomee/deps/branches/commons-daemon/src/site/resources/images/logo.gif
URL: 
http://svn.apache.org/viewvc/tomee/deps/branches/commons-daemon/src/site/resources/images/logo.gif?rev=1860225=auto
==
Binary file - no diff available.

Propchange: 
tomee/deps/branches/commons-daemon/src/site/resources/images/logo.gif
--
svn:mime-type = application/octet-stream

Added: tomee/deps/branches/commons-daemon/src/site/resources/images/logo.png
URL: 
http://svn.apache.org/viewvc/tomee/deps/branches/commons-daemon/src/site/resources/images/logo.png?rev=1860225=auto
==
Binary file - no diff available.

Propchange: 
tomee/deps/branches/commons-daemon/src/site/resources/images/logo.png
--
svn:mime-type = application/octet-stream

Added: tomee/deps/branches/commons-daemon/src/site/site.xml
URL: 
http://svn.apache.org/viewvc/tomee/deps/branches/commons-daemon/src/site/site.xml?rev=1860225=auto
==
--- tomee/deps/branches/commons-daemon/src/site/site.xml (added)
+++ tomee/deps/branches/commons-daemon/src/site/site.xml Tue May 28 09:46:53 
2019
@@ -0,0 +1,45 @@
+
+
+
+
+Apache Commons Daemon
+/images/logo.png
+/index.html
+
+
+
+
+
+
+
+
+
+
+
+http://wiki.apache.org/commons/Daemon"/>
+
+
+
+
+
+
+
+
+
+
+

Added: tomee/deps/branches/commons-daemon/src/site/xdoc/binaries.xml
URL: 
http://svn.apache.org/viewvc/tomee/deps/branches/commons-daemon/src/site/xdoc/binaries.xml?rev=1860225=auto
==
--- tomee/deps/branches/commons-daemon/src/site/xdoc/binaries.xml (added)
+++ tomee/deps/branches/commons-daemon/src/site/xdoc/binaries.xml Tue May 28 
09:46:53 2019
@@ -0,0 +1,62 @@
+
+
+
+
+
+ 
+  Daemon : binaries
+  Jean-Frederic 
Clere
+ 
+
+
+
+
+In the directory
+http://www.apache.org/dist/commons/daemon/binaries/;>binaries
+you will find subdirectories containing archives
+corresponding to your operating system. Only the Windows builds are provided 
as a zip file.
+
+
+
+
+
+
+The Windows archive (e.g. commons-daemon-1.1.1-bin-windows.zip) contains 2 
different executables:
+
+prunsrv.exe - service application for running applications as 
services.
+prunmgr.exe - the GUI manager application used to monitor and configure 
installed services.
+
+There is only one prunmgr.exe application for all architectures.
+The prunsrv.exe executable is available in 3 different versions 
for different architectures.
+The version in the top-level 

svn commit: r1860225 [13/16] - in /tomee/deps/branches/commons-daemon: ./ src/ src/assembly/ src/changes/ src/docs/ src/main/ src/main/java/ src/main/java/org/ src/main/java/org/apache/ src/main/java/

2019-05-28 Thread jgallimore
Added: tomee/deps/branches/commons-daemon/src/native/windows/src/registry.c
URL: 
http://svn.apache.org/viewvc/tomee/deps/branches/commons-daemon/src/native/windows/src/registry.c?rev=1860225=auto
==
--- tomee/deps/branches/commons-daemon/src/native/windows/src/registry.c (added)
+++ tomee/deps/branches/commons-daemon/src/native/windows/src/registry.c Tue 
May 28 09:46:53 2019
@@ -0,0 +1,989 @@
+/* Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include "apxwin.h"
+#include "private.h"
+
+static LPCWSTR REGSERVICE_ROOT  = L"SYSTEM\\CurrentControlSet\\Services\\";
+static LPCWSTR REGSOFTWARE_ROOT = L"SOFTWARE\\";
+static LPCWSTR REGSERVICE_START = L"Start";
+static LPCWSTR REGSERVICE_USER  = L"ObjectName";
+static LPCWSTR REGPARAMS= L"Parameters";
+static LPCWSTR REGDESCRIPTION   = L"Description";
+static LPCWSTR REGSEPARATOR = L"\\";
+static LPCWSTR REGAPACHE_ROOT   = L"Apache Software Foundation";
+/* Predefined Java keys
+ * The code below assumes the JRE and JDK arrays are the same length
+ */
+static LPCWSTR JRE_REGKEYS[] = {
+L"SOFTWARE\\JavaSoft\\JRE\\",   /* Oracle Java 9 (and 
hopefully later) */
+L"SOFTWARE\\JavaSoft\\Java Runtime Environment\\",  /* Oracle Java 8 (and 
older) */
+L"SOFTWARE\\IBM\\Java2 Runtime Environment\\",  /* IBM */
+NULL
+};
+static LPCWSTR JDK_REGKEYS[] = {
+L"SOFTWARE\\JavaSoft\\JDK\\",   /* Oracle Java 9 and 
(and hopefully later) */
+L"SOFTWARE\\JavaSoft\\Java Development Kit\\",  /* Oracle Java 8 (and 
older) */
+L"SOFTWARE\\IBM\\Java2 Development Kit\\",  /* IBM */
+NULL
+};
+static LPCWSTR JAVA_CURRENT = L"CurrentVersion";
+static LPCWSTR JAVA_RUNTIME = L"RuntimeLib";
+static LPCWSTR JAVA_HOME= L"JAVA_HOME";
+static LPCWSTR JAVAHOME = L"JavaHome";
+static LPCWSTR CONTROL_REGKEY   = L"SYSTEM\\CurrentControlSet\\Control";
+static LPCWSTR REGTIMEOUT   = L"WaitToKillServiceTimeout";
+
+#define REG_CAN_CREATE(r)   \
+((r)->samOptions & KEY_CREATE_SUB_KEY)
+
+#define REG_CAN_WRITE(r)   \
+((r)->samOptions & KEY_SET_VALUE)
+
+
+#define REG_GET_KEY(r, w, k)\
+APXMACRO_BEGIN  \
+switch(w) { \
+case APXREG_SOFTWARE:   k = (r)->hRootKey;  break;  \
+case APXREG_PARAMSOFTWARE:  k = (r)->hRparamKey;break;  \
+case APXREG_SERVICE:k = (r)->hServKey;  break;  \
+case APXREG_PARAMSERVICE:   k = (r)->hSparamKey;break;  \
+case APXREG_USER:   k = (r)->hUserKey;  break;  \
+case APXREG_PARAMUSER:  k = (r)->hUparamKey;break;  \
+default: k = NULL; break;   \
+} APXMACRO_END
+
+
+typedef struct APXREGISTRY  APXREGISTRY;
+typedef APXREGISTRY*LPAPXREGISTRY;
+typedef struct APXREGSUBKEY APXREGSUBKEY;
+
+struct APXREGSUBKEY {
+APXHANDLE   hRegistry;
+HKEYhKey;
+LPCTSTR syKeyName;
+TAILQ_ENTRY(APXREGSUBKEY);
+};
+
+struct APXREGISTRY {
+HKEYhRootKey;   /* root key */
+HKEYhServKey;   /* service key */
+HKEYhUserKey;   /* user key */
+HKEYhCurrKey;   /* Current opened key */
+LPVOID  pCurrVal;   /* Current value, overwitten on a next call */
+HKEYhRparamKey; /* root\\Parameters */
+HKEYhSparamKey; /* service\\Parameters */
+HKEYhUparamKey; /* service\\Parameters */
+REGSAM  samOptions;
+/** list enty for opened subkeys  */
+TAILQ_HEAD(_lSubkeys, APXREGSUBKEY) lSubkeys;
+
+};
+
+#define SAFE_CLOSE_KEY(k) \
+if ((k) != NULL && (k) != INVALID_HANDLE_VALUE) {   \
+RegCloseKey((k));   \
+(k) = NULL; \
+}
+
+static BOOL __apxRegistryCallback(APXHANDLE hObject, UINT uMsg,
+ WPARAM wParam, LPARAM lParam)
+{
+LPAPXREGISTRY lpReg;
+
+lpReg = APXHANDLE_DATA(hObject);
+switch (uMsg) {
+case WM_CLOSE:
+SAFE_CLOSE_KEY(lpReg->hCurrKey);
+SAFE_CLOSE_KEY(lpReg->hRparamKey);
+   

svn commit: r1860225 [8/16] - in /tomee/deps/branches/commons-daemon: ./ src/ src/assembly/ src/changes/ src/docs/ src/main/ src/main/java/ src/main/java/org/ src/main/java/org/apache/ src/main/java/o

2019-05-28 Thread jgallimore
Added: 
tomee/deps/branches/commons-daemon/src/native/windows/apps/prunmgr/prunmgr.rc
URL: 
http://svn.apache.org/viewvc/tomee/deps/branches/commons-daemon/src/native/windows/apps/prunmgr/prunmgr.rc?rev=1860225=auto
==
--- 
tomee/deps/branches/commons-daemon/src/native/windows/apps/prunmgr/prunmgr.rc 
(added)
+++ 
tomee/deps/branches/commons-daemon/src/native/windows/apps/prunmgr/prunmgr.rc 
Tue May 28 09:46:53 2019
@@ -0,0 +1,297 @@
+/* Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include "apxwin.h"
+#include "prunmgr.h"
+
+#define RSTR_PSM"Apache Commons Daemon Service Manager"
+#define RSTR_SCMATS "Service Manager is attempting to "
+
+IDI_MAINICON ICON   "../../resources/procrunw.ico"
+IDI_ICONSTOP ICON   "../../resources/procruns.ico"
+IDI_ICONRUN  ICON   "../../resources/procrunr.ico"
+IDR_LICENSE  RTF"../../resources/license.rtf"
+BMP_COMMONS  BITMAP "../../resources/commons.bmp"
+
+CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "prunmgr.manifest"
+
+IDD_ABOUTBOX DIALOGEX 0, 0, 337, 187
+STYLE DS_SETFONT | DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
+CAPTION "Apache Service Manager"
+FONT 8, "Microsoft Sans Serif", 400, 0, 0x0
+BEGIN
+DEFPUSHBUTTON   "",IDOK,285,150,50,14
+CONTROL "",IDC_LICENSE,"RichEdit20A",ES_MULTILINE |
+ES_READONLY | WS_BORDER | WS_VSCROLL,0,31,335,115
+CONTROL 
"BMP_COMMONS",IDC_STATIC,"Static",SS_BITMAP|0x0040L,0,0,337,30
+LTEXT   " ",IDC_ABOUTAPP,2,150,270,12
+LTEXT   "Copyright (c) 2000-2017 The Apache Software 
Foundation.",IDC_STATIC,2,160,270,12
+LTEXT   "http://commons.apache.org",IDC_STATIC,2,170,270,12
+PUSHBUTTON  " Info",IAB_SYSINF,285,170,50,14
+END
+
+IDD_PROGRESS DIALOGEX 0, 0, 322, 92
+STYLE DS_SYSMODAL | DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP |
+WS_CAPTION | WS_SYSMENU
+EXSTYLE WS_EX_TOPMOST
+CAPTION "Apache Commons Daemon Service Manager"
+FONT 8, "MS Shell Dlg", 400, 0, 0x1
+BEGIN
+DEFPUSHBUTTON   "Cl",IDOK,261,73,50,14
+PUSHBUTTON  "",IDCANCEL,202,73,50,14
+LTEXT   " ",
+IDDP_HEAD,40,4,250,8
+LTEXT   " ",IDDP_TEXT,40,15,250,44
+CONTROL "",IDDP_PROGRESS,"msctls_progress32",WS_BORDER,10,50,302,
+14
+ICONIDI_MAINICON,IDC_STATIC,10,4,20,20,0,WS_EX_TRANSPARENT
+END
+
+IDD_SELUSER DIALOGEX 0, 0, 410, 201
+STYLE DS_SETFONT | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU |
+WS_THICKFRAME
+EXSTYLE WS_EX_CONTEXTHELP
+CAPTION "Select User"
+FONT 8, "MS Shell Dlg", 400, 0, 0x1
+BEGIN
+LTEXT   "Name:",IDSU_SELNAME,10,183,22,8
+EDITTEXTIDSU_SELECTED,48,200,213,14,ES_AUTOHSCROLL
+DEFPUSHBUTTON   "OK",IDOK,292,180,50,14,WS_DISABLED
+PUSHBUTTON  "Cancel",IDCANCEL,348,180,50,14
+LTEXT   "Look In:",IDC_STATIC,10,9,27,8
+CONTROL "",IDSU_LIST,"SysListView32",LVS_REPORT | LVS_SINGLESEL |
+LVS_SORTASCENDING | LVS_SHAREIMAGELISTS | LVS_ALIGNLEFT | 
WS_BORDER |
+WS_TABSTOP,0,26,410,149,WS_EX_CLIENTEDGE
+CONTROL "",IDSU_COMBO,"ComboBoxEx32",CBS_DROPDOWNLIST |
+WS_VSCROLL | WS_TABSTOP,47,6,260,80
+END
+
+IDD_PROPPAGE_SGENERAL DIALOGEX 0, 0, 260, 243
+STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD
+FONT 8, "MS Shell Dlg", 0, 0, 0x0
+BEGIN
+LTEXT   "Service Name: ",IDC_STATIC,10,8,52,8
+LTEXT   "  ",IDC_PPSGNAME,70,8,240,8
+LTEXT   "Display : ",IDC_STATIC,10,23,50,8
+EDITTEXTIDC_PPSGDISP,70,22,180,12,ES_AUTOHSCROLL
+LTEXT   ": ",IDC_STATIC,10,41,43,8
+EDITTEXTIDC_PPSGDESC,70,40,180,12,ES_AUTOHSCROLL
+LTEXT   "Pat to executable:",IDC_STATIC,10,63,66,8
+EDITTEXTIDC_PPSGDEXE,10,75,240,12,ES_AUTOHSCROLL | WS_DISABLED
+LTEXT   "Startup typ:",IDC_STATIC,10,94,46,8
+COMBOBOXIDC_PPSGCMBST,70,93,180,80,CBS_DROPDOWNLIST | WS_VSCROLL |
+WS_TABSTOP
+

svn commit: r1860225 [1/16] - in /tomee/deps/branches/commons-daemon: ./ src/ src/assembly/ src/changes/ src/docs/ src/main/ src/main/java/ src/main/java/org/ src/main/java/org/apache/ src/main/java/o

2019-05-28 Thread jgallimore
Author: jgallimore
Date: Tue May 28 09:46:53 2019
New Revision: 1860225

URL: http://svn.apache.org/viewvc?rev=1860225=rev
Log:
Adding commons-daemon to keep record of binaries added

Added:
tomee/deps/branches/commons-daemon/
tomee/deps/branches/commons-daemon/.gitignore
tomee/deps/branches/commons-daemon/.travis.yml
tomee/deps/branches/commons-daemon/CONTRIBUTING.md
tomee/deps/branches/commons-daemon/HOWTO-RELEASE.txt
tomee/deps/branches/commons-daemon/LICENSE.txt
tomee/deps/branches/commons-daemon/NOTICE.txt
tomee/deps/branches/commons-daemon/PROPOSAL.html
tomee/deps/branches/commons-daemon/README
tomee/deps/branches/commons-daemon/README.md
tomee/deps/branches/commons-daemon/RELEASE-NOTES.txt
tomee/deps/branches/commons-daemon/pom.xml
tomee/deps/branches/commons-daemon/src/
tomee/deps/branches/commons-daemon/src/assembly/
tomee/deps/branches/commons-daemon/src/assembly/bin.xml
tomee/deps/branches/commons-daemon/src/assembly/native-src.xml
tomee/deps/branches/commons-daemon/src/assembly/src.xml
tomee/deps/branches/commons-daemon/src/assembly/win.xml
tomee/deps/branches/commons-daemon/src/changes/
tomee/deps/branches/commons-daemon/src/changes/changes.xml
tomee/deps/branches/commons-daemon/src/docs/
tomee/deps/branches/commons-daemon/src/docs/daemon.css
tomee/deps/branches/commons-daemon/src/docs/daemon.html
tomee/deps/branches/commons-daemon/src/main/
tomee/deps/branches/commons-daemon/src/main/java/
tomee/deps/branches/commons-daemon/src/main/java/org/
tomee/deps/branches/commons-daemon/src/main/java/org/apache/
tomee/deps/branches/commons-daemon/src/main/java/org/apache/commons/
tomee/deps/branches/commons-daemon/src/main/java/org/apache/commons/daemon/

tomee/deps/branches/commons-daemon/src/main/java/org/apache/commons/daemon/Daemon.java

tomee/deps/branches/commons-daemon/src/main/java/org/apache/commons/daemon/DaemonContext.java

tomee/deps/branches/commons-daemon/src/main/java/org/apache/commons/daemon/DaemonController.java

tomee/deps/branches/commons-daemon/src/main/java/org/apache/commons/daemon/DaemonInitException.java

tomee/deps/branches/commons-daemon/src/main/java/org/apache/commons/daemon/DaemonListener.java

tomee/deps/branches/commons-daemon/src/main/java/org/apache/commons/daemon/DaemonPermission.java

tomee/deps/branches/commons-daemon/src/main/java/org/apache/commons/daemon/DaemonUserSignal.java

tomee/deps/branches/commons-daemon/src/main/java/org/apache/commons/daemon/support/

tomee/deps/branches/commons-daemon/src/main/java/org/apache/commons/daemon/support/DaemonConfiguration.java

tomee/deps/branches/commons-daemon/src/main/java/org/apache/commons/daemon/support/DaemonLoader.java

tomee/deps/branches/commons-daemon/src/main/java/org/apache/commons/daemon/support/DaemonWrapper.java
tomee/deps/branches/commons-daemon/src/media/
tomee/deps/branches/commons-daemon/src/media/logo.xcf   (with props)
tomee/deps/branches/commons-daemon/src/native/
tomee/deps/branches/commons-daemon/src/native/unix/
tomee/deps/branches/commons-daemon/src/native/unix/.gitignore
tomee/deps/branches/commons-daemon/src/native/unix/INSTALL.txt
tomee/deps/branches/commons-daemon/src/native/unix/Makedefs.in
tomee/deps/branches/commons-daemon/src/native/unix/Makefile.in
tomee/deps/branches/commons-daemon/src/native/unix/configure.in
tomee/deps/branches/commons-daemon/src/native/unix/man/
tomee/deps/branches/commons-daemon/src/native/unix/man/README
tomee/deps/branches/commons-daemon/src/native/unix/man/fetch.sh
tomee/deps/branches/commons-daemon/src/native/unix/man/jsvc.1.xml
tomee/deps/branches/commons-daemon/src/native/unix/native/
tomee/deps/branches/commons-daemon/src/native/unix/native/.gitignore
tomee/deps/branches/commons-daemon/src/native/unix/native/.indent.pro
tomee/deps/branches/commons-daemon/src/native/unix/native/Makefile.in
tomee/deps/branches/commons-daemon/src/native/unix/native/arguments.c
tomee/deps/branches/commons-daemon/src/native/unix/native/arguments.h
tomee/deps/branches/commons-daemon/src/native/unix/native/debug.c
tomee/deps/branches/commons-daemon/src/native/unix/native/debug.h
tomee/deps/branches/commons-daemon/src/native/unix/native/dso-dlfcn.c
tomee/deps/branches/commons-daemon/src/native/unix/native/dso-dyld.c
tomee/deps/branches/commons-daemon/src/native/unix/native/dso.h
tomee/deps/branches/commons-daemon/src/native/unix/native/help.c
tomee/deps/branches/commons-daemon/src/native/unix/native/help.h
tomee/deps/branches/commons-daemon/src/native/unix/native/home.c
tomee/deps/branches/commons-daemon/src/native/unix/native/home.h
tomee/deps/branches/commons-daemon/src/native/unix/native/java.c
tomee/deps/branches/commons-daemon/src/native/unix/native/java.h

svn commit: r1860225 [3/16] - in /tomee/deps/branches/commons-daemon: ./ src/ src/assembly/ src/changes/ src/docs/ src/main/ src/main/java/ src/main/java/org/ src/main/java/org/apache/ src/main/java/o

2019-05-28 Thread jgallimore
Added: tomee/deps/branches/commons-daemon/src/native/unix/configure.in
URL: 
http://svn.apache.org/viewvc/tomee/deps/branches/commons-daemon/src/native/unix/configure.in?rev=1860225=auto
==
--- tomee/deps/branches/commons-daemon/src/native/unix/configure.in (added)
+++ tomee/deps/branches/commons-daemon/src/native/unix/configure.in Tue May 28 
09:46:53 2019
@@ -0,0 +1,145 @@
+dnl
+dnl Licensed to the Apache Software Foundation (ASF) under one or more
+dnl contributor license agreements.  See the NOTICE file distributed with
+dnl this work for additional information regarding copyright ownership.
+dnl The ASF licenses this file to You under the Apache License, Version 2.0
+dnl (the "License"); you may not use this file except in compliance with
+dnl the License.  You may obtain a copy of the License at
+dnl
+dnl http://www.apache.org/licenses/LICENSE-2.0
+dnl
+dnl Unless required by applicable law or agreed to in writing, software
+dnl distributed under the License is distributed on an "AS IS" BASIS,
+dnl WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+dnl See the License for the specific language governing permissions and
+dnl limitations under the License.
+dnl
+
+dnl -
+dnl Author  Pier Fumagalli 
+dnl Version $Id$
+dnl -
+
+dnl -
+dnl Initialize AutoConf
+dnl -
+
+AC_PREREQ(2.53)
+
+sinclude(./support/apfunctions.m4)dnl
+sinclude(./support/apjava.m4)dnl
+sinclude(./support/apsupport.m4)dnl
+AC_INIT(configure.in)
+AC_CONFIG_AUX_DIR(./support)
+
+dnl Generate ./config.nice for reproducing runs of configure
+dnl
+AP_CONFIG_NICE(config.nice)
+
+dnl -
+dnl Check current host (forget about cross compilation) and validate it
+dnl against the cache (fail if the cache differs)
+dnl -
+AP_MSG_HEADER([Current host])
+AC_CANONICAL_HOST()
+AP_CANONICAL_HOST_CHECK()
+
+dnl -
+dnl Check C environment
+dnl -
+AP_MSG_HEADER([C-Language compilation tools])
+AC_PROG_CC()
+AC_CHECK_TOOL(RANLIB, ranlib, :)
+AC_CHECK_TOOL(STRIP, strip, :)
+
+dnl -
+dnl Check if this host is supported
+dnl -
+AP_MSG_HEADER([Host support])
+AP_SUPPORTED_HOST()
+if test "$supported_os" = "darwin"
+then
+  if test -z "$JAVA_HOME" -a -x /usr/libexec/java_home
+  then
+JAVA_HOME="`/usr/libexec/java_home 2>dev/null`"
+  fi
+  if test -z "$JAVA_HOME" -a -d 
/System/Library/Frameworks/JavaVM.framework/Home; then
+JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home
+  fi
+
+  _prevdir=`/bin/pwd`
+  if test -n "$JAVA_HOME" -a -d "$JAVA_HOME/include"; then
+cd "$JAVA_HOME/include"
+  elif test -n "$JAVA_HOME" -a -d "$JAVA_HOME/../Headers"; then
+cd "$JAVA_HOME/../Headers"
+  else
+cd /System/Library/Frameworks/JavaVM.framework/Headers
+  fi
+  INCLUDES="$INCLUDES -I`/bin/pwd -P`"
+  cd $_prevdir
+  unset _prevdir
+fi
+
+dnl -
+dnl Check JAVA environment
+dnl -
+AP_MSG_HEADER([Java compilation tools])
+AP_FIND_JAVA()
+dnl MAC OS X does not used include but Headers
+if test -d $JAVA_HOME/Headers
+then
+  JAVA_INC=Headers
+else
+  JAVA_INC=include
+fi
+AP_FIND_JAVA_OS()
+if test -z "${JAVA_OS}"
+then
+  AC_MSG_RESULT([jni_md.h found in $JAVA_HOME/$JAVA_INC])
+  INCLUDES="$INCLUDES -I$JAVA_HOME/include -I$JAVA_HOME/$JAVA_INC"
+else
+  INCLUDES="$INCLUDES -I$JAVA_HOME/include -I$JAVA_HOME/include/$supported_os"
+fi
+
+dnl -
+dnl Add gcc specific CFLAGS.
+dnl -
+if test "$GCC" = "yes"
+then
+   CFLAGS="$CFLAGS -Wall -Wstrict-prototypes"
+   AC_MSG_RESULT([gcc flags added])
+fi
+dnl -
+dnl Add gcc specific CFLAGS.
+dnl -
+if test -z "$LDCMD"
+then
+   LDCMD="$CC"
+fi
+AC_SUBST(LDCMD)
+if test "$supported_os" = "linux"
+then
+AC_CHECK_HEADER([sys/capability.h],
+[CFLAGS="$CFLAGS -DHAVE_LIBCAP"],
+AC_MSG_WARN([cannot find headers for 

svn commit: r1860225 [2/16] - in /tomee/deps/branches/commons-daemon: ./ src/ src/assembly/ src/changes/ src/docs/ src/main/ src/main/java/ src/main/java/org/ src/main/java/org/apache/ src/main/java/o

2019-05-28 Thread jgallimore
Added: tomee/deps/branches/commons-daemon/src/docs/daemon.html
URL: 
http://svn.apache.org/viewvc/tomee/deps/branches/commons-daemon/src/docs/daemon.html?rev=1860225=auto
==
--- tomee/deps/branches/commons-daemon/src/docs/daemon.html (added)
+++ tomee/deps/branches/commons-daemon/src/docs/daemon.html Tue May 28 09:46:53 
2019
@@ -0,0 +1,277 @@
+
+
+
+  
+Apache Daemon Specification - Version 1.0
+
+
+  
+  
+
+Apache Daemon Specification
+Version 1.0
+  
+
+  Abstract:
+  This document specifies the behavior and life cycle of an abstract
+  Java daemon, in relation to its native container. In addition
+  it defines a mechanism for controlling a daemon, and its interaction
+  with the native OS process in which its existance is confined.
+
+  
+Index
+
+  Introduction
+  Scope of this specification
+  The Daemon interface and its life cycle
+  
+Instantiation
+Initialization
+Startup
+Stop
+Destruction
+  
+
+
+Introduction
+
+  Since 1994, the Java programming language evolved and became a
+  valid tool to develop, other than applets and client applications,
+  reliable and performant server applications. The major disadvantage of
+  the Java platform is that still today the only portable way to
+  start a Java applcation relies on a single point of entry: the
+  public static void main(String[])
+  method.
+
+
+  Having a single-point of entry is a valid solution for client
+  applications, where interactively a user can command to the application
+  to quit (which can terminate the Virtual Machine process at calling the
+  System.exit(int)
+  method), but in those cases where the application is not interactive
+  (server applications) there is currently no portable way to notify
+  the Virtual Machine of its imminent shutdown.
+
+
+  A server application written in Java might have to perform several tasks
+  before being able to shutdown the Virtual Machine process. For example
+  in the case of a Servlet container, before the VM process is shut down,
+  sessions might need to be serialized to disk, and web applications need
+  to be destroyed.
+
+
+  One common solution to this problem is to create (for example) a
+  ServerSocket and wait for a particular
+  message to be issued. When the message is received, all operations
+  required to shut down the server applications are performed and at the
+  end the System.exit method is called
+  to terminate the Virtual Machine process. This method, however, implies
+  several disadvantages and risks: for example in case of a system-wide
+  shutdown, it might happen that the Virtual Machine process will be shut
+  down directly by the operating system, without notifying the running
+  server application. Or, for example, if an attacker finds out what is
+  the required message to send to the server, and discovers a way to send
+  this message to the running server application, he can easily interrupt
+  the operation of a server, bypassing all the security restrictions
+  implemented in the operating system.
+
+
+  Most multi-user operating systems already have a way in which server
+  applications are started and stopped, under Unix based operating systems
+  non interactive server applications are called daemons and are
+  controlled by the operating system with a set of specified
+  signals. Under Windows such programs are called daemons
+  and are controlled by appropriate calls to specific functions defined in
+  the application binary, but although the ways of dealing with the problem
+  are different, in both cases the operating system can notify a server
+  application of its imminent shutdown, and the application has the
+  ability to perform certain tasks before its process of execution is
+  destroyed.
+
+
+Scope of this specification
+
+  The scope of this specification is to define an API in line with the
+  current Java Platform APIs to support an alternative invocation
+  mechanism which could be used instead of the above mentioned
+  public static void main(String[])
+  method. This specification cover the behavior and life cycle of what
+  we define as Java  daemons, or, in other words,
+  non interactive Java applications.
+
+
+  This specification does not cover how the container of a Java
+  daemon must be implemented, or how to build a native liaison between
+  the operating system and the Daemon
+  interface, but defines the relation between the an operating system
+  process and the Daemon implementation
+  life cycle. It should be trivial for implementors to 

svn commit: r1860225 [5/16] - in /tomee/deps/branches/commons-daemon: ./ src/ src/assembly/ src/changes/ src/docs/ src/main/ src/main/java/ src/main/java/org/ src/main/java/org/apache/ src/main/java/o

2019-05-28 Thread jgallimore
Added: tomee/deps/branches/commons-daemon/src/native/unix/native/version.h
URL: 
http://svn.apache.org/viewvc/tomee/deps/branches/commons-daemon/src/native/unix/native/version.h?rev=1860225=auto
==
--- tomee/deps/branches/commons-daemon/src/native/unix/native/version.h (added)
+++ tomee/deps/branches/commons-daemon/src/native/unix/native/version.h Tue May 
28 09:46:53 2019
@@ -0,0 +1,63 @@
+/* Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef __VERSION_H__
+#define __VERSION_H__
+
+/**
+ * Major API changes that could cause compatibility problems for older
+ * programs such as structure size changes.  No binary compatibility is
+ * possible across a change in the major version.
+ */
+#define JSVC_MAJOR_VERSION  1
+
+/**
+ * Minor API changes that do not cause binary compatibility problems.
+ * Should be reset to 0 when upgrading JSVC_MAJOR_VERSION
+ */
+#define JSVC_MINOR_VERSION  1
+
+/** patch level */
+#define JSVC_PATCH_VERSION  1
+
+/**
+ *  This symbol is defined for internal, "development" copies of JSVC.
+ *  This symbol will be #undef'd for releases.
+ */
+#define JSVC_IS_DEV_VERSION 1
+
+/** Properly quote a value as a string in the C preprocessor */
+#define JSVC_STRINGIFY(n) JSVC_STRINGIFY_HELPER(n)
+/** Helper macro for JSVC_STRINGIFY */
+#define JSVC_STRINGIFY_HELPER(n) #n
+
+
+/** The formatted string of APU's version */
+#define JSVC_VERSION_STRING \
+ JSVC_STRINGIFY(JSVC_MAJOR_VERSION) "."   \
+ JSVC_STRINGIFY(JSVC_MINOR_VERSION) "."   \
+ JSVC_STRINGIFY(JSVC_PATCH_VERSION)   \
+ JSVC_IS_DEV_STRING
+
+/** Internal: string form of the "is dev" flag */
+#if JSVC_IS_DEV_VERSION
+#define JSVC_IS_DEV_STRING "-dev"
+#else
+#define JSVC_IS_DEV_STRING ""
+#endif
+
+#endif /* __VERSION_H__ */
+

Added: tomee/deps/branches/commons-daemon/src/native/unix/support/apfunctions.m4
URL: 
http://svn.apache.org/viewvc/tomee/deps/branches/commons-daemon/src/native/unix/support/apfunctions.m4?rev=1860225=auto
==
--- tomee/deps/branches/commons-daemon/src/native/unix/support/apfunctions.m4 
(added)
+++ tomee/deps/branches/commons-daemon/src/native/unix/support/apfunctions.m4 
Tue May 28 09:46:53 2019
@@ -0,0 +1,105 @@
+dnl
+dnl Licensed to the Apache Software Foundation (ASF) under one or more
+dnl contributor license agreements.  See the NOTICE file distributed with
+dnl this work for additional information regarding copyright ownership.
+dnl The ASF licenses this file to You under the Apache License, Version 2.0
+dnl (the "License"); you may not use this file except in compliance with
+dnl the License.  You may obtain a copy of the License at
+dnl
+dnl http://www.apache.org/licenses/LICENSE-2.0
+dnl
+dnl Unless required by applicable law or agreed to in writing, software
+dnl distributed under the License is distributed on an "AS IS" BASIS,
+dnl WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+dnl See the License for the specific language governing permissions and
+dnl limitations under the License.
+dnl
+
+AC_DEFUN(AP_MSG_HEADER,[
+  printf "*** %s ***\n" "$1" 1>&2
+  AC_PROVIDE([$0])
+])
+
+AC_DEFUN(AP_CANONICAL_HOST_CHECK,[
+  AC_MSG_CHECKING([cached host system type])
+  if { test x"${ac_cv_host_system_type+set}" = x"set"  &&
+   test x"$ac_cv_host_system_type" != x"$host" ; }
+  then
+AC_MSG_RESULT([$ac_cv_host_system_type])
+AC_MSG_ERROR([remove the \"$cache_file\" file and re-run configure])
+  else
+AC_MSG_RESULT(ok)
+ac_cv_host_system_type="$host"
+  fi
+  AC_PROVIDE([$0])
+])
+
+dnl Iteratively interpolate the contents of the second argument
+dnl until interpolation offers no new result. Then assign the
+dnl final result to $1.
+dnl
+dnl Example:
+dnl
+dnl foo=1
+dnl bar='${foo}/2'
+dnl baz='${bar}/3'
+dnl AP_EXPAND_VAR(fraz, $baz)
+dnl   $fraz is now "1/2/3"
+dnl
+AC_DEFUN([AP_EXPAND_VAR], [
+ap_last=
+ap_cur="$2"
+while test "x${ap_cur}" != "x${ap_last}";
+do
+  ap_last="${ap_cur}"
+  ap_cur=`eval "echo ${ap_cur}"`
+done
+$1="${ap_cur}"
+])
+
+dnl
+dnl AP_CONFIG_NICE(filename)
+dnl
+dnl Saves a snapshot of 

[tomee] branch master updated (73d9a58 -> 9065efe)

2019-05-28 Thread jgallimore
This is an automated email from the ASF dual-hosted git repository.

jgallimore pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/tomee.git.


from 73d9a58  Fix test cases
 new 7ad9f2a  Add README.pt.adoc Translate to portuguese: examples cdi 
basic TOMEE 2516
 new 1a4ed51  Translate to portuguese: examples cdi basic TOMEE-2516
 new 9065efe  Merge pull request #469 from 
aasampaio3006/portuguese-examples-cdi-basic

The 12477 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 examples/cdi-basic/{README.adoc => README_pt.adoc} | 55 ++
 1 file changed, 25 insertions(+), 30 deletions(-)
 copy examples/cdi-basic/{README.adoc => README_pt.adoc} (74%)



[jira] [Commented] (TOMEE-2419) Use HTTPS on http://tomee.apache.org

2019-05-28 Thread Richard Zowalla (JIRA)


[ 
https://issues.apache.org/jira/browse/TOMEE-2419?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16849468#comment-16849468
 ] 

Richard Zowalla commented on TOMEE-2419:


[https://tomee.apache.org/] is reachable via a valid certificate but there is 
no permanent redirect from plain http to https. I think this would be a benefit.

Can we change this easily, [~dblevins] ?

> Use HTTPS on http://tomee.apache.org
> 
>
> Key: TOMEE-2419
> URL: https://issues.apache.org/jira/browse/TOMEE-2419
> Project: TomEE
>  Issue Type: Bug
>  Components: Website
>Affects Versions: 8.0.0-M1
> Environment: http://tomee.apache.org
>Reporter: Pavel Smajda
>Priority: Critical
> Attachments: use_https.png
>
>
> Certificate needs to be added as soon as possible. 



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


[jira] [Updated] (TOMEE-2530) Example - JAX-RS JSON Provider With Jettison

2019-05-28 Thread ASF GitHub Bot (JIRA)


 [ 
https://issues.apache.org/jira/browse/TOMEE-2530?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated TOMEE-2530:
--
Labels: examples pull-request-available  (was: examples)

> Example - JAX-RS JSON Provider With Jettison
> 
>
> Key: TOMEE-2530
> URL: https://issues.apache.org/jira/browse/TOMEE-2530
> Project: TomEE
>  Issue Type: Documentation
>Affects Versions: 8.0.0-M2
>Reporter: Cesar Hernandez
>Assignee: Cesar Hernandez
>Priority: Major
>  Labels: examples, pull-request-available
> Fix For: 8.0.0-M3
>
>
> Example on how to configure on TomEE 7.x or later the legacy JSON provider, 
> Jettison, used by TomEE 1.7.x .
>  
> This scenario is useful when REST applications are migrated from TomEE 1.7.x 
> into TomEE 7.x or later and you want to keep the lecacy JSON output from 
> Jettison 1.3.7.



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