我成功安装了 GlassFish。但是,当我启动服务器时,我收到两条警告消息:
警告:跳过条目,因为它不是绝对 URI。
那是关于什么的?
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.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishRuntime@162cf6a in service registry.
Registry Info:: Total repositories: 1, Total modules = 293
...
unwichtich 是对的,警告可以被忽略,但你也可以摆脱它。
要消除警告,请编辑文件<glassfish_home>/glassfish/config/osgi.properties
并改变核心包财产来自:
core.bundles=\
${com.sun.aas.installRootURI}modules/endorsed/ \
${obr.bundles} \
${hk2.bundles} \
${com.sun.aas.installRootURI}modules/glassfish.jar
to:
core.bundles=\
${com.sun.aas.installRootURI}modules/endorsed/ \
${hk2.bundles} \
${com.sun.aas.installRootURI}modules/glassfish.jar
发生警告是因为 BundleProvisioner 读取 osgi.properties 中名为glassfish.osgi.auto.start它又引用其他属性,例如核心包.
上面删除的属性,obr.bundles,目前已被注释掉。该评论会扩展到 BundleProvisioner 读取并发出警告的空间。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)