WARNING: Skipping a record because it is not an absolute URI. Glassfish in NetBeans

I have successfully installed GlassFish. However, when I start the server, I get two warning messages:

WARNING: skip recording because it is not an absolute URI.

What does it mean?

Launching GlassFish on Felix platform Aug 09, 2014 10:38:38 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner createBundleProvisioner INFO: Create bundle provisioner class = class com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner. Aug 09, 2014 10:38:38 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner$DefaultCustomizer getLocations WARNING: Skipping entry because it is not an absolute URI. Aug 09, 2014 10:38:38 PM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner$DefaultCustomizer getLocations WARNING: Skipping entry because it is not an absolute URI. Registered com.sun.e nterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishRuntime@ 162cf6a in service registry. Registry Info:: Total repositories: 1, Total modules = 293 ... 
+6
source share
2 answers

You can safely ignore this warning.

It comes from com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner . This part of GlassFish installs / registers GlassFish modules from the modules folder. It iterates over the list of URIs, i.e. Paths to module files.

If the URI is not absolute, i.e. relative or does not have a component of the circuit, this class registers this warning. In this case, the URIs are not absolute, because GlassFish probably uses paths relative to the GlassFish root.

+4
source

unichtich is right that the warning can be ignored, but you can also get rid of it.

To get rid of the warning, edit the file <glassfish_home>/glassfish/config/osgi.properties and change the property core.bundles :

 core.bundles=\ ${com.sun.aas.installRootURI}modules/endorsed/ \ ${obr.bundles} \ ${hk2.bundles} \ ${com.sun.aas.installRootURI}modules/glassfish.jar 

in

 core.bundles=\ ${com.sun.aas.installRootURI}modules/endorsed/ \ ${hk2.bundles} \ ${com.sun.aas.installRootURI}modules/glassfish.jar 

The warning occurs because the BundleProvisioner reads a property in osgi.properties called glassfish.osgi.auto.start , and it, in turn, refers to other properties such as core.bundles .

The property that was deleted above, obr.bundles , is currently commented on. The comment expands to the point that BundleProvisioner reads and issues a warning.

+5
source

Source: https://habr.com/ru/post/973595/


All Articles