2013-09-24 62 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