2013-09-24 63 views
2

我使用Ubuntu 12.4和我装glassfish3本教程:http://www.marlonj.com/blog/2012/05/instalando-glassfish-3-1-2-en-ubuntu-server-12-04/失败命令启动域glassfish3

一切都是fine..but当我尝试启动域:命令和-u的GlassFish斌/ asadmin的开始 - 域DOMAIN1

显示此错误:

Esperando a que se inicie domain1 ............Error al iniciar domain domain1. El servidor ha finalizado de forma prematura con el código de salida 0. Antes de terminar, ha generado la siguiente salida:

Launching GlassFish on Felix platform [#|2013-09-24T13:31:50.742-0300|INFO|glassfish3.1.2|com.sun.enterprise.server.logging.GFFileHandler|_ThreadID=1;_ThreadName=main;|Running GlassFish Version: GlassFish Server Open Source Edition 3.1.2 (build 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=Grizzly-kernel-thread(1);|Grizzly Framework 1.9.46 started in: 308ms - bound to [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=Grizzly-kernel-thread(1);|Grizzly Framework 1.9.46 started in: 294ms - bound to [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=Grizzly-kernel-thread(1);|Grizzly Framework 1.9.46 started in: 411ms - bound to [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=Grizzly-kernel-thread(1);|Grizzly Framework 1.9.46 started in: 402ms - bound to [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=main;|Registered org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for persistence-type = replicated in BackingStoreFactoryRegistry|#]

[#|2013-09-24T13:31:52.659-0300|INFO|glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=1;_ThreadName=main;|GlassFish Server Open Source Edition 3.1.2 (23) tiempo de inicio: Felix (8.339ms), servicios de inicio(2.907ms), total(11.246ms)|#]

[#|2013-09-24T13:31:52.660-0300|SEVERE|glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=1;_ThreadName=main;|Cerrando v3 debido a una excepción de inicio: No free port within range: 8080=com.sun[email protected]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=Thread-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;|Already stopped, so just returning|#]

Exception: java.lang.NullPointerException thrown from the UncaughtExceptionHandler in thread "FelixStartLevel"

Fallo del comando start-domain.

任何想法

谢谢,对不起,我的英语

回答

0

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

asadmin create-domain mydomain 
asadmin start-domain mydomain 

然后你就可以在你的网页浏览器中键入localhost:4848访问您的域。

我已经使用Windows和Glassfish4完成了它,它工作正常,但我希望它也适用于您。

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