File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 81
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: 3775

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: 81
I got it, thanks..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: where to put .WAR files on server?
 
Similar Threads
Netbeans web application - excluding the JAR while building the WAR
How to manually deploy a war file in tomcat server
How do I make a war file?
How to run Web Services at Tomcat
deploying war file on weblogic 9.2