Service Mapping can map Oracle GlassFish Server application services by starting from an entry point associated with the GlassFish process. Create a service instance, configure its endpoint, clear Traffic based discovery, and inspect the completed map. Check that GlassFish Server configuration items appear as inclusions and that each contains a WAR file.
Prepare to map Oracle GlassFish Server application services
Start with the application service you want to represent, then identify the GlassFish process that provides its entry point. A host name alone leaves an important question unanswered: which running application should mapping follow? Gather the host, the relevant application port, and the process details before opening the service instance form.
The GlassFish mapping procedure requires the service_mapping_admin role. Arrange for the person performing this procedure to have that role. Keep credential preparation separate from this role requirement. Configure the Windows or SSH credentials listed under Before you begin for this host type. The service_mapping_admin role is a separate requirement.
For a GlassFish installation on Windows, configure Windows credentials on the platform. SSH credential configuration is listed as optional for Linux or UNIX hosts. If the chosen discovery route uses WinRM, check the MID Server trusted-host configuration for WinRM. Select the preparation that matches the host and protocol rather than configuring unrelated access methods.
The listed discovery coverage includes Oracle GlassFish Server and Oracle GlassFish WAR file on Windows and UNIX for versions 3.1, 4.0, and 4.1. The protocols listed are WMI, WinRM, and SSH. The associated patterns are GlassFish Server and GlassFish WAR, with horizontal and top-down discovery listed for both components. Check this coverage against your instance, release, and installed GlassFish version before relying on the procedure.
If the wider workflow is unfamiliar, use the classic application service mapping guide to place this GlassFish-specific sequence in context.
Create the service instance and choose the entry point
Open All > Service Mapping > Service Instances and select New. Enter a descriptive value in Name. As a working convention, choose a name that lets the application owner distinguish the intended service from other services on the same host. Do not use the host identity as a substitute for deciding the service boundary.
Select the Other Application tile. Discoverable by Service Mapping is selected by default. Check that setting while entering the instance details, then use Select Entry Point Type to choose the endpoint representation. The choices in this procedure are HTTP(S) Endpoint, TCP Endpoint, and Tibco BW Endpoint.
Choose according to the endpoint information you have verified for the GlassFish process. The goal is a starting point that identifies the intended application process. A familiar port number copied from another service is a weak starting point because the mapping attempt depends on what is actually running at the selected endpoint.
- HTTP(S) Endpoint: enter the process address in URL. This entry point type also exposes Host Name for the server hosting GlassFish.
- TCP Endpoint: use Host for the GlassFish server and Port for the port used by the associated process.
- Tibco BW Endpoint: use Host, Port, and Process Name. The process name must identify the process associated with GlassFish.
Comments is available for HTTP(S) Endpoint and TCP Endpoint. Use it to record context that another operator will need when checking the entry point, such as which application owner supplied the endpoint details. Keep the functional values in their designated fields; explanatory notes do not replace Host, Port, or URL.
For the broader service creation sequence, see how to create a service map. Return to the GlassFish checks here when configuring and validating this application type.
Save the endpoint and clear Traffic based discovery
After completing the endpoint fields, select Add, then Save. Continue with the saved service instance rather than assuming that endpoint entry finishes the configuration. The next setting is part of the GlassFish mapping sequence and deserves its own check before reviewing discovery results.
Select Additional Info on the left. Clear the Traffic based discovery check box and select Update. Record this as a completed configuration step in your work notes so a later reviewer can distinguish a saved endpoint from a service instance prepared for this mapping procedure.
The Traffic based discovery setting applies to this service instance. Other mapping configurations do not change it. If you are comparing approaches for a larger project, the tag and traffic-based mapping configuration guide addresses that neighboring topic.
Before moving on, compare the saved entry point with the values gathered from the application team. Check the host identity and the application port together. This short review gives you a known starting configuration to compare against a discovery error, rather than leaving uncertainty about whether the form was saved with the intended values.
Inspect GlassFish inclusions and their WAR files
Select View Map and allow mapping to finish. Completion can take a few minutes. Avoid assessing a partially drawn map as the final result; wait for the mapping attempt to complete before deciding whether the service representation is satisfactory.
Review the service layout and inspect the GlassFish Server configuration items, or CIs. The expected GlassFish result is more specific than finding a server somewhere in the map: the GlassFish Server CIs should be inclusions, with a WAR file contained in each. Use that relationship as an explicit acceptance check.
A sensible review sequence is to identify the intended service, locate its GlassFish inclusions, and inspect the WAR file under each inclusion. Compare those findings with the application’s expected deployment. Treat that comparison as an operational review with the application owner, rather than assuming that a visually busy map proves the correct application has been represented.
Note the endpoint used, the GlassFish CIs reviewed, and whether each WAR file containment matches the expected deployment.
For help planning this work, see ServiceNow implementation.
Investigate a missing GlassFish Server CI
When GlassFish is absent from the result, examine the discovery log before changing several settings. One failure described for this workflow begins with Process is not running or port is not correct. The accompanying detail identifies a host where an application could not be found on the selected port.
That symptom directs the investigation toward the entry point and the running process. First, check whether the entry point identifies the intended GlassFish application. Correct a wrong host or port before attempting to interpret the rest of the service layout. A map cannot establish the intended starting process from an endpoint that points elsewhere.
If the entry point is correct, run quick discovery on the host to check for a process running on that port. Work with the application operator to establish whether the application is running. Keep the distinction clear: a saved port value describes the intended connection, while process discovery checks what is present on the host.
Capture the original symptom and the outcome of the host check. Then assess whether the same endpoint is ready for another mapping attempt. For investigations that extend beyond this GlassFish symptom, use the Service Mapping troubleshooting guide.
Common first-attempt mistakes to avoid when mapping GlassFish
A common first-attempt problem is an entry point chosen from a host record instead of from the running process. A host name tells you where GlassFish is installed. It does not tell you which application should anchor the service. Confirm the port on the process itself before you save the instance, since that is the value the mapping attempt depends on.
Another slip is reviewing the map before the configuration is complete. The procedure saves the endpoint, clears Traffic based discovery under Additional Info, and then selects Update. A map viewed before that update may not reflect the configuration you meant to test, so confirm the setting is saved before you select View Map.
Do not accept a map because it looks complete. The acceptance check is specific: the GlassFish Server CIs should be inclusions, and each should contain a WAR file. A layout that shows GlassFish without the WAR file beneath it has not passed that check, however tidy the diagram looks.
When a result is wrong, change one thing at a time. Check the entry point first, then run quick discovery on the host, then remap. If you change the port, the endpoint and the discovery setting together, you cannot tell which change produced the new result.
Hosts that run more than one application process need extra care with the entry point. Two services on the same host can share a host name and differ only by port or process. Where the choice is not obvious, record the port and process details in the Comments field for HTTP(S) or TCP entry points, so the next reviewer can see why this endpoint was chosen.