Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Remote Appln Deployment in Tomcat4

 
Sam Furtado
Ranch Hand
Posts: 45
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys !!!
I have been following the below attached URL to deploy a web appln on a remote tomcat server.
URL:-
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/manager-howto.html
The Manager Command used was as follows :
http://175.25.3.122:8080/manager/install?path=/bar&war=jar:http://localhost/VirDir/bar.war!/

Note:-
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 ???
Thanks
[ August 27, 2002: Message edited by: Sam Furtado ]
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
http://175.25.3.122:8080/manager/install?path=/bar&war=jar:file:/usr/local/upload/bar.war!/

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
Posts: 3695
IntelliJ IDE Java Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving from Servlets -> Apache/Tomcat
 
Sam Furtado
Ranch Hand
Posts: 45
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys !!!
Is there a problem with Tomcat 4 where REMOTE APPLICATION DEPLOYMENT(as mentioned in the Manager Appln) is concerned ???
Pls do let me know
Thanks Guys
 
Sam Furtado
Ranch Hand
Posts: 45
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys !!!
Is there a problem with Tomcat 4 where REMOTE APPLICATION DEPLOYMENT(as mentioned in the Manager Appln) is concerned ???
Pls do let me know
Thanks Guys
 
Sam Furtado
Ranch Hand
Posts: 45
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys !!!
I wish i could get a solution to this problem as it could help greatly in development since, my system configuration is low and therefore wished that if i could instead deploy my applications on a remote tomcat server as mentioned in "Tomcat's Manager Appln" then a lot of time can be saved.
Even now i hope that i can get a solution to this problem. Can any of u guys pls try it out ???
Pls suggest what needs to be done.
Thanks Guys
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17624
39
Android Eclipse IDE Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I really haven't looked at the new deployment features in Tomcat4, but I can answer about WARs and EARS.
A WAR file is just a regular JAR made from your website configuration image according to the standard directory stucture. The actual webapp is described in the WEB-INF/web.xml file. All the deployment tools do is make it easier on you by letting you produce web.xml via a GUI.
An EAR file, BTW is a "super-jar" than can contain WARs, EJBs, miscellaneous classes etc described by an included application.xml file.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic