没关闭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即可。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值