Description
The 'Server' component is never registered so the following call fails with a null pointer.
Server server = SystemInstance.get().getComponent(Server.class);
server.stop();
The order of shutdown in Server.java should be:
OpenEJB.destroy();
manager.stop();
Remove redundant code in SimpleServiceManager.java - In fact the removed code could potentially cause shutdown race conditions on RA's if Server.stop() is called.