aspose file tools*
The moose likes Tomcat and the fly likes How to install war application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "How to install war application" Watch "How to install war application" New topic
Author

How to install war application

Alex Florentino
Ranch Hand

Joined: Dec 12, 2006
Posts: 48
Hi all,

I have jsp/servlet site and I need install wiki for this site, sample:

my site: http://www.mysite.com
my wik: http://www.mysite.com/wiki

the problem is that mysite is java web application such as

/WEB-INF
/WEB-INF/lib... etc..

and my wiki is war file, where I could .war file from my wiki page ?

it see install application inner application.

thanks a lot.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

It depends on the container you're using.
Which is it?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Alex Florentino
Ranch Hand

Joined: Dec 12, 2006
Posts: 48
is apache tomcat 4.1
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Moving to our Apache Tomcat forum
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

The easiest way to install a war file in Tomcat is to drop the war file in your TOMCAT_INSTALL/webapps directory.
Tomcat will deploy it for you automatically.

If you want the contextPath to be 'wiki' then rename your war file to wiki.war before dropping it there.
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14351
    
  22

Do you have your application in a WAR file (wiki.war)? If yes, then you simply need to copy wiki.war to the webapps directory of your Tomcat installation. After starting Tomcat, it will deploy your application automatically on http://<server>:<port>/wiki

To customize this, you need to edit the <Context> element of your webapp in server.xml. See the documentation for more info.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
Alex Florentino
Ranch Hand

Joined: Dec 12, 2006
Posts: 48
ok... but the www.mysite.com is host.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

In that case, drop the war file in your appBase directory:
C:/ASISites/prod
Alex Florentino
Ranch Hand

Joined: Dec 12, 2006
Posts: 48
Originally posted by Ben Souther:
In that case, drop the war file in your appBase directory:
C:/ASISites/prod


ok, it "work" .

thanks all
 
jQuery in Action, 2nd edition
 
subject: How to install war application