I have a java web service that is supposed to start automatically when it is deployed. For some unknown reason it does not. I am seeking guidance on how to figure out why it is not starting automatically. I am using jdk 1.8, jax ws 2.2.6, tomcat 8 on rhel 7. Here is what I have in the web.xml file for the service servlet:
Is there something else I am supposed to do other than put the number 1 in the load on startup tag? Everything that I have googled said that this is all I need to do. My server admin guy is not much help and if there is something on the server side that needs to be done can anybody please tell me that. If there is something else that I need to put in my code then please let me know.
I do not have this issue in the development or staging environments but I can say that the one difference in the production environment, which is where I am having this issue, is that the web service is served via a load balancer. The request goes through one of two regular apache web server to tomcat.