From 678be91c03161bffb257be91a9e11b0bc085653e Mon Sep 17 00:00:00 2001 From: Ger-Jan te Dorsthorst Date: Thu, 12 Oct 2023 17:28:45 +0200 Subject: [PATCH 1/3] [ELY-2656] Migrate ws-client-integration example to Jakarta EE 10 --- ws-client-integration/README.md | 2 +- ws-client-integration/client/pom.xml | 56 +++++++++++++++++-- .../resources/META-INF/wildfly-config.xml | 10 ++-- .../client/src/test/java/Client.java | 4 +- ws-client-integration/server/pom.xml | 46 ++++++++++----- .../ws/client/example/HelloService.java | 4 +- .../ws/client/example/HelloServiceImpl.java | 2 +- 7 files changed, 96 insertions(+), 28 deletions(-) diff --git a/ws-client-integration/README.md b/ws-client-integration/README.md index 4239d898..1682cf43 100644 --- a/ws-client-integration/README.md +++ b/ws-client-integration/README.md @@ -10,7 +10,7 @@ We have added new user jane to the security domain and set HTTP BASIC authentication for application security domain. Please see content of configure.cli for more information. -* Configure mutual SSL on your running wildfly instance like here: [two-way SSL in Wildfly](https://docs.jboss.org/author/display/WFLY/Using+the+Elytron+Subsystem#UsingtheElytronSubsystem-EnableTwowaySSL%252FTLSinWildFlyforApplications) +* Configure mutual SSL on your running wildfly instance like here: [two-way SSL in Wildfly](https://docs.wildfly.org/29/WildFly_Elytron_Security.html#enable-two-way-ssltls-in-wildfly-for-applications) * Configure path to client's keystore and truststore in this project's wildfly-config.xml accordingly diff --git a/ws-client-integration/client/pom.xml b/ws-client-integration/client/pom.xml index 9809238c..dff68a4b 100644 --- a/ws-client-integration/client/pom.xml +++ b/ws-client-integration/client/pom.xml @@ -7,16 +7,36 @@ 1.0-SNAPSHOT client jar + - 1.8 - 1.8 + 11 + UTF-8 + 3.0.3.Final + 29.0.1.Final + 4.13.2 + + + + + org.glassfish.jaxb + jaxb-runtime + 2.3.6 + + + + + + org.wildfly.security.jakarta + jakarta-client-webservices + ${version.jakarta-client-webservices} + org.wildfly wildfly-jaxws-client-bom - 19.0.0.Beta1 + ${version.wildfly-jaxws-client-bom} pom @@ -24,13 +44,41 @@ server 1.0-SNAPSHOT compile + classes junit junit - 4.13.1 + ${version.junit} compile + + + org.ehcache + ehcache + 3.10.0 + + + + jakarta.xml.bind + jakarta.xml.bind-api + 3.0.0 + + + + com.sun.xml.bind + jaxb-impl + 3.0.0 + runtime + + + + + shibboleth + https://build.shibboleth.net/nexus/content/repositories/releases/ + + + diff --git a/ws-client-integration/client/src/main/resources/META-INF/wildfly-config.xml b/ws-client-integration/client/src/main/resources/META-INF/wildfly-config.xml index 4fe457c8..4820f5b7 100644 --- a/ws-client-integration/client/src/main/resources/META-INF/wildfly-config.xml +++ b/ws-client-integration/client/src/main/resources/META-INF/wildfly-config.xml @@ -1,17 +1,17 @@ - + - - + + - - + + diff --git a/ws-client-integration/client/src/test/java/Client.java b/ws-client-integration/client/src/test/java/Client.java index 456cec4f..1b2bcc07 100644 --- a/ws-client-integration/client/src/test/java/Client.java +++ b/ws-client-integration/client/src/test/java/Client.java @@ -1,6 +1,6 @@ import javax.xml.namespace.QName; -import javax.xml.ws.BindingProvider; -import javax.xml.ws.Service; +import jakarta.xml.ws.BindingProvider; +import jakarta.xml.ws.Service; import org.wildfly.elytron.ws.client.example.HelloService; import org.jboss.wsf.stack.cxf.client.configuration.CXFClientConfigurer; diff --git a/ws-client-integration/server/pom.xml b/ws-client-integration/server/pom.xml index 99ce361a..e6f277d4 100644 --- a/ws-client-integration/server/pom.xml +++ b/ws-client-integration/server/pom.xml @@ -9,42 +9,62 @@ war - 1.8 - 1.8 + 11 + UTF-8 + 2.2.2.Final + 29.0.1.Final + 3.0.0 + 3.1.0 + 4.2.0.Final + + + + org.wildfly.bom + wildfly-ee-with-tools + ${version.wildfly-ee-with-tools} + pom + import + + + + org.wildfly.security wildfly-elytron - 1.11.0.Final + ${version.wildfly-elytron} - javax.jws - javax.jws-api - 1.1 + jakarta.jws + jakarta.jws-api + ${version.jakarta.jws-api} + provided - org.jboss.spec.javax.servlet - jboss-servlet-api_3.1_spec - 1.0.2.Final + jakarta.servlet + jakarta.servlet-api + provided + ws-client-integration - + org.wildfly.plugins wildfly-maven-plugin - 2.0.0.Final + ${version.wildfly-maven-plugin} - + maven-war-plugin - 3.2.3 + ${version.maven-war-plugin} + false true diff --git a/ws-client-integration/server/src/main/java/org/wildfly/elytron/ws/client/example/HelloService.java b/ws-client-integration/server/src/main/java/org/wildfly/elytron/ws/client/example/HelloService.java index cd66e03c..20c001ff 100644 --- a/ws-client-integration/server/src/main/java/org/wildfly/elytron/ws/client/example/HelloService.java +++ b/ws-client-integration/server/src/main/java/org/wildfly/elytron/ws/client/example/HelloService.java @@ -1,7 +1,7 @@ package org.wildfly.elytron.ws.client.example; -import javax.jws.WebMethod; -import javax.jws.WebService; +import jakarta.jws.WebMethod; +import jakarta.jws.WebService; import java.io.IOException; /** diff --git a/ws-client-integration/server/src/main/java/org/wildfly/elytron/ws/client/example/HelloServiceImpl.java b/ws-client-integration/server/src/main/java/org/wildfly/elytron/ws/client/example/HelloServiceImpl.java index beec5f33..6acb15cb 100644 --- a/ws-client-integration/server/src/main/java/org/wildfly/elytron/ws/client/example/HelloServiceImpl.java +++ b/ws-client-integration/server/src/main/java/org/wildfly/elytron/ws/client/example/HelloServiceImpl.java @@ -3,7 +3,7 @@ import org.wildfly.security.auth.server.SecurityDomain; -import javax.jws.WebService; +import jakarta.jws.WebService; /** * The implementation of the HelloService JAX-WS Web Service. From beaa43df891a281a99db72cec1949e6086d8a67c Mon Sep 17 00:00:00 2001 From: Ger-Jan te Dorsthorst Date: Wed, 25 Oct 2023 18:03:09 +0200 Subject: [PATCH 2/3] Add https://github.com/Skyllarr/elytron-examples/commit/881a70be9f92bf3047f97f24ff17f59973c07859; mvn clean test -Dtest=Client.java fails --- .../client-wf29-jks/client.cer | Bin 0 -> 709 bytes .../client-wf29-jks/client.keystore.pkcs12 | Bin 0 -> 2552 bytes .../client-wf29-jks/client.truststore.pkcs12 | Bin 0 -> 1286 bytes ws-client-integration/client/pom.xml | 2 ++ .../resources/META-INF/wildfly-config.xml | 4 +-- ws-client-integration/server/pom.xml | 2 ++ .../server/src/main/webapp/WEB-INF/web.xml | 26 ++++++++++++++++++ 7 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 ws-client-integration/client-wf29-jks/client.cer create mode 100644 ws-client-integration/client-wf29-jks/client.keystore.pkcs12 create mode 100644 ws-client-integration/client-wf29-jks/client.truststore.pkcs12 create mode 100644 ws-client-integration/server/src/main/webapp/WEB-INF/web.xml diff --git a/ws-client-integration/client-wf29-jks/client.cer b/ws-client-integration/client-wf29-jks/client.cer new file mode 100644 index 0000000000000000000000000000000000000000..fb84f84d3a5b75f7b331033ceb9d608698f94569 GIT binary patch literal 709 zcmXqLVmfHh#JF++GZP~d6AMF|p|Jrk8>d#AN85K^Mn-N{1_MDuexML@C=0VNTXIfj zYF>$foH(zMv7v#1g@KuYnXyR}kZS_unnStRv@|g)Asfud%D~*j$j<<@n~SN5k&$6S zWcPyn&dHlXjxXJ_F)*{xPUtz`PurtGPvyFG)a6fU1Oy*0@Ko~F57+tJRBtllb$ZQP z&E+{uFLX@bx6CC)DfdF#g9C?iRSd+_tFx=-c1j*nQObID#qe~--j+YBKeS&iwpG|8 z_-U#}a6rMMlXKas9xe5n82o8+a{I%D%w;!xc{`;!#(8iZl zhfhE0{HgNZul-Qv!SHt*GcL*Svc@{sn|I!qS#*_e8?W7NC;x;!)1$+;G%eZ`b}#Nn z_PXV*ClyycW@2V!U|g(dAa5WG3~O0F7BLo)YYtqhOQtYiIe%b}3xh`9hs;}E6OaQD z7(2i~WMmKt`@YA?;g;mxnkf4>^O)0xe&%@}f8r_qc&hMW$(^59-3!QO57a1ib@bc* zI=e!2*U{K*p2sFmf3daT*{KwvxpH1Xn|J?Qci-CYk;B!q?N?PjUg@$OTh)F@SL@W2 zHEFY0f25i^Y8;;2I&;Z{qO(asbIRqoBsUmtj@Dy5&em4t#`I3)boR8b$Ap=GA1hn8 z`odwQ*j-l`SyVYmg)9ctt-N2E!GUuaLr z;l_E_)i-|_T)DT`=FlSKGyNqq#Qw(HU12BqrU6IeE&uB240q V!aC3LP38VNF89u9X{hzi2LP1UCjtNf literal 0 HcmV?d00001 diff --git a/ws-client-integration/client-wf29-jks/client.keystore.pkcs12 b/ws-client-integration/client-wf29-jks/client.keystore.pkcs12 new file mode 100644 index 0000000000000000000000000000000000000000..835cdba70a5137671a20a30873afe2bef0d28bbe GIT binary patch literal 2552 zcma);XH*ji633Ge0)YgnQl+RI(j-}>w+K>1LN5^r)hu0EsUipoy-AUPl%q*mVUb7^ zK|_E=Kto3ZQiF69L8w8X@z##1Z-Ux!S0ubjQP}g{4 zAdUqLlmm08y(%g1cxb6g>QJr`aL_IX6Tm|!E9%VVKE}p}R$31`MExE(N${zx0wPbJ zzk(jD_D}n|l0G@iS2Xw~Y>N(rh6O|%aFD{axh&-S2VnY# zzGC_=F(omKtdutgN9`CtN6W@-+t^crzcQoH{Ni>++Om8ZO>SSaMrj-)a0(<$jH0)K z#uHR)il$zvvPF^e-Hx1^vG^+W`eX?S`_uaxW|O0wLvlWSzumBtRwuS5W5Updg6j4DZKu7(k=Y{HN*+c53|m9ESf@WNzib)9gBFG-LCWmU z>uviwl~1=em?a%@3@6OU?}dx))|dyk@DDhbugu3?r1e|8kF%}CYCo=0g%j1@weHauWt zjo&cOwGfItpPbjPGu+T&BPhRrU(pg(#iNk{jWZ5b=&AY^Z{&jcWa9UNygbzBSxE`v zYY0U-HAlmckBdj2M1D+ViL`$tzD|&YZ0b~R&I;;Fb}J5#E9@uCc(T9k!l<2at)ss8 zO$Fx~N+VwPf$cNBRJVHt=NlF6QfQHQUmcJzTx?(L*P;OdT_ck|j6`lI(RcZ2jufCU z@GDp3B(m5fy?kXX_pARoU|oubX;zdHZys5^mOM2+%HY;Gjf*z073)6mPY(14tD&aL zaTZ5Q&n!`|OC?{J(!66H-nG7KjlQzlIW#Rw9@k~hx#ig7AgX{QJDS^~>OO;H*zRmN=CPY40iRJEb!_qUME62a;v z^Q0z|LFo5xeOkcjXXw1G6YAQ+4z6S#VGIIEx62drTi5&|a~O3Os*ALQMIdb;w)QdYvz`eQZ*^{88m-7Z$OmeHlc zcV9UtD_qyC?OxM08NhP)*KXB*e9D#CDN_Ax(&}A-!y3AMjZ27dTSU_4cEjg4Gc?o4 z8fx}6P37x6rBAYK>YKRNnor7>D8>a|1s3h`TFZFibKPCjsPj!ezDIoJ$dU9a(QLdO z8`5$i>4+8g+cQ)1*N$#MNsHUe3&2zvOdK{#WN)Yr@yBA9U$zQTL1un!XgE&m@GTaf zzB$r!9G+sdW|@$81E$hi=Y9babg}+>RBNsbk_)>-GrJ)!>}thiKw1TzKM>v zLwTQhag5NaG`1;fBs?Sltw+o#({XU_lF&>yr=wV@zjU6f4>!Fp9*l1&acoNR*qLFj zD=Bxs97UoKqCf2t%8%p{hXFhQegJO(4sZt$gpm4M6hQKWd2PJ?ags;dpN<{OUor;LTnR3lI9&QQx94hCZdZGVhGBls_{7MCuB&3VUQW|gW04>nk;tpF6?lD!W84~GuRCsBT-bh!txLQ9PH71V<}#-i7j(f zhJ8+apOq9-KcWT?Es=4rsiCD}H3#tVYVJ+MnutcAUg~9>)!vQGCq$8+K&gK)g4fRl zUZWvgXFVka?%$jER_rzvcv;9@jG}EgC-tivX6L(R8&Lj{fg36ND)He?<(cN@{pyeW z13rT1$F_uSw2$BDPMOGvArMqSmxD zm@@iV!a0mZ>6>|g;+g)NOY>r081YLqy++T&74>MZLv2`C`+9y5L$A7Ym$O5}DrtmS zGw;pt@kdFt?S=BS4gKQcoby-{s#K?DDwbRuF%Id*P%A>ecp}NMvlHywFo5ocVkVX% zwG-={SNbmhxP@tce^jVMc(b{@;rqV}$9Zw7sM8622^3@VHUbVO)Hn n$`O3GLbtRT8V%-e6Y+A!TFl-dT?%l0`25hFsIS@luM_?YSwf+I literal 0 HcmV?d00001 diff --git a/ws-client-integration/client-wf29-jks/client.truststore.pkcs12 b/ws-client-integration/client-wf29-jks/client.truststore.pkcs12 new file mode 100644 index 0000000000000000000000000000000000000000..a2c875f0351a5ec69c1ede4d89b2f76f93181335 GIT binary patch literal 1286 zcmV+h1^N0gf&~Hs0Ru3C1gr)LDuzgg_YDCD0ic2eodkjenJ|I`l`w(?kp>AWhDe6@ z4FLxRpn?Q~FoFbr0s#Opf&_O42`Yw2hW8Bt2LUi<1_>&LNQU+thDZTr0|Wso1Q3V8L#z}^(!M8ElU;d;)S7^T1OS)B8xM?{vyi@)!shc1CUuv` zSTM2PWm0n~gIPSARa;R6u2a6g-Nac@8qCW*298 z2ocL9eD^Mfg%#0iE9pIB67S7Dqv-G6_1293e#o;I-RASlvLgeIXSP|tY7N*yYI~JP+J2 zui-l1cPN~?_31klaVDcJzdndU%P#Kg3yd|2Z$})nKkmKd7s^{3b&`{r(@Jb*v!!$f zZhx;O&%QHrMPS8q;5wb~gdN1i!ATsDF)2d1Hgl<)!990a)Pq0RnyU^A6$bF0j_xwnxWf7v%I^7w*KD|o28ra z+jo$jS!Tror~($Fu2pysq@6H(r$f|;SI!|;4j=M-mO5~|TU?0va=55*c$egdms;@s z9*y(Aqjg7bE^lHho~v=0g>x5U^p%dv7a3*0{&p9m^!M1|U zn1nl2$MU|E)2!EFyfB=Vt{@HlMUrOP@i)^@Vcf$lg{<48I^5m0Z>;Ofw-JYT8>~kuvA1uxxF`%&A=Ljf#=lYh7pJhWV+V@VV z?ESv#bBnhmL}JFtrviHSmolc+PGyD>;{S7{!*<&Xy#O?2&?(bfDWtUAwb9b z0zSt_1vH0Gsx0nD0ct5kKx9XBpVvQHW|DMwiFj?EKDChl^_QGn1{JZB2+V?tMzmC& zIK+GRt)HDCD#+4V`k26LNxPW?it+aS=?veoUA`v1^y_nef^oKSrH5CZ0lNC9O71OfpC00bZ()Xc2M13ZMbbsnOp w{l5U9Vb_vIp}If5)d@TkXgq8L6qyj?9zj#qnk>pimH#E#200I*Ap!y?5DfK7X8-^I literal 0 HcmV?d00001 diff --git a/ws-client-integration/client/pom.xml b/ws-client-integration/client/pom.xml index dff68a4b..496e31c9 100644 --- a/ws-client-integration/client/pom.xml +++ b/ws-client-integration/client/pom.xml @@ -9,6 +9,8 @@ jar + 11 + 11 11 UTF-8 3.0.3.Final diff --git a/ws-client-integration/client/src/main/resources/META-INF/wildfly-config.xml b/ws-client-integration/client/src/main/resources/META-INF/wildfly-config.xml index 4820f5b7..335bb256 100644 --- a/ws-client-integration/client/src/main/resources/META-INF/wildfly-config.xml +++ b/ws-client-integration/client/src/main/resources/META-INF/wildfly-config.xml @@ -7,11 +7,11 @@ - + - + diff --git a/ws-client-integration/server/pom.xml b/ws-client-integration/server/pom.xml index e6f277d4..c34fe89b 100644 --- a/ws-client-integration/server/pom.xml +++ b/ws-client-integration/server/pom.xml @@ -9,6 +9,8 @@ war + 11 + 11 11 UTF-8 2.2.2.Final diff --git a/ws-client-integration/server/src/main/webapp/WEB-INF/web.xml b/ws-client-integration/server/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 00000000..73028463 --- /dev/null +++ b/ws-client-integration/server/src/main/webapp/WEB-INF/web.xml @@ -0,0 +1,26 @@ + + + + + /HelloService/* + + + + + index.html + + \ No newline at end of file From 83595329418399d2cee167e6ba6079a7e87511e6 Mon Sep 17 00:00:00 2001 From: Ger-Jan te Dorsthorst Date: Fri, 27 Oct 2023 16:43:16 +0200 Subject: [PATCH 3/3] Add server keystore & truststore standalone-wf29-jks --- .../application-roles.properties | 23 + .../application-users.properties | 25 + .../configuration/logging.properties | 48 ++ .../configuration/mgmt-groups.properties | 22 + .../configuration/mgmt-users.properties | 27 + .../configuration/server.csr | 18 + .../configuration/server.keystore.pkcs12 | Bin 0 -> 2255 bytes .../configuration/server.pem | 21 + .../configuration/server.truststore.pkcs12 | Bin 0 -> 802 bytes .../configuration/standalone-full-ha.xml | 660 ++++++++++++++++++ .../configuration/standalone-full.xml | 568 +++++++++++++++ .../configuration/standalone-ha.xml | 609 ++++++++++++++++ .../standalone-load-balancer.xml | 236 +++++++ .../standalone-microprofile-ha.xml | 459 ++++++++++++ .../configuration/standalone-microprofile.xml | 402 +++++++++++ .../configuration/standalone.xml | 538 ++++++++++++++ .../deployments/README.txt | 190 +++++ 17 files changed, 3846 insertions(+) create mode 100644 ws-client-integration/standalone-wf29-jks/configuration/application-roles.properties create mode 100644 ws-client-integration/standalone-wf29-jks/configuration/application-users.properties create mode 100644 ws-client-integration/standalone-wf29-jks/configuration/logging.properties create mode 100644 ws-client-integration/standalone-wf29-jks/configuration/mgmt-groups.properties create mode 100644 ws-client-integration/standalone-wf29-jks/configuration/mgmt-users.properties create mode 100644 ws-client-integration/standalone-wf29-jks/configuration/server.csr create mode 100644 ws-client-integration/standalone-wf29-jks/configuration/server.keystore.pkcs12 create mode 100644 ws-client-integration/standalone-wf29-jks/configuration/server.pem create mode 100644 ws-client-integration/standalone-wf29-jks/configuration/server.truststore.pkcs12 create mode 100644 ws-client-integration/standalone-wf29-jks/configuration/standalone-full-ha.xml create mode 100644 ws-client-integration/standalone-wf29-jks/configuration/standalone-full.xml create mode 100644 ws-client-integration/standalone-wf29-jks/configuration/standalone-ha.xml create mode 100644 ws-client-integration/standalone-wf29-jks/configuration/standalone-load-balancer.xml create mode 100644 ws-client-integration/standalone-wf29-jks/configuration/standalone-microprofile-ha.xml create mode 100644 ws-client-integration/standalone-wf29-jks/configuration/standalone-microprofile.xml create mode 100644 ws-client-integration/standalone-wf29-jks/configuration/standalone.xml create mode 100644 ws-client-integration/standalone-wf29-jks/deployments/README.txt diff --git a/ws-client-integration/standalone-wf29-jks/configuration/application-roles.properties b/ws-client-integration/standalone-wf29-jks/configuration/application-roles.properties new file mode 100644 index 00000000..43e55893 --- /dev/null +++ b/ws-client-integration/standalone-wf29-jks/configuration/application-roles.properties @@ -0,0 +1,23 @@ +# +# Properties declaration of users roles for the realm 'ApplicationRealm' which is the default realm +# for application services on a new installation. +# +# This includes the following protocols: remote ejb, remote jndi, web, remote jms +# +# Users can be added to this properties file at any time, updates after the server has started +# will be automatically detected. +# +# The format of this file is as follows: - +# username=role1,role2,role3 +# +# A utility script is provided which can be executed from the bin folder to add the users: - +# - Linux +# bin/add-user.sh +# +# - Windows +# bin\add-user.bat +# +# The following illustrates how an admin user could be defined. +# +#admin=PowerUser,BillingAdmin, +#guest=guest diff --git a/ws-client-integration/standalone-wf29-jks/configuration/application-users.properties b/ws-client-integration/standalone-wf29-jks/configuration/application-users.properties new file mode 100644 index 00000000..24889c3f --- /dev/null +++ b/ws-client-integration/standalone-wf29-jks/configuration/application-users.properties @@ -0,0 +1,25 @@ +# +# Properties declaration of users for the realm 'ApplicationRealm' which is the default realm +# for application services on a new installation. +# +# This includes the following protocols: remote ejb, remote jndi, web, remote jms +# +# Users can be added to this properties file at any time, updates after the server has started +# will be automatically detected. +# +# The format of this realm is as follows: - +# username=HEX( MD5( username ':' realm ':' password)) +# +# A utility script is provided which can be executed from the bin folder to add the users: - +# - Linux +# bin/add-user.sh +# +# - Windows +# bin\add-user.bat +# +#$REALM_NAME=ApplicationRealm$ This line is used by the add-user utility to identify the realm name already used in this file. +# +# The following illustrates how an admin user could be defined, this +# is for illustration only and does not correspond to a usable password. +# +#admin=2a0923285184943425d1f53ddd58ec7a diff --git a/ws-client-integration/standalone-wf29-jks/configuration/logging.properties b/ws-client-integration/standalone-wf29-jks/configuration/logging.properties new file mode 100644 index 00000000..f5ede73c --- /dev/null +++ b/ws-client-integration/standalone-wf29-jks/configuration/logging.properties @@ -0,0 +1,48 @@ +# Note this file has been generated and will be overwritten if a +# logging subsystem has been defined in the XML configuration. + + +# Additional loggers to configure (the root logger is always configured) +loggers=sun.rmi,io.jaegertracing.Configuration,org.jboss.as.config,com.arjuna + +logger.level=INFO +logger.handlers=FILE,CONSOLE + +logger.sun.rmi.level=WARN +logger.sun.rmi.useParentHandlers=true + +logger.io.jaegertracing.Configuration.level=WARN +logger.io.jaegertracing.Configuration.useParentHandlers=true + +logger.org.jboss.as.config.level=DEBUG +logger.org.jboss.as.config.useParentHandlers=true + +logger.com.arjuna.level=WARN +logger.com.arjuna.useParentHandlers=true + +handler.CONSOLE=org.jboss.logmanager.handlers.ConsoleHandler +handler.CONSOLE.level=INFO +handler.CONSOLE.formatter=COLOR-PATTERN +handler.CONSOLE.properties=enabled,autoFlush,target +handler.CONSOLE.enabled=true +handler.CONSOLE.autoFlush=true +handler.CONSOLE.target=SYSTEM_OUT + +handler.FILE=org.jboss.logmanager.handlers.PeriodicRotatingFileHandler +handler.FILE.level=ALL +handler.FILE.formatter=PATTERN +handler.FILE.properties=enabled,autoFlush,append,suffix,fileName +handler.FILE.constructorProperties=fileName,append +handler.FILE.enabled=true +handler.FILE.autoFlush=true +handler.FILE.append=true +handler.FILE.suffix=.yyyy-MM-dd +handler.FILE.fileName=/home/vagrant/elytron-examples/ws-client-integration/./standalone-wf29-jks/log/server.log + +formatter.PATTERN=org.jboss.logmanager.formatters.PatternFormatter +formatter.PATTERN.properties=pattern +formatter.PATTERN.pattern=%d{yyyy-MM-dd HH\:mm\:ss,SSS} %-5p [%c] (%t) %s%e%n + +formatter.COLOR-PATTERN=org.jboss.logmanager.formatters.PatternFormatter +formatter.COLOR-PATTERN.properties=pattern +formatter.COLOR-PATTERN.pattern=%K{level}%d{HH\:mm\:ss,SSS} %-5p [%c] (%t) %s%e%n diff --git a/ws-client-integration/standalone-wf29-jks/configuration/mgmt-groups.properties b/ws-client-integration/standalone-wf29-jks/configuration/mgmt-groups.properties new file mode 100644 index 00000000..44742a83 --- /dev/null +++ b/ws-client-integration/standalone-wf29-jks/configuration/mgmt-groups.properties @@ -0,0 +1,22 @@ +# +# Properties declaration of users groups for the realm 'ManagementRealm'. +# +# This is used for domain management, users groups membership information is used to assign the user +# specific management roles. +# +# Users can be added to this properties file at any time, updates after the server has started +# will be automatically detected. +# +# The format of this file is as follows: - +# username=role1,role2,role3 +# +# A utility script is provided which can be executed from the bin folder to add the users: - +# - Linux +# bin/add-user.sh +# +# - Windows +# bin\add-user.bat +# +# The following illustrates how an admin user could be defined. +# +#admin=PowerUser,BillingAdmin, \ No newline at end of file diff --git a/ws-client-integration/standalone-wf29-jks/configuration/mgmt-users.properties b/ws-client-integration/standalone-wf29-jks/configuration/mgmt-users.properties new file mode 100644 index 00000000..1eb47765 --- /dev/null +++ b/ws-client-integration/standalone-wf29-jks/configuration/mgmt-users.properties @@ -0,0 +1,27 @@ +# +# Properties declaration of users for the realm 'ManagementRealm' which is the default realm +# for new installations. Further authentication mechanism can be configured +# as part of the in standalone.xml. +# +# Users can be added to this properties file at any time, updates after the server has started +# will be automatically detected. +# +# By default the properties realm expects the entries to be in the format: - +# username=HEX( MD5( username ':' realm ':' password)) +# +# A utility script is provided which can be executed from the bin folder to add the users: - +# - Linux +# bin/add-user.sh +# +# - Windows +# bin\add-user.bat +# +#$REALM_NAME=ManagementRealm$ This line is used by the add-user utility to identify the realm name already used in this file. +# +# On start-up the server will also automatically add a user $local - this user is specifically +# for local tools running against this AS installation. +# +# The following illustrates how an admin user could be defined, this +# is for illustration only and does not correspond to a usable password. +# +#admin=2a0923285184943425d1f53ddd58ec7a diff --git a/ws-client-integration/standalone-wf29-jks/configuration/server.csr b/ws-client-integration/standalone-wf29-jks/configuration/server.csr new file mode 100644 index 00000000..56c749d4 --- /dev/null +++ b/ws-client-integration/standalone-wf29-jks/configuration/server.csr @@ -0,0 +1,18 @@ +-----BEGIN CERTIFICATE REQUEST----- +MIIC4zCCAcsCAQAwbjEQMA4GA1UEBhMHVW5rbm93bjEQMA4GA1UECBMHVW5rbm93 +bjEQMA4GA1UEBxMHVW5rbm93bjEQMA4GA1UEChMHVW5rbm93bjEQMA4GA1UECxMH +VW5rbm93bjESMBAGA1UEAxMJbG9jYWxob3N0MIIBIjANBgkqhkiG9w0BAQEFAAOC +AQ8AMIIBCgKCAQEA4YKn6oBbkHxdefdTLwmerCBmM1NDwhZjpt+dKGcyFzD7qSZG +eL6wzgX12VR9KDmS6RlBROgpAhh13aBdJlCm7jmfCd5ym5An19i9iSHMgJy9JECq +wQs+xntQusnvb9iuJ4WXgWqWA7LnbKz+dU7wP7isZCq2ZgDHa96kKsxRn7NVwlmM +Zb5YRUMjqio5rb2NNp+cRBXl193m7Oxkr7YuGqswBEbv/vfYORPqIxQZbrZ1rSJX +rIrHnmEDr6CNLPHyGxP5+UQ9EUNsa0fjGUjTeV8gIk9Zibm0iMqV64S6NnSktx25 ++VE0x+Vnzk82jKE0DFuQ85UVK/GHmdog4K/DcwIDAQABoDAwLgYJKoZIhvcNAQkO +MSEwHzAdBgNVHQ4EFgQUU+s2L/sZ5aDqXKr+bSZEpzXY57YwDQYJKoZIhvcNAQEL +BQADggEBAEbGuzBIDrWOzA/YeCcWfDb0Dy7kE2mjrFCVpU3iDwGGvi6OXcflBchv +k1DUXg8xJap7HvUHHKMmGd1XepcKx89FU9v+6bS2punrRlFH9+hutV2rM4jRewDF +ML6SHEF97bAGy7K/AzdOF38rXGU8WLCcSKCT8rM7RrOgyb/mCJvb2oLsK9nOECq2 +MfnRjeYSv7dHZpSJ0rE68ERYPvV0krrzQ+CZ1sogulCzRD2KWemn5HXy+kE6ugby +2gJjkfBxJtTAwyQ2MOUTcApSsl6EGsaj+7WjO4Smp+gt2kwl/lT1cxymvKYXGxmn +lHfuIjm+QJzK7JIjCo+ggEcUeheFFHs= +-----END CERTIFICATE REQUEST----- diff --git a/ws-client-integration/standalone-wf29-jks/configuration/server.keystore.pkcs12 b/ws-client-integration/standalone-wf29-jks/configuration/server.keystore.pkcs12 new file mode 100644 index 0000000000000000000000000000000000000000..ba32db0d873327241d565027fa336ddb0ffcdc32 GIT binary patch literal 2255 zcmciDc{J4j8VB(2ES4EtLL$t>B!(E&Sh8gqqO1|JO!k^F%C3-xpREX`$Trn5c9O`N zC6p`)QMOTrF|t>ZOxNw)b36C+|NZ0n=k>?uJm+~n=l!sk*h>HafOiY@yI@3rkMl%d z|G=PKxxvS5ZwCMl5QYrh!SHj!6*xgq5E?890&xIPGIT-jOVP`dK5m6AjpJil1kZ_A zOud*Ch+r3oiP9u}aZCTM$LW6S!kxrk2K#xo4i1~j zuOqRIqtmn>&gF_6CgAEIf&CRNLv{rJ5X=MKJB_#Kk$46g?(baXsyt5QlHSnd$bMx8 z?He2%C@VGp1xdE+2Q4wP5)q@6yxz`_FZidAhi1!hW)kCyYCFvXXgNn*+`5{|PK%3m z?8u4Zrx5z9ExMDlg$uMW&rRo&6L2qBojI3N965TcQ+y;t*dUTceEx2<3D?OTdC%&}9ztKLl`v(pck<5p(JdKE#ym&T7y|-mqm{`IXr>S?=T+ zR>16fU`j|8Nng9yce4*FU7CE2KyGx1N2%%z+s@(kH8rz|3NmXONjD9XjtqaL3N(`O zuZwFh%}_h$@f?8t_o1h+)vdz=!ZXXN>>Ml>%ao#Inp2JoOE`T1lm{LF>|?zt<&5k; z#X=8$B$(B;r;OU>`zZz5h zc-rG*E5pKYMFQ2-i+^`zLTwS@Fj1+;JDSoLS7VyJndgLyL~mlvz>@JZ?sLz;1Hmc5 zGNs6m5j_RUN4~~~e2=(oA7=SM?&Jc52Ev*c9;{7%19v{1sf7+4?#e9gSm}wct=YQn z^@2k=!lu3SY<8RPik<8amEd@dM5A<+cUKcnp{|F-;DSZb5KRVZ$^TLbPw~FBKGNy1 z>C`2c)tcMt+P_7ihUPUDJdqdhI5iUYKz>cC9%dS#+b;AyA)|eLIlA5yja81YQ1iZw zSE*YAOY9V*xqc)y=XY=Xs`SgHdg${SLb&}@uN7TtlU~-;nT@%N%iI}@;l8e3uvD=` zpg07J*%Y3bDpjCYCicOeeBJS|&42vt%5&p%pq=GK$1mW-X6G*c&PEOgrDGUP0D#0| z$dG6Z8GMlf0fWF`7?4KOO1KXdtHtne!q9Q1ahrS~5D$i=vS&9mA$CwsAuc--f#e_h zU*Y~sxc(COU&8Z8_G0$@`(=pGpTNdQ?-x+TsH&-8Fd7)F3Pw%S={FqR1@-^H|Gg(N zNE*ZUXDGXO140G~02nd|4km*@zzmtjiawVb;S#=Ss|?F4Lwc*(8n*BAD4fof^HCMW zY!}Po!dj~OIljI>6Dg;ez94qOh$#==A3RBMk+mvZ*35@Z1!Sil9vy2=JlGqZ(~QzD zY2(rDx@y(%YQ=x7;_yHBu3x+hsh%g6v4bsE^`4b^qHDc@Zo(85-D{oy#ID`(rdNxD zv7t-}TC==48JnMDB*GY-ocsLQv$9r6yc7e)t*|%8G=*3)!eXS_;Bx7+Wl7z6=OLAp zWW}}h143I{MmmCqM1sjDG1H-NH>9+sV`6vC7+G3<}G+gzYD5L_0P% z|Gz(LcZ49I{>y}-@V@VeIq|lD6w&9Sy39R@8KGm8tN8F10pvQ=ZO2DXS|2ItnC|;Y z7IA`L?5E>kZA9~Zm7S`RK{_(^60`|^orJ>jzzl_m$i=u{|?M%w8Wnxg> z1D_w=I{wIdjC{e+Gd!f2&ckTC-DUHc7%$~NIy`5SqvA5M6Ya@z>5;i@BCeNklpk3q dy4iSokTb0Y_>^W5X1;e&1`M!bABQOk{|jYZ=L7%% literal 0 HcmV?d00001 diff --git a/ws-client-integration/standalone-wf29-jks/configuration/server.pem b/ws-client-integration/standalone-wf29-jks/configuration/server.pem new file mode 100644 index 00000000..1ef6529e --- /dev/null +++ b/ws-client-integration/standalone-wf29-jks/configuration/server.pem @@ -0,0 +1,21 @@ +-----BEGIN CERTIFICATE----- +MIIDgDCCAmqgAwIBAgIJAJGnOoiaBBm2MAsGCSqGSIb3DQEBCzBuMRAwDgYDVQQG +EwdVbmtub3duMRAwDgYDVQQIEwdVbmtub3duMRAwDgYDVQQHEwdVbmtub3duMRAw +DgYDVQQKEwdVbmtub3duMRAwDgYDVQQLEwdVbmtub3duMRIwEAYDVQQDEwlsb2Nh +bGhvc3QwIhgPMjAyMzEwMDgwNjEwMzlaGA8yMDI0MTAwNzA2MTAzOVowbjEQMA4G +A1UEBhMHVW5rbm93bjEQMA4GA1UECBMHVW5rbm93bjEQMA4GA1UEBxMHVW5rbm93 +bjEQMA4GA1UEChMHVW5rbm93bjEQMA4GA1UECxMHVW5rbm93bjESMBAGA1UEAxMJ +bG9jYWxob3N0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA4YKn6oBb +kHxdefdTLwmerCBmM1NDwhZjpt+dKGcyFzD7qSZGeL6wzgX12VR9KDmS6RlBROgp +Ahh13aBdJlCm7jmfCd5ym5An19i9iSHMgJy9JECqwQs+xntQusnvb9iuJ4WXgWqW +A7LnbKz+dU7wP7isZCq2ZgDHa96kKsxRn7NVwlmMZb5YRUMjqio5rb2NNp+cRBXl +193m7Oxkr7YuGqswBEbv/vfYORPqIxQZbrZ1rSJXrIrHnmEDr6CNLPHyGxP5+UQ9 +EUNsa0fjGUjTeV8gIk9Zibm0iMqV64S6NnSktx25+VE0x+Vnzk82jKE0DFuQ85UV +K/GHmdog4K/DcwIDAQABoyEwHzAdBgNVHQ4EFgQUU+s2L/sZ5aDqXKr+bSZEpzXY +57YwCwYJKoZIhvcNAQELA4IBAQC59NwsFBb4H+YawXKOF7/XPugQH+ETNaB7YHm+ +DyDyBF/9Zz8iQCAdWZJo4yYfQWtFbT1YUUSnaMmbiSyvcfE+i2vyeBVuTH5Yk4eN +BH7y+zdWSyoH23K5skTY21duFa5HStPXm5ZKldDF1QqfXE3R21oBouhRChe9IKwh +jgYi/whM3DNyXSkMwSaRkcrIfSxI+0l0T6vNVTJ5HOjpOAmB4PX2HR4Exx+eSn4o +GNsnFnIS5DqRJP7D/0Uqlqh+1FxVR61RI4Mkx8/so487o1HYgmlDZHl2qeAL5cGT +xlLsbIceb9fU5lKcMV3V/YBk6l3KI5NHGj+INA4gtxf3u03R +-----END CERTIFICATE----- diff --git a/ws-client-integration/standalone-wf29-jks/configuration/server.truststore.pkcs12 b/ws-client-integration/standalone-wf29-jks/configuration/server.truststore.pkcs12 new file mode 100644 index 0000000000000000000000000000000000000000..f06cc2e1cf23d98917c1d8da5a9548d84fdbed38 GIT binary patch literal 802 zcmezO_TO6u1_mY|W(3nJNd_r~iAknLx<=+HM!F_ODQUV%#^xrvhABx&Nof`qNtPz& zK*im>FAg1HV2#i-HLwKgKWfm#bkLxQapeMLCPpSE7KS!MV*_3`POUbNw(q=*jNGgY z27-qCKq2N(7G`0#1LjwZ~12Y3NW0NQ#*96ElhjOuLX<}4DHkgr> zfw_s1p8;q$7gG}>Bg2Hq?gjaslQ)GNU%F>wU}mA6&~v_@wnu}W%603g%b(H+2tHik zspPF6uJgI6-ekt>^qRMt%X5}q=$O85nM;aN?uE7o2M*_|7>K7=XIIVblsu%Ol=bY2 z;pvRMEq_*jXun)+tFTA#(^QS%fPzOS=dx8jTIw}1_|xR%_J<3Z-?jWczr90KYx2w0 zw$CkBht=KB$Sn-2E|psABJ?Wl*{0&3E`oEOw<>u=Nq!s8QEZVr#*(Qz=4o<-CG6@BX>&zO~;YhpT7X zuc~^y(q%igs{N3z)~P9L(q^&#NHulTI6S#^=8_3TXOn{Fl*@5RZZO;&t;cwrt*y$9 z>7B^w>}g+*2{ZpbR<>^Sg~Lj*yS^}g)IIZl4hJ9e?E?!e)9tfbSA@-4tQn-?o)I(6 zkMp-_LX?+gW~y*uUQt@Yjq|RnZ~id2a&NEE;WLR7S6glQu%F3JCF@kKwu|RRb8Ysc zGp;H~Ou7+s@|1N&n8X`}b)My$%Kdd*?w!-pQ0tv9&R>~(Ol95PMFrRAS*K=p^nMY& F4ge + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE;MODE=${wildfly.h2.compatibility.mode:REGULAR} + h2 + + sa + sa + + + + + org.h2.jdbcx.JdbcDataSource + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ${jboss.bind.address:127.0.0.1} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ws-client-integration/standalone-wf29-jks/configuration/standalone-full.xml b/ws-client-integration/standalone-wf29-jks/configuration/standalone-full.xml new file mode 100644 index 00000000..000b7339 --- /dev/null +++ b/ws-client-integration/standalone-wf29-jks/configuration/standalone-full.xml @@ -0,0 +1,568 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE;MODE=${wildfly.h2.compatibility.mode:REGULAR} + h2 + + sa + sa + + + + + org.h2.jdbcx.JdbcDataSource + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ${jboss.bind.address:127.0.0.1} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ws-client-integration/standalone-wf29-jks/configuration/standalone-ha.xml b/ws-client-integration/standalone-wf29-jks/configuration/standalone-ha.xml new file mode 100644 index 00000000..24d07759 --- /dev/null +++ b/ws-client-integration/standalone-wf29-jks/configuration/standalone-ha.xml @@ -0,0 +1,609 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE;MODE=${wildfly.h2.compatibility.mode:REGULAR} + h2 + + sa + sa + + + + + org.h2.jdbcx.JdbcDataSource + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ${jboss.bind.address:127.0.0.1} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ws-client-integration/standalone-wf29-jks/configuration/standalone-load-balancer.xml b/ws-client-integration/standalone-wf29-jks/configuration/standalone-load-balancer.xml new file mode 100644 index 00000000..83cfbbeb --- /dev/null +++ b/ws-client-integration/standalone-wf29-jks/configuration/standalone-load-balancer.xml @@ -0,0 +1,236 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ws-client-integration/standalone-wf29-jks/configuration/standalone-microprofile-ha.xml b/ws-client-integration/standalone-wf29-jks/configuration/standalone-microprofile-ha.xml new file mode 100644 index 00000000..462840bf --- /dev/null +++ b/ws-client-integration/standalone-wf29-jks/configuration/standalone-microprofile-ha.xml @@ -0,0 +1,459 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE;MODE=${wildfly.h2.compatibility.mode:REGULAR} + h2 + + sa + sa + + + + + org.h2.jdbcx.JdbcDataSource + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ws-client-integration/standalone-wf29-jks/configuration/standalone-microprofile.xml b/ws-client-integration/standalone-wf29-jks/configuration/standalone-microprofile.xml new file mode 100644 index 00000000..19d06c26 --- /dev/null +++ b/ws-client-integration/standalone-wf29-jks/configuration/standalone-microprofile.xml @@ -0,0 +1,402 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE;MODE=${wildfly.h2.compatibility.mode:REGULAR} + h2 + + sa + sa + + + + + org.h2.jdbcx.JdbcDataSource + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ws-client-integration/standalone-wf29-jks/configuration/standalone.xml b/ws-client-integration/standalone-wf29-jks/configuration/standalone.xml new file mode 100644 index 00000000..c8204c0d --- /dev/null +++ b/ws-client-integration/standalone-wf29-jks/configuration/standalone.xml @@ -0,0 +1,538 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE;MODE=${wildfly.h2.compatibility.mode:REGULAR} + h2 + + sa + sa + + + + + org.h2.jdbcx.JdbcDataSource + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ${jboss.bind.address:127.0.0.1} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ws-client-integration/standalone-wf29-jks/deployments/README.txt b/ws-client-integration/standalone-wf29-jks/deployments/README.txt new file mode 100644 index 00000000..7fa298cb --- /dev/null +++ b/ws-client-integration/standalone-wf29-jks/deployments/README.txt @@ -0,0 +1,190 @@ +The standalone/deployments directory in the JBoss Application Server +distribution is the location end users can place their deployment content +(e.g. war, ear, jar, sar files) to have it automatically deployed into the server +runtime. + +Users, particularly those running production systems, are encouraged to use the +JBoss AS management APIs to upload and deploy deployment content instead of +relying on the deployment scanner subsystem that periodically scans this +directory. See the JBoss AS documentation for details. + +DEPLOYMENT MODES + +The filesystem deployment scanner in AS 7 and later works differently from +previous JBoss AS releases. The scanner can operate in one of two different +modes, depending on whether it will directly monitor the deployment content +in order to decide to deploy (or redeploy) it. + +1) Auto-deploy mode: The scanner will directly monitor the deployment content, +automatically deploying new content and redeploying content whose timestamp +has changed. This is similiar to the behavior of previous AS releases, although +there are differences: + +a) A change in any file in an exploded deployment triggers redeploy. Because +EE 6 applications do not require deployment descriptors, there is no attempt +to monitor deployment descriptors and only redeploy when a deployment +descriptor changes. +b) The scanner will place marker files in this directory as an indication of +the status of its attempts to deploy or undeploy content. These are detailed +below. + +2) Manual deploy mode: The scanner will not attempt to directly monitor the +deployment content and decide if or when the end user wishes the content to +be deployed or undeployed. Instead, the scanner relies on a system of marker +files, with the user's addition or removal of a marker file serving as a sort +of command telling the scanner to deploy, undeploy or redeploy content. + + +Auto-deploy mode and manual deploy mode can be independently configured for +zipped deployment content and exploded deployment content. This is done by +editing the appropriate "auto-deploy" attributes on the deployment-scanner +element in the standalone.xml configuration file: + + + +By default, auto-deploy of zipped content is enabled, and auto-deploy of +exploded content is disabled. Manual deploy mode is strongly recommended for +exploded content, as exploded content is inherently vulnerable to the scanner +trying to auto-deploy partially copied content. Manual deploy mode also allows +deployment resources (e.g. html and css files) to be replaced without +triggering a redeploy of the application. + + +MARKER FILES + +The marker files always have the same name as the deployment content to which +they relate, but with an additional file suffix appended. For example, the +marker file to indicate the example.war file should be deployed is named +example.war.dodeploy. Different marker file suffixes have different meanings. + +The relevant marker file types are: + +.dodeploy -- Placed by the user to indicate that the given content should + be deployed into the runtime (or redeployed if already + deployed in the runtime.) + +.skipdeploy -- Disables auto-deploy of the content for as long as the file + is present. Most useful for allowing updates to exploded + content without having the scanner initiate redeploy in the + middle of the update. Can be used with zipped content as + well, although the scanner will detect in-progress changes + to zipped content and wait until changes are complete. + +.isdeploying -- Placed by the deployment scanner service to indicate that it + has noticed a .dodeploy file or new or updated auto-deploy + mode content and is in the process of deploying the content. + This marker file will be deleted when the deployment process + completes. + +.deployed -- Placed by the deployment scanner service to indicate that the + given content has been deployed into the runtime. If an end + user deletes this file, the content will be undeployed. + +.failed -- Placed by the deployment scanner service to indicate that the + given content failed to deploy into the runtime. The content + of the file will include some information about the cause of + the failure. Note that with auto-deploy mode, removing this + file will make the deployment eligible for deployment again. + +.isundeploying -- Placed by the deployment scanner service to indicate that it + has noticed a .deployed file has been deleted and the + content is being undeployed. This marker file will be deleted + when the undeployment process completes. + +.undeployed -- Placed by the deployment scanner service to indicate that the + given content has been undeployed from the runtime. If an end + user deletes this file, it has no impact. + +.pending -- Placed by the deployment scanner service to indicate that it + has noticed the need to deploy content but has not yet + instructed the server to deploy it. This file is created if + the scanner detects that some auto-deploy content is still in + the process of being copied or if there is some problem that + prevents auto-deployment. The scanner will not instruct the + server to deploy or undeploy any content (not just the + directly affected content) as long as this condition holds. + +Basic workflows: + +All examples assume variable $AS points to the root of the JBoss AS distribution. +Windows users: the examples below use Unix shell commands; see the "Windows +Notes" below. + +A) Add new zipped content and deploy it: + +1. cp target/example.war $AS/standalone/deployments +2. (Manual mode only) touch $AS/standalone/deployments/example.war.dodeploy + +B) Add new unzipped content and deploy it: + +1. cp -r target/example.war/ $AS/standalone/deployments +2. (Manual mode only) touch $AS/standalone/deployments/example.war.dodeploy + +C) Undeploy currently deployed content: + +1. rm $AS/standalone/deployments/example.war.deployed + +D) Auto-deploy mode only: Undeploy currently deployed content: + +1. rm $AS/standalone/deployments/example.war + +Note that this approach is not recommended with unzipped content as the server +maintains no other copy of unzipped content and deleting it without first +triggering an undeploy temporarily results in a live application with +potentially critical resources no longer available. For unzipped content use +the 'rm $AS/standalone/deployments/example.war.deployed' approach. + +E) Replace currently deployed zipped content with a new version and deploy it: + +1. cp target/example.war/ $AS/standalone/deployments +2. (Manual mode only) touch $AS/standalone/deployments/example.war.dodeploy + +F) Manual mode only: Replace currently deployed unzipped content with a new + version and deploy it: + +1. rm $AS/standalone/deployments/example.war.deployed +2. wait for $AS/standalone/deployments/example.war.undeployed file to appear +3. cp -r target/example.war/ $AS/standalone/deployments +4. touch $AS/standalone/deployments/example.war.dodeploy + +G) Auto-deploy mode only: Replace currently deployed unzipped content with a + new version and deploy it: + +1. touch $AS/standalone/deployments/example.war.skipdeploy +2. cp -r target/example.war/ $AS/standalone/deployments +3. rm $AS/standalone/deployments/example.war.skipdeploy + +H) Manual mode only: Live replace portions of currently deployed unzipped + content without redeploying: + +1. cp -r target/example.war/foo.html $AS/standalone/deployments/example.war + +I) Auto-deploy mode only: Live replace portions of currently deployed unzipped + content without redeploying: + +1. touch $AS/standalone/deployments/example.war.skipdeploy +2. cp -r target/example.war/foo.html $AS/standalone/deployments/example.war + +J) Manual or auto-deploy mode: Redeploy currently deployed content (i.e. bounce + it with no content change): + +1. touch $AS/standalone/deployments/example.war.dodeploy + +K) Auto-deploy mode only: Redeploy currently deployed content (i.e. bounce + it with no content change): + +1. touch $AS/standalone/deployments/example.war + + +Windows Notes: + +The above examples use Unix shell commands. Windows equivalents are: + +cp src dest --> xcopy /y src dest +cp -r src dest --> xcopy /e /s /y src dest +rm afile --> del afile +touch afile --> echo>> afile + +Note that the behavior of 'touch' and 'echo' are different but the +differences are not relevant to the usages in the examples above.