changed server.sh to fix rmi issue