`

没关闭glassfish,断电后重启glassfish时报错

阅读更多

没关闭glassfish,电脑断电,重启glassfish时报错:

 

[root@zadlsso bin]# ./asadmin start-domain
Starting Domain domain1, please wait.
Default Log location is /home/web/glassfish/domains/domain1/logs/server.log.
Redirecting output to /home/web/glassfish/domains/domain1/logs/server.log
Domain domain1 failed to startup. Please check the server log for more details.
CLI156 Could not start the domain domain1.

 

查看/home/web/glassfish/domains/domain1/imq/instances/imqbroker/log/log.txt文件:

================================================================================
Open Message Queue 4.3
Sun Microsystems, Inc.
Version:  4.3  (Build 7-g)
Compile:  Fri Nov  7 19:11:27 PST 2008

Copyright (c) 2007 Sun Microsystems, Inc.  All rights reserved.  Use is
subject to license terms.
================================================================================
Java Runtime: 1.6.0_14 Sun Microsystems Inc. /usr/java/jdk1.6.0_14/jre
[24/二月/2011:14:53:23 CST]    IMQ_HOME=/home/web/glassfish/imq
[24/二月/2011:14:53:23 CST] IMQ_VARHOME=/home/web/glassfish/domains/domain1/imq
[24/二月/2011:14:53:23 CST] Linux 2.6.18-53.el5 i386 zadlsso.zadlzju.edu.cn (2 cpu) root
[24/二月/2011:14:53:23 CST] Java Heap Size: max=506816k, current=26768k
[24/二月/2011:14:53:23 CST] Arguments: -port 7676 -name imqbroker -imqhome /home/web/glassfish/imq/bin/.. -varhome /home/web/glassfish/domains/domain1/imq -libhome /home/web/glassfish/imq/lib -useRmiRegistry -rmiRegistryPort 8686 -save -silent
[24/二月/2011:14:53:23 CST] Embedded Broker
[24/二月/2011:14:53:23 CST] [B1004]: Starting the portmapper service using tcp [ 7676, 50, * ] with min threads 1 and max threads of 1
[24/二月/2011:14:53:23 CST] ERROR [B3087]: The broker has detected an active lock file:
/home/web/glassfish/domains/domain1/imq/instances/imqbroker/lock
This file indicates that there is another copy of the broker running
on idp.example.com:7676 that is also using the instance name "imqbroker".
Please use a different instance name or terminate the broker on idp.example.com:7676.
[24/二月/2011:14:55:19 CST] WARNING [S2004]: Log output channel syslog is disabled: no imqutil in java.library.path
[24/二月/2011:14:55:19 CST]
================================================================================

 

于是删除/home/web/glassfish/domains/domain1/imq/instances/imqbroker目录下的lock文件。

再次启动glassfish即可。

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics