How to configure weblogic web service for autostart with server?

814 Views Asked by At

I have created a web service and deployed it on web logic server 12c (12.1.2) as .war file from Jdeveloper. Web service works good after each deployment. But when I restart server and send request to web service then it returns HTTP Error 403. Each and every time I need to go in my Jdeveloper and deploy this web service again and again to make it work.

Is there any way to start this web service automatically as web logic server starts?

1

There are 1 best solutions below

7
On

Are you sure you are getting a 403 (Forbidden) and not 404 (Not found) response..? because it's a totally different thing..

Did you have any issue or errors raised during deployment ..?

Regarding starting a deployment with weblogic server start up, it depends on the last status of the deployment before the server was shutdown. So if the deployment was in a state "Active" then you shutdown the server, then when you start the server the deployment would start with the server, or at least try to if there wasn't any errors or so. If the deployment was in a state of "Prepared", then when the server restarts, it won't start that deployment.

Regards, Mohab