views:

49

answers:

3

We have an Apache tomcat server that runs a current web service. We were trying to deploy a second version (with a few tweaks) however when we copy the war file over, the first one stops working. Why??

A: 

Is the Context root different in the war files. If not I believe the server will not validate the url correctly.

dealton
The context is the WAR file name - should be different. You don't need to add Context to the XML
duffymo
+1  A: 

If your application writes to a database, and another copy of it is competing for the same data in the same database, this can result in such behaviour. Does your application write to a "fixed" database? If so, you will need to create another database, or change the way the application deals with the database.

jowierun
+1  A: 

Does your webapp contain context.xml configuration for Tomcat? If the two webapps use the same docbase then they are accessing the same folder.

Martin
it does not have context.xml
jini