失败命令start-domain glassfish3

时间:2013-09-24 16:48:19

标签: glassfish

我正在使用ubuntu 12.4并且我安装了glassfish3,请遵循以下教程:http://www.marlonj.com/blog/2012/05/instalando-glassfish-3-1-2-en-ubuntu-server-12-04/

一切都很好..但是当我尝试启动域时:sudo -u glassfish bin / asadmin start-domain domain1

显示此错误:

  

Esperando a que se inicie domain1 ............错误al iniciar域名   DOMAIN1。 El servidor ha finalizado de forma prematura conelcódigode   salida 0. Antes de terminar,ha generado la siguiente salida:

     

在Felix平台上启动GlassFish   [#| 2013-09-24T13:31:50.742-0300 | INFO | glassfish3.1.2 | com.sun.enterprise.server.logging.GFFileHandler | _ThreadID = 1; _ThreadName =主; |运行   GlassFish版本:GlassFish Server开源版3.1.2(构建   23)|#]

     

[#| 2013-09-24T13:31:51.819-0300 | INFO | glassfish3.1.2 | javax.enterprise.system.core.com.sun.enterprise.v3.services.impl | _ThreadID = 28; _ThreadName =灰熊内核线程(1)|灰熊   框架1.9.46开始于:308ms - 绑定到[0.0.0.0:3700] |#]

     

[#| 2013-09-24T13:31:51.819-0300 | INFO | glassfish3.1.2 | javax.enterprise.system.core.com.sun.enterprise.v3.services.impl | _ThreadID = 31; _ThreadName =灰熊内核线程(1)|灰熊   框架1.9.46开始于:294ms - 绑定到[0.0.0.0:7676] |#]

     

[#| 2013-09-24T13:31:51.819-0300 | INFO | glassfish3.1.2 | javax.enterprise.system.core.com.sun.enterprise.v3.services.impl | _ThreadID = 21; _ThreadName =灰熊内核线程(1)|灰熊   框架1.9.46开始于:411ms - 绑定到[0.0.0.0:8181] |#]

     

[#| 2013-09-24T13:31:51.819-0300 | INFO | glassfish3.1.2 | javax.enterprise.system.core.com.sun.enterprise.v3.services.impl | _ThreadID = 25; _ThreadName =灰熊内核线程(1)|灰熊   框架1.9.46开始于:402ms - 绑定到[0.0.0.0:4848] |#]

     

[#| 2013-09-24T13:31:52.439-0300 | INFO | glassfish3.1.2 | org.glassfish.ha.store.spi.BackingStoreFactoryRegistry | _ThreadID = 1; _ThreadName =主; |注册   org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for   persistence-type =在BackingStoreFactoryRegistry中复制|#]

     

[#| 2013-09-24T13:31:52.659-0300 | INFO | glassfish3.1.2 | javax.enterprise.system.core.com.sun.enterprise.v3.server | _ThreadID = 1; _ThreadName =主; | GlassFish的   服务器开源版3.1.2(23)tiempo de inicio:Felix   (8.339ms),servicios de inicio(2.907ms),总计(11.246ms)|#]

     

[#| 2013-09-24T13:31:52.660-0300 |严重| glassfish3.1.2 | javax.enterprise.system.core.com.sun.enterprise.v3.server | _ThreadID = 1; _ThreadName =主; | Cerrando   v3 debido aunaexppcióndeinicio:范围内没有免费端口:   8080=com.sun.enterprise.v3.services.impl.monitor.MonitorableSelectorHandler@6365c8 |#]

     

[#| 2013-09-24T13:31:52.721-0300 | INFO | glassfish3.1.2 | javax.enterprise.system.tools.admin.com.sun.enterprise.v3.admin | _ThreadID = 37; _ThreadName =螺纹21; | Servidor   inactivo iniciado |#]

     

[#| 2013-09-24T13:31:52.723-0300 | INFO | glassfish3.1.2 | javax.enterprise.system.core.com.sun.enterprise.v3.server | _ThreadID = 37; _ThreadName = Thread- 21; |已经   停了,所以只返回|#]

     

异常:抛出java.lang.NullPointerException   线程“FelixStartLevel”中的UncaughtExceptionHandler

     

Fallo del comando start-domain。

任何想法

谢谢,对不起我的英文

2 个答案:

答案 0 :(得分:0)

尝试创建自己的域,而不是使用默认的domain1。你可以这样做:

 asadmin create-domain mydomain
 asadmin start-domain mydomain

然后,您可以在网络浏览器中输入localhost:4848来访问您的域名。

我使用Windows和Glassfish4完成了这项工作并且工作正常,但我希望它也适合你。

答案 1 :(得分:0)

下载zip文件后,
cd/usr/local/glassfish4.1.1./bin
sudo ./asadmin
//try to create
asadmin> create-domain domain1
//if already exist
asadmin> start-domain domain1