Jenkins build is unstable: TomEE » master-build-full #214

2021-06-16 Thread Apache Jenkins Server
See 




Jenkins build is back to stable : TomEE » master-build-full » TomEE :: TomEE :: webaccess #214

2021-06-16 Thread Apache Jenkins Server
See 




Jenkins build is back to stable : TomEE » master-build-full » TomEE :: Examples :: Simple Stateful Pojo Callbacks #214

2021-06-16 Thread Apache Jenkins Server
See 




Jenkins build is unstable: TomEE » master-build-full » TomEE :: TCK :: MicroProfile Open Tracing TCK #214

2021-06-16 Thread Apache Jenkins Server
See 




Jenkins build is unstable: TomEE » master-build-full » TomEE :: TCK :: CDI TomEE #214

2021-06-16 Thread Apache Jenkins Server
See 




Jenkins build is unstable: TomEE » master-build-full » TomEE :: Arquillian Adaptors Parent :: Tests :: JAXWS #214

2021-06-16 Thread Apache Jenkins Server
See 




Jenkins build is unstable: TomEE » master-build-full » TomEE :: TCK :: MicroProfile Open API TCK #214

2021-06-16 Thread Apache Jenkins Server
See 




Build failed in Jenkins: TomEE » master-build-quick #139

2021-06-16 Thread Apache Jenkins Server
See 


Changes:

[Richard Zowalla] CI env is suffering from OutOfMemory issues for the cdi tck 
tests resulting in build timeouts - increases the memory and see, if this helps 
CI to execute the tests.


--
[...truncated 10.44 MB...]
Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to 
channel
at 
hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1800)
at 
hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:357)
at hudson.remoting.Channel$2.adapt(Channel.java:1037)
at hudson.remoting.Channel$2.adapt(Channel.java:1033)
at hudson.remoting.FutureAdapter.get(FutureAdapter.java:59)
at 
hudson.maven.AbstractMavenBuilder.waitForAsynchronousExecutions(AbstractMavenBuilder.java:186)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:144)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:70)
at hudson.remoting.UserRequest.perform(UserRequest.java:211)
at hudson.remoting.UserRequest.perform(UserRequest.java:54)
at hudson.remoting.Request$2.run(Request.java:375)
at 
hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:73)
... 4 more
ERROR: Asynchronous execution failure
java.util.concurrent.ExecutionException: java.lang.NullPointerException
at hudson.remoting.Channel$2.adapt(Channel.java:1039)
at hudson.remoting.Channel$2.adapt(Channel.java:1033)
at hudson.remoting.FutureAdapter.get(FutureAdapter.java:59)
at 
hudson.maven.AbstractMavenBuilder.waitForAsynchronousExecutions(AbstractMavenBuilder.java:186)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:144)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:70)
at hudson.remoting.UserRequest.perform(UserRequest.java:211)
at hudson.remoting.UserRequest.perform(UserRequest.java:54)
at hudson.remoting.Request$2.run(Request.java:375)
at 
hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:73)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException
ERROR: Asynchronous execution failure
java.util.concurrent.ExecutionException: java.lang.NullPointerException
at hudson.remoting.Channel$2.adapt(Channel.java:1039)
at hudson.remoting.Channel$2.adapt(Channel.java:1033)
at hudson.remoting.FutureAdapter.get(FutureAdapter.java:59)
at 
hudson.maven.AbstractMavenBuilder.waitForAsynchronousExecutions(AbstractMavenBuilder.java:186)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:144)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:70)
at hudson.remoting.UserRequest.perform(UserRequest.java:211)
at hudson.remoting.UserRequest.perform(UserRequest.java:54)
at hudson.remoting.Request$2.run(Request.java:375)
at 
hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:73)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException
ERROR: Asynchronous execution failure
java.util.concurrent.ExecutionException: java.lang.NullPointerException
at hudson.remoting.Channel$2.adapt(Channel.java:1039)
at hudson.remoting.Channel$2.adapt(Channel.java:1033)
at hudson.remoting.FutureAdapter.get(FutureAdapter.java:59)
at 
hudson.maven.AbstractMavenBuilder.waitForAsynchronousExecutions(AbstractMavenBuilder.java:186)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:144)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:70)
at hudson.remoting.UserRequest.perform(UserRequest.java:211)
at hudson.remoting.UserRequest.perform(UserRequest.java:54)
at hudson.remoting.Request$2.run(Request.java:375)
at 
hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:73)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: 

Build failed in Jenkins: TomEE » master-build-quick » TomEE :: TomEE :: Apache TomEE #139

2021-06-16 Thread Apache Jenkins Server
See 


Changes:


--
[INFO] 
[INFO] ---< org.apache.tomee:apache-tomee >
[INFO] Building TomEE :: TomEE :: Apache TomEE 8.0.8-SNAPSHOT   [57/57]
[INFO] [ jar ]-
[INFO] 
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ apache-tomee ---
[INFO] 
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven-version) @ 
apache-tomee ---
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (process-resource-bundles) 
@ apache-tomee ---
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ 
apache-tomee ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 18 resources
[INFO] Copying 19 resources
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:resources (filter-resources) @ 
apache-tomee ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 18 resources
[INFO] Copying 19 resources
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-dependency-plugin:3.0.1:copy (copy-tomcat-for-webprofile) @ 
apache-tomee ---
[INFO] Configured Artifact: org.apache.tomcat:tomcat:9.0.45:zip
[INFO] Copying tomcat-9.0.45.zip to 

[INFO] 
[INFO] --- maven-dependency-plugin:3.0.1:copy (copy-tomcat-for-plus) @ 
apache-tomee ---
[INFO] Configured Artifact: org.apache.tomcat:tomcat:9.0.45:zip
[INFO] Copying tomcat-9.0.45.zip to 

[INFO] 
[INFO] --- maven-dependency-plugin:3.0.1:copy (copy-tomcat-for-plume) @ 
apache-tomee ---
[INFO] Configured Artifact: org.apache.tomcat:tomcat:9.0.45:zip
[INFO] Copying tomcat-9.0.45.zip to 

[INFO] 
[INFO] --- maven-dependency-plugin:3.0.1:copy (copy-tomcat-for-microprofile) @ 
apache-tomee ---
[INFO] Configured Artifact: org.apache.tomcat:tomcat:9.0.45:zip
[INFO] Copying tomcat-9.0.45.zip to 

[INFO] 
[INFO] --- maven-compiler-plugin:3.6.2:compile (default-compile) @ apache-tomee 
---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to 

[INFO] 
[INFO] --- dependency-report-plugin:1.0.2:report (default) @ apache-tomee ---
[INFO] Couldn't find parent for org.codehaus.swizzle:swizzle-stream:jar:1.6.2
[INFO] Couldn't find parent for org.apache.xbean:xbean-naming:jar:4.18
[INFO] Couldn't find parent for 
org.apache.tomee:openejb-loader:jar:8.0.8-SNAPSHOT
[INFO] 
[INFO] --- maven-bundle-plugin:3.3.0:manifest (bundle-manifest) @ apache-tomee 
---
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:testResources (default-testResources) @ 
apache-tomee ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory 

[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.6.2:testCompile (default-testCompile) @ 
apache-tomee ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 5 source files to 

[INFO] 
[INFO] --- maven-surefire-plugin:3.0.0-M5:test (default-test) @ apache-tomee ---
[INFO] 
[INFO] ---
[INFO]  T E S T S
[INFO] ---
[INFO] 
[INFO] Results:
[INFO] 
[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO] 
[JENKINS] Recording test results
[INFO] 
[INFO] --- groovy-maven-plugin:2.0:execute (execute-web-profile-installer) @ 
apache-tomee ---
[INFO] extracting 

Expanding: 

 into 

[INFO] Deploying the tomee war


Build failed in Jenkins: TomEE » master-sanity-checks #181

2021-06-16 Thread Apache Jenkins Server
See 


Changes:

[Jean-Louis Monteiro] TOMEE-3758 Jakarta Security example with tomcat-users.xml 
identity store


--
[...truncated 82.26 KB...]
[JENKINS] Archiving 

 to 
org.apache.tomee/openejb-itests-client/8.0.8-SNAPSHOT/openejb-itests-client-8.0.8-SNAPSHOT.pom
[JENKINS] Archiving 

 to org.apache.tomee/log4j2-tomee/8.0.8-SNAPSHOT/log4j2-tomee-8.0.8-SNAPSHOT.pom
[JENKINS] Archiving 

 to org.apache.tomee/tomee/8.0.8-SNAPSHOT/tomee-8.0.8-SNAPSHOT.pom
[JENKINS] Archiving 

 to 
org.apache.openejb.itests/failover/8.0.8-SNAPSHOT/failover-8.0.8-SNAPSHOT.pom
[JENKINS] Archiving 

 to 
org.apache.tomee/tomee-server-version/8.0.8-SNAPSHOT/tomee-server-version-8.0.8-SNAPSHOT.pom
[JENKINS] Archiving 

 to org.apache.tomee/server/8.0.8-SNAPSHOT/server-8.0.8-SNAPSHOT.pom
[JENKINS] Archiving 

 to 
org.apache.tomee/mbean-annotation-api/8.0.8-SNAPSHOT/mbean-annotation-api-8.0.8-SNAPSHOT.pom
[JENKINS] Archiving 

 to 
org.apache.tomee/openejb-standalone/8.0.8-SNAPSHOT/openejb-standalone-8.0.8-SNAPSHOT.pom
[JENKINS] Archiving 

 to 
org.apache.tomee/arquillian-tomee-remote/8.0.8-SNAPSHOT/arquillian-tomee-remote-8.0.8-SNAPSHOT.pom
[JENKINS] Archiving 

 to 
org.apache.openejb.itests/legacy-client/8.0.8-SNAPSHOT/legacy-client-8.0.8-SNAPSHOT.pom
[JENKINS] Archiving 

 to 
org.apache.tomee/arquillian-tomee-codi-tests/8.0.8-SNAPSHOT/arquillian-tomee-codi-tests-8.0.8-SNAPSHOT.pom
[JENKINS] Archiving 

 to org.apache.tomee/openejb-ssh/8.0.8-SNAPSHOT/openejb-ssh-8.0.8-SNAPSHOT.pom
[JENKINS] Archiving 

 to org.apache.tomee/bval-tomee/8.0.8-SNAPSHOT/bval-tomee-8.0.8-SNAPSHOT.pom
[JENKINS] Archiving 

 to org.apache.tomee/tomee-common/8.0.8-SNAPSHOT/tomee-common-8.0.8-SNAPSHOT.pom
[JENKINS] Archiving 

 to 
org.apache.tomee.bom/tomee-microprofile-api/8.0.8-SNAPSHOT/tomee-microprofile-api-8.0.8-SNAPSHOT.pom
[JENKINS] Archiving 

 to 
org.apache.tomee/openejb-core-hibernate/8.0.8-SNAPSHOT/openejb-core-hibernate-8.0.8-SNAPSHOT.pom
[JENKINS] Archiving 

 to 
org.apache.tomee/microprofile-tck/8.0.8-SNAPSHOT/microprofile-tck-8.0.8-SNAPSHOT.pom
[JENKINS] Archiving 

 to org.apache.tomee/tomee-jaxrs/8.0.8-SNAPSHOT/tomee-jaxrs-8.0.8-SNAPSHOT.pom
[JENKINS] Archiving 

 to 
org.apache.tomee/openejb-hessian/8.0.8-SNAPSHOT/openejb-hessian-8.0.8-SNAPSHOT.pom
[JENKINS] Archiving 

 to 
org.apache.tomee/arquillian-tomee-moviefun-example/8.0.8-SNAPSHOT/arquillian-tomee-moviefun-example-8.0.8-SNAPSHOT.pom
[JENKINS] Archiving 

 to org.apache.tomee.bom/tomee-plus/8.0.8-SNAPSHOT/tomee-plus-8.0.8-SNAPSHOT.pom
[Fast Archiver] Compressed 63.17 KB of artifacts by 50.7% relative to #180
[JENKINS] Archiving 

 to 

Build failed in Jenkins: TomEE » master-sanity-checks » Apache OpenEJB #181

2021-06-16 Thread Apache Jenkins Server
See 


Changes:


--
[...truncated 3.41 KB...]
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info
[HUDSON] Collecting dependencies info[INFO] 

[INFO] Reactor Build Order:
[INFO] 

[HUDSON] Collecting dependencies info[INFO] Apache OpenEJB  
   [pom]

[INFO] TomEE :: Deps  [pom]
[INFO] TomEE :: Deps :: Taglibs Shade [jar]
[HUDSON] Collecting dependencies info[INFO] TomEE :: Deps :: CXF Shade  
   [jar]

[INFO] TomEE :: BOMs  [pom]
[HUDSON] Collecting dependencies info[INFO] TomEE :: BOMs :: JAXB Runtime   
   [pom]

[INFO] TomEE :: Container [pom]
[HUDSON] Collecting dependencies info[INFO] TomEE :: Container :: MBean 
Annotation API [jar]

[INFO] TomEE :: Container :: JPA Integration  [jar]
[HUDSON] Collecting dependencies info[INFO] TomEE :: Container :: API   
   [jar]

[INFO] TomEE :: Container :: Loader   [jar]
[HUDSON] Collecting dependencies info[INFO] TomEE :: Container :: Java Agent
   [jar]

[INFO] TomEE :: Container :: Java EE  [jar]
[HUDSON] Collecting dependencies info[INFO] TomEE :: Container :: Java EE 
Accessors[jar]

[INFO] TomEE :: iTests[pom]
[INFO] TomEE :: iTests :: Beans   [jar]
[HUDSON] Collecting dependencies info[INFO] TomEE :: iTests :: Interceptor 
Beans   [jar]
[INFO] TomEE :: iTests :: Servlets[jar]

[INFO] TomEE :: iTests :: Client  [jar]
[HUDSON] Collecting dependencies info[INFO] TomEE :: iTests :: App  
 

[tomee] branch master updated: TOMEE-3758 Jakarta Security example with tomcat-users.xml identity store

2021-06-16 Thread jlmonteiro
This is an automated email from the ASF dual-hosted git repository.

jlmonteiro 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 e77be55  TOMEE-3758 Jakarta Security example with tomcat-users.xml 
identity store
 new 57ada73  Merge branch 'master' of github.com:apache/tomee into master
e77be55 is described below

commit e77be5540121c2fa9a7925828d8bee6dcff1019f
Author: Jean-Louis Monteiro 
AuthorDate: Thu Jun 17 00:08:32 2021 +0200

TOMEE-3758 Jakarta Security example with tomcat-users.xml identity store
---
 examples/pom.xml   |   4 +
 .../security-tomcat-user-identitystore/README.adoc | 172 +
 .../security-tomcat-user-identitystore/pom.xml |  74 +
 .../src/main/java/org/superbiz/movie/Api.java  |  26 
 .../src/main/java/org/superbiz/movie}/Movie.java   |  12 +-
 .../org/superbiz/movie/MovieAdminResource.java |  76 +
 .../java/org/superbiz/movie/MovieResource.java |  69 +
 .../main/java/org/superbiz/movie/MovieStore.java   |  63 
 .../src/main/resources/META-INF/beans.xml  |  18 +++
 .../src/main/resources/conf/tomcat-users.xml   |  24 +++
 .../src/main/webapp/WEB-INF/web.xml|  35 +
 .../java/org/superbiz/movie/BasicAuthFilter.java   |  41 +
 .../java/org/superbiz/movie/MovieResourceTest.java | 170 
 13 files changed, 783 insertions(+), 1 deletion(-)

diff --git a/examples/pom.xml b/examples/pom.xml
index c4a833a..6c7b962 100644
--- a/examples/pom.xml
+++ b/examples/pom.xml
@@ -216,6 +216,10 @@
 cloud-tomee-azure
 mp-faulttolerance-timeout
 xa-datasource
+
+
+security-tomcat-user-identitystore
+
   
   
 
diff --git a/examples/security-tomcat-user-identitystore/README.adoc 
b/examples/security-tomcat-user-identitystore/README.adoc
new file mode 100644
index 000..2e8c3de
--- /dev/null
+++ b/examples/security-tomcat-user-identitystore/README.adoc
@@ -0,0 +1,172 @@
+:index-group: Jakarta Security
+:jbake-type: page
+:jbake-status: status=published
+= Jakarta Security with Tomcat tomcat-users.xml identity store
+
+TomEE has its own independent Jakarta Security implementation 
https://eclipse-ee4j.github.io/security-api/ .
+
+[NOTE]
+
+Jakarta Security defines a standard for creating secure Jakarta EE 
applications in modern application paradigms. It defines an overarching 
(end-user targeted) Security API for Jakarta EE Applications.
+
+Jakarta Security builds on the lower level Security SPIs defined by Jakarta 
Authentication and Jakarta Authorization, which are both not end-end targeted.
+
+
+This example focuses in showing how to leverage Jakarta Security in TomEE with 
Tomcat's tomcat-users.xml.
+TomEE out of the box supports it as an identity store.
+
+== Implement a simple JAX-RS application
+
+This movie example has 2 resources, one of them `MovieAdminResource` is a 
protected resource to ensure only admin users can add or delete movies.
+
+[source,xml]
+
+http://xmlns.jcp.org/xml/ns/javaee;
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
+  xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee 
http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd;
+  version="3.1"
+>
+
+  
+
+  
+
+  Protected admin resource/url
+  /api/movies/*
+  GET
+
+
+  admin
+
+  
+
+
+
+
+== Defining identity store and authentication mechanism
+
+Jakarta Security requires 2 things to authenticate a user
+
+* the identity store (aka `tomcat-users.xml` in this case): this is basically 
where users are stored with their user
+name, password, and the roles
+* the authentication mechanism: how the credentials are passed in.
+
+In this example, we want to use `tomcat-users.xml` identity store and basic 
authentication.
+We can define that in the resource itself using 2 annotations
+
+[source,java]
+
+@Path("/movies")
+@Produces(MediaType.APPLICATION_JSON)
+@Consumes(MediaType.APPLICATION_JSON)
+@TomcatUserIdentityStoreDefinition
+@BasicAuthenticationMechanismDefinition
+@ApplicationScoped
+public class MovieAdminResource {
+
+private static final Logger LOGGER = 
Logger.getLogger(MovieAdminResource.class.getName());
+
+@Inject
+private MovieStore store;
+
+// JAXRS security context also wired with Jakarta Security
+@Context
+private javax.ws.rs.core.SecurityContext securityContext;
+
+@POST
+public Movie addMovie(final Movie newMovie) {
+LOGGER.info(getUserName() + " adding new movie " + newMovie);
+return store.addMovie(newMovie);
+}
+
+// See source file for full content
+
+private String getUserName() {
+if (securityContext.getUserPrincipal() != null) {
+return String.format("%s[admin=%s]",
+ securityContext.getUserPrincipal().getName(),
+

Build failed in Jenkins: TomEE » master-build-quick #138

2021-06-16 Thread Apache Jenkins Server
See 


Changes:


--
[...truncated 10.40 MB...]
Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to 
channel
at 
hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1800)
at 
hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:357)
at hudson.remoting.Channel$2.adapt(Channel.java:1037)
at hudson.remoting.Channel$2.adapt(Channel.java:1033)
at hudson.remoting.FutureAdapter.get(FutureAdapter.java:59)
at 
hudson.maven.AbstractMavenBuilder.waitForAsynchronousExecutions(AbstractMavenBuilder.java:186)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:144)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:70)
at hudson.remoting.UserRequest.perform(UserRequest.java:211)
at hudson.remoting.UserRequest.perform(UserRequest.java:54)
at hudson.remoting.Request$2.run(Request.java:375)
at 
hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:73)
... 4 more
ERROR: Asynchronous execution failure
java.util.concurrent.ExecutionException: java.lang.NullPointerException
at hudson.remoting.Channel$2.adapt(Channel.java:1039)
at hudson.remoting.Channel$2.adapt(Channel.java:1033)
at hudson.remoting.FutureAdapter.get(FutureAdapter.java:59)
at 
hudson.maven.AbstractMavenBuilder.waitForAsynchronousExecutions(AbstractMavenBuilder.java:186)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:144)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:70)
at hudson.remoting.UserRequest.perform(UserRequest.java:211)
at hudson.remoting.UserRequest.perform(UserRequest.java:54)
at hudson.remoting.Request$2.run(Request.java:375)
at 
hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:73)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException
ERROR: Asynchronous execution failure
java.util.concurrent.ExecutionException: java.lang.NullPointerException
at hudson.remoting.Channel$2.adapt(Channel.java:1039)
at hudson.remoting.Channel$2.adapt(Channel.java:1033)
at hudson.remoting.FutureAdapter.get(FutureAdapter.java:59)
at 
hudson.maven.AbstractMavenBuilder.waitForAsynchronousExecutions(AbstractMavenBuilder.java:186)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:144)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:70)
at hudson.remoting.UserRequest.perform(UserRequest.java:211)
at hudson.remoting.UserRequest.perform(UserRequest.java:54)
at hudson.remoting.Request$2.run(Request.java:375)
at 
hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:73)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException
ERROR: Asynchronous execution failure
java.util.concurrent.ExecutionException: java.lang.NullPointerException
at hudson.remoting.Channel$2.adapt(Channel.java:1039)
at hudson.remoting.Channel$2.adapt(Channel.java:1033)
at hudson.remoting.FutureAdapter.get(FutureAdapter.java:59)
at 
hudson.maven.AbstractMavenBuilder.waitForAsynchronousExecutions(AbstractMavenBuilder.java:186)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:144)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:70)
at hudson.remoting.UserRequest.perform(UserRequest.java:211)
at hudson.remoting.UserRequest.perform(UserRequest.java:54)
at hudson.remoting.Request$2.run(Request.java:375)
at 
hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:73)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException
ERROR: Asynchronous execution failure
java.util.concurrent.ExecutionException: java.io.IOException: Unexpected 
Fingerprint type. Expected class hudson.model.Fingerprint or 

Build failed in Jenkins: TomEE » master-build-quick » TomEE :: TomEE :: Apache TomEE #138

2021-06-16 Thread Apache Jenkins Server
See 


Changes:


--
[INFO] 
[INFO] ---< org.apache.tomee:apache-tomee >
[INFO] Building TomEE :: TomEE :: Apache TomEE 8.0.8-SNAPSHOT   [57/57]
[INFO] [ jar ]-
[INFO] 
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ apache-tomee ---
[INFO] 
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven-version) @ 
apache-tomee ---
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (process-resource-bundles) 
@ apache-tomee ---
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ 
apache-tomee ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 18 resources
[INFO] Copying 19 resources
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:resources (filter-resources) @ 
apache-tomee ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 18 resources
[INFO] Copying 19 resources
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-dependency-plugin:3.0.1:copy (copy-tomcat-for-webprofile) @ 
apache-tomee ---
[INFO] Configured Artifact: org.apache.tomcat:tomcat:9.0.45:zip
[INFO] Copying tomcat-9.0.45.zip to 

[INFO] 
[INFO] --- maven-dependency-plugin:3.0.1:copy (copy-tomcat-for-plus) @ 
apache-tomee ---
[INFO] Configured Artifact: org.apache.tomcat:tomcat:9.0.45:zip
[INFO] Copying tomcat-9.0.45.zip to 

[INFO] 
[INFO] --- maven-dependency-plugin:3.0.1:copy (copy-tomcat-for-plume) @ 
apache-tomee ---
[INFO] Configured Artifact: org.apache.tomcat:tomcat:9.0.45:zip
[INFO] Copying tomcat-9.0.45.zip to 

[INFO] 
[INFO] --- maven-dependency-plugin:3.0.1:copy (copy-tomcat-for-microprofile) @ 
apache-tomee ---
[INFO] Configured Artifact: org.apache.tomcat:tomcat:9.0.45:zip
[INFO] Copying tomcat-9.0.45.zip to 

[INFO] 
[INFO] --- maven-compiler-plugin:3.6.2:compile (default-compile) @ apache-tomee 
---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to 

[INFO] 
[INFO] --- dependency-report-plugin:1.0.2:report (default) @ apache-tomee ---
[INFO] Couldn't find parent for org.codehaus.swizzle:swizzle-stream:jar:1.6.2
[INFO] Couldn't find parent for org.apache.xbean:xbean-naming:jar:4.18
[INFO] Couldn't find parent for 
org.apache.tomee:openejb-loader:jar:8.0.8-SNAPSHOT
[INFO] 
[INFO] --- maven-bundle-plugin:3.3.0:manifest (bundle-manifest) @ apache-tomee 
---
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:testResources (default-testResources) @ 
apache-tomee ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory 

[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.6.2:testCompile (default-testCompile) @ 
apache-tomee ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 5 source files to 

[INFO] 
[INFO] --- maven-surefire-plugin:3.0.0-M5:test (default-test) @ apache-tomee ---
[INFO] 
[INFO] ---
[INFO]  T E S T S
[INFO] ---
[INFO] 
[INFO] Results:
[INFO] 
[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO] 
[JENKINS] Recording test results
[INFO] 
[INFO] --- groovy-maven-plugin:2.0:execute (execute-web-profile-installer) @ 
apache-tomee ---
[INFO] extracting 

Expanding: 

 into 

[INFO] Deploying the tomee war


[tomee] branch master updated: CI env is suffering from OutOfMemory issues for the cdi tck tests resulting in build timeouts - increases the memory and see, if this helps CI to execute the tests.

2021-06-16 Thread rzo1
This is an automated email from the ASF dual-hosted git repository.

rzo1 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 04fe629  CI env is suffering from OutOfMemory issues for the cdi tck 
tests resulting in build timeouts - increases the memory and see, if this helps 
CI to execute the tests.
04fe629 is described below

commit 04fe6295884e41524732be5a9b3c990cc6c78a76
Author: Richard Zowalla 
AuthorDate: Wed Jun 16 22:44:01 2021 +0200

CI env is suffering from OutOfMemory issues for the cdi tck tests resulting 
in build timeouts - increases the memory and see, if this helps CI to execute 
the tests.
---
 tck/cdi-embedded/pom.xml | 2 +-
 tck/cdi-tomee/pom.xml| 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/tck/cdi-embedded/pom.xml b/tck/cdi-embedded/pom.xml
index ad11048..902a078 100644
--- a/tck/cdi-embedded/pom.xml
+++ b/tck/cdi-embedded/pom.xml
@@ -255,7 +255,7 @@
 1.8
   
   
--Xmx1536m -XX:PermSize=512m -XX:MaxPermSize=512m 
-XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled 
-XX:+CMSPermGenSweepingEnabled
+-Xmx3096m -XX:PermSize=512m -XX:MaxPermSize=512m 
-XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled 
-XX:+CMSPermGenSweepingEnabled
   
 
   
diff --git a/tck/cdi-tomee/pom.xml b/tck/cdi-tomee/pom.xml
index 6810c9d..7c9d84e 100644
--- a/tck/cdi-tomee/pom.xml
+++ b/tck/cdi-tomee/pom.xml
@@ -247,9 +247,9 @@
 1.8
   
   
--Xmx1536m -XX:PermSize=512m -XX:MaxPermSize=512m 
-XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled 
-XX:+CMSPermGenSweepingEnabled
+-Xmx3096m -XX:PermSize=512m -XX:MaxPermSize=512m 
-XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled 
-XX:+CMSPermGenSweepingEnabled
   
 
   
 
-
+
\ No newline at end of file


Jenkins build became unstable: TomEE » master-build-full » TomEE :: Examples :: Simple Stateful Pojo Callbacks #213

2021-06-16 Thread Apache Jenkins Server
See 




Build failed in Jenkins: TomEE » master-build-quick #137

2021-06-16 Thread Apache Jenkins Server
See 


Changes:

[Richard Zowalla] Switches to https instead of http to avoid 
maven-default-http-blocker in CI env


--
[...truncated 10.42 MB...]
at 
hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1800)
at 
hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:357)
at hudson.remoting.Channel$2.adapt(Channel.java:1037)
at hudson.remoting.Channel$2.adapt(Channel.java:1033)
at hudson.remoting.FutureAdapter.get(FutureAdapter.java:59)
at 
hudson.maven.AbstractMavenBuilder.waitForAsynchronousExecutions(AbstractMavenBuilder.java:186)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:144)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:70)
at hudson.remoting.UserRequest.perform(UserRequest.java:211)
at hudson.remoting.UserRequest.perform(UserRequest.java:54)
at hudson.remoting.Request$2.run(Request.java:375)
at 
hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:73)
... 4 more
ERROR: Asynchronous execution failure
java.util.concurrent.ExecutionException: java.lang.NullPointerException
at hudson.remoting.Channel$2.adapt(Channel.java:1039)
at hudson.remoting.Channel$2.adapt(Channel.java:1033)
at hudson.remoting.FutureAdapter.get(FutureAdapter.java:59)
at 
hudson.maven.AbstractMavenBuilder.waitForAsynchronousExecutions(AbstractMavenBuilder.java:186)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:144)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:70)
at hudson.remoting.UserRequest.perform(UserRequest.java:211)
at hudson.remoting.UserRequest.perform(UserRequest.java:54)
at hudson.remoting.Request$2.run(Request.java:375)
at 
hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:73)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException
ERROR: Asynchronous execution failure
java.util.concurrent.ExecutionException: java.lang.NullPointerException
at hudson.remoting.Channel$2.adapt(Channel.java:1039)
at hudson.remoting.Channel$2.adapt(Channel.java:1033)
at hudson.remoting.FutureAdapter.get(FutureAdapter.java:59)
at 
hudson.maven.AbstractMavenBuilder.waitForAsynchronousExecutions(AbstractMavenBuilder.java:186)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:144)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:70)
at hudson.remoting.UserRequest.perform(UserRequest.java:211)
at hudson.remoting.UserRequest.perform(UserRequest.java:54)
at hudson.remoting.Request$2.run(Request.java:375)
at 
hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:73)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException
ERROR: Asynchronous execution failure
java.util.concurrent.ExecutionException: java.lang.NullPointerException
at hudson.remoting.Channel$2.adapt(Channel.java:1039)
at hudson.remoting.Channel$2.adapt(Channel.java:1033)
at hudson.remoting.FutureAdapter.get(FutureAdapter.java:59)
at 
hudson.maven.AbstractMavenBuilder.waitForAsynchronousExecutions(AbstractMavenBuilder.java:186)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:144)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:70)
at hudson.remoting.UserRequest.perform(UserRequest.java:211)
at hudson.remoting.UserRequest.perform(UserRequest.java:54)
at hudson.remoting.Request$2.run(Request.java:375)
at 
hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:73)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException
ERROR: Asynchronous execution failure
java.util.concurrent.ExecutionException: java.io.IOException: Unexpected 
Fingerprint type. Expected class 

Jenkins build is back to stable : TomEE » master-build-quick » TomEE :: Container :: Core #137

2021-06-16 Thread Apache Jenkins Server
See 




Build failed in Jenkins: TomEE » master-build-quick » TomEE :: TomEE :: Apache TomEE #137

2021-06-16 Thread Apache Jenkins Server
See 


Changes:


--
[INFO] 
[INFO] ---< org.apache.tomee:apache-tomee >
[INFO] Building TomEE :: TomEE :: Apache TomEE 8.0.8-SNAPSHOT   [57/57]
[INFO] [ jar ]-
[INFO] 
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ apache-tomee ---
[INFO] 
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven-version) @ 
apache-tomee ---
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (process-resource-bundles) 
@ apache-tomee ---
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ 
apache-tomee ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 18 resources
[INFO] Copying 19 resources
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:resources (filter-resources) @ 
apache-tomee ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 18 resources
[INFO] Copying 19 resources
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-dependency-plugin:3.0.1:copy (copy-tomcat-for-webprofile) @ 
apache-tomee ---
[INFO] Configured Artifact: org.apache.tomcat:tomcat:9.0.45:zip
[INFO] Copying tomcat-9.0.45.zip to 

[INFO] 
[INFO] --- maven-dependency-plugin:3.0.1:copy (copy-tomcat-for-plus) @ 
apache-tomee ---
[INFO] Configured Artifact: org.apache.tomcat:tomcat:9.0.45:zip
[INFO] Copying tomcat-9.0.45.zip to 

[INFO] 
[INFO] --- maven-dependency-plugin:3.0.1:copy (copy-tomcat-for-plume) @ 
apache-tomee ---
[INFO] Configured Artifact: org.apache.tomcat:tomcat:9.0.45:zip
[INFO] Copying tomcat-9.0.45.zip to 

[INFO] 
[INFO] --- maven-dependency-plugin:3.0.1:copy (copy-tomcat-for-microprofile) @ 
apache-tomee ---
[INFO] Configured Artifact: org.apache.tomcat:tomcat:9.0.45:zip
[INFO] Copying tomcat-9.0.45.zip to 

[INFO] 
[INFO] --- maven-compiler-plugin:3.6.2:compile (default-compile) @ apache-tomee 
---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to 

[INFO] 
[INFO] --- dependency-report-plugin:1.0.2:report (default) @ apache-tomee ---
[INFO] Couldn't find parent for org.codehaus.swizzle:swizzle-stream:jar:1.6.2
[INFO] Couldn't find parent for org.apache.xbean:xbean-naming:jar:4.18
[INFO] Couldn't find parent for 
org.apache.tomee:openejb-loader:jar:8.0.8-SNAPSHOT
[INFO] 
[INFO] --- maven-bundle-plugin:3.3.0:manifest (bundle-manifest) @ apache-tomee 
---
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:testResources (default-testResources) @ 
apache-tomee ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory 

[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.6.2:testCompile (default-testCompile) @ 
apache-tomee ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 5 source files to 

[INFO] 
[INFO] --- maven-surefire-plugin:3.0.0-M5:test (default-test) @ apache-tomee ---
[INFO] 
[INFO] ---
[INFO]  T E S T S
[INFO] ---
[INFO] 
[INFO] Results:
[INFO] 
[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO] 
[JENKINS] Recording test results
[INFO] 
[INFO] --- groovy-maven-plugin:2.0:execute (execute-web-profile-installer) @ 
apache-tomee ---
[INFO] extracting 

Expanding: 

 into 

[INFO] Deploying the tomee war


[tomee] branch master updated: Switches to https instead of http to avoid maven-default-http-blocker in CI env

2021-06-16 Thread rzo1
This is an automated email from the ASF dual-hosted git repository.

rzo1 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 849f5c4  Switches to https instead of http to avoid 
maven-default-http-blocker in CI env
849f5c4 is described below

commit 849f5c49edaf567e41fbc2c5736a4b1e4b34062a
Author: Richard Zowalla 
AuthorDate: Wed Jun 16 21:09:45 2021 +0200

Switches to https instead of http to avoid maven-default-http-blocker in CI 
env
---
 examples/vaadin-lts-v10-simple/pom.xml | 4 ++--
 examples/vaadin-vxx-simple/pom.xml | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/examples/vaadin-lts-v10-simple/pom.xml 
b/examples/vaadin-lts-v10-simple/pom.xml
index 646fb6f..45a97e9 100644
--- a/examples/vaadin-lts-v10-simple/pom.xml
+++ b/examples/vaadin-lts-v10-simple/pom.xml
@@ -58,12 +58,12 @@ http://maven.apache.org/plugins/maven-deploy-plugin/
 
 
   vaadin-addons
-  http://maven.vaadin.com/vaadin-addons
+  https://maven.vaadin.com/vaadin-addons
 
 
 
   vaadin-prereleases
-  http://maven.vaadin.com/vaadin-prereleases
+  https://maven.vaadin.com/vaadin-prereleases
 
   
   
diff --git a/examples/vaadin-vxx-simple/pom.xml 
b/examples/vaadin-vxx-simple/pom.xml
index 5a7debb..7a6e9c9 100644
--- a/examples/vaadin-vxx-simple/pom.xml
+++ b/examples/vaadin-vxx-simple/pom.xml
@@ -68,13 +68,13 @@ http://maven.apache.org/plugins/maven-deploy-plugin/
 
 
   vaadin-addons
-  http://maven.vaadin.com/vaadin-addons
+  https://maven.vaadin.com/vaadin-addons
 
 
 
 
   vaadin-prereleases
-  http://maven.vaadin.com/vaadin-prereleases
+  https://maven.vaadin.com/vaadin-prereleases
 
   
 


Build failed in Jenkins: TomEE » master-build-quick #136

2021-06-16 Thread Apache Jenkins Server
See 


Changes:

[Richard Zowalla] Fixes typo in ReloadableEntityManagerFactoryTest which breaks 
the test with OpenJPA 3.2.0

[Richard Zowalla] See, if this will fix ReloadableEntityManagerFactoryTest 
related to TOMEE-3753 and OPENJPA-2844


--
[...truncated 31.41 KB...]
No mail will be sent out, as 'TomEE » master-build-quick » TomEE :: Maven 
Plugins :: OpenEJB Embedded Maven Plugin #136' does not have a result yet. 
Please make sure you set a proper result in case of pipeline/build scripts.
No mail will be sent out, as 'TomEE » master-build-quick » TomEE :: TomEE :: 
Bootstrap #136' does not have a result yet. Please make sure you set a proper 
result in case of pipeline/build scripts.
No mail will be sent out, as 'TomEE » master-build-quick » TomEE :: BOMs :: 
TomEE Plume API #136' does not have a result yet. Please make sure you set a 
proper result in case of pipeline/build scripts.
No mail will be sent out, as 'TomEE » master-build-quick » TomEE :: Examples 
::  Singleton startup ordering #136' does not have a result yet. Please make 
sure you set a proper result in case of pipeline/build scripts.
No mail will be sent out, as 'TomEE » master-build-quick » TomEE :: Examples 
:: TestCase Injection #136' does not have a result yet. Please make sure you 
set a proper result in case of pipeline/build scripts.
No mail will be sent out, as 'TomEE » master-build-quick » TomEE :: Web 
Examples :: Struts #136' does not have a result yet. Please make sure you set a 
proper result in case of pipeline/build scripts.
No mail will be sent out, as 'TomEE » master-build-quick » TomEE :: Examples 
:: Testing Security Script Service Provider #136' does not have a result yet. 
Please make sure you set a proper result in case of pipeline/build scripts.
No mail will be sent out, as 'TomEE » master-build-quick » TomEE :: Examples 
:: @EJB Lookup #136' does not have a result yet. Please make sure you set a 
proper result in case of pipeline/build scripts.
No mail will be sent out, as 'TomEE » master-build-quick » TomEE :: Examples 
:: Testing Security #136' does not have a result yet. Please make sure you set 
a proper result in case of pipeline/build scripts.
No mail will be sent out, as 'TomEE » master-build-quick » TomEE :: Examples 
:: Microprofile Fault Tolerance :: Fallback #136' does not have a result yet. 
Please make sure you set a proper result in case of pipeline/build scripts.
No mail will be sent out, as 'TomEE » master-build-quick » TomEE :: Examples 
:: REST, Mockito and Application Composer #136' does not have a result yet. 
Please make sure you set a proper result in case of pipeline/build scripts.
No mail will be sent out, as 'TomEE » master-build-quick » TomEE :: Examples 
:: Testing Security Service Provider #136' does not have a result yet. Please 
make sure you set a proper result in case of pipeline/build scripts.
No mail will be sent out, as 'TomEE » master-build-quick » TomEE :: Container 
:: API #136' does not have a result yet. Please make sure you set a proper 
result in case of pipeline/build scripts.
No mail will be sent out, as 'TomEE » master-build-quick » TomEE :: Examples 
:: Decorators #136' does not have a result yet. Please make sure you set a 
proper result in case of pipeline/build scripts.
No mail will be sent out, as 'TomEE » master-build-quick » TomEE :: Examples 
:: REST and EJB #136' does not have a result yet. Please make sure you set a 
proper result in case of pipeline/build scripts.
No mail will be sent out, as 'TomEE » master-build-quick » TomEE :: Examples 
:: Alternate Descriptors #136' does not have a result yet. Please make sure you 
set a proper result in case of pipeline/build scripts.
No mail will be sent out, as 'TomEE » master-build-quick » TomEE :: Container 
:: JUnit #136' does not have a result yet. Please make sure you set a proper 
result in case of pipeline/build scripts.
No mail will be sent out, as 'TomEE » master-build-quick » TomEE :: Examples 
:: Movies Complete (Meta) #136' does not have a result yet. Please make sure 
you set a proper result in case of pipeline/build scripts.
No mail will be sent out, as 'TomEE » master-build-quick » TomEE :: Examples 
:: Multiple TomEE with Arquillian #136' does not have a result yet. Please make 
sure you set a proper result in case of pipeline/build scripts.
No mail will be sent out, as 'TomEE » master-build-quick » TomEE :: TCK #136' 
does not have a result yet. Please make sure you set a proper result in case of 
pipeline/build scripts.
No mail will be sent out, as 'TomEE » master-build-quick » TomEE :: TCK :: 
Bean Validation TCK Signature tests #136' does not have a result yet. Please 
make sure you set a proper result in case of pipeline/build scripts.
No mail will be sent out, as 'TomEE » master-build-quick » TomEE :: Examples 
:: 

[tomee-chatterbox] branch master updated: Added README

2021-06-16 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-chatterbox.git


The following commit(s) were added to refs/heads/master by this push:
 new 6bdb76f  Added README
6bdb76f is described below

commit 6bdb76fb5205d613b3ebdb9cb3351488cb29c842
Author: Jonathan Gallimore 
AuthorDate: Wed Jun 16 15:42:21 2021 +0100

Added README
---
 chatterbox-nats/README.adoc | 153 
 1 file changed, 153 insertions(+)

diff --git a/chatterbox-nats/README.adoc b/chatterbox-nats/README.adoc
new file mode 100644
index 000..d3f8b40
--- /dev/null
+++ b/chatterbox-nats/README.adoc
@@ -0,0 +1,153 @@
+= Chatterbox NATS
+
+== Introduction
+
+This connector provides a sample for connecting to a NATS server from a Java 
EE environment, such as TomEE. NATS provides async messaging. At a high-level,
+you can connect to a NATS server and consume messages with the following code:
+
+[source,java]
+
+ final StreamingConnectionFactory cf = new 
StreamingConnectionFactory(new Options.Builder().natsUrl(baseAddressNats)
+.clusterId("cluster-id").clientId("client-id").build());
+
+ final StreamingConnection connection =  cf.createConnection();
+
+ connection.subscribe("scheduler:notify", new MessageHandler() {
+  @Override
+  public void onMessage(Message m) {
+  try {
+  // handle the message
+
+  m.ack();
+  } catch (Exception e) {
+  // handle exception
+  }
+  }
+  }
+
+
+The challenge here is handling the MessageHander callback, with all the 
relevant dependency injections correctly available,
+in a portable manner, without specific knowledge of any app server internals. 
Message-driven beans provide the opportunity
+to do this.
+
+== Testing the example out
+
+The connector includes a very simple sample web application, which can both 
send and receive messages to/from a NATS server.
+You will need:
+
+* A NATS server
+* Some system properties
+
+The easy way to start a NATS server if you don't have one is to use the docker 
compose file included:
+
+[source,bash]
+
+docker compose up -d
+
+
+This will start a NATS server listening on tcp/4222 with a cluster ID of 
`mycluster`.
+
+Next we'll need to tell TomEE how to connect to that server - the easiest way 
to do this is to add the following lines to `~/.openejb/system.properties`
+
+NOTE: the system property name follows this format: .=.
+ is the name of the RAR file, without the .rar extention, with "RA" 
appended on the end. For example, `chatterbox-nats-rar-0.3-SNAPSHOT.rar`
+becomes `chatterbox-nats-rar-0.3-SNAPSHOTRA`.
+
+[source]
+
+chatterbox-nats-rar-0.3-SNAPSHOTRA.baseAddress=nats://localhost:4222
+chatterbox-nats-rar-0.3-SNAPSHOTRA.clusterId=mycluster
+chatterbox-nats-rar-0.3-SNAPSHOTRA.clientId=tomee1
+
+
+We can now start the sample application using the TomEE Maven Plugin:
+
+[source,bash]
+
+cd tomee-chatterbox/chatterbox-nats/chatterbox-nats-sample-war
+mvn clean install tomee:run
+
+
+Once the application has started, running the following:
+
+[source,bash]
+
+curl -d testing -v -H "Content-Type: text/plain" 
"http://localhost:8080/chatterbox-nats-sample-war-0.3-SNAPSHOT/sender/echo;
+
+
+Will send the message "testing" to a NATS subject called "echo". The MDB in 
the application is listening on the "echo" subject and
+will echo any messages received to STDOUT.
+
+== I like it, can I deploy it in my TomEE instance?
+
+Absolutely. You'll need to do a couple of things:
+
+Firstly, the resource adapter has an API, and you'll want to deploy the jar 
file for that to the TomEE lib directory so both the server itself and any 
applications
+have visibility of it.
+
+Simple copy the chatterbox-nats-api JAR from this project to the TomEE lib 
folder.
+
+Next up, we need to deploy the resource adapter. You'll need the following 
config in `conf/tomee.xml` to enable the `apps` directory, and you'll need to 
create the `apps` directory itself:
+
+[source,xml]
+
+
+
+
+And finally, configure the resource adapter in `conf/system.properties`:
+
+[source]
+
+chatterbox-nats-rar-0.3-SNAPSHOTRA.baseAddress=nats://localhost:4222
+chatterbox-nats-rar-0.3-SNAPSHOTRA.clusterId=mycluster
+chatterbox-nats-rar-0.3-SNAPSHOTRA.clientId=tomee1
+
+
+=== Sending messages to NATS (publishing to a subject)
+
+
+To send a message, inject the NATS connection factory into your bean:
+
+[source,java]
+
+@Resource
+private NATSConnectionFactory cf;
+
+
+and then get a connection and call its `publish()` method:
+
+[source,java]
+
+final NATSConnection connection = cf.getConnection();
+connection.publish(subject, message.getBytes(StandardCharsets.UTF_8));
+

[tomee-chatterbox] 01/06: Bootstrap a NATS JCA Adapter

2021-06-16 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-chatterbox.git

commit 267d8241a992f14d8993eb936aa0e444b2f93245
Author: Jonathan Gallimore 
AuthorDate: Tue Jun 8 17:55:03 2021 +0100

Bootstrap a NATS JCA Adapter
---
 chatterbox-nats/.gitignore |  30 +++
 chatterbox-nats/chatterbox-nats-api/pom.xml|  49 +
 .../tomee/chatterbox/nats/api/InboundListener.java |  26 +++
 .../tomee/chatterbox/nats/api/NATSConnection.java  |  26 +++
 .../chatterbox/nats/api/NATSConnectionFactory.java |  28 +++
 .../tomee/chatterbox/nats/api/NATSException.java   |  23 +++
 .../tomee/chatterbox/nats/api/NATSMessage.java |  23 +++
 .../src/main/resources/META-INF/LICENSE| 201 ++
 .../src/main/resources/META-INF/NOTICE |   7 +
 chatterbox-nats/chatterbox-nats-impl/pom.xml   |  64 ++
 .../nats/adapter/NATSActivationSpec.java   |  54 +
 .../nats/adapter/NATSResourceAdapter.java  | 115 +++
 .../adapter/out/NATSConnectionFactoryImpl.java |  69 +++
 .../nats/adapter/out/NATSConnectionImpl.java   |  44 
 .../nats/adapter/out/NATSManagedConnection.java| 140 +
 .../adapter/out/NATSManagedConnectionFactory.java  | 105 ++
 .../adapter/out/NATSManagedConnectionMetaData.java |  56 +
 .../src/main/resources/META-INF/LICENSE| 201 ++
 .../src/main/resources/META-INF/NOTICE |   7 +
 chatterbox-nats/chatterbox-nats-rar/pom.xml|  42 
 .../src/main/rar/META-INF/LICENSE  | 201 ++
 .../src/main/rar/META-INF/NOTICE   |   5 +
 .../src/main/rar/META-INF/ra.xml   |  63 ++
 chatterbox-nats/chatterbox-nats-sample-war/pom.xml | 102 +
 .../src/main/java/org/superbiz/Sender.java |  54 +
 .../src/main/java/org/superbiz/SystemBean.java |  33 +++
 .../src/main/resources/META-INF/LICENSE| 201 ++
 .../src/main/resources/META-INF/NOTICE |   7 +
 .../src/main/resources/META-INF/ejb-jar.xml|  26 +++
 chatterbox-nats/docker-compose.yml |  35 
 chatterbox-nats/pom.xml| 229 +
 pom.xml|   1 +
 32 files changed, 2267 insertions(+)

diff --git a/chatterbox-nats/.gitignore b/chatterbox-nats/.gitignore
new file mode 100644
index 000..9e544aa
--- /dev/null
+++ b/chatterbox-nats/.gitignore
@@ -0,0 +1,30 @@
+# Java #
+*.class
+*.ser
+
+# Package Files #
+*.jar
+*.war
+*.ear
+
+# IDEA #
+*.iml
+.idea
+*~
+
+# eclipse specific git ignore
+.project
+.metadata
+.classpath
+.settings/
+
+
+# Maven files #
+target/
+pom.xml.tag
+pom.xml.releaseBackup
+pom.xml.next
+release.properties
+
+# Checkstyle #
+.checkstyle
diff --git a/chatterbox-nats/chatterbox-nats-api/pom.xml 
b/chatterbox-nats/chatterbox-nats-api/pom.xml
new file mode 100644
index 000..6f4ca62
--- /dev/null
+++ b/chatterbox-nats/chatterbox-nats-api/pom.xml
@@ -0,0 +1,49 @@
+
+
+
+http://maven.apache.org/POM/4.0.0; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd;>
+
+  4.0.0
+
+  
+org.apache.tomee.chatterbox
+chatterbox-nats-parent
+0.3-SNAPSHOT
+  
+
+  chatterbox-nats-api
+  jar
+  Chatterbox :: NATS :: API
+
+  
+UTF-8
+1.1.1.Final
+
2.0.0-alpha-5
+1.0.1
+  
+
+  
+
+  javax
+  javaee-api
+  provided
+
+  
+
diff --git 
a/chatterbox-nats/chatterbox-nats-api/src/main/java/org/apache/tomee/chatterbox/nats/api/InboundListener.java
 
b/chatterbox-nats/chatterbox-nats-api/src/main/java/org/apache/tomee/chatterbox/nats/api/InboundListener.java
new file mode 100644
index 000..5f7ea6c
--- /dev/null
+++ 
b/chatterbox-nats/chatterbox-nats-api/src/main/java/org/apache/tomee/chatterbox/nats/api/InboundListener.java
@@ -0,0 +1,26 @@
+/*
+ * 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.tomee.chatterbox.nats.api;
+
+/**
+ * 

[tomee-chatterbox] 04/06: Add basic test to isolate timeout issue from the resource adapter

2021-06-16 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-chatterbox.git

commit 5beef6afd49c250e87aaace35cd86aebbf3398e6
Author: Jonathan Gallimore 
AuthorDate: Wed Jun 9 14:19:39 2021 +0100

Add basic test to isolate timeout issue from the resource adapter
---
 .../nats/adapter/NATSResourceAdapter.java  |  2 +-
 .../tomee/chatterbox/nats/adapter/NATSTest.java| 22 ++
 2 files changed, 23 insertions(+), 1 deletion(-)

diff --git 
a/chatterbox-nats/chatterbox-nats-impl/src/main/java/org/apache/tomee/chatterbox/nats/adapter/NATSResourceAdapter.java
 
b/chatterbox-nats/chatterbox-nats-impl/src/main/java/org/apache/tomee/chatterbox/nats/adapter/NATSResourceAdapter.java
index 4ed4485..fdea9a8 100644
--- 
a/chatterbox-nats/chatterbox-nats-impl/src/main/java/org/apache/tomee/chatterbox/nats/adapter/NATSResourceAdapter.java
+++ 
b/chatterbox-nats/chatterbox-nats-impl/src/main/java/org/apache/tomee/chatterbox/nats/adapter/NATSResourceAdapter.java
@@ -73,7 +73,7 @@ public class NATSResourceAdapter implements ResourceAdapter {
 try {
 cf = new
 StreamingConnectionFactory(new 
Options.Builder().natsUrl(baseAddress)
-.clusterId("cluster-id").clientId("client-id").build());
+.clusterId("cluster-id").clientId("yourclientid").build());
 
 connection = cf.createConnection();
 } catch (Throwable t) {
diff --git 
a/chatterbox-nats/chatterbox-nats-impl/src/test/java/org/apache/tomee/chatterbox/nats/adapter/NATSTest.java
 
b/chatterbox-nats/chatterbox-nats-impl/src/test/java/org/apache/tomee/chatterbox/nats/adapter/NATSTest.java
new file mode 100644
index 000..d2e4258
--- /dev/null
+++ 
b/chatterbox-nats/chatterbox-nats-impl/src/test/java/org/apache/tomee/chatterbox/nats/adapter/NATSTest.java
@@ -0,0 +1,22 @@
+package org.apache.tomee.chatterbox.nats.adapter;
+
+import io.nats.streaming.Options;
+import io.nats.streaming.StreamingConnection;
+import io.nats.streaming.StreamingConnectionFactory;
+import org.junit.Assert;
+import org.junit.Test;
+
+public class NATSTest {
+
+@Test
+public void testShouldConnect() throws Exception {
+StreamingConnectionFactory cf = new
+StreamingConnectionFactory(new 
Options.Builder().natsUrl("nats://localhost:4222")
+.clusterId("cluster-id").clientId("yourclientid").build());
+
+final StreamingConnection connection = cf.createConnection();
+Assert.assertNotNull(connection);
+
+connection.close();
+}
+}


[tomee-chatterbox] 05/06: Basic adapter working end-to-end. Some more fine tuning needed.

2021-06-16 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-chatterbox.git

commit 0450a3382c4418e8cd320ae8169d78171b00198e
Author: Jonathan Gallimore 
AuthorDate: Thu Jun 10 17:59:46 2021 +0100

Basic adapter working end-to-end. Some more fine tuning needed.
---
 .../nats/adapter/NATSResourceAdapter.java  | 21 ++---
 .../tomee/chatterbox/nats/adapter/NATSTest.java| 22 --
 .../src/main/java/org/superbiz/EchoBean.java   |  2 --
 3 files changed, 14 insertions(+), 31 deletions(-)

diff --git 
a/chatterbox-nats/chatterbox-nats-impl/src/main/java/org/apache/tomee/chatterbox/nats/adapter/NATSResourceAdapter.java
 
b/chatterbox-nats/chatterbox-nats-impl/src/main/java/org/apache/tomee/chatterbox/nats/adapter/NATSResourceAdapter.java
index fdea9a8..cfbbf41 100644
--- 
a/chatterbox-nats/chatterbox-nats-impl/src/main/java/org/apache/tomee/chatterbox/nats/adapter/NATSResourceAdapter.java
+++ 
b/chatterbox-nats/chatterbox-nats-impl/src/main/java/org/apache/tomee/chatterbox/nats/adapter/NATSResourceAdapter.java
@@ -73,7 +73,7 @@ public class NATSResourceAdapter implements ResourceAdapter {
 try {
 cf = new
 StreamingConnectionFactory(new 
Options.Builder().natsUrl(baseAddress)
-.clusterId("cluster-id").clientId("yourclientid").build());
+
.clusterId("yourclientid").clientId("anythingyoulike").build());
 
 connection = cf.createConnection();
 } catch (Throwable t) {
@@ -159,14 +159,21 @@ public class NATSResourceAdapter implements 
ResourceAdapter {
 try {
 messageEndpoint.beforeDelivery(ONMESSAGE);
 
-final NATSMessage message = (NATSMessage) 
Proxy.newProxyInstance(getClass().getClassLoader(), new 
Class[]{InboundListener.class}, new InvocationHandler() {
-@Override
-public Object invoke(Object proxy, Method method, 
Object[] args) throws Throwable {
-return method.invoke(msg, args);
-}
-});
+final NATSMessage message = (NATSMessage) 
Proxy.newProxyInstance(
+getClass().getClassLoader(),
+new Class[]{NATSMessage.class},
+new InvocationHandler() {
+@Override
+public Object invoke(Object proxy, Method 
method, Object[] args) throws Throwable {
+final Method m = 
Message.class.getMethod(method.getName(), method.getParameterTypes());
+return m.invoke(msg, args);
+}
+}
+);
 
 ((InboundListener) messageEndpoint).onMessage(message);
+} catch (Exception e) {
+e.printStackTrace();
 } finally {
 messageEndpoint.afterDelivery();
 }
diff --git 
a/chatterbox-nats/chatterbox-nats-impl/src/test/java/org/apache/tomee/chatterbox/nats/adapter/NATSTest.java
 
b/chatterbox-nats/chatterbox-nats-impl/src/test/java/org/apache/tomee/chatterbox/nats/adapter/NATSTest.java
deleted file mode 100644
index d2e4258..000
--- 
a/chatterbox-nats/chatterbox-nats-impl/src/test/java/org/apache/tomee/chatterbox/nats/adapter/NATSTest.java
+++ /dev/null
@@ -1,22 +0,0 @@
-package org.apache.tomee.chatterbox.nats.adapter;
-
-import io.nats.streaming.Options;
-import io.nats.streaming.StreamingConnection;
-import io.nats.streaming.StreamingConnectionFactory;
-import org.junit.Assert;
-import org.junit.Test;
-
-public class NATSTest {
-
-@Test
-public void testShouldConnect() throws Exception {
-StreamingConnectionFactory cf = new
-StreamingConnectionFactory(new 
Options.Builder().natsUrl("nats://localhost:4222")
-.clusterId("cluster-id").clientId("yourclientid").build());
-
-final StreamingConnection connection = cf.createConnection();
-Assert.assertNotNull(connection);
-
-connection.close();
-}
-}
diff --git 
a/chatterbox-nats/chatterbox-nats-sample-war/src/main/java/org/superbiz/EchoBean.java
 
b/chatterbox-nats/chatterbox-nats-sample-war/src/main/java/org/superbiz/EchoBean.java
index e66e0ff..12b69fa 100644
--- 
a/chatterbox-nats/chatterbox-nats-sample-war/src/main/java/org/superbiz/EchoBean.java
+++ 
b/chatterbox-nats/chatterbox-nats-sample-war/src/main/java/org/superbiz/EchoBean.java
@@ -34,8 +34,6 @@ public class EchoBean implements InboundListener {
 try {
 final String text = new String(message.getData(), 
StandardCharsets.UTF_8);
 System.out.println(text);
-
-message.ack();
   

[tomee-chatterbox] 06/06: Adding parameters and logging

2021-06-16 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-chatterbox.git

commit 6d150f94cd8f62ca94327b654c7c8d4aa2f28bed
Author: Jonathan Gallimore 
AuthorDate: Wed Jun 16 14:35:24 2021 +0100

Adding parameters and logging
---
 .../nats/adapter/NATSResourceAdapter.java  | 23 ++
 .../src/main/rar/META-INF/ra.xml   |  8 
 chatterbox-nats/docker-compose.yml |  2 +-
 3 files changed, 24 insertions(+), 9 deletions(-)

diff --git 
a/chatterbox-nats/chatterbox-nats-impl/src/main/java/org/apache/tomee/chatterbox/nats/adapter/NATSResourceAdapter.java
 
b/chatterbox-nats/chatterbox-nats-impl/src/main/java/org/apache/tomee/chatterbox/nats/adapter/NATSResourceAdapter.java
index cfbbf41..2f52de6 100644
--- 
a/chatterbox-nats/chatterbox-nats-impl/src/main/java/org/apache/tomee/chatterbox/nats/adapter/NATSResourceAdapter.java
+++ 
b/chatterbox-nats/chatterbox-nats-impl/src/main/java/org/apache/tomee/chatterbox/nats/adapter/NATSResourceAdapter.java
@@ -45,10 +45,13 @@ import java.lang.reflect.Proxy;
 import java.util.Map;
 import java.util.concurrent.ConcurrentHashMap;
 import java.lang.IllegalStateException;
+import java.util.logging.Level;
+import java.util.logging.Logger;
 
 @Connector(description = "Sample Resource Adapter", displayName = "Sample 
Resource Adapter", eisType = "Sample Resource Adapter", version = "1.0")
 public class NATSResourceAdapter implements ResourceAdapter {
-final Map targets = new 
ConcurrentHashMap();
+private static final Logger LOGGER = 
Logger.getLogger(NATSResourceAdapter.class.getName());
+private final Map targets = new 
ConcurrentHashMap();
 
 private static final Method ONMESSAGE;
 
@@ -63,6 +66,12 @@ public class NATSResourceAdapter implements ResourceAdapter {
 @ConfigProperty
 private String baseAddress;
 
+@ConfigProperty
+private String clientId;
+
+@ConfigProperty
+private String clusterId;
+
 private WorkManager workManager;
 private StreamingConnectionFactory cf;
 private StreamingConnection connection;
@@ -73,12 +82,11 @@ public class NATSResourceAdapter implements ResourceAdapter 
{
 try {
 cf = new
 StreamingConnectionFactory(new 
Options.Builder().natsUrl(baseAddress)
-
.clusterId("yourclientid").clientId("anythingyoulike").build());
+.clusterId(clusterId).clientId(clientId).build());
 
 connection = cf.createConnection();
 } catch (Throwable t) {
-// TODO: log this
-t.printStackTrace();
+LOGGER.log(Level.SEVERE, "Error starting connection to NATS 
server", t);
 }
 }
 
@@ -86,7 +94,7 @@ public class NATSResourceAdapter implements ResourceAdapter {
 try {
 connection.close();
 } catch (Throwable t) {
-// TODO: log this
+LOGGER.log(Level.SEVERE, "Error closing connection to NATS 
server", t);
 }
 }
 
@@ -136,7 +144,6 @@ public class NATSResourceAdapter implements ResourceAdapter 
{
 }
 
 public void publish(final String subject, final byte[] data) throws 
NATSException {
-// publish a message
 try {
 connection.publish(subject, data);
 } catch (Exception e) {
@@ -178,7 +185,7 @@ public class NATSResourceAdapter implements ResourceAdapter 
{
 messageEndpoint.afterDelivery();
 }
 } catch (Throwable t) {
-// TODO: log this
+LOGGER.log(Level.SEVERE, "Error dispatching message from NATS 
to MDB endpoint", t);
 }
 }
 
@@ -196,7 +203,7 @@ public class NATSResourceAdapter implements ResourceAdapter 
{
 subscription.close(true);
 }
 } catch (IOException e) {
-// TODO: log this
+LOGGER.log(Level.SEVERE, "Error closing subscription to NATS 
subject", e);
 }
 }
 }
diff --git a/chatterbox-nats/chatterbox-nats-rar/src/main/rar/META-INF/ra.xml 
b/chatterbox-nats/chatterbox-nats-rar/src/main/rar/META-INF/ra.xml
index 3d4ed8e..790de56 100644
--- a/chatterbox-nats/chatterbox-nats-rar/src/main/rar/META-INF/ra.xml
+++ b/chatterbox-nats/chatterbox-nats-rar/src/main/rar/META-INF/ra.xml
@@ -35,6 +35,14 @@
   baseAddress
   String
 
+
+  clientId
+  String
+
+
+  clusterId
+  String
+
 
   
 
org.apache.tomee.chatterbox.nats.adapter.out.NATSManagedConnectionFactory
diff --git a/chatterbox-nats/docker-compose.yml 
b/chatterbox-nats/docker-compose.yml
index f1dab81..7d94584 100644
--- a/chatterbox-nats/docker-compose.yml
+++ b/chatterbox-nats/docker-compose.yml
@@ -16,7 +16,7 @@ services:
- '2'
- '-SD'
- '-cid'
-   - 

[tomee-chatterbox] 03/06: Wrap the message in a proxy, so we don't need all the libraries the NATS Streaming client uses in TomEE's classpath

2021-06-16 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-chatterbox.git

commit 0a41080d443c9a5e1be6c133233af379577c2f9a
Author: Jonathan Gallimore 
AuthorDate: Wed Jun 9 12:07:52 2021 +0100

Wrap the message in a proxy, so we don't need all the libraries the NATS 
Streaming client uses in TomEE's classpath
---
 chatterbox-nats/chatterbox-nats-api/pom.xml|  6 --
 .../tomee/chatterbox/nats/api/InboundListener.java |  4 +---
 .../api/{InboundListener.java => NATSMessage.java} | 24 ++
 chatterbox-nats/chatterbox-nats-impl/pom.xml   |  1 -
 .../nats/adapter/NATSResourceAdapter.java  | 16 +--
 chatterbox-nats/chatterbox-nats-sample-war/pom.xml |  7 ---
 .../src/main/java/org/superbiz/EchoBean.java   |  8 +++-
 7 files changed, 34 insertions(+), 32 deletions(-)

diff --git a/chatterbox-nats/chatterbox-nats-api/pom.xml 
b/chatterbox-nats/chatterbox-nats-api/pom.xml
index db16e68..6f4ca62 100644
--- a/chatterbox-nats/chatterbox-nats-api/pom.xml
+++ b/chatterbox-nats/chatterbox-nats-api/pom.xml
@@ -45,11 +45,5 @@
   javaee-api
   provided
 
-
-  io.nats
-  java-nats-streaming
-  2.2.3
-  provided
-
   
 
diff --git 
a/chatterbox-nats/chatterbox-nats-api/src/main/java/org/apache/tomee/chatterbox/nats/api/InboundListener.java
 
b/chatterbox-nats/chatterbox-nats-api/src/main/java/org/apache/tomee/chatterbox/nats/api/InboundListener.java
index 94d6294..5f7ea6c 100644
--- 
a/chatterbox-nats/chatterbox-nats-api/src/main/java/org/apache/tomee/chatterbox/nats/api/InboundListener.java
+++ 
b/chatterbox-nats/chatterbox-nats-api/src/main/java/org/apache/tomee/chatterbox/nats/api/InboundListener.java
@@ -16,13 +16,11 @@
  */
 package org.apache.tomee.chatterbox.nats.api;
 
-import io.nats.streaming.Message;
-
 /**
  * @version $Revision$ $Date$
  */
 public interface InboundListener {
 
-public void onMessage(final Message message) throws NATSException;
+public void onMessage(final NATSMessage message) throws NATSException;
 
 }
diff --git 
a/chatterbox-nats/chatterbox-nats-api/src/main/java/org/apache/tomee/chatterbox/nats/api/InboundListener.java
 
b/chatterbox-nats/chatterbox-nats-api/src/main/java/org/apache/tomee/chatterbox/nats/api/NATSMessage.java
similarity index 64%
copy from 
chatterbox-nats/chatterbox-nats-api/src/main/java/org/apache/tomee/chatterbox/nats/api/InboundListener.java
copy to 
chatterbox-nats/chatterbox-nats-api/src/main/java/org/apache/tomee/chatterbox/nats/api/NATSMessage.java
index 94d6294..2335bf6 100644
--- 
a/chatterbox-nats/chatterbox-nats-api/src/main/java/org/apache/tomee/chatterbox/nats/api/InboundListener.java
+++ 
b/chatterbox-nats/chatterbox-nats-api/src/main/java/org/apache/tomee/chatterbox/nats/api/NATSMessage.java
@@ -16,13 +16,21 @@
  */
 package org.apache.tomee.chatterbox.nats.api;
 
-import io.nats.streaming.Message;
-
-/**
- * @version $Revision$ $Date$
- */
-public interface InboundListener {
-
-public void onMessage(final Message message) throws NATSException;
+import java.time.Instant;
 
+public interface NATSMessage {
+Instant getInstant();
+long getSequence();
+String getSubject();
+void setSubject(String subject);
+String getReplyTo();
+void setReplyTo(String reply);
+byte[] getData();
+void setData(byte[] data);
+void setData(byte[] data, int offset, int length);
+long getTimestamp();
+public boolean isRedelivered();
+public int getCrc32();
+public void ack();
+public String toString();
 }
diff --git a/chatterbox-nats/chatterbox-nats-impl/pom.xml 
b/chatterbox-nats/chatterbox-nats-impl/pom.xml
index d46e53a..fbe5f30 100644
--- a/chatterbox-nats/chatterbox-nats-impl/pom.xml
+++ b/chatterbox-nats/chatterbox-nats-impl/pom.xml
@@ -59,7 +59,6 @@
   io.nats
   java-nats-streaming
   2.2.3
-  provided
 
   
 
diff --git 
a/chatterbox-nats/chatterbox-nats-impl/src/main/java/org/apache/tomee/chatterbox/nats/adapter/NATSResourceAdapter.java
 
b/chatterbox-nats/chatterbox-nats-impl/src/main/java/org/apache/tomee/chatterbox/nats/adapter/NATSResourceAdapter.java
index 804a24f..4ed4485 100644
--- 
a/chatterbox-nats/chatterbox-nats-impl/src/main/java/org/apache/tomee/chatterbox/nats/adapter/NATSResourceAdapter.java
+++ 
b/chatterbox-nats/chatterbox-nats-impl/src/main/java/org/apache/tomee/chatterbox/nats/adapter/NATSResourceAdapter.java
@@ -24,6 +24,7 @@ import io.nats.streaming.StreamingConnectionFactory;
 import io.nats.streaming.Subscription;
 import org.apache.tomee.chatterbox.nats.api.InboundListener;
 import org.apache.tomee.chatterbox.nats.api.NATSException;
+import org.apache.tomee.chatterbox.nats.api.NATSMessage;
 
 import javax.resource.ResourceException;
 import javax.resource.spi.ActivationSpec;
@@ -38,7 +39,9 @@ import javax.resource.spi.work.Work;
 import 

[tomee-chatterbox] branch master updated (85ac5cc -> 6d150f9)

2021-06-16 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-chatterbox.git.


from 85ac5cc  Ensure we close the store when we have finished with it
 new 267d824  Bootstrap a NATS JCA Adapter
 new ccb9450  WIP
 new 0a41080  Wrap the message in a proxy, so we don't need all the 
libraries the NATS Streaming client uses in TomEE's classpath
 new 5beef6a  Add basic test to isolate timeout issue from the resource 
adapter
 new 0450a33  Basic adapter working end-to-end. Some more fine tuning 
needed.
 new 6d150f9  Adding parameters and logging

The 6 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:
 {chatterbox-slack => chatterbox-nats}/.gitignore   |   0
 .../chatterbox-nats-api}/pom.xml   |   6 +-
 .../chatterbox/nats}/api/InboundListener.java  |   5 +-
 .../tomee/chatterbox/nats/api/NATSConnection.java  |   6 +-
 .../chatterbox/nats/api/NATSConnectionFactory.java |   6 +-
 .../tomee/chatterbox/nats/api/NATSException.java   |  24 ++-
 .../tomee/chatterbox/nats/api/NATSMessage.java |  28 +--
 .../src/main/resources/META-INF/LICENSE|   0
 .../src/main/resources/META-INF/NOTICE |   0
 .../chatterbox-nats-impl}/pom.xml  |  21 +--
 .../nats/adapter/NATSActivationSpec.java   |  23 +--
 .../nats/adapter/NATSResourceAdapter.java  | 210 +
 .../adapter/out/NATSConnectionFactoryImpl.java |  20 +-
 .../nats/adapter/out/NATSConnectionImpl.java   |  20 +-
 .../nats/adapter/out/NATSManagedConnection.java|  33 ++--
 .../adapter/out/NATSManagedConnectionFactory.java  |  26 +--
 .../adapter/out/NATSManagedConnectionMetaData.java |   8 +-
 .../src/main/resources/META-INF/LICENSE|   0
 .../src/main/resources/META-INF/NOTICE |   0
 .../chatterbox-nats-rar}/pom.xml   |   8 +-
 .../src/main/rar}/META-INF/LICENSE |   0
 .../src/main/rar/META-INF/NOTICE   |   0
 .../src/main/rar/META-INF/ra.xml   |  37 ++--
 .../chatterbox-nats-sample-war}/pom.xml|  16 +-
 .../src/main/java/org/superbiz/EchoBean.java   |  51 ++---
 .../src/main/java/org/superbiz/Sender.java |  19 +-
 .../src/main/resources/META-INF/LICENSE|   0
 .../src/main/resources/META-INF/NOTICE |   0
 .../src/main/resources/META-INF/ejb-jar.xml|   0
 chatterbox-nats/docker-compose.yml |  35 
 {chatterbox-slack => chatterbox-nats}/pom.xml  |  12 +-
 pom.xml|   1 +
 32 files changed, 423 insertions(+), 192 deletions(-)
 copy {chatterbox-slack => chatterbox-nats}/.gitignore (100%)
 copy {chatterbox-slack/chatterbox-slack-api => 
chatterbox-nats/chatterbox-nats-api}/pom.xml (92%)
 copy 
{chatterbox-slack/chatterbox-slack-api/src/main/java/org/apache/tomee/chatterbox/slack
 => 
chatterbox-nats/chatterbox-nats-api/src/main/java/org/apache/tomee/chatterbox/nats}/api/InboundListener.java
 (87%)
 copy 
chatterbox-twitter/chatterbox-twitter-api/src/main/java/org/apache/tomee/chatterbox/twitter/api/TwitterConnection.java
 => 
chatterbox-nats/chatterbox-nats-api/src/main/java/org/apache/tomee/chatterbox/nats/api/NATSConnection.java
 (83%)
 copy 
chatterbox-xmpp/chatterbox-xmpp-api/src/main/java/org/apache/tomee/chatterbox/xmpp/api/XMPPConnectionFactory.java
 => 
chatterbox-nats/chatterbox-nats-api/src/main/java/org/apache/tomee/chatterbox/nats/api/NATSConnectionFactory.java
 (84%)
 copy 
chatterbox-twitter/chatterbox-twitter-api/src/main/java/org/apache/tomee/chatterbox/twitter/api/TweetException.java
 => 
chatterbox-nats/chatterbox-nats-api/src/main/java/org/apache/tomee/chatterbox/nats/api/NATSException.java
 (64%)
 copy 
chatterbox-imap/chatterbox-imap-api/src/main/java/org/apache/tomee/chatterbox/imap/api/FromParam.java
 => 
chatterbox-nats/chatterbox-nats-api/src/main/java/org/apache/tomee/chatterbox/nats/api/NATSMessage.java
 (60%)
 copy {chatterbox-xmpp/chatterbox-xmpp-sample-war => 
chatterbox-nats/chatterbox-nats-api}/src/main/resources/META-INF/LICENSE (100%)
 copy {chatterbox-slack/chatterbox-slack-api => 
chatterbox-nats/chatterbox-nats-api}/src/main/resources/META-INF/NOTICE (100%)
 copy {chatterbox-twitter/chatterbox-twitter-impl => 
chatterbox-nats/chatterbox-nats-impl}/pom.xml (78%)
 copy 
chatterbox-slack/chatterbox-slack-impl/src/main/java/org/apache/tomee/chatterbox/slack/adapter/SlackActivationSpec.java
 => 
chatterbox-nats/chatterbox-nats-impl/src/main/java/org/apache/tomee/chatterbox/nats/adapter/NATSActivationSpec.java
 (81%)
 create mode 100644 

[tomee-chatterbox] 02/06: WIP

2021-06-16 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-chatterbox.git

commit ccb9450089f0d3c6dbf39e8455c53e6eb7271fe1
Author: Jonathan Gallimore 
AuthorDate: Wed Jun 9 11:44:40 2021 +0100

WIP
---
 chatterbox-nats/chatterbox-nats-api/pom.xml|   6 ++
 .../tomee/chatterbox/nats/api/InboundListener.java |   4 +-
 .../tomee/chatterbox/nats/api/NATSConnection.java  |   2 +-
 .../tomee/chatterbox/nats/api/NATSException.java   |  18 
 .../tomee/chatterbox/nats/api/NATSMessage.java |  23 -
 chatterbox-nats/chatterbox-nats-impl/pom.xml   |   1 +
 .../nats/adapter/NATSActivationSpec.java   |   9 ++
 .../nats/adapter/NATSResourceAdapter.java  | 101 +
 .../nats/adapter/out/NATSConnectionImpl.java   |   5 +-
 .../nats/adapter/out/NATSManagedConnection.java|   5 +-
 .../src/main/rar/META-INF/ra.xml   |  14 +--
 chatterbox-nats/chatterbox-nats-sample-war/pom.xml |   9 +-
 .../superbiz/{SystemBean.java => EchoBean.java}|  22 -
 .../src/main/java/org/superbiz/Sender.java |  11 ++-
 14 files changed, 166 insertions(+), 64 deletions(-)

diff --git a/chatterbox-nats/chatterbox-nats-api/pom.xml 
b/chatterbox-nats/chatterbox-nats-api/pom.xml
index 6f4ca62..db16e68 100644
--- a/chatterbox-nats/chatterbox-nats-api/pom.xml
+++ b/chatterbox-nats/chatterbox-nats-api/pom.xml
@@ -45,5 +45,11 @@
   javaee-api
   provided
 
+
+  io.nats
+  java-nats-streaming
+  2.2.3
+  provided
+
   
 
diff --git 
a/chatterbox-nats/chatterbox-nats-api/src/main/java/org/apache/tomee/chatterbox/nats/api/InboundListener.java
 
b/chatterbox-nats/chatterbox-nats-api/src/main/java/org/apache/tomee/chatterbox/nats/api/InboundListener.java
index 5f7ea6c..94d6294 100644
--- 
a/chatterbox-nats/chatterbox-nats-api/src/main/java/org/apache/tomee/chatterbox/nats/api/InboundListener.java
+++ 
b/chatterbox-nats/chatterbox-nats-api/src/main/java/org/apache/tomee/chatterbox/nats/api/InboundListener.java
@@ -16,11 +16,13 @@
  */
 package org.apache.tomee.chatterbox.nats.api;
 
+import io.nats.streaming.Message;
+
 /**
  * @version $Revision$ $Date$
  */
 public interface InboundListener {
 
-public void onMessage(final NATSMessage message) throws NATSException;
+public void onMessage(final Message message) throws NATSException;
 
 }
diff --git 
a/chatterbox-nats/chatterbox-nats-api/src/main/java/org/apache/tomee/chatterbox/nats/api/NATSConnection.java
 
b/chatterbox-nats/chatterbox-nats-api/src/main/java/org/apache/tomee/chatterbox/nats/api/NATSConnection.java
index e323dd1..8b39874 100755
--- 
a/chatterbox-nats/chatterbox-nats-api/src/main/java/org/apache/tomee/chatterbox/nats/api/NATSConnection.java
+++ 
b/chatterbox-nats/chatterbox-nats-api/src/main/java/org/apache/tomee/chatterbox/nats/api/NATSConnection.java
@@ -20,7 +20,7 @@
 package org.apache.tomee.chatterbox.nats.api;
 
 public interface NATSConnection {
-public void sendMessage(final String channel, final String message);
+public void publish(final String subject, final byte[] data) throws 
NATSException;
 
 public void close();
 }
diff --git 
a/chatterbox-nats/chatterbox-nats-api/src/main/java/org/apache/tomee/chatterbox/nats/api/NATSException.java
 
b/chatterbox-nats/chatterbox-nats-api/src/main/java/org/apache/tomee/chatterbox/nats/api/NATSException.java
index 031ad42..b761cd3 100644
--- 
a/chatterbox-nats/chatterbox-nats-api/src/main/java/org/apache/tomee/chatterbox/nats/api/NATSException.java
+++ 
b/chatterbox-nats/chatterbox-nats-api/src/main/java/org/apache/tomee/chatterbox/nats/api/NATSException.java
@@ -20,4 +20,22 @@ package org.apache.tomee.chatterbox.nats.api;
  * @version $Revision$ $Date$
  */
 public class NATSException extends Exception {
+public NATSException() {
+}
+
+public NATSException(String message) {
+super(message);
+}
+
+public NATSException(String message, Throwable cause) {
+super(message, cause);
+}
+
+public NATSException(Throwable cause) {
+super(cause);
+}
+
+public NATSException(String message, Throwable cause, boolean 
enableSuppression, boolean writableStackTrace) {
+super(message, cause, enableSuppression, writableStackTrace);
+}
 }
diff --git 
a/chatterbox-nats/chatterbox-nats-api/src/main/java/org/apache/tomee/chatterbox/nats/api/NATSMessage.java
 
b/chatterbox-nats/chatterbox-nats-api/src/main/java/org/apache/tomee/chatterbox/nats/api/NATSMessage.java
deleted file mode 100644
index afb7718..000
--- 
a/chatterbox-nats/chatterbox-nats-api/src/main/java/org/apache/tomee/chatterbox/nats/api/NATSMessage.java
+++ /dev/null
@@ -1,23 +0,0 @@
-/*
- * 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