• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Depoly war file in tomcat

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi
how to depoly .war file in tomcat. we have to put the war file in the classpath or what.pls help me. And what is the physical file path and virutal file path in UNIX - for Apache & Tomcat.
File upload component.
Pls help me. Thanks.
Arun.
 
Author
Posts: 245
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
to deploy a war file you just put it in the webapps/ directory of tomcat. In a live system I usually move the webapps directory to another drive so that the server and application are protected from a failure of each other.
a virtual path is one that is relative to the root context of your web applicatoin. So if the folder that contains your webapps is called examples/ then a virtual path is content/documents/mydocument
whereas the real path might be
/usr/java/tomcat4/webapps/examples/content/documents/mydocument
 
This parrot is no more. It has ceased to be. Now it's a tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic