Run Contrast on GlassFish with IntelliJ
To run Contrast on GlassFish with IntelliJ:
In the menu bar, select the Start/Run icon next to the GlassFish service.
Wait for the server to finish launching.
Navigate to the GlassFish Server Administration Console (usually http://localhost:4848/).
After the console has finished loading, select Configurations > server-config.
Select JVM Settings.
Select Profiler.
Add the name "Contrast".
Replace
<YourContrastJarPath>
with the path to your Contrast JAR file and add the following JVM options:-javaagent:<YourContrastJarPath>
Select Save.
Select the Start/Run icon next to the GlassFish service from the top menu bar and select Restart Server.
A Contrast startup message should appear in the GlassFish server log console. (Allow one to two extra minutes for server startup.)
After GlassFish has finished the startup process, IntelliJ will open a new web browser.
Navigate to your application, and allow an extra minute for it to start up.