Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/387.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 警告:正在跳过条目,因为它不是绝对URI。网虫中的玻璃鱼_Java_Netbeans_Glassfish - Fatal编程技术网

Java 警告:正在跳过条目,因为它不是绝对URI。网虫中的玻璃鱼

Java 警告:正在跳过条目,因为它不是绝对URI。网虫中的玻璃鱼,java,netbeans,glassfish,Java,Netbeans,Glassfish,我成功地安装了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

我成功地安装了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
...

您可以安全地忽略此警告。

它来自
com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner
。GlassFish的这一部分从
modules
文件夹安装/注册GlassFish模块。它循环浏览URI列表,即模块的文件路径


如果URI不是绝对的,即它是相对的,或者它没有scheme组件,那么此类会记录此警告。在这种情况下,URI不是绝对的,因为GlassFish可能使用从GlassFish根开始的相对路径。

unwichtich是正确的,警告可以忽略,但您也可以删除它

要消除警告,请编辑文件
/glassfish/config/osgi.properties
,并将core.bundles属性更改为:

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

之所以出现此警告,是因为BundleProvisioner读取osgi.properties中名为glassfish.osgi.auto.start的属性,然后它又引用其他属性,如核心.bundles


上面删除的属性,obr.bundles当前已被注释掉。该评论被扩展到BundleProvisioner阅读并发出警告的空间。

我对JavaEE和Glassfish不熟悉。我希望以后不会有任何问题。谢谢你的回复!
core.bundles=\
    ${com.sun.aas.installRootURI}modules/endorsed/ \
    ${hk2.bundles} \
    ${com.sun.aas.installRootURI}modules/glassfish.jar