DanglingElse
DanglingElse

Reputation: 263

Deploying a WAR to tomcat only using a context descriptor

I need to deploy a web application in WAR format to a remote tomcat6 server. The thing is that I don't want to do that the easy way, meaning not just copy/paste the WAR file to /webapps. So the second choice is to create a unique "Context Descriptor" and pointing this out to the WAR file. (Hope I got that right till here)

So I have a few questions:

  1. Is the WAR file allowed to be anywhere in the file system? Meaning can I copy the WAR file anywhere in the remote file system, except /webapps or any other folder of the tomcat6 installation?

  2. Is there an easy way to test whether the deployment was successful or not? Without using any browser or anything, since I'm reaching to the remote server only via SSH and terminal. (I'm thinking ping?)

  3. Is it normal that the startup.sh/shutdown.sh don't exist? I'm not the admin of the server and don't know how the tomcat6 is installed. But I'm sure that in my local tomcat installations these files are in /bin and ready to use. I mean you can still start/restart/stop the tomcat etc., but not with the these -standard?- scripts.

Upvotes: 1

Views: 675

Answers (1)

Toni Toni Chopper
Toni Toni Chopper

Reputation: 1851

  1. Why don't you want to drop the .war file in the webapps folder?
  2. Yes, check the logs in $CATALINA_HOME/logs/catalina.out
  3. No, it's not normal. They are part of the standard installation.

Upvotes: 1

Related Questions