[opensuse] how do I install a .war file?
I have a .war file I want to install, but I don't use Tomcat, so how can I go about installing it? -- Michael S. Dunsavage -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sun, 2008-12-28 at 05:05 -0500, 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? -- Michael S. Dunsavage
I do have tomcat after all, I just don't know how to use it to deploy the .war file -- Michael S. Dunsavage -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sun, 2008-12-28 at 05:05 -0500, 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?
http://www.linuxquestions.org/questions/linux-newbie-8/extracting-.war-files... See if one works. -=terry=- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
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?
A .war file is a compressed java library group containing a bunch of classes. It is compressed using the same as .zip files. 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? Typically Tomcat runs on port 8080, so you'd access the war file in the page, then laod the page at port 8080. http://mycoolapplication:8080 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 28 December 2008 04:10:45 pm 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?
A .war file is a compressed java library group containing a bunch of classes. It is compressed using the same as .zip files.
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.
In KDE Personal Settings > KDE Components > File Associations, the war extension can be found in application/x-webarchive and it is associated with Konqueror. Though, I don't know is there Konqueror handler for such file. -- Regards, Rajko -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sunday, 2008-12-28 at 18:50 -0600, Rajko M. wrote:
In KDE Personal Settings > KDE Components > File Associations, the war extension can be found in application/x-webarchive and it is associated with Konqueror. Though, I don't know is there Konqueror handler for such file.
Konqueror can save a web page together with all images and associated files needed to display it as a .war archive (tools menu): cer@nimrodel:~> file openSUSE.org.war openSUSE.org.war: gzip compressed data, was "", from Unix, last modified: Mon Dec 29 02:05:07 2008 (it is just a tar.gz by another name) and of course, it can reopen the archive off-line. This feature has been there for years, and it works. I just tested it with the kde3 version of konqueror. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAklYI9UACgkQtTMYHG2NR9VJEwCfcD4m5tBwpTpRNGY7wrHiRQYp G0wAn0zqu+jQXuvg2muS3mBSX98R4oGu =vpjN -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 28 December 2008 17:11, Carlos E. R. wrote:
On Sunday, 2008-12-28 at 18:50 -0600, Rajko M. wrote:
In KDE Personal Settings > KDE Components > File Associations, the war extension can be found in application/x-webarchive and it is associated with Konqueror. Though, I don't know is there Konqueror handler for such file.
Konqueror can save a web page together with all images and associated files needed to display it as a .war archive (tools menu):
I'm not sure how to make sense out of that. WAR files, which hold J2EE Web Applications, simply cannot be run in isolation. They are, by definition, not self-contained. They require a J2EE-compatible servlet container in which to execute. Furthermore, their actions are 100% driven by requests issued by clients (almost always via HTTP).
cer@nimrodel:~> file openSUSE.org.war openSUSE.org.war: gzip compressed data, was "", from Unix, last modified: Mon Dec 29 02:05:07 2008
(it is just a tar.gz by another name)
No. WAR files are JAR files with additional internal content and structuring requirements. JAR files are PKZIP files (often known as WinZip or simpley Zip files). The encoding is distinctly different from that of gzip (acting on TAR archive output) and no gzip-compressed TAR file will ever be accepted by Java as as JAR file or by a J2EE-compatible servlet container as a WAR file, regardless of how it is named.
and of course, it can reopen the archive off-line. This feature has been there for years, and it works. I just tested it with the kde3 version of konqueror.
Certainly a WAR or JAR file may be _examined_ without recourse to Java or a J2EE Servlet Container, but they most certainly cannot be _executed_ in the absence of that software.
-- Cheers, Carlos E. R.
Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sunday, 2008-12-28 at 17:45 -0800, Randall R Schulz wrote:
Konqueror can save a web page together with all images and associated files needed to display it as a .war archive (tools menu):
I'm not sure how to make sense out of that. WAR files, which hold J2EE Web Applications, simply cannot be run in isolation. They are, by definition, not self-contained. They require a J2EE-compatible servlet container in which to execute. Furthermore, their actions are 100% driven by requests issued by clients (almost always via HTTP).
(more blah blah bla) :-) Just try it. Open konqueror in kde 3, go to any web page, then go to the tools menu, and select "archive web page". It will save an archive with the .war extension and it can be later opened in knoqueror. Don't say "nay" without trying it first. You are talking of a diferent .war archive. The one I talk about, and that konqueror has registered in the system, is just a viewable web archive. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAklYLzQACgkQtTMYHG2NR9X2xwCcDBLQgtIAWVZSK/XTxQ2Ofdos 0UkAn1+LYx9xCxhIBzRdME7CtKOSftuM =pLo2 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 28 December 2008 18:00, Carlos E. R. wrote:
On Sunday, 2008-12-28 at 17:45 -0800, Randall R Schulz wrote:
Konqueror can save a web page together with all images and associated files needed to display it as a .war archive (tools menu):
I'm not sure how to make sense out of that. WAR files, which hold J2EE Web Applications, simply cannot be run in isolation. They are, by definition, not self-contained. They require a J2EE-compatible servlet container in which to execute. Furthermore, their actions are 100% driven by requests issued by clients (almost always via HTTP).
(more blah blah bla) :-)
Terseness invites misunderstanding...
Just try it. Open konqueror in kde 3, go to any web page, then go to the tools menu, and select "archive web page". It will save an archive with the .war extension and it can be later opened in knoqueror. Don't say "nay" without trying it first.
That is not in any way related to the kind of WAR file the OP was talking about. It's just an accidental collision on the file name suffix.
You are talking of a diferent .war archive. The one I talk about, and that konqueror has registered in the system, is just a viewable web archive.
Yes, different and unrelated to the question posed.
-- Cheers, Carlos E. R.
Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sunday, 2008-12-28 at 19:48 -0800, Randall R Schulz wrote:
Just try it. Open konqueror in kde 3, go to any web page, then go to the tools menu, and select "archive web page". It will save an archive with the .war extension and it can be later opened in knoqueror. Don't say "nay" without trying it first.
That is not in any way related to the kind of WAR file the OP was talking about. It's just an accidental collision on the file name suffix.
You are talking of a diferent .war archive. The one I talk about, and that konqueror has registered in the system, is just a viewable web archive.
Yes, different and unrelated to the question posed.
That's difficult to know from the two lines in the original post. And, I was replying to Rajko, who was wondering how konqueror could say it handles .war files. Well, it does :-) - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAklY3GMACgkQtTMYHG2NR9VsdACePAou8fdzuxcc6vSFFZSAUTYR M4kAn237R2f7oZRfY/H2gaz/KcDl7K0J =FtHF -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Monday 29 December 2008 06:19, Carlos E. R. wrote:
On Sunday, 2008-12-28 at 19:48 -0800, Randall R Schulz wrote:
...
You are talking of a diferent .war archive. The one I talk about, and that konqueror has registered in the system, is just a viewable web archive.
Yes, different and unrelated to the question posed.
That's difficult to know from the two lines in the original post.
Perhaps, but mentioning it in conjunction with Tomcat made it seem clear to me.
And, I was replying to Rajko, who was wondering how konqueror could say it handles .war files. Well, it does :-)
A matter of semantics, I suppose. It handles a particular kind of file that by convention it names ".war", but outside this idiosyncratic usage, WAR files are about J2EE.
-- Cheers, Carlos E. R.
Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
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
On Sun, 28 Dec 2008 09:05:36 pm 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? -- Michael S. Dunsavage
One way is to shutdown Tomcat, drop the war in the TOMCAT_INSTALL/webapps directory, start Tomcat. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Monday 29 December 2008 12:54, Diego Tognola wrote:
On Sun, 28 Dec 2008 09:05:36 pm 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? -- Michael S. Dunsavage
One way is to shutdown Tomcat, drop the war in the TOMCAT_INSTALL/webapps directory, start Tomcat.
Given that the OP said he doesn't use Tomcat, that seems like it poses some problems. ... Hmmm ... By "... I don't use Tomcat ..." did he mean merely that not having overtly or explicitely dealt with Tomcat, he was unfamiliar with its operations and _not_ that he didn't have it installed? I interpreted in the latter sense. Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tue, 30 Dec 2008 07:58:53 am Randall R Schulz wrote:
Given that the OP said he doesn't use Tomcat, that seems like it poses some problems.
On Sun, 2008-12-28 at 05:05 -0500, Michael S. Dunsavage wrote: "I do have tomcat after all, I just don't know how to use it to deploy the .war file". -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Monday 29 December 2008 13:03, Diego Tognola wrote:
On Tue, 30 Dec 2008 07:58:53 am Randall R Schulz wrote:
Given that the OP said he doesn't use Tomcat, that seems like it poses some problems.
On Sun, 2008-12-28 at 05:05 -0500, Michael S. Dunsavage wrote: "I do have tomcat after all, I just don't know how to use it to deploy the .war file".
Oops. I missed that. RRS -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Randall R Schulz wrote:
On Monday 29 December 2008 13:03, Diego Tognola wrote:
On Tue, 30 Dec 2008 07:58:53 am Randall R Schulz wrote:
Given that the OP said he doesn't use Tomcat, that seems like it poses some problems.
On Sun, 2008-12-28 at 05:05 -0500, Michael S. Dunsavage wrote: "I do have tomcat after all, I just don't know how to use it to deploy the .war file".
Oops. I missed that.
Whoops - I've just caught up with things, but to summarise, myself and Michael got to the bottom of the problem but I neglected to cc the list on the emails. Sorry. All we had to do was to copy the .war to the webapps directory under the TOMCAT_HOME directory, then restart tomcat. Things were slightly complicated by Apache2 listening on port 8080 so we got an initial error of 'object not found', but Michael changed ports on Apache, restarted tomcat and things started working. I imagine the last bit of work left to do would be to install and configure mod_jk to link Apache to tomcat when the right URL is accessed, but that's fairly trivial. The autodeployment worked fine with tomcat 6 on openSuse 11.0 that I was testing with, including the permissions for .jsp and other required files, something I had major problems with on Red Hat 5.1 working with a customer recently. Cheers Pete -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (8)
-
Carlos E. R.
-
Diego Tognola
-
Kai Ponte
-
Michael S. Dunsavage
-
Pete Connolly
-
Rajko M.
-
Randall R Schulz
-
Teruel de Campo MD