Is it possible to deploy web service jar file directly to axis(tomcat web server or any web server) through java code rather than opening and uploading (assuming that server is up)?
I am not sure about using java code to deploy a .war but you can use the administration deployment utility in tomcat to deploy a war through http without having to open and upload the war.
Looking at the docs you might be able to do it programatically:
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.