You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Gaël Oberson <go...@swissonline.ch> on 2001/04/17 16:14:22 UTC
WAR deployment
RE: Servlet Chaining...
Does anybody know where I can find information about the WAR files?? I know
that these files are used to deploy a WEB Application, where all files
.class and config files are packaged, but I don't have any idea how to build
it.
Can somebody help me??
Thanks.
Re: WAR deployment
Posted by Sam Newman <sa...@stamplets.com>.
Thrid party libs and the like should be in WEB-INF\lib. Tomcats classloader
will automatically pick up and load these jars.
Your webapps classes should indeed be in WEB-INF\classes.
sam
----- Original Message -----
From: "Jim Willeke" <ji...@willeke.com>
To: <to...@jakarta.apache.org>
Sent: Tuesday, April 17, 2001 3:45 PM
Subject: Re: WAR deployment
> But where do you findout what should/could be in this file?
> If I look at the examples.war file, it appears to contain all that is in
> the:
> \webapps\examples\WEB-INF\classes
>
> Is this typical or redundent?
>
> My specific issue is I can not find where to place "common" lib files
> that can be found by the a servlet. Even if it is placed in the:
> \webapps\examples\WEB-INF\classes
> I continue to get an error that the class can not be found even though
> there is a jar file in this directory that contains the file AND the JVM
> has a classpath that includes the jar file.
> Any help or pointers to some docs as to howw this is all supposed to go
> together would be great!
> -jim
>
RE: WAR deployment
Posted by Benoît Jacquemont <be...@smile.fr>.
The lib files have to placed in the war/WEB-INF/lib directory.
Anyway, check the email from Julien Timothy, sent some minutes ago.
Benoît
> But where do you findout what should/could be in this file?
> If I look at the examples.war file, it appears to contain all
> that is in
> the:
> \webapps\examples\WEB-INF\classes
>
> Is this typical or redundent?
>
> My specific issue is I can not find where to place "common" lib files
> that can be found by the a servlet. Even if it is placed in the:
> \webapps\examples\WEB-INF\classes
> I continue to get an error that the class can not be found
> even though
> there is a jar file in this directory that contains the file
> AND the JVM
> has a classpath that includes the jar file.
> Any help or pointers to some docs as to howw this is all
> supposed to go
> together would be great!
> -jim
>
> Gaël Oberson wrote:
>
> >
> >
> >
> >
> > Does anybody know where I can find information about the
> WAR files?? I
> > know that these files are used to deploy a WEB Application,
> where all
> > files .class and config files are packaged, but I don't
> have any idea
> > how to build it.
> >
> >
> >
> > Can somebody help me??
> >
> >
> >
> > Thanks.
> >
Re: WAR deployment
Posted by Jim Willeke <ji...@willeke.com>.
But where do you findout what should/could be in this file?
If I look at the examples.war file, it appears to contain all that is in
the:
\webapps\examples\WEB-INF\classes
Is this typical or redundent?
My specific issue is I can not find where to place "common" lib files
that can be found by the a servlet. Even if it is placed in the:
\webapps\examples\WEB-INF\classes
I continue to get an error that the class can not be found even though
there is a jar file in this directory that contains the file AND the JVM
has a classpath that includes the jar file.
Any help or pointers to some docs as to howw this is all supposed to go
together would be great!
-jim
Gaël Oberson wrote:
>
>
>
>
> Does anybody know where I can find information about the WAR files?? I
> know that these files are used to deploy a WEB Application, where all
> files .class and config files are packaged, but I don't have any idea
> how to build it.
>
>
>
> Can somebody help me??
>
>
>
> Thanks.
>
RE: WAR deployment
Posted by Jim Cheesman <jc...@msl.es>.
Try downloading ant (at jakarta-apache) - it'll build one for you
semi-automatically. You'll need to play around a little to get it to work,
not because it's faulty but rather to set up your build.xml files correctly.
Examples
Assume the following structure in the project's base directory:
thirdparty/libs/jdbc1.jar
thirdparty/libs/jdbc2.jar
build/main/com/myco/myapp/Servlet.class
src/metadata/myapp.xml
src/html/myapp/index.html
src/jsp/myapp/front.jsp
src/graphics/images/gifs/small/logo.gif
src/graphics/images/gifs/large/logo.gif
then the war file myapp.war created with
<war warfile="myapp.war" webxml="src/metadata/myapp.xml">
<fileset dir="src/html/myapp"/>
<fileset dir="src/jsp/myapp"/>
<lib dir="thirdparty/libs">
<exclude name="jdbc1.jar"/>
</lib>
<classes dir="build/main"/>
<zipfileset dir="src/graphics/images/gifs"
prefix="images"/>
</war>
will consist of
WEB-INF/web.xml
WEB-INF/lib/jdbc2.jar
WEB-INF/classes/com/myco/myapp/Servlet.class
META-INF/MANIFEST.MF
index.html
front.jsp
images/small/logo.gif
images/large/logo.gif
using Ant's default manifest
HTH,
Jim
At 04:27 PM 4/17/2001, you wrote:
>Hmm. Saw this somewhere yesterday... Damn.can't find it.
>
>Basically a WAR file is generated by jar (java archiver) and some options...
>
>Will have a look. If anybody knows this please post!
>
>Gareth
>>-----Original Message-----
>>From: Gaël Oberson [mailto:goberson@swissonline.ch]
>>Sent: Tuesday, April 17, 2001 15:14
>>To: tomcat-user@jakarta.apache.org
>>Subject: WAR deployment
>>
>>
>>
>>Does anybody know where I can find information about the WAR files?? I
>>know that these files are used to deploy a WEB Application, where all
>>files .class and config files are packaged, but I don't have any idea how
>>to build it.
>>
>>Can somebody help me??
>>
>>Thanks.
--
* Jim Cheesman *
Trabajo: jchees@msl.es - (34)(91) 724 9200 x 2360
Personal: mogrim@arrakis.es (34) 606 770 244
Practice safe eating -- always use condiments.
RE: WAR deployment
Posted by Gareth Coltman <ga...@majorband.co.uk>.
RE: Servlet Chaining...Hmm. Saw this somewhere yesterday... Damn.can't find
it.
Basically a WAR file is generated by jar (java archiver) and some options...
Will have a look. If anybody knows this please post!
Gareth
-----Original Message-----
From: Gaël Oberson [mailto:goberson@swissonline.ch]
Sent: Tuesday, April 17, 2001 15:14
To: tomcat-user@jakarta.apache.org
Subject: WAR deployment
Does anybody know where I can find information about the WAR files?? I
know that these files are used to deploy a WEB Application, where all files
.class and config files are packaged, but I don't have any idea how to build
it.
Can somebody help me??
Thanks.
Re: Connection Pooling
Posted by Jeff Kilbride <je...@kilbride.com>.
Go to
http://www.javaexchange.com/
and download the DbConnectionBroker class. It includes examples in the
documentation.
--jeff
----- Original Message -----
From: "Balaji Muniraja" <m_...@yahoo.co.uk>
To: <to...@jakarta.apache.org>; <be...@smile.fr>
Sent: Tuesday, April 17, 2001 6:26 PM
Subject: Connection Pooling
> Hi Gurus,
> I am new to the TOMCAT and JSP. Can any one guide
> me how to use Connection Pooling with TOMCAT and JSP.
>
> Thanks for the efforts and the help in Advance.
>
> Thanks and Regards
> M.Balaji.
>
>
> ____________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
> or your free @yahoo.ie address at http://mail.yahoo.ie
>
Connection Pooling
Posted by Balaji Muniraja <m_...@yahoo.co.uk>.
Hi Gurus,
I am new to the TOMCAT and JSP. Can any one guide
me how to use Connection Pooling with TOMCAT and JSP.
Thanks for the efforts and the help in Advance.
Thanks and Regards
M.Balaji.
____________________________________________________________
Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie
RE: WAR deployment
Posted by Gaël Oberson <go...@swissonline.ch>.
Yes Benoit, but in the .war file, you include the web.xml config file too.
Does the jar tool accept the web.xml file and some packages subdirectories
??
-----Message d'origine-----
De : Benoît Jacquemont [mailto:benoit.jacquemont@smile.fr]
Envoyé : mardi, 17. avril 2001 16:20
À : tomcat-user@jakarta.apache.org
Objet : RE: WAR deployment
War file can be build like Jar file... Just name the file my_file.war
instead of my_file.jar when you use the jar utility to build it.
Benoît
>Does anybody know where I can find information about the WAR files?? I know
that these files are used to deploy a WEB
>Application, where all files .class and config files are packaged, but I
don't have any idea how to build it.
>
>Can somebody help me??
>
>Thanks.
RE: WAR deployment
Posted by Benoît Jacquemont <be...@smile.fr>.
War file can be build like Jar file... Just name the file my_file.war
instead of my_file.jar when you use the jar utility to build it.
Benoît
>Does anybody know where I can find information about the WAR files?? I know
that these files are used to deploy a WEB
>Application, where all files .class and config files are packaged, but I
don't have any idea how to build it.
>
>Can somebody help me??
>
>Thanks.