This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
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.
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.
Author and all-around good cowpoke
Joined: Mar 22, 2000
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?
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?
Joined: Feb 17, 2005
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.