On Sunday 28 December 2008 14:10, Kai Ponte wrote:
Michael S. Dunsavage wrote:
I have a .war file I want to install, but I don't use Tomcat, so how can I go about installing it?
While Tomcat per se is not required, some servlet container is. Tomcat is available in all recent openSUSE distributions, is open-source and is entirely suitable for general-purpose Web Application hosting.
A .war file is a compressed java library group containing a bunch of classes. It is compressed using the same as .zip files.
The content of a WAR file has more requirements than that of a simple JAR file.
I know that on Macintosh and in Windows, you just double-click on the war file to run it. (just like a .jar file.) However, you probably need to mess around a bit in Linux because it isn't as friendly.
Generally a .war file is associated with one or more web pages. Do you have web pages to load? If you have tomacat, I'm assuming you run some web page?
The notion of a WAR file (Web Application aRchive) is that of a packaged Web Application suitable for deployment within a Servlet Container such as is implemented by Tomcat. They are most certainly _not_ self-contained for execution as an "executable JAR file" is (i.e. by running "java -jar jarFile.jar").
Typically Tomcat runs on port 8080, so you'd access the war file in the page, then laod the page at port 8080.
This is true for stand-alone Tomcat, not Tomcat as integrated with, say, Apache. Nonetheless, this is the most common deployment mode for Tomcat. In order to install a WAR file for use within Tomcat, you must locate the (or one of the) deployment directories and place the WAR file there. Note that copying the WAR file to this directory can be problematic, since Tomcat will notice the file as soon as it appears and immediately try to expand it, even if has not yet been fully copied. Thus it is best to copy the file to a name that _does not_ end in ".war". Then, once the copy is complete, rename the destination as a ".war" file. Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org