Downloading the agent
- Download the agent tar file from the following link.
- Copy the tar to the server where Glassfish is deployed and untar the file.
- Delete the tomcat plugin from the agent/plugins directory tomcat-7.x-8.x-plugin-8.5.0.jar.
Configuring the agent
Update the following parameters in the agent.config file in the agent.
- agent.service_name= APPLICATION_NAME
- agent.force_tls= true
- collector.backend_service = URL
- agent.authentication = TOKEN_FROM_UI
Configuring on a Glassfish Server
- Add the following entries in the domain.xml file of Glassfish server.
- Make changes in the default and domain1 configurations. It should also be made if you have additional domains configured. The path to the domain.xml file is GLASSFISH_HOME/domain/domain1/config.
-javaagent:/path/to/agent/sixthsense-agent.jar -Xbootclasspath/a:path/to/agent/plugins -Daj.weaving.loadersNotToSkip=ALL -Xverify:none
- Update the following entry in the domain.xml file. Replace with the correct path information in the following configuration.
- Modify the osgi.properties file and append the packages. Example: We have appended the org.apache.skywalking.* entry to the list of boot delegation classes.
Importing the SixthSense root certificate
SixthSense provides standard root certificates and should be available in most operating system key-stores by default.
However, if Glassfish server is using a separate key-store, perform the following procedure.
- Open the SixthSense backend URL in the browser. The URL is also used in Step 4 of the Agent deployment section (your tenant backend URL)
- Click the lock 🔒 icon in the address bar.
- Download the root certificate. In chrome, you can simply drag the Gold colored certificate icon to a directory.
- Copy the ISRG Root X1.cer file to the server where Glassfish is deployed.
- Import the root certificate using the following commands.
For any projects in the plugins or support requests, kindly affix the server.log and the agent.log files.