You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by jl...@apache.org on 2019/08/23 07:59:24 UTC
[tomee] branch master updated: Add JVM flag to allow java agent
self attachement
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 81d6ece Add JVM flag to allow java agent self attachement
81d6ece is described below
commit 81d6ecedd37d4cb77fa59489187e2ecb1450aae5
Author: Jean-Louis Monteiro <je...@gmail.com>
AuthorDate: Fri Aug 23 09:59:11 2019 +0200
Add JVM flag to allow java agent self attachement
---
examples/alternate-descriptors/pom.xml | 8 ++++++++
examples/application-composer/pom.xml | 8 ++++++++
examples/change-jaxws-url/pom.xml | 8 ++++++++
examples/deltaspike-fullstack/pom.xml | 5 +++--
examples/dynamic-dao-implementation/pom.xml | 8 ++++++++
examples/dynamic-datasource-routing/pom.xml | 8 ++++++++
examples/ear-testing/pom.xml | 5 ++++-
examples/groovy-jpa/pom.xml | 8 ++++++++
examples/injection-of-entitymanager/pom.xml | 8 ++++++++
examples/jpa-eclipselink/pom.xml | 2 +-
examples/jpa-enumerated/pom.xml | 8 ++++++++
examples/movies-complete-meta/pom.xml | 8 ++++++++
examples/movies-complete/pom.xml | 8 ++++++++
examples/multiple-arquillian-adapters/pom.xml | 2 ++
examples/persistence-fragment/pom.xml | 8 ++++++++
examples/reload-persistence-unit-properties/pom.xml | 8 ++++++++
examples/rest-example/pom.xml | 8 ++++++++
examples/simple-ear/moviefun-business-logic/pom.xml | 4 ++++
examples/spring-data-proxy-meta/pom.xml | 10 +++++++++-
examples/spring-data-proxy/pom.xml | 8 ++++++++
examples/testcase-injection/pom.xml | 8 ++++++++
examples/testing-security-2/pom.xml | 5 ++++-
examples/testing-security-3/pom.xml | 5 ++++-
examples/testing-security-4/pom.xml | 5 ++++-
examples/testing-security-meta/pom.xml | 5 ++++-
examples/testing-security/pom.xml | 5 ++++-
examples/testing-transactions-bmt/pom.xml | 8 ++++++++
examples/testing-transactions/pom.xml | 8 ++++++++
examples/transaction-rollback/pom.xml | 8 ++++++++
examples/troubleshooting/pom.xml | 8 ++++++++
examples/webservice-inheritance/pom.xml | 8 ++++++++
31 files changed, 203 insertions(+), 10 deletions(-)
diff --git a/examples/alternate-descriptors/pom.xml b/examples/alternate-descriptors/pom.xml
index 9a63330..b8da8c3 100644
--- a/examples/alternate-descriptors/pom.xml
+++ b/examples/alternate-descriptors/pom.xml
@@ -44,6 +44,14 @@
<target>1.8</target>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.22.1</version>
+ <configuration>
+ <argLine>-Djdk.attach.allowAttachSelf</argLine>
+ </configuration>
+ </plugin>
</plugins>
</build>
diff --git a/examples/application-composer/pom.xml b/examples/application-composer/pom.xml
index b172d46..11873f6 100644
--- a/examples/application-composer/pom.xml
+++ b/examples/application-composer/pom.xml
@@ -41,6 +41,14 @@
<target>1.8</target>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.22.1</version>
+ <configuration>
+ <argLine>-Djdk.attach.allowAttachSelf</argLine>
+ </configuration>
+ </plugin>
</plugins>
</build>
<repositories>
diff --git a/examples/change-jaxws-url/pom.xml b/examples/change-jaxws-url/pom.xml
index d16e3a8..a89b313 100644
--- a/examples/change-jaxws-url/pom.xml
+++ b/examples/change-jaxws-url/pom.xml
@@ -87,6 +87,14 @@
</dependency>
</dependencies>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.22.1</version>
+ <configuration>
+ <argLine>-Djdk.attach.allowAttachSelf</argLine>
+ </configuration>
+ </plugin>
</plugins>
</build>
<dependencies>
diff --git a/examples/deltaspike-fullstack/pom.xml b/examples/deltaspike-fullstack/pom.xml
index b7e204a..05222f9 100644
--- a/examples/deltaspike-fullstack/pom.xml
+++ b/examples/deltaspike-fullstack/pom.xml
@@ -81,8 +81,9 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
- <version>2.18.1</version>
- <configuration> <!-- optional -->
+ <version>2.22.1</version>
+ <configuration>
+ <argLine>-Djdk.attach.allowAttachSelf</argLine>
<systemPropertyVariables>
<openejb.jul.forceReload>true</openejb.jul.forceReload>
<logging.level.OpenEJB.startup>FINEST</logging.level.OpenEJB.startup>
diff --git a/examples/dynamic-dao-implementation/pom.xml b/examples/dynamic-dao-implementation/pom.xml
index 7aafe08..79d6b93 100644
--- a/examples/dynamic-dao-implementation/pom.xml
+++ b/examples/dynamic-dao-implementation/pom.xml
@@ -38,6 +38,14 @@
<target>1.8</target>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.22.1</version>
+ <configuration>
+ <argLine>-Djdk.attach.allowAttachSelf</argLine>
+ </configuration>
+ </plugin>
</plugins>
</build>
<repositories>
diff --git a/examples/dynamic-datasource-routing/pom.xml b/examples/dynamic-datasource-routing/pom.xml
index ed33002..0d0e4b4 100644
--- a/examples/dynamic-datasource-routing/pom.xml
+++ b/examples/dynamic-datasource-routing/pom.xml
@@ -42,6 +42,14 @@
<target>1.8</target>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.22.1</version>
+ <configuration>
+ <argLine>-Djdk.attach.allowAttachSelf</argLine>
+ </configuration>
+ </plugin>
</plugins>
</build>
<repositories>
diff --git a/examples/ear-testing/pom.xml b/examples/ear-testing/pom.xml
index 9c17324..fa67a02 100644
--- a/examples/ear-testing/pom.xml
+++ b/examples/ear-testing/pom.xml
@@ -57,7 +57,10 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
- <version>2.18.1</version>
+ <version>2.22.1</version>
+ <configuration>
+ <argLine>-Djdk.attach.allowAttachSelf</argLine>
+ </configuration>
</plugin>
</plugins>
</pluginManagement>
diff --git a/examples/groovy-jpa/pom.xml b/examples/groovy-jpa/pom.xml
index a8ab879..328f5c8 100644
--- a/examples/groovy-jpa/pom.xml
+++ b/examples/groovy-jpa/pom.xml
@@ -45,6 +45,14 @@
</configuration>
</plugin>
<plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.22.1</version>
+ <configuration>
+ <argLine>-Djdk.attach.allowAttachSelf</argLine>
+ </configuration>
+ </plugin>
+ <plugin>
<groupId>org.codehaus.gmavenplus</groupId>
<artifactId>gmavenplus-plugin</artifactId>
<version>1.5</version>
diff --git a/examples/injection-of-entitymanager/pom.xml b/examples/injection-of-entitymanager/pom.xml
index 19abc5a..17c278d 100644
--- a/examples/injection-of-entitymanager/pom.xml
+++ b/examples/injection-of-entitymanager/pom.xml
@@ -41,6 +41,14 @@
<target>1.8</target>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.22.1</version>
+ <configuration>
+ <argLine>-Djdk.attach.allowAttachSelf</argLine>
+ </configuration>
+ </plugin>
</plugins>
</build>
<repositories>
diff --git a/examples/jpa-eclipselink/pom.xml b/examples/jpa-eclipselink/pom.xml
index 477a56c..3dae969 100644
--- a/examples/jpa-eclipselink/pom.xml
+++ b/examples/jpa-eclipselink/pom.xml
@@ -117,7 +117,7 @@
<jdk>[9,</jdk>
</activation>
<properties>
- <surefire.argline>--add-opens java.base/jdk.internal.loader=ALL-UNNAMED</surefire.argline>
+ <surefire.argline>--add-opens java.base/jdk.internal.loader=ALL-UNNAMED -Djdk.attach.allowAttachSelf</surefire.argline>
</properties>
</profile>
</profiles>
diff --git a/examples/jpa-enumerated/pom.xml b/examples/jpa-enumerated/pom.xml
index f2feef0..56f60d5 100644
--- a/examples/jpa-enumerated/pom.xml
+++ b/examples/jpa-enumerated/pom.xml
@@ -41,6 +41,14 @@
<target>1.8</target>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.22.1</version>
+ <configuration>
+ <argLine>-Djdk.attach.allowAttachSelf</argLine>
+ </configuration>
+ </plugin>
</plugins>
</build>
<repositories>
diff --git a/examples/movies-complete-meta/pom.xml b/examples/movies-complete-meta/pom.xml
index a66f7fb..bcef83d 100644
--- a/examples/movies-complete-meta/pom.xml
+++ b/examples/movies-complete-meta/pom.xml
@@ -41,6 +41,14 @@
<target>1.8</target>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.22.1</version>
+ <configuration>
+ <argLine>-Djdk.attach.allowAttachSelf</argLine>
+ </configuration>
+ </plugin>
</plugins>
</build>
<repositories>
diff --git a/examples/movies-complete/pom.xml b/examples/movies-complete/pom.xml
index 24243af..b0133e7 100644
--- a/examples/movies-complete/pom.xml
+++ b/examples/movies-complete/pom.xml
@@ -41,6 +41,14 @@
<target>1.8</target>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.22.1</version>
+ <configuration>
+ <argLine>-Djdk.attach.allowAttachSelf</argLine>
+ </configuration>
+ </plugin>
</plugins>
</build>
<repositories>
diff --git a/examples/multiple-arquillian-adapters/pom.xml b/examples/multiple-arquillian-adapters/pom.xml
index 458dc54..53a6034 100644
--- a/examples/multiple-arquillian-adapters/pom.xml
+++ b/examples/multiple-arquillian-adapters/pom.xml
@@ -63,6 +63,7 @@
</goals>
<configuration>
<skip>${maven.test.skip}</skip>
+ <argLine>-Djdk.attach.allowAttachSelf</argLine>
<groups>org.superbiz.embedded.standalone.Embedded</groups>
<systemPropertyVariables>
<arquillian.launch>embedded</arquillian.launch>
@@ -94,6 +95,7 @@
<configuration>
<skip>${maven.test.skip}</skip>
<groups>org.superbiz.tomee.embedded.TomEEEmbedded</groups>
+ <argLine>-Djdk.attach.allowAttachSelf</argLine>
<systemPropertyVariables>
<arquillian.launch>tomee-embedded</arquillian.launch>
<openejb.arquillian.adapter>tomee-embedded</openejb.arquillian.adapter>
diff --git a/examples/persistence-fragment/pom.xml b/examples/persistence-fragment/pom.xml
index a2d6497..f44e4a2 100644
--- a/examples/persistence-fragment/pom.xml
+++ b/examples/persistence-fragment/pom.xml
@@ -41,6 +41,14 @@
<target>1.8</target>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.22.1</version>
+ <configuration>
+ <argLine>-Djdk.attach.allowAttachSelf</argLine>
+ </configuration>
+ </plugin>
</plugins>
</build>
<repositories>
diff --git a/examples/reload-persistence-unit-properties/pom.xml b/examples/reload-persistence-unit-properties/pom.xml
index 7c7e923..8e09d4f 100644
--- a/examples/reload-persistence-unit-properties/pom.xml
+++ b/examples/reload-persistence-unit-properties/pom.xml
@@ -41,6 +41,14 @@
<target>1.8</target>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.22.1</version>
+ <configuration>
+ <argLine>-Djdk.attach.allowAttachSelf</argLine>
+ </configuration>
+ </plugin>
</plugins>
</build>
<repositories>
diff --git a/examples/rest-example/pom.xml b/examples/rest-example/pom.xml
index 5a69cd9..7b73977 100644
--- a/examples/rest-example/pom.xml
+++ b/examples/rest-example/pom.xml
@@ -69,6 +69,14 @@
</configuration>
</plugin>
<plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.22.1</version>
+ <configuration>
+ <argLine>-Djdk.attach.allowAttachSelf</argLine>
+ </configuration>
+ </plugin>
+ <plugin>
<groupId>org.apache.tomee.maven</groupId>
<artifactId>tomee-maven-plugin</artifactId>
<version>${tomee.version}</version>
diff --git a/examples/simple-ear/moviefun-business-logic/pom.xml b/examples/simple-ear/moviefun-business-logic/pom.xml
index a837305..9f4bba6 100644
--- a/examples/simple-ear/moviefun-business-logic/pom.xml
+++ b/examples/simple-ear/moviefun-business-logic/pom.xml
@@ -49,6 +49,10 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
+ <version>2.22.1</version>
+ <configuration>
+ <argLine>-Djdk.attach.allowAttachSelf</argLine>
+ </configuration>
</plugin>
</plugins>
</build>
diff --git a/examples/spring-data-proxy-meta/pom.xml b/examples/spring-data-proxy-meta/pom.xml
index 724cabe..7d06584 100644
--- a/examples/spring-data-proxy-meta/pom.xml
+++ b/examples/spring-data-proxy-meta/pom.xml
@@ -38,7 +38,15 @@
<target>1.8</target>
</configuration>
</plugin>
- </plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.22.1</version>
+ <configuration>
+ <argLine>-Djdk.attach.allowAttachSelf</argLine>
+ </configuration>
+ </plugin>
+nnn </plugins>
</build>
<repositories>
<repository>
diff --git a/examples/spring-data-proxy/pom.xml b/examples/spring-data-proxy/pom.xml
index 53d5cab..ccfdc82 100644
--- a/examples/spring-data-proxy/pom.xml
+++ b/examples/spring-data-proxy/pom.xml
@@ -38,6 +38,14 @@
<target>1.8</target>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.22.1</version>
+ <configuration>
+ <argLine>-Djdk.attach.allowAttachSelf</argLine>
+ </configuration>
+ </plugin>
</plugins>
</build>
<repositories>
diff --git a/examples/testcase-injection/pom.xml b/examples/testcase-injection/pom.xml
index 5936dde..77dd3d5 100644
--- a/examples/testcase-injection/pom.xml
+++ b/examples/testcase-injection/pom.xml
@@ -41,6 +41,14 @@
<target>1.8</target>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.22.1</version>
+ <configuration>
+ <argLine>-Djdk.attach.allowAttachSelf</argLine>
+ </configuration>
+ </plugin>
</plugins>
</build>
<repositories>
diff --git a/examples/testing-security-2/pom.xml b/examples/testing-security-2/pom.xml
index 8f19b9a..8e4eead 100644
--- a/examples/testing-security-2/pom.xml
+++ b/examples/testing-security-2/pom.xml
@@ -44,7 +44,10 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
- <version>2.18.1</version>
+ <version>2.22.1</version>
+ <configuration>
+ <argLine>-Djdk.attach.allowAttachSelf</argLine>
+ </configuration>
</plugin>
</plugins>
</build>
diff --git a/examples/testing-security-3/pom.xml b/examples/testing-security-3/pom.xml
index 69ab550..f2fd235 100644
--- a/examples/testing-security-3/pom.xml
+++ b/examples/testing-security-3/pom.xml
@@ -44,7 +44,10 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
- <version>2.18.1</version>
+ <version>2.22.1</version>
+ <configuration>
+ <argLine>-Djdk.attach.allowAttachSelf</argLine>
+ </configuration>
</plugin>
</plugins>
</build>
diff --git a/examples/testing-security-4/pom.xml b/examples/testing-security-4/pom.xml
index 12b25a3..01e0bfe 100644
--- a/examples/testing-security-4/pom.xml
+++ b/examples/testing-security-4/pom.xml
@@ -44,7 +44,10 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
- <version>2.18.1</version>
+ <version>2.22.1</version>
+ <configuration>
+ <argLine>-Djdk.attach.allowAttachSelf</argLine>
+ </configuration>
</plugin>
</plugins>
</build>
diff --git a/examples/testing-security-meta/pom.xml b/examples/testing-security-meta/pom.xml
index 8c8589e..1929d14 100644
--- a/examples/testing-security-meta/pom.xml
+++ b/examples/testing-security-meta/pom.xml
@@ -44,7 +44,10 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
- <version>2.18.1</version>
+ <version>2.22.1</version>
+ <configuration>
+ <argLine>-Djdk.attach.allowAttachSelf</argLine>
+ </configuration>
</plugin>
</plugins>
</build>
diff --git a/examples/testing-security/pom.xml b/examples/testing-security/pom.xml
index d4c6b74..8d60005 100644
--- a/examples/testing-security/pom.xml
+++ b/examples/testing-security/pom.xml
@@ -44,7 +44,10 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
- <version>2.18.1</version>
+ <version>2.22.1</version>
+ <configuration>
+ <argLine>-Djdk.attach.allowAttachSelf</argLine>
+ </configuration>
</plugin>
</plugins>
</build>
diff --git a/examples/testing-transactions-bmt/pom.xml b/examples/testing-transactions-bmt/pom.xml
index bc304bb..07e9c3b 100644
--- a/examples/testing-transactions-bmt/pom.xml
+++ b/examples/testing-transactions-bmt/pom.xml
@@ -41,6 +41,14 @@
<target>1.8</target>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.22.1</version>
+ <configuration>
+ <argLine>-Djdk.attach.allowAttachSelf</argLine>
+ </configuration>
+ </plugin>
</plugins>
</build>
<repositories>
diff --git a/examples/testing-transactions/pom.xml b/examples/testing-transactions/pom.xml
index 1b8f841..3974e9c 100644
--- a/examples/testing-transactions/pom.xml
+++ b/examples/testing-transactions/pom.xml
@@ -41,6 +41,14 @@
<target>1.8</target>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.22.1</version>
+ <configuration>
+ <argLine>-Djdk.attach.allowAttachSelf</argLine>
+ </configuration>
+ </plugin>
</plugins>
</build>
<repositories>
diff --git a/examples/transaction-rollback/pom.xml b/examples/transaction-rollback/pom.xml
index 2177783..ef743ef 100644
--- a/examples/transaction-rollback/pom.xml
+++ b/examples/transaction-rollback/pom.xml
@@ -41,6 +41,14 @@
<target>1.8</target>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.22.1</version>
+ <configuration>
+ <argLine>-Djdk.attach.allowAttachSelf</argLine>
+ </configuration>
+ </plugin>
</plugins>
</build>
<repositories>
diff --git a/examples/troubleshooting/pom.xml b/examples/troubleshooting/pom.xml
index 7322409..467c265 100644
--- a/examples/troubleshooting/pom.xml
+++ b/examples/troubleshooting/pom.xml
@@ -41,6 +41,14 @@
<target>1.8</target>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.22.1</version>
+ <configuration>
+ <argLine>-Djdk.attach.allowAttachSelf</argLine>
+ </configuration>
+ </plugin>
</plugins>
</build>
<repositories>
diff --git a/examples/webservice-inheritance/pom.xml b/examples/webservice-inheritance/pom.xml
index 0f1b577..0340835 100644
--- a/examples/webservice-inheritance/pom.xml
+++ b/examples/webservice-inheritance/pom.xml
@@ -41,6 +41,14 @@
<target>1.8</target>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.22.1</version>
+ <configuration>
+ <argLine>-Djdk.attach.allowAttachSelf</argLine>
+ </configuration>
+ </plugin>
</plugins>
</build>
<repositories>