• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to install war application

 
Alex Florentino
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It depends on the container you're using.
Which is it?
 
Alex Florentino
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is apache tomcat 4.1
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to our Apache Tomcat forum
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15482
43
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Alex Florentino
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok... but the www.mysite.com is host.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In that case, drop the war file in your appBase directory:
C:/ASISites/prod
 
Alex Florentino
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ben Souther:
In that case, drop the war file in your appBase directory:
C:/ASISites/prod


ok, it "work" .

thanks all
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic