Skip to content
Advertisement

Error when adding java agent in VM arguments while using OpenJPA

I found solution for my problem with OpenJPA here: Using TomEE and open JPA, i get the following error: SEVERE: JAVA AGENT NOT INSTALLED, but adding VM parameter as in question answer or documentation https://tomee.apache.org/javaagent.html, in project’s run configuration, results in this error, after trying to run:

JavaScript

Project is JavaEE in Eclipse IDE, using Maven build tool and TomEE as JavaEE container.

VM arguments:

JavaScript

pom.xml:

JavaScript

Advertisement

Answer

I had the same issue on a project of mine and I solved it by adding the full path to the openejb-javaagent-4.6.0.jar. If you install the jar via Maven (you can see the dependencies to add here) it is in the target/ directory of your project.

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement