天道酬勤,学无止境

WARNING: Skipping entry because it is not an absolute URI. GlassFish in NetBeans

I successfully installed GlassFish. However, when I start a server, I get this two warning messages:

WARNING: Skipping entry because it is not an absolute URI.

What is that about ?

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 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 core.bundles property from:

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

The warning is happening because BundleProvisioner reads a property in osgi.properties named glassfish.osgi.auto.start and it in turn references other properties like core.bundles.

The property that was removed above, obr.bundles, is currently commented out. The comment is expanded to a space which BundleProvisioner reads and issues a warning about.

You can safely ignore this warning.

It comes from com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner. This part of GlassFish installs/registers the GlassFish modules from the modules folder. It loops through a list of URIs, i.e. the file paths of the modules.

If an URI is not absolute, i.e. it is relative or it has no scheme component, then this class logs this warning. In this case the URIs are not absolute because GlassFish probably uses the paths relative from the GlassFish root.

受限制的 HTML

  • 允许的HTML标签:<a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id>
  • 自动断行和分段。
  • 网页和电子邮件地址自动转换为链接。

相关推荐
  • @WebServlet 在 GlassFish 5 + JDK 13 中失败,java.lang.RuntimeException: com.example.NewServlet。 (NewServlet.java:1),总是在第 1 行(@WebServlet fails in GlassFish 5 + JDK 13 with java.lang.RuntimeException: com.example.NewServlet.<init>(NewServlet.java:1), always a
    问题 JSP 和 html 文件由我在 NetBeans 中的 Glassfish 服务器提供,但不提供 servlet。 最新的 NetBeans 配置为使用最新的 JDK 13,而 Glassfish 使用的是 Java EE 1.8 浏览器报错: HTTP Status 500 - Internal Server Error type Exception report message Internal Server Error description The server encountered an internal error that prevented it from fulfilling this request. exception javax.servlet.ServletException: Error instantiating servlet class com.example.NewServlet root cause com.sun.enterprise.container.common.spi.util.InjectionException: Error creating managed object for class: class com.example.NewServlet root cause java.lang
  • JEE can't run JAX-RS WebService skeleton app
    I'm using Windows, NetBeans 8.0.2, GlassFish 4.1. I can't make my example JAX-RS app running. This is pom.xml: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.wld</groupId> <artifactId>HelloWebService</artifactId> <packaging>war</packaging> <version>1.0-SNAPSHOT</version> <name>HelloWebService</name> <url>http://maven.apache.org</url> <dependencies> <dependency> <groupId>com.sun.jersey</groupId>
  • JEE无法运行JAX-RS WebService骨架应用(JEE can't run JAX-RS WebService skeleton app)
    问题 我正在使用Windows,NetBeans 8.0.2,GlassFish 4.1。 我无法使我的示例JAX-RS应用程序运行。 这是pom.xml: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.wld</groupId> <artifactId>HelloWebService</artifactId> <packaging>war</packaging> <version>1.0-SNAPSHOT</version> <name>HelloWebService</name> <url>http://maven.apache.org</url> <dependencies> <dependency> <groupId>com.sun.jersey</groupId> <artifactId>jersey-server<
  • @WebServlet fails in GlassFish 5 + JDK 13 with java.lang.RuntimeException: com.example.NewServlet.<init>(NewServlet.java:1), always at line 1
    JSPs and html files are served by my Glassfish server in NetBeans, but not servlets. Latest NetBeans is configured to use JDK latest 13, and Glassfish is using Java EE 1.8 Error reported in the browser: HTTP Status 500 - Internal Server Error type Exception report message Internal Server Error description The server encountered an internal error that prevented it from fulfilling this request. exception javax.servlet.ServletException: Error instantiating servlet class com.example.NewServlet root cause com.sun.enterprise.container.common.spi.util.InjectionException: Error creating managed object
  • start-domain failed Glassfish on Windows 7
    I wanted to start a Glassfish 4.1.1-Server on Windows 7 with JAVA 8 JDK 66, but my command asadmin start-domain failed. This seems to be an obscure error because I get a pretty long failure message in the command prompt (see below). Can anybody give me a hint what the problem is? Even a direction ("likly a problem with the firewall", "incompatible JDK-Version", etc.) would be a help... Thank you Threx +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ C:\Glassfish\bin>asadmin start-domain Waiting for domain1 to start ..........Error starting domain domain1. The server
  • Windows 7 上的启动域失败 Glassfish(start-domain failed Glassfish on Windows 7)
    问题 我想在 Windows 7 上使用 JAVA 8 JDK 66 启动 Glassfish 4.1.1-Server,但是我的命令 asadmin start-domain 失败了。 这似乎是一个模糊的错误,因为我在命令提示符中收到了很长的失败消息(见下文)。 谁能给我一个提示是什么问题? 即使是一个方向(“可能是防火墙的问题”,“不兼容的 JDK 版本”等)也会有所帮助...... 谢谢你 ++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++++++++++++++++++ C:\Glassfish\bin>asadmin start-domain Waiting for domain1 to start ..........Error starting domain domain1. The server exited prematurely with exit code 0. Before it died, it produced the following output: Launching GlassFish on Felix platform Registered com.sun.enterprise.glassfish.bootstrap.osgi
  • Unable to Connect to JDBC Connection Pool from Glassfish
    I am running GlassFish Server Open Source Edition 3.1.2.2 (build 5) with MySql I have created a JDBC Connection Pool using NetBeans. Googled this problem I found that adding it is a classpath issue. Connecting a MySQL database to Glassfish classpath is not set or classname is wrong and http://bhapca.blogspot.in/2009/06/class-name-is-wrong-or-classpath-is-not.html Added the jar in the directory. C:\Program Files\glassfish-3.1.2.2\glassfish\domains\domain1\lib and also tried in C:\Program Files\glassfish-3.1.2.2\glassfish\domains\domain1\lib\ext Restarted the server many times. Re-created
  • 无法从Glassfish连接到JDBC连接池(Unable to Connect to JDBC Connection Pool from Glassfish)
    问题 我正在使用MySql运行GlassFish Server开源版3.1.2.2(内部版本5) 我已经使用NetBeans创建了一个JDBC连接池。 用谷歌搜索这个问题,我发现添加它是一个类路径问题。 未将MySQL数据库连接到Glassfish类路径或类名称错误,并且http://bhapca.blogspot.in/2009/06/class-name-is-wrong-or-classpath-is-not.html在以下位置添加了jar目录。 C:\Program Files\glassfish-3.1.2.2\glassfish\domains\domain1\lib 并尝试了 C:\Program Files\glassfish-3.1.2.2\glassfish\domains\domain1\lib\ext 重新启动服务器多次。 重新创建连接池。仍然没有成功。 当我尝试从管理控制台ping通它时,收到此消息 Error An error has occurred Ping Connection Pool failed for AffableBeanPool. Class name is wrong or classpath is not set for : com.mysql.jdbc.jdbc2.optional.MysqlDataSource Please
  • 无法使用 NetBeans 和 Glassfish 服务器部署 WebService(Cannot deploy WebService with NetBeans and Glassfish server)
    问题 我正在研究 java netbeans webservice。 我正在成功部署 Web 服务,但是当我按下测试 Web 服务时。 我在附加图像中收到错误消息。 在 glassfish 服务器输出中,它抛出异常,但我不知道如何解决它们。 图像1 图像2 这是 glassfish 服务器输出: Info: Invoking wsimport with http://localhost:8080/AppleStoreServer/ShoppingWS?WSDL Info: parsing WSDL... Info: [WARNING] schema_reference: Failed to read schema document 'ShoppingWS?xsd=1', because 'http' access is not allowed due to restriction set by the accessExternalSchema property. Info: line 7 of http://localhost:8080/AppleStoreServer/ShoppingWS?WSDL#types?schema1 Warning: StandardWrapperValve[ShoppingWS]: Servlet.service() for servlet
  • 玻璃鱼编码(Glassfish encoding)
    问题 我正在使用本示例和 runUpdate() 函数中的代码,我将其放入带有 Glassfish v3 的 Netbeans 6.8 中的 Web 应用程序中的 javabean 中。 似乎我有编码问题,因为表中出现问号。 到目前为止我已经尝试过: 在 nbproject->private->private.properties 添加 runtime.encoding=UTF-8> 在project->properties->sources->encoding utf-8 在程序文件->netbeans->etc->netbeans_conf 在 netbeans_default_options 我添加 -J-DFile.encoding=UTF-8 在项目->属性->构建->编译->附加编译器选项-encoding utf-8 在 sun-web.xml 我添加了<locale-charset-info default-locale="UTF-8"> <locale-charset-map locale="" charset=""/> <parameter-encoding default-charset="UTF-8"/> </locale-charset-info> 此外,当我在 glassfish 输出面板中使用 system.out.print() 时,我得到了胡言乱语
  • Glassfish - Application name is already in use
    I’ve come to an hold with my programing because I’m getting an error from glassfish. I’m using NetBeans IDE 7.3 for this project. And I’ve built a simple program which runs over the web(jsp file etc). But I keep on getting the weirdest error display from glassfish. I’ve searched the internet for my solution and found people posting similar things, but I never seem actually manage to fix it because I don’t really understand the post which I’ve read. So what is the error that I get at startup? First time I run it I get this from the Output Starting GlassFish Server 3.1.2 GlassFish Server 3.1.2
  • Cannot deploy WebService with NetBeans and Glassfish server
    I'm working on java netbeans webservice. I'm deploying the webservice successfully, but when I press Test Web Service. I get the error in the attached image. in the glassfish server output it's throw exceptions but I dont't know how to solve them. img1 img2 this is the glassfish server output: Info: Invoking wsimport with http://localhost:8080/AppleStoreServer/ShoppingWS?WSDL Info: parsing WSDL... Info: [WARNING] schema_reference: Failed to read schema document 'ShoppingWS?xsd=1', because 'http' access is not allowed due to restriction set by the accessExternalSchema property. Info: line 7 of
  • 警告:未找到提供程序 com.sun.xml.internal.bind.v2.ContextFactory(WARNING: Provider com.sun.xml.internal.bind.v2.ContextFactory not found)
    问题 我已经通过Jersey在 JSF 应用程序中集成了一些 Web 服务。 一切正常,甚至 OAuth 标识也正常工作。 但! 启动我的网络服务器时,我总是收到此错误: INFO: Scanning for root resource and provider classes in the packages: com.mysite.webService INFO: Root resource classes found: class com.mysite.webService.Accounts INFO: No provider classes found. INFO: Initiating Jersey application, version 'Jersey: 1.17 01/17/2013 03:31 PM' SEVERE: The provider class, class com.sun.jersey.oauth.server.OAuthProviderInjectionProvider, could not be instantiated. Processing will continue but the class will not be utilized java.lang.RuntimeException: No OAuthProvider
  • Glassfish - 应用程序名称已被使用(Glassfish - Application name is already in use)
    问题 我已经停止了我的编程,因为我收到了来自 glassfish 的错误消息。 我在这个项目中使用 NetBeans IDE 7.3。 我已经构建了一个在网络上运行的简单程序(jsp 文件等)。 但是我不断从 glassfish 那里得到最奇怪的错误显示。 我在互联网上搜索了我的解决方案,发现有人发布了类似的内容,但我似乎从未真正设法解决它,因为我不太了解我读过的帖子。 那么我在启动时遇到的错误是什么? 我第一次运行它时,我从输出中得到了这个 启动 GlassFish Server 3.1.2 GlassFish Server 3.1.2 正在运行。 就地部署在 C:\Users\Vedo\Documents\NetBeansProjects\ÄrendeWebApplication\build\web 正在初始化... 部署? DEFAULT=C:\Users\Vedo\Documents\NetBeansProjects\ÄrendeWebApplication\build\web&name=ÄrendeWebApplication&contextroot=/_rendeWebApplication&force=true 在 GlassFish Server 3.1.2 上失败部署期间发生错误:空。 有关更多详细信息,请参阅 server.log。 C:\Users\Vedo
  • Glassfish v3 / JNDI 入口找不到问题!(Glassfish v3 / JNDI entry cannot be found problems!)
    问题 我在尝试从 Java 应用程序客户端调用 EJB 的方法时遇到问题。 这是代码。 EJB 远程接口 package com.test; import javax.ejb.Remote; @Remote public interface HelloBeanRemote { public String sayHello(); } EJB package com.test; import javax.ejb.Stateless; @Stateless (name="HelloBeanExample" , mappedName="ejb/HelloBean") public class HelloBean implements HelloBeanRemote { @Override public String sayHello(){ return "hola"; } } 主类(另一个项目) import com.test.HelloBeanRemote; import javax.naming.Context; import javax.naming.InitialContext; public class Main { public void runTest()throws Exception{ Context ctx = new InitialContext()
  • “ URI具有授权组件”是什么意思?(What does 'URI has an authority component' mean?)
    问题 我试图在NetBeans 6.8上构建Java Web项目,但出现以下错误: 该模块尚未部署。 它指向我的build-impl.xml文件的第577行: <nbdeploy clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/> GlassFish v3错误日志显示: SEVERE: Exception in command execution : java.lang.IllegalArgumentException: URI has an authority component java.lang.IllegalArgumentException: URI has an authority component at java.io.File.<init>(File.java:368)`..., etc. “ URI具有授权组件”是什么意思? 回答1 解决的方法很简单,就是URI的格式不正确(因为我的项目的位置在“ \\” UNC路径上)。 当我使用本地工作区时,此问题已修复。 回答2 授权是URI的一部分。 您的错误表明它不期望​​一个。 权限部分如下所示,这就是URL的网站部分。 从URI上的RFC3986: 以下是示例URI及其组成部分: foo:/
  • 部署 .war 时出现 Glassfish 服务器错误:部署期间发生错误:准备应用程序时出现异常:资源无效(Glassfish Server Error when deploy .war: Error occurred during deployment: Exception while preparing the app : Invalid resource)
    问题 我正在使用以下内容: NetBeans IDE 7.3(内部版本 201306052037) Java:1.7.0_17; Java HotSpot(TM) 64 位服务器 VM 23.7-b01 NetBeans 集成 GlassFish Server 开源版 3.1.2.2(构建 5) 我使用 NetBeans 创建了一个 RESTful Web 服务,将它部署在 NetBeans 下并且运行良好。 所以我将生成的 .war 文件复制到另一台使用: Oracle GlassFish Server 3.1.2.2 java 版本“1.7.0_21”Java HotSpot(TM) 客户端 VM(构建 23.21-b01,混合模式) 当我想部署 .war 文件时,我收到此错误: 远程失败:部署期间发生错误:准备应用程序时出现异常:资源无效:webservice__pm。 有关更多详细信息,请参阅 server.log。 命令部署失败。 这是我的 glassfish-resources.xml: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE resources PUBLIC "-//GlassFish.org//DTD GlassFish Application Server 3.1 Resource Definitions/
  • Glassfish application not working with maven library (gf-client)
    For a school assignment I received a Netbeans project using JNDI and JMS with Glassfish (3 open source edition). All the Glassfish libraries this application is using are referenced by absolute path and all the other libraries (in the "lib" folder) are referenced by relative path. Since my group is working with a version control system the "lib" folder is included in the repository. This works fine because it is a small project. However the Glassfish libraries are problematic as I am a Linux user and the others are Windows users. We have worked around this problem by letting Netbeans take care
  • Web应用程序在端口8080上启动,该在哪里更改?(Web applications starts on port 8080, where can I change it?)
    问题 我有Netbeans IDE版本6.8和Glassfish版本3。我的glassfish侦听器设置为端口81,但是当我尝试通过Netbenas IDE运行最简单的Web应用程序时,它将尝试在端口8080上运行它。在哪里可以更改? 对我的Web应用程序使用端口8080对我来说是不可能的。 回答1 有点晚了,但这应该可行... 我已经没有6.8了,但是以下情况适用于6.9和6.10m1-在目录<home dir> /。netbeans / <version> / config中,有一个名为.nbattrs的文件-编辑它,然后查找就像是: <attr name="GlassFishEE6\Instances\glassfish_autoregistered_instance\httpportnumber" stringvalue="8082"/> 将值更改为您在适当的Glassfish域中设置的任何值。 如果像我一样,您安装了多个版本的Glassfish,或者可能安装了多个域,只需注意.... displayName键并跟随您的鼻子-很明显,您正在更改哪个。 HTH, 约翰 注意:您当然可以删除服务器,然后使用向导选择正确的端口再次添加它-但是我认为编辑.nbattrs要容易得多 NB2:目录链中还有一个.nbattrs文件,它也包含glassfish配置(无法记住确切的位置-抱歉
  • Glassfish encoding
    I'm using the code in this example example and in the runUpdate() function which i put in a javabean in a web application in Netbeans 6.8 with Glassfish v3. It seems i have an encoding problem because question marks appear in the table. I have tried so far: In nbproject->private->private.properties add runtime.encoding=UTF-8> In project->properties->sources->encoding utf-8 In program files->netbeans->etc->netbeans_conf in netbeans_default_options i add -J-DFile.encoding=UTF-8 In project->properties->build->compiling->additional compiler options -encoding utf-8 In sun-web.xml i added <locale