How can the following be possible.
what I did was put this "AdminClient" thing in a servlet and in the init method...but obviously it got executed before the server could start up and I get a "Connection refused" error.
After the server starts up, then it initializes the various application contexts one by one and when you applications turn comes , it loads all the servlets with load on startup tag.So your servlet is getting executed after the servers starts.
One more thing related to this.Your servlet that had the code for adminclient of axis might be getting executed before the axis servlet is getting initialized.You can load the axis servlets using load on startup like your initializing servlet but with less numeric value than what you set for your servlet.
But for such purposes context listners are more prefered.