You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Daniel Kehoe <ke...@fortuity.com> on 2002/08/13 08:09:04 UTC
deploying apps simply (simply deploying apps)
On Fri, 9 Aug 2002 21:53:52 -0700 (PDT), "Craig R. McClanahan"
<cr...@apache.org> said
(on the roller-development and struts-dev lists):
> PS: In Tomcat 4.1.x, the "deploy" command of the manager app lets you
> include a context configuration file in the WAR, at location
> "META-INF/context.xml". So it might still be possible to configure a
> single WAR that works correctly in Tomcat 4.1.x and still works in
> other servers (that would obviously ignore such a file).
I'd like a user to download a war file that has a
"META-INF/context.xml" that defines
a default JNDI data source (an HSQLDB database), drop the war file into
<tomcat>/webapps/,
restart Tomcat, and test the app. Then, if they want to use a different
datasource, I'd like
them to use the Tomcat admin tool to change the JDBC driver and URL for
the database,
overriding the "META-INF/context.xml" setting. This is the simplest
install procedure I can
imagine. However, that doesn't seem possible currently. What are the
alternatives?
I can tell the user to unzip an archive that contains myapp.xml and
myapp.war, copy the myapp.xml
into <tomcat>/webapps/, unjar the myapp.war into <tomcat>/webapps/, and
restart Tomcat, then use
the Tomcat admin tool to change the JDBC driver and URL for the
database. But that seems to be as
simple as I can make it currently. Can I do better?
--
Daniel
kehoe@fortuity.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Block a dir to not display its content
Posted by "R.C.Nougain" <no...@cad.delhi.nic.in>.
Many thanks!
----- Original Message -----
From: "Holger Klein-Altstedde" <ho...@prioeins.de>
To: "'Tomcat Users List'" <to...@jakarta.apache.org>
Sent: Wednesday, August 14, 2002 5:01 PM
Subject: AW: Block a dir to not display its content
I attached the file /conf/web.xml
Ist in the servlet section.
Regs
Holger
> -----Ursprüngliche Nachricht-----
> Von: R.C.Nougain [mailto:nougain@cad.delhi.nic.in]
> Gesendet: Mittwoch, 14. August 2002 13:27
> An: Tomcat Users List
> Betreff: Re: Block a dir to not display its content
>
>
> holger.klein
>
> I tried but. Where inside web.xml I need to put!
>
> --
>
>
>
> ----- Original Message -----
> From: "Holger Klein-Altstedde" <ho...@prioeins.de>
> To: "'Tomcat Users List'" <to...@jakarta.apache.org>
> Sent: Wednesday, August 14, 2002 4:53 PM
> Subject: AW: Block a dir to not display its content
>
>
> Try
> <init-param>
> <param-name>listings</param-name>
> <param-value>false</param-value>
> </init-param>
>
> in your web.xml. This will force Tomcat not indexing your directory.
>
> Regs
> Holger
>
> > -----Ursprüngliche Nachricht-----
> > Von: D Bamud [mailto:nougain@cad.delhi.nic.in]
> > Gesendet: Mittwoch, 14. August 2002 13:21
> > An: Tomcat Users List
> > Betreff: Block a dir to not display its content
> >
> >
> > Tomcat4.0.4 / J2SDK1.4.0/W2K
> >
> > My application is webapps/bbc. It works just fine. The dirs
> inside it
> > are "jsp" and "WEB-INF". Inside the jsp dir I have my *.jsp
> files and
> > also some directories like "doc", "src", "images" etc.
> These are the
> > directories that the end user should not see content of via the
> > browser. If someone make a URL like /bbc/jsp/doc the contents are
> > displayed on the browser and the user could see/save them.
> I want to
> > prevent them IN THE SAME WAY AS "WEB-INF" dir is now (Tomcat4.x
> > onwards). How to do it.
> >
> > One way is of-course put default file like index.html (based on the
> > configuration). But I am looking for more better way (WEB-INF way).
> > Where and what I need to delcare.
> >
> > --
> > Thanks
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:tomcat-user-> unsubscribe@jakarta.apache.org>
> > For
> > additional commands,
> > e-mail: <ma...@jakarta.apache.org>
> >
>
>
> --
> To unsubscribe, e-mail:
> <mailto:tomcat-user-> unsubscribe@jakarta.apache.org>
> For
> additional commands,
> e-mail: <ma...@jakarta.apache.org>
>
>
>
> --
> To unsubscribe, e-mail:
> <mailto:tomcat-user-> unsubscribe@jakarta.apache.org>
> For
> additional commands,
> e-mail: <ma...@jakarta.apache.org>
>
----------------------------------------------------------------------------
----
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Block a dir to not display its content
Posted by D Bamud <no...@cad.delhi.nic.in>.
Ok It worked. I was trying inside /WEB-INF/web.xml. I guess it is also
possible for application level ie only for a given web application???
What I need to do so that when 404 tomcat message need to be displayed by
tomcat it instead show my common 404.html file where I have my contents to
show the user.
----- Original Message -----
From: "Holger Klein-Altstedde" <ho...@prioeins.de>
To: "'Tomcat Users List'" <to...@jakarta.apache.org>
Sent: Wednesday, August 14, 2002 5:01 PM
Subject: AW: Block a dir to not display its content
I attached the file /conf/web.xml
Ist in the servlet section.
Regs
Holger
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
AW: Block a dir to not display its content
Posted by Holger Klein-Altstedde <ho...@prioeins.de>.
I attached the file /conf/web.xml
Ist in the servlet section.
Regs
Holger
> -----Ursprüngliche Nachricht-----
> Von: R.C.Nougain [mailto:nougain@cad.delhi.nic.in]
> Gesendet: Mittwoch, 14. August 2002 13:27
> An: Tomcat Users List
> Betreff: Re: Block a dir to not display its content
>
>
> holger.klein
>
> I tried but. Where inside web.xml I need to put!
>
> --
>
>
>
> ----- Original Message -----
> From: "Holger Klein-Altstedde" <ho...@prioeins.de>
> To: "'Tomcat Users List'" <to...@jakarta.apache.org>
> Sent: Wednesday, August 14, 2002 4:53 PM
> Subject: AW: Block a dir to not display its content
>
>
> Try
> <init-param>
> <param-name>listings</param-name>
> <param-value>false</param-value>
> </init-param>
>
> in your web.xml. This will force Tomcat not indexing your directory.
>
> Regs
> Holger
>
> > -----Ursprüngliche Nachricht-----
> > Von: D Bamud [mailto:nougain@cad.delhi.nic.in]
> > Gesendet: Mittwoch, 14. August 2002 13:21
> > An: Tomcat Users List
> > Betreff: Block a dir to not display its content
> >
> >
> > Tomcat4.0.4 / J2SDK1.4.0/W2K
> >
> > My application is webapps/bbc. It works just fine. The dirs
> inside it
> > are "jsp" and "WEB-INF". Inside the jsp dir I have my *.jsp
> files and
> > also some directories like "doc", "src", "images" etc.
> These are the
> > directories that the end user should not see content of via the
> > browser. If someone make a URL like /bbc/jsp/doc the contents are
> > displayed on the browser and the user could see/save them.
> I want to
> > prevent them IN THE SAME WAY AS "WEB-INF" dir is now (Tomcat4.x
> > onwards). How to do it.
> >
> > One way is of-course put default file like index.html (based on the
> > configuration). But I am looking for more better way (WEB-INF way).
> > Where and what I need to delcare.
> >
> > --
> > Thanks
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:tomcat-user-> unsubscribe@jakarta.apache.org>
> > For
> > additional commands,
> > e-mail: <ma...@jakarta.apache.org>
> >
>
>
> --
> To unsubscribe, e-mail:
> <mailto:tomcat-user-> unsubscribe@jakarta.apache.org>
> For
> additional commands,
> e-mail: <ma...@jakarta.apache.org>
>
>
>
> --
> To unsubscribe, e-mail:
> <mailto:tomcat-user-> unsubscribe@jakarta.apache.org>
> For
> additional commands,
> e-mail: <ma...@jakarta.apache.org>
>
Re: Block a dir to not display its content
Posted by "R.C.Nougain" <no...@cad.delhi.nic.in>.
holger.klein
I tried but. Where inside web.xml I need to put!
--
----- Original Message -----
From: "Holger Klein-Altstedde" <ho...@prioeins.de>
To: "'Tomcat Users List'" <to...@jakarta.apache.org>
Sent: Wednesday, August 14, 2002 4:53 PM
Subject: AW: Block a dir to not display its content
Try
<init-param>
<param-name>listings</param-name>
<param-value>false</param-value>
</init-param>
in your web.xml. This will force Tomcat not indexing your directory.
Regs
Holger
> -----Ursprüngliche Nachricht-----
> Von: D Bamud [mailto:nougain@cad.delhi.nic.in]
> Gesendet: Mittwoch, 14. August 2002 13:21
> An: Tomcat Users List
> Betreff: Block a dir to not display its content
>
>
> Tomcat4.0.4 / J2SDK1.4.0/W2K
>
> My application is webapps/bbc. It works just fine. The dirs
> inside it are "jsp" and "WEB-INF". Inside the jsp dir I have
> my *.jsp files and also some directories like "doc", "src",
> "images" etc. These are the directories that the end user
> should not see content of via the browser. If someone make a
> URL like /bbc/jsp/doc the contents are displayed on the
> browser and the user could see/save them. I want to prevent
> them IN THE SAME WAY AS "WEB-INF" dir is now (Tomcat4.x
> onwards). How to do it.
>
> One way is of-course put default file like index.html (based
> on the configuration). But I am looking for more better way
> (WEB-INF way). Where and what I need to delcare.
>
> --
> Thanks
>
>
>
> --
> To unsubscribe, e-mail:
> <mailto:tomcat-user-> unsubscribe@jakarta.apache.org>
> For
> additional commands,
> e-mail: <ma...@jakarta.apache.org>
>
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
AW: Block a dir to not display its content
Posted by Holger Klein-Altstedde <ho...@prioeins.de>.
Try
<init-param>
<param-name>listings</param-name>
<param-value>false</param-value>
</init-param>
in your web.xml. This will force Tomcat not indexing your directory.
Regs
Holger
> -----Ursprüngliche Nachricht-----
> Von: D Bamud [mailto:nougain@cad.delhi.nic.in]
> Gesendet: Mittwoch, 14. August 2002 13:21
> An: Tomcat Users List
> Betreff: Block a dir to not display its content
>
>
> Tomcat4.0.4 / J2SDK1.4.0/W2K
>
> My application is webapps/bbc. It works just fine. The dirs
> inside it are "jsp" and "WEB-INF". Inside the jsp dir I have
> my *.jsp files and also some directories like "doc", "src",
> "images" etc. These are the directories that the end user
> should not see content of via the browser. If someone make a
> URL like /bbc/jsp/doc the contents are displayed on the
> browser and the user could see/save them. I want to prevent
> them IN THE SAME WAY AS "WEB-INF" dir is now (Tomcat4.x
> onwards). How to do it.
>
> One way is of-course put default file like index.html (based
> on the configuration). But I am looking for more better way
> (WEB-INF way). Where and what I need to delcare.
>
> --
> Thanks
>
>
>
> --
> To unsubscribe, e-mail:
> <mailto:tomcat-user-> unsubscribe@jakarta.apache.org>
> For
> additional commands,
> e-mail: <ma...@jakarta.apache.org>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Block a dir to not display its content
Posted by D Bamud <no...@cad.delhi.nic.in>.
Tomcat4.0.4 / J2SDK1.4.0/W2K
My application is webapps/bbc. It works just fine. The dirs inside it are
"jsp" and "WEB-INF". Inside the jsp dir I have my *.jsp files and also some
directories like "doc", "src", "images" etc. These are the directories that
the end user should not see content of via the browser. If someone make a
URL like /bbc/jsp/doc the contents are displayed on the browser and the user
could see/save them. I want to prevent them IN THE SAME WAY AS "WEB-INF" dir
is now (Tomcat4.x onwards). How to do it.
One way is of-course put default file like index.html (based on the
configuration). But I am looking for more better way (WEB-INF way). Where
and what I need to delcare.
--
Thanks
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Block a dir to not display its content
Posted by D Bamud <no...@cad.delhi.nic.in>.
Tomcat4.0.4 / J2SDK1.4.0/W2K
My application is webapps/bbc. It works just fine. The dirs inside it are
"jsp" and "WEB-INF". Inside the jsp dir I have my *.jsp files and also some
directories like "doc", "src", "images" etc. These are the directories that
the end user should not see content of via the browser. If someone make a
URL like /bbc/jsp/doc the contents are displayed on the browser and the user
could see/save them. I want to prevent them IN THE SAME WAY AS "WEB-INF" dir
is now (Tomcat4.x onwards). How to do it.
One way is of-course put default file like index.html (based on the
configuration). But I am looking for more better way (WEB-INF way). Where
and what I need to delcare.
--Thanks
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>