Page 1 of 1

how to shutdown the services before backup?

PostPosted:Mon Mar 14, 2011 9:36 pm
by ossecfan
how can I stop cleanly all services if these "warnings" appear?
...but services are running.
Code: Select all
root@openkm:~# /opt/jboss-4.2.3.GA/bin/shutdown.sh -S
Exception in thread "main" javax.naming.CommunicationException [Root exception is java.rmi.NoSuchObjectException: no such object in table]
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:780)
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
        at javax.naming.InitialContext.lookup(InitialContext.java:392)
        at org.jboss.Shutdown.main(Shutdown.java:214)
Caused by: java.rmi.NoSuchObjectException: no such object in table
        at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
        at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
        at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142)
        at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:675)
        ... 3 more

Re: how to shutdown the services before backup?

PostPosted:Mon Mar 14, 2011 10:43 pm
by ossecfan
Code: Select all
root@openkm:~# pkill java

Re: how to shutdown the services before backup?

PostPosted:Fri Mar 18, 2011 2:14 pm
by jap_td03
how to shutdown it in Windows 2003?
thanks

Re: how to shutdown the services before backup?

PostPosted:Sat Mar 19, 2011 9:45 am
by jllort
You might configure OpenKM as a service ( you can take a look at http://wiki.openkm.com/index.php/Installation_Guide configure jboss as service or looking for at google "configure jboss as service"). Then you'll make the normal netstart openkm or netstop openkm

In terminal you might use:
Code: Select all
./bin/shutdown.sh -s jnp://localhost:1099
sleep 40

Re: how to shutdown the services before backup?

PostPosted:Mon Mar 21, 2011 6:21 pm
by pavila

Re: how to shutdown the services before backup?

PostPosted:Sat Mar 26, 2011 9:43 am
by jap_td03
pavila wrote:Take a look at http://wiki.openkm.com/index.php/Backup_scripts.
Thanks but i cannot log in this page :(

Re: how to shutdown the services before backup?

PostPosted:Mon Mar 28, 2011 5:33 pm
by pavila
This question is more related to JBoss that OpenKM, but you can shutdown an JBoss instance this way:
Code: Select all
$JBOSS_HOME/bin/shutdown.sh -s $JBOSS_IP