开发者

Jboss 5.1 GA Automatic Shutdown

开发者 https://www.devze.com 2023-04-03 21:42 出处:网络
I have deployed my application on Jboss 5.1 GA. In my application I am using only one RestFul web service and JADE components.

I have deployed my application on Jboss 5.1 GA. In my application I am using only one RestFul web service and JADE components.

I am running 2 jboss servers on base linux machine.

1) Jboss 4.0.1 on 8080 port

2) Jboss 5.1 GA on 8280 port

After few days my Jbos开发者_开发问答s 5.1 GA server shutdown automatically, log says shutdown hook called... I have checked all logs and found following -

2011-09-08 00:42:46,683 INFO [org.jboss.bootstrap.microcontainer.ServerImpl] (JBoss Shutdown Hook) Runtime shutdown hook called, forceHalt: true

There is nothing which will explain why jboss shutdown hook called?

Also checked my code for System.exit(); and tried to start jboss server as daemon in linux but, problem continues...

So why jboss server is calling its shutdown hook?

Thanks, Yogesh


Maybe you used the official script to start the JBoss, then exited the terminal without the command "exit".

/etc/init.d/jboss start

Mostly, we don't suspect these scripts which from JBoss itself, but actually some of them are not trustworthy. To avoid the HUP(hang up) signal, we should use "nohup" ahead:

nohup /etc/init.d/jboss start

0

精彩评论

暂无评论...
验证码 换一张
取 消