wood burning stoves 2.0*
The moose likes Servlets and the fly likes where to put .WAR files on server? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "where to put .WAR files on server?" Watch "where to put .WAR files on server?" New topic
Author

where to put .WAR files on server?

Edmund Castermund
Ranch Hand

Joined: May 09, 2007
Posts: 85
Hi,
I am able to do some simple servlets and run them on the localhost...but I want to deploy on a home server I have....I tried exporting the war file (I'm using eclipse) to <server-tomcat-folder>/webapps/filename.war....

but I cant run the applcation from there...
also, when I try to view the .WAR file I can't see it, either in the terminal or dolphin (I'm using ubuntu).

What is the appropriate destination for a WAR file, and what would the url be if running the war file on a server?
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3838

I tried exporting the war file (I'm using eclipse) to <server-tomcat-folder>/webapps/filename.war....

Yes, It's the right place.
when I try to view the .WAR file I can't see it, either in the terminal or dolphin (I'm using ubuntu).

Then the file has not been exported.
and what would the url be if running the war file on a server?

By default container deploys the war with the same name as the WAR file's unless you config it to a different one.


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Edmund Castermund
Ranch Hand

Joined: May 09, 2007
Posts: 85
I got it, thanks..
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: where to put .WAR files on server?