tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Victor Kabdebon <victor.kabde...@gmail.com>
Subject Re: war file question
Date Mon, 06 Dec 2010 19:57:30 GMT
Hi,

May I add something Lava, if you don't want to work around war manually use
Netbeans or Eclipse as your IDE and they can do it for you without any
effort.

Victor Kabdebon

2010/12/6 Konstantin Kolinko <knst.kolinko@gmail.com>

> 2010/12/6 Lava Saleem <lnsaleem@ualr.edu>:
> > Hi
> > Thanks for the replies
> > Pid thanks for the link but I have looked into before sending the email
> and
> > it is very general and not very useful, as I'm a beginner user for
> tomcat.
> > Check I was deploying the  file with jsp extension  and I got this
> > message on the top of the tomcat webpage. Now I have my html file in the
> > WEB-INF  I changed the extension to war but that didn't work as it didn't
> > work if I left it as html extension. it is very simple file with few
> lines
> > of java script.
> > Thanks
>
> 1. WAR is effectively a zip archive. You create one using the "jar"
> archiver program in the JDK.
>
> http://download.oracle.com/javase/6/docs/technotes/tools/windows/jar.html
>
> That is: you have to prepare the files for your web application and
> then "zip" them with the jar utility.
>
> E.g. for the examples webapp that comes with Tomcat:
> 1) go to
>  $CATALINA_BASE/webapps
> 2) run
>  jar -cf examples.war -C examples .
>
> it will pack the "examples" directory into a war file.
>
>
> 2. The WEB-INF and META-INF subdirectories are special. They are not
> "visible" from the outside. So, you should not put your .html, or .js,
> or .css or images there.
>
> The WEB-INF directory is for configuration (the web.xml file is the
> main one there) and for executable code.
>
> You should place your web page elsewhere. Usually - at the root of your
> webapp.
>
> See the ROOT application that comes with Tomcat, You will find an
> index.html there.
>
> (ROOT is the special name for the default webapp on Tomcat).
>
>
> 3. There should be tutorials for beginners somewhere. (One is that Pid
> mentioned).
>
> You should really go step-by-step with a one of them once.
>
> The links to the official specifications can be found here:
> http://wiki.apache.org/tomcat/Specifications
>
> Best regards,
> Konstantin Kolinko
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message