shabby
shabby

Reputation: 3222

Updating a huge war file without redeploying everytime - apache

What I have done

I have deployed a war file through tomcat admin panel and its working fine. As soon as I deploy the war file apache creates a seperate folder structure for it.

What I want

Now I want to update the war file without having to redeploy everytime.

What I cant do

I cant upload a new war file just for a minor change in a class, it is a heavy webservice with all the libraries and ancillary classes bundled so the size is quite huge which takes ages to upload.

Weird Scenario

When i delete the war file the folder gets deleted automatically(magically I mean), so I believe there is a strong attachment between the war and the fodler

I am using netbeans to develop a java webservice, if thats of any importance, thanks

I have searched every where but cannot find anything explained. Only heard of something like dynamic deployement here but dont know how to enable it in netbeans

Upvotes: 0

Views: 1037

Answers (3)

shabby
shabby

Reputation: 3222

ok i got it, thanks alot alyo, i updated the compiled classes and reloaded the application from the tomcat manager and it started working, thanks for the help

Upvotes: -1

Aljaz Vidmar
Aljaz Vidmar

Reputation: 675

it's in the tomcat config file server.xml (/usr/local/tomcat/conf/server.xml - this depends on your installation) there will be a similar line to this:

<Host name="www.example.com" debug="0" 
      appBase="/sites/www.example.com/web" unpackWARs="true" 
      autoDeploy="true">

Upvotes: 3

Aljaz Vidmar
Aljaz Vidmar

Reputation: 675

You should set the tomcat config autoDeploy = true.

Then when you update the was file in appBase, tomcat should update the app automatically.

Upvotes: 1

Related Questions