File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Remote Appln Deployment in Tomcat4 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Remote Appln Deployment in Tomcat4" Watch "Remote Appln Deployment in Tomcat4" New topic

Remote Appln Deployment in Tomcat4

Sam Furtado
Ranch Hand

Joined: Jul 16, 2002
Posts: 45
Hi Guys !!!
I have been following the below attached URL to deploy a web appln on a remote tomcat server.
The Manager Command used was as follows :!/

1) References to the word 'bar' means the name given to the war file. Also, the 'Context Path'
is also given the same name
2)'VirDir'is the Virtual Directory running on Personal Web Server having path c:\InetPub\wwwroot\VirDir\
However, executing the above command throws the below exception :
"Invalid application URL was specified "

Secondly, the "war file" that needs to be deployed. How should it be created ? Would it be sufficient to create the "war file" explicitly from the dos shell using the command : jar warfile.war .(Current & all sub-folders) or would it be necessary to use the deployment tool to create the war file. Since, the deployment tool creates 2 additional files on creation of a .war file.
What should be done ???
[ August 27, 2002: Message edited by: Sam Furtado ]

Sun Certified Java Programmer<br />Sun Certified Web Component Developer
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

1) You mean, the name given to the context to which you are deploying, right? It's not necessarily the name of the war file you are deploying.

2) Have you tried using the file: notation instead? You would need to ftp the file to the remote box first.!/

By deploy tool, you mean the one that comes with JWSDP? (web services development pack?). I've deployed several apps on Tomcat using only command line jar tool.
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

Moving from Servlets -> Apache/Tomcat
I agree. Here's the link:
subject: Remote Appln Deployment in Tomcat4
It's not a secret anymore!