• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

war file not deploying properly

 
Ranch Hand
Posts: 279
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using apache-tomcat-6.0.20 server. I deploy .war file when the server is running, but sometimes the war file is not deployed properly. The folders are there, but not the jsp files. So I have to manually unzip the war file and copy all the files.

As I said, this happens sometimes, is there anything that I need to check.

The tomcat is a service and I have turned on the autoDeploy attribute in server.xml.

Any suggestions welcome. Thanks.
 
Ranch Hand
Posts: 470
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did you check log files?
 
vjy chin
Ranch Hand
Posts: 279
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I did check the log files and I could not see anything that would explain this.

 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Exactly what steps do you take to

deploy .war file when the server is running,



Bill
 
vjy chin
Ranch Hand
Posts: 279
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The way the app works is, a war file is downloaded from another place and copied into the webapps folder and the tomcat service is started. Most of the times the war file is deployed properly, but sometimes it is not, mostly there will just be empty folders and not the jsp or other files.

I have also tried to manually copy the war file to the webapps folder after deleting the existing war and the war folder.

Thanks.
 
William Brogden
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Pretty mysterious alright!

If this was my problem I think I would be checking that the war file is properly constructed.

Are the JSP files you need actually in the war file and just not getting deployed?

How about the manifest? Anything odd about it?

Bill
 
Ranch Hand
Posts: 2187
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

The way the app works is, a war file is downloaded from another place and copied into the webapps folder and the tomcat service is started.



Does this mean that before the WAR is downloaded Tomcat is not running? If this is true, what is turning Tomcat off?

 
vjy chin
Ranch Hand
Posts: 279
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks William and Jimmy.

The JSP files are in the war file. So if the jsps are not deployed properly, I had to manually un-war the app, copy the jsps files. MANIFEST does look good.

The app will be deployed when the tomcat is off. It is the part of application deployment process (bring up a new amazon instance). But even when tomcat is running and deploy the war file, I see this issue.

Thanks.
 
Ranch Hand
Posts: 448
Eclipse IDE Firefox Browser Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
have you written some sort of ANT script to copy the war file from source to webapps folder?

I don't think this to be Tomcat issue...Check your source folder when you see missing jsp...
 
vjy chin
Ranch Hand
Posts: 279
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the response. There is a groovy script which gets executed when the instance is brought up and initializes, downloads the war, deploys in tomcat and so on.

But I know the war file is fine, since I manually get the jsps from that war file (from the same machine) and copy it to the application folders.

Thanks.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic