快乐向日葵 发表于 2013-1-31 02:45:01

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

没关闭glassfish,电脑断电,重启glassfish时报错:
 
# ./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
    IMQ_HOME=/home/web/glassfish/imq
IMQ_VARHOME=/home/web/glassfish/domains/domain1/imq
Linux 2.6.18-53.el5 i386 zadlsso.zadlzju.edu.cn (2 cpu) root
Java Heap Size: max=506816k, current=26768k
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
Embedded Broker
: Starting the portmapper service using tcp [ 7676, 50, * ] with min threads 1 and max threads of 1
ERROR : 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.
WARNING : Log output channel syslog is disabled: no imqutil in java.library.path

================================================================================
 
于是删除/home/web/glassfish/domains/domain1/imq/instances/imqbroker目录下的lock文件。
再次启动glassfish即可。
页: [1]
查看完整版本: 没关闭glassfish,断电后重启glassfish时报错