You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Stuart Morse <st...@excelsystems.com> on 2003/04/07 20:20:43 UTC
ROOT Web Application difficulties
Hi All,
I just upgraded from Tomcat 3.2 to 4.1.24. Under 3.2 I could just drop a
class file in the ROOT web application's "classes" directory, and it was
immediately accessible without further configuration. This does not seem to
be the case under 4.1.24.
Can someone please verify that I am correct in the assumption above? Do I
really have to manually edit the web.xml file for the ROOT application for
every servlet that I want to deploy to the that webapp?
Regards,
Stuart Morse
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: ROOT Web Application difficulties
Posted by John Turner <to...@johnturner.com>.
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html
John
On Wed, 9 Apr 2003 15:23:16 -0700, Stuart Morse <st...@excelsystems.com>
wrote:
> Hi John,
>
> Could you please direct me to the Application Developer's Guide?
>
> Regards,
>
> Stuart
>
> -----Original Message-----
> From: John Turner [mailto:tomcat-user@johnturner.com]
> Sent: April 9, 2003 1:33 PM
> To: Tomcat Users List
> Subject: Re: ROOT Web Application difficulties
>
>
>
> There's also this:
>
> <filter-mapping>
> <filter-name>Path Mapped Filter</filter-name>
> <url-pattern>/servlet/*</url-pattern>
> </filter-mapping>
>
> Do you have the right directory structure? Are your servlets in the
> correct location? Have you consulted the Application Developer's Guide?
> I
> don't use the Invoker, so I'm probably not the best person to help.
>
> John
>
>
> On Wed, 9 Apr 2003 13:00:42 -0700, Stuart Morse <st...@excelsystems.com>
> wrote:
>
>> Hi,
>>
>> I checked out the /example web.xml file for any entries that mention
>> "invoker"
>> and found the following:
>>
>> <filter-mapping>
>> <filter-name>Servlet Mapped Filter</filter-name>
>> <servlet-name>invoker</servlet-name>
>> </filter-mapping>
>>
>> <servlet-mapping>
>> <servlet-name>invoker</servlet-name>
>> <url-pattern>/servlet/*</url-pattern>
>> </servlet-mapping>
>>
>> I've attached the whole web.xml file in case I've got something in the
>> wrong
>> order. I still can't access servlets in the ROOT web app. I own the
>> latest
>> edition of "Java Servlet Programming" by Jason Hunter, but "invoker" is
>> not
>> in the index and I can't find any info on it anywhere else. My ROOT
>> context
>> in the server.xml file looks like this:
>>
>> <Context path="/" docBase="ROOT" debug="0"/>
>>
>> The default had no slash in the path entry, but it doesn't work with or
>> without
>> the slash. What else do I need to do/fix?
>>
>> Regards,
>>
>> Stuart
>>
>> -----Original Message-----
>> From: John Turner [mailto:tomcat-user@johnturner.com]
>> Sent: April 7, 2003 11:24 AM
>> To: Tomcat Users List
>> Subject: Re: ROOT Web Application difficulties
>>
>>
>>
>> You are correct.
>>
>> The Invoker servlet is disabled by default in recent versions of 4.1.x
>> for
>> everything except the /examples webapp, for security reasons. Running
>> in
>> production with the Invoker servlet is possible but not recommended. To
>> do
>> so, you will need to setup the Invoker servlet in your web.xml file (see
>> the /example web.xml file for guidance).
>>
>> John
>>
>> On Mon, 7 Apr 2003 11:20:43 -0700, Stuart Morse
>> <st...@excelsystems.com>
>> wrote:
>>
>>> Hi All,
>>>
>>> I just upgraded from Tomcat 3.2 to 4.1.24. Under 3.2 I could just drop
>>> a
>>> class file in the ROOT web application's "classes" directory, and it
>>> was
>>> immediately accessible without further configuration. This does not
>>> seem
>>> to
>>> be the case under 4.1.24.
>>>
>>> Can someone please verify that I am correct in the assumption above? Do
>>> I
>>> really have to manually edit the web.xml file for the ROOT application
>>> for
>>> every servlet that I want to deploy to the that webapp?
>>>
>>> Regards,
>>>
>>> Stuart Morse
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>>
>>>
>>
>>
>>
>> --
>> Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>>
>
>
>
> --
> Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Block Displaying Directory of JSP
Posted by Erik Price <ep...@ptc.com>.
Tim Funk wrote:
> I wanted to make sure anyone reading this thread did not start to add
> their own servlet declarations and mappings to conf/web.xml instead of
> WEB-INF/web.xml. While someone can add their mappings to conf/web.xml,
> doing so will eventually result in something kludgy that supporting
> will be tricky because everyone else expects mapping to be declared in
> WEB-INF/web.xml.
Thank you for posting this.
Erik
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Block Displaying Directory of JSP
Posted by Tim Funk <fu...@joedog.org>.
Yes, sorry I have been vague in this thread. My intention was to emphasize
that one should "ignore" conf/web.xml or make every attempt to not change it.
(Except to alter existing base functionality or remove functionality).
Relying on conf/web.xml will result in a non-portable webapp since other
application servers do not use 2 web.xml's. Some use properties files, others
nothing at all where everything needs declared in your WEB-INF/web.xml, and
others probably have another mechanism.
I wanted to make sure anyone reading this thread did not start to add their
own servlet declarations and mappings to conf/web.xml instead of
WEB-INF/web.xml. While someone can add their mappings to conf/web.xml, doing
so will eventually result in something kludgy that supporting will be
tricky because everyone else expects mapping to be declared in WEB-INF/web.xml.
-Tim
Erik Price wrote:
>
>
> David L. Wasler wrote:
>
>> Hi Tim:
>>
>> I tried to set it in my myapp/WEB-INF/web.xml, no
>> luck, so I had end up editing
>> $Tomcat_home/conf/web.xml
>
>
> I may be wrong but I thought Tomcat only re-reads the WEB-INF/web.xml
> when you stop and then start the server (not when you reload it). But
> then, I would assume the same would be true of conf/web.xml.
>
>
>
> Erik
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Block Displaying Directory of JSP
Posted by "David L. Wasler" <dw...@yahoo.com>.
Hi Erike:
I had to stop and restart Tomcat for it to work.
Thank You
David L. Wasler
--- Erik Price <ep...@ptc.com> wrote:
>
>
> David L. Wasler wrote:
> > Hi Tim:
> >
> > I tried to set it in my myapp/WEB-INF/web.xml, no
> > luck, so I had end up editing
> > $Tomcat_home/conf/web.xml
>
> I may be wrong but I thought Tomcat only re-reads
> the WEB-INF/web.xml
> when you stop and then start the server (not when
> you reload it). But
> then, I would assume the same would be true of
> conf/web.xml.
>
>
>
> Erik
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> tomcat-user-help@jakarta.apache.org
>
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Block Displaying Directory of JSP
Posted by Erik Price <ep...@ptc.com>.
David L. Wasler wrote:
> Hi Tim:
>
> I tried to set it in my myapp/WEB-INF/web.xml, no
> luck, so I had end up editing
> $Tomcat_home/conf/web.xml
I may be wrong but I thought Tomcat only re-reads the WEB-INF/web.xml
when you stop and then start the server (not when you reload it). But
then, I would assume the same would be true of conf/web.xml.
Erik
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Block Displaying Directory of JSP
Posted by "David L. Wasler" <dw...@yahoo.com>.
Hi Tim:
I tried to set it in my myapp/WEB-INF/web.xml, no
luck, so I had end up editing
$Tomcat_home/conf/web.xml
Thank You
DLWasler
--- Tim Funk <fu...@joedog.org> wrote:
> $Tomcat_home/conf is used by all webapps - This is
> most convenient for:
> - static mime mappings
> - declaration of the jsp engine
> - other container specific things
>
> $Tomcat_home/webapps/myapp/WEB-INF/web.xml is the
> webapp most of us know love
> and should configure. I'd stay away from
> $Tomcat_home/conf/web.xml unless you
> need to change it.
>
> -Tim
>
> David L. Wasler wrote:
> > Hi Salina:
> >
> > Thank you very much.
> >
> > Question, what is the difference between web.xml
> in
> > $Tomcat_home/conf and
> > $Tomcat_home/webapps/webdav/WEB-INF/web.xml?
> >
> > Cheers and Thank you very much.
> >
> > DLWasler
> >
> > --- Salina Cheung <sa...@yahoo.com> wrote:
> >
> >>change the listings parameter to be "false" in
> >>tomcathome\conf\web.xml
> >>
> >>--- "David L. Wasler" <dw...@yahoo.com> wrote:
> >>
> >>>Hi All:
> >>>Forgot to tell you, I'm using Tomcat406
> >>>Cheers
> >>>DLWasler
> >>>
> >>>--- "David L. Wasler" <dw...@yahoo.com> wrote:
> >>>
> >>>>Hi All:
> >>>>
> >>>>From the browser URL line I enter
> >>>>
> >>>>www.xxx.xxx:8080/david
> >>>>
> >>>>I get a directory listing of my JSP's
> >>>>
> >>>>How do I stop the displaying a list of my JSP's
> >>>>
> >>>>I tried setting
> >>
> >><param-name>listings</param-name>
> >>
> >>>> <param-value>false</param-value>
> >>>>
> >>>>Still displayed directory of my JSP's.
> >>>>
> >>>>webapps/webdav/WEB-INF/web.xml
> >>>>
> >>>><web-app>
> >>>>
> >>>> <servlet>
> >>>> <servlet-name>webdav</servlet-name>
> >>>>
> >>>>
> >>>
> >
>
<servlet-class>org.apache.catalina.servlets.WebdavServlet</servlet-class>
> >
> >>>> <init-param>
> >>>> <param-name>debug</param-name>
> >>>> <param-value>0</param-value>
> >>>> </init-param>
> >>>> <init-param>
> >>>> <param-name>listings</param-name>
> >>>> <param-value>false</param-value>
> >>>> </init-param>
> >>>> <!-- Uncomment this to enable read and write
> >>>>access -->
> >>>><!--
> >>>> <init-param>
> >>>> <param-name>readonly</param-name>
> >>>> <param-value>false</param-value>
> >>>> </init-param>
> >>>>-->
> >>>> <!--load-on-startup>1</load-on-startup-->
> >>>> </servlet>
> >>>>
> >>>>Thank You
> >>>>DLWasler
> >>>>
> >>>>
> >>
> >>__________________________________________________
> >>
> >>>>Do you Yahoo!?
> >>>>Yahoo! Tax Center - File online, calculators,
> >>>
> >>>forms,
> >>>
> >>>>and more
> >>>>http://tax.yahoo.com
> >>>>
> >>>>
> >>>
> >
>
---------------------------------------------------------------------
> >
> >>>>To unsubscribe, e-mail:
> >>>>tomcat-user-unsubscribe@jakarta.apache.org
> >>>>For additional commands, e-mail:
> >>>>tomcat-user-help@jakarta.apache.org
> >>>>
> >>>
> >>>
>
>>>__________________________________________________
> >>>Do you Yahoo!?
> >>>Yahoo! Tax Center - File online, calculators,
> >>
> >>forms,
> >>
> >>>and more
> >>>http://tax.yahoo.com
> >>>
> >>>
> >>
> >
>
---------------------------------------------------------------------
> >
> >>>To unsubscribe, e-mail:
> >>>tomcat-user-unsubscribe@jakarta.apache.org
> >>>For additional commands, e-mail:
> >>>tomcat-user-help@jakarta.apache.org
> >>>
> >>
> >>
> >>__________________________________________________
> >>Do you Yahoo!?
> >>Yahoo! Tax Center - File online, calculators,
> forms,
> >>and more
> >>http://tax.yahoo.com
> >>
> >>
> >
> >
>
---------------------------------------------------------------------
> >
> >>To unsubscribe, e-mail:
> >>tomcat-user-unsubscribe@jakarta.apache.org
> >>For additional commands, e-mail:
> >>tomcat-user-help@jakarta.apache.org
> >>
> >
> >
> >
> > __________________________________________________
> > Do you Yahoo!?
> > Yahoo! Tax Center - File online, calculators,
> forms, and more
> > http://tax.yahoo.com
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> tomcat-user-help@jakarta.apache.org
> >
> >
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> tomcat-user-help@jakarta.apache.org
>
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Block Displaying Directory of JSP
Posted by Tim Funk <fu...@joedog.org>.
$Tomcat_home/conf is used by all webapps - This is most convenient for:
- static mime mappings
- declaration of the jsp engine
- other container specific things
$Tomcat_home/webapps/myapp/WEB-INF/web.xml is the webapp most of us know love
and should configure. I'd stay away from $Tomcat_home/conf/web.xml unless you
need to change it.
-Tim
David L. Wasler wrote:
> Hi Salina:
>
> Thank you very much.
>
> Question, what is the difference between web.xml in
> $Tomcat_home/conf and
> $Tomcat_home/webapps/webdav/WEB-INF/web.xml?
>
> Cheers and Thank you very much.
>
> DLWasler
>
> --- Salina Cheung <sa...@yahoo.com> wrote:
>
>>change the listings parameter to be "false" in
>>tomcathome\conf\web.xml
>>
>>--- "David L. Wasler" <dw...@yahoo.com> wrote:
>>
>>>Hi All:
>>>Forgot to tell you, I'm using Tomcat406
>>>Cheers
>>>DLWasler
>>>
>>>--- "David L. Wasler" <dw...@yahoo.com> wrote:
>>>
>>>>Hi All:
>>>>
>>>>>From the browser URL line I enter
>>>>
>>>>www.xxx.xxx:8080/david
>>>>
>>>>I get a directory listing of my JSP's
>>>>
>>>>How do I stop the displaying a list of my JSP's
>>>>
>>>>I tried setting
>>
>><param-name>listings</param-name>
>>
>>>> <param-value>false</param-value>
>>>>
>>>>Still displayed directory of my JSP's.
>>>>
>>>>webapps/webdav/WEB-INF/web.xml
>>>>
>>>><web-app>
>>>>
>>>> <servlet>
>>>> <servlet-name>webdav</servlet-name>
>>>>
>>>>
>>>
> <servlet-class>org.apache.catalina.servlets.WebdavServlet</servlet-class>
>
>>>> <init-param>
>>>> <param-name>debug</param-name>
>>>> <param-value>0</param-value>
>>>> </init-param>
>>>> <init-param>
>>>> <param-name>listings</param-name>
>>>> <param-value>false</param-value>
>>>> </init-param>
>>>> <!-- Uncomment this to enable read and write
>>>>access -->
>>>><!--
>>>> <init-param>
>>>> <param-name>readonly</param-name>
>>>> <param-value>false</param-value>
>>>> </init-param>
>>>>-->
>>>> <!--load-on-startup>1</load-on-startup-->
>>>> </servlet>
>>>>
>>>>Thank You
>>>>DLWasler
>>>>
>>>>
>>
>>__________________________________________________
>>
>>>>Do you Yahoo!?
>>>>Yahoo! Tax Center - File online, calculators,
>>>
>>>forms,
>>>
>>>>and more
>>>>http://tax.yahoo.com
>>>>
>>>>
>>>
> ---------------------------------------------------------------------
>
>>>>To unsubscribe, e-mail:
>>>>tomcat-user-unsubscribe@jakarta.apache.org
>>>>For additional commands, e-mail:
>>>>tomcat-user-help@jakarta.apache.org
>>>>
>>>
>>>
>>>__________________________________________________
>>>Do you Yahoo!?
>>>Yahoo! Tax Center - File online, calculators,
>>
>>forms,
>>
>>>and more
>>>http://tax.yahoo.com
>>>
>>>
>>
> ---------------------------------------------------------------------
>
>>>To unsubscribe, e-mail:
>>>tomcat-user-unsubscribe@jakarta.apache.org
>>>For additional commands, e-mail:
>>>tomcat-user-help@jakarta.apache.org
>>>
>>
>>
>>__________________________________________________
>>Do you Yahoo!?
>>Yahoo! Tax Center - File online, calculators, forms,
>>and more
>>http://tax.yahoo.com
>>
>>
>
> ---------------------------------------------------------------------
>
>>To unsubscribe, e-mail:
>>tomcat-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail:
>>tomcat-user-help@jakarta.apache.org
>>
>
>
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Tax Center - File online, calculators, forms, and more
> http://tax.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Block Displaying Directory of JSP
Posted by "David L. Wasler" <dw...@yahoo.com>.
Hi Salina:
Thank you very much.
Question, what is the difference between web.xml in
$Tomcat_home/conf and
$Tomcat_home/webapps/webdav/WEB-INF/web.xml?
Cheers and Thank you very much.
DLWasler
--- Salina Cheung <sa...@yahoo.com> wrote:
> change the listings parameter to be "false" in
> tomcathome\conf\web.xml
>
> --- "David L. Wasler" <dw...@yahoo.com> wrote:
> > Hi All:
> > Forgot to tell you, I'm using Tomcat406
> > Cheers
> > DLWasler
> >
> > --- "David L. Wasler" <dw...@yahoo.com> wrote:
> > > Hi All:
> > >
> > > From the browser URL line I enter
> > >
> > > www.xxx.xxx:8080/david
> > >
> > > I get a directory listing of my JSP's
> > >
> > > How do I stop the displaying a list of my JSP's
> > >
> > > I tried setting
> <param-name>listings</param-name>
> > > <param-value>false</param-value>
> > >
> > > Still displayed directory of my JSP's.
> > >
> > > webapps/webdav/WEB-INF/web.xml
> > >
> > > <web-app>
> > >
> > > <servlet>
> > > <servlet-name>webdav</servlet-name>
> > >
> > >
> >
>
<servlet-class>org.apache.catalina.servlets.WebdavServlet</servlet-class>
> > > <init-param>
> > > <param-name>debug</param-name>
> > > <param-value>0</param-value>
> > > </init-param>
> > > <init-param>
> > > <param-name>listings</param-name>
> > > <param-value>false</param-value>
> > > </init-param>
> > > <!-- Uncomment this to enable read and write
> > > access -->
> > > <!--
> > > <init-param>
> > > <param-name>readonly</param-name>
> > > <param-value>false</param-value>
> > > </init-param>
> > > -->
> > > <!--load-on-startup>1</load-on-startup-->
> > > </servlet>
> > >
> > > Thank You
> > > DLWasler
> > >
> > >
> __________________________________________________
> > > Do you Yahoo!?
> > > Yahoo! Tax Center - File online, calculators,
> > forms,
> > > and more
> > > http://tax.yahoo.com
> > >
> > >
> >
>
---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > > tomcat-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail:
> > > tomcat-user-help@jakarta.apache.org
> > >
> >
> >
> > __________________________________________________
> > Do you Yahoo!?
> > Yahoo! Tax Center - File online, calculators,
> forms,
> > and more
> > http://tax.yahoo.com
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> > tomcat-user-help@jakarta.apache.org
> >
>
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Tax Center - File online, calculators, forms,
> and more
> http://tax.yahoo.com
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> tomcat-user-help@jakarta.apache.org
>
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Block Displaying Directory of JSP
Posted by Salina Cheung <sa...@yahoo.com>.
change the listings parameter to be "false" in
tomcathome\conf\web.xml
--- "David L. Wasler" <dw...@yahoo.com> wrote:
> Hi All:
> Forgot to tell you, I'm using Tomcat406
> Cheers
> DLWasler
>
> --- "David L. Wasler" <dw...@yahoo.com> wrote:
> > Hi All:
> >
> > From the browser URL line I enter
> >
> > www.xxx.xxx:8080/david
> >
> > I get a directory listing of my JSP's
> >
> > How do I stop the displaying a list of my JSP's
> >
> > I tried setting <param-name>listings</param-name>
> > <param-value>false</param-value>
> >
> > Still displayed directory of my JSP's.
> >
> > webapps/webdav/WEB-INF/web.xml
> >
> > <web-app>
> >
> > <servlet>
> > <servlet-name>webdav</servlet-name>
> >
> >
>
<servlet-class>org.apache.catalina.servlets.WebdavServlet</servlet-class>
> > <init-param>
> > <param-name>debug</param-name>
> > <param-value>0</param-value>
> > </init-param>
> > <init-param>
> > <param-name>listings</param-name>
> > <param-value>false</param-value>
> > </init-param>
> > <!-- Uncomment this to enable read and write
> > access -->
> > <!--
> > <init-param>
> > <param-name>readonly</param-name>
> > <param-value>false</param-value>
> > </init-param>
> > -->
> > <!--load-on-startup>1</load-on-startup-->
> > </servlet>
> >
> > Thank You
> > DLWasler
> >
> > __________________________________________________
> > Do you Yahoo!?
> > Yahoo! Tax Center - File online, calculators,
> forms,
> > and more
> > http://tax.yahoo.com
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> > tomcat-user-help@jakarta.apache.org
> >
>
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Tax Center - File online, calculators, forms,
> and more
> http://tax.yahoo.com
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> tomcat-user-help@jakarta.apache.org
>
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Block Displaying Directory of JSP
Posted by "David L. Wasler" <dw...@yahoo.com>.
Hi All:
Forgot to tell you, I'm using Tomcat406
Cheers
DLWasler
--- "David L. Wasler" <dw...@yahoo.com> wrote:
> Hi All:
>
> From the browser URL line I enter
>
> www.xxx.xxx:8080/david
>
> I get a directory listing of my JSP's
>
> How do I stop the displaying a list of my JSP's
>
> I tried setting <param-name>listings</param-name>
> <param-value>false</param-value>
>
> Still displayed directory of my JSP's.
>
> webapps/webdav/WEB-INF/web.xml
>
> <web-app>
>
> <servlet>
> <servlet-name>webdav</servlet-name>
>
>
<servlet-class>org.apache.catalina.servlets.WebdavServlet</servlet-class>
> <init-param>
> <param-name>debug</param-name>
> <param-value>0</param-value>
> </init-param>
> <init-param>
> <param-name>listings</param-name>
> <param-value>false</param-value>
> </init-param>
> <!-- Uncomment this to enable read and write
> access -->
> <!--
> <init-param>
> <param-name>readonly</param-name>
> <param-value>false</param-value>
> </init-param>
> -->
> <!--load-on-startup>1</load-on-startup-->
> </servlet>
>
> Thank You
> DLWasler
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Tax Center - File online, calculators, forms,
> and more
> http://tax.yahoo.com
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> tomcat-user-help@jakarta.apache.org
>
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Block Displaying Directory of JSP
Posted by "David L. Wasler" <dw...@yahoo.com>.
Hi All:
Forgot to tell you, I'm using Tomcat406
Cheers
DLWasler
--- "David L. Wasler" <dw...@yahoo.com> wrote:
> Hi All:
>
> From the browser URL line I enter
>
> www.xxx.xxx:8080/david
>
> I get a directory listing of my JSP's
>
> How do I stop the displaying a list of my JSP's
>
> I tried setting <param-name>listings</param-name>
> <param-value>false</param-value>
>
> Still displayed directory of my JSP's.
>
> webapps/webdav/WEB-INF/web.xml
>
> <web-app>
>
> <servlet>
> <servlet-name>webdav</servlet-name>
>
>
<servlet-class>org.apache.catalina.servlets.WebdavServlet</servlet-class>
> <init-param>
> <param-name>debug</param-name>
> <param-value>0</param-value>
> </init-param>
> <init-param>
> <param-name>listings</param-name>
> <param-value>false</param-value>
> </init-param>
> <!-- Uncomment this to enable read and write
> access -->
> <!--
> <init-param>
> <param-name>readonly</param-name>
> <param-value>false</param-value>
> </init-param>
> -->
> <!--load-on-startup>1</load-on-startup-->
> </servlet>
>
> Thank You
> DLWasler
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Tax Center - File online, calculators, forms,
> and more
> http://tax.yahoo.com
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> tomcat-user-help@jakarta.apache.org
>
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Block Displaying Directory of JSP
Posted by "David L. Wasler" <dw...@yahoo.com>.
Hi All:
>From the browser URL line I enter
www.xxx.xxx:8080/david
I get a directory listing of my JSP's
How do I stop the displaying a list of my JSP's
I tried setting <param-name>listings</param-name>
<param-value>false</param-value>
Still displayed directory of my JSP's.
webapps/webdav/WEB-INF/web.xml
<web-app>
<servlet>
<servlet-name>webdav</servlet-name>
<servlet-class>org.apache.catalina.servlets.WebdavServlet</servlet-class>
<init-param>
<param-name>debug</param-name>
<param-value>0</param-value>
</init-param>
<init-param>
<param-name>listings</param-name>
<param-value>false</param-value>
</init-param>
<!-- Uncomment this to enable read and write
access -->
<!--
<init-param>
<param-name>readonly</param-name>
<param-value>false</param-value>
</init-param>
-->
<!--load-on-startup>1</load-on-startup-->
</servlet>
Thank You
DLWasler
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
RE: ROOT Web Application difficulties
Posted by Stuart Morse <st...@excelsystems.com>.
Hi John,
Could you please direct me to the Application Developer's Guide?
Regards,
Stuart
-----Original Message-----
From: John Turner [mailto:tomcat-user@johnturner.com]
Sent: April 9, 2003 1:33 PM
To: Tomcat Users List
Subject: Re: ROOT Web Application difficulties
There's also this:
<filter-mapping>
<filter-name>Path Mapped Filter</filter-name>
<url-pattern>/servlet/*</url-pattern>
</filter-mapping>
Do you have the right directory structure? Are your servlets in the
correct location? Have you consulted the Application Developer's Guide? I
don't use the Invoker, so I'm probably not the best person to help.
John
On Wed, 9 Apr 2003 13:00:42 -0700, Stuart Morse <st...@excelsystems.com>
wrote:
> Hi,
>
> I checked out the /example web.xml file for any entries that mention
> "invoker"
> and found the following:
>
> <filter-mapping>
> <filter-name>Servlet Mapped Filter</filter-name>
> <servlet-name>invoker</servlet-name>
> </filter-mapping>
>
> <servlet-mapping>
> <servlet-name>invoker</servlet-name>
> <url-pattern>/servlet/*</url-pattern>
> </servlet-mapping>
>
> I've attached the whole web.xml file in case I've got something in the
> wrong
> order. I still can't access servlets in the ROOT web app. I own the
> latest
> edition of "Java Servlet Programming" by Jason Hunter, but "invoker" is
> not
> in the index and I can't find any info on it anywhere else. My ROOT
> context
> in the server.xml file looks like this:
>
> <Context path="/" docBase="ROOT" debug="0"/>
>
> The default had no slash in the path entry, but it doesn't work with or
> without
> the slash. What else do I need to do/fix?
>
> Regards,
>
> Stuart
>
> -----Original Message-----
> From: John Turner [mailto:tomcat-user@johnturner.com]
> Sent: April 7, 2003 11:24 AM
> To: Tomcat Users List
> Subject: Re: ROOT Web Application difficulties
>
>
>
> You are correct.
>
> The Invoker servlet is disabled by default in recent versions of 4.1.x
> for
> everything except the /examples webapp, for security reasons. Running in
> production with the Invoker servlet is possible but not recommended. To
> do
> so, you will need to setup the Invoker servlet in your web.xml file (see
> the /example web.xml file for guidance).
>
> John
>
> On Mon, 7 Apr 2003 11:20:43 -0700, Stuart Morse <st...@excelsystems.com>
> wrote:
>
>> Hi All,
>>
>> I just upgraded from Tomcat 3.2 to 4.1.24. Under 3.2 I could just drop a
>> class file in the ROOT web application's "classes" directory, and it was
>> immediately accessible without further configuration. This does not seem
>> to
>> be the case under 4.1.24.
>>
>> Can someone please verify that I am correct in the assumption above? Do
>> I
>> really have to manually edit the web.xml file for the ROOT application
>> for
>> every servlet that I want to deploy to the that webapp?
>>
>> Regards,
>>
>> Stuart Morse
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>>
>
>
>
> --
> Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: ROOT Web Application difficulties
Posted by John Turner <to...@johnturner.com>.
There's also this:
<filter-mapping>
<filter-name>Path Mapped Filter</filter-name>
<url-pattern>/servlet/*</url-pattern>
</filter-mapping>
Do you have the right directory structure? Are your servlets in the
correct location? Have you consulted the Application Developer's Guide? I
don't use the Invoker, so I'm probably not the best person to help.
John
On Wed, 9 Apr 2003 13:00:42 -0700, Stuart Morse <st...@excelsystems.com>
wrote:
> Hi,
>
> I checked out the /example web.xml file for any entries that mention
> "invoker"
> and found the following:
>
> <filter-mapping>
> <filter-name>Servlet Mapped Filter</filter-name>
> <servlet-name>invoker</servlet-name>
> </filter-mapping>
>
> <servlet-mapping>
> <servlet-name>invoker</servlet-name>
> <url-pattern>/servlet/*</url-pattern>
> </servlet-mapping>
>
> I've attached the whole web.xml file in case I've got something in the
> wrong
> order. I still can't access servlets in the ROOT web app. I own the
> latest
> edition of "Java Servlet Programming" by Jason Hunter, but "invoker" is
> not
> in the index and I can't find any info on it anywhere else. My ROOT
> context
> in the server.xml file looks like this:
>
> <Context path="/" docBase="ROOT" debug="0"/>
>
> The default had no slash in the path entry, but it doesn't work with or
> without
> the slash. What else do I need to do/fix?
>
> Regards,
>
> Stuart
>
> -----Original Message-----
> From: John Turner [mailto:tomcat-user@johnturner.com]
> Sent: April 7, 2003 11:24 AM
> To: Tomcat Users List
> Subject: Re: ROOT Web Application difficulties
>
>
>
> You are correct.
>
> The Invoker servlet is disabled by default in recent versions of 4.1.x
> for
> everything except the /examples webapp, for security reasons. Running in
> production with the Invoker servlet is possible but not recommended. To
> do
> so, you will need to setup the Invoker servlet in your web.xml file (see
> the /example web.xml file for guidance).
>
> John
>
> On Mon, 7 Apr 2003 11:20:43 -0700, Stuart Morse <st...@excelsystems.com>
> wrote:
>
>> Hi All,
>>
>> I just upgraded from Tomcat 3.2 to 4.1.24. Under 3.2 I could just drop a
>> class file in the ROOT web application's "classes" directory, and it was
>> immediately accessible without further configuration. This does not seem
>> to
>> be the case under 4.1.24.
>>
>> Can someone please verify that I am correct in the assumption above? Do
>> I
>> really have to manually edit the web.xml file for the ROOT application
>> for
>> every servlet that I want to deploy to the that webapp?
>>
>> Regards,
>>
>> Stuart Morse
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>>
>
>
>
> --
> Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
RE: ROOT Web Application difficulties
Posted by Stuart Morse <st...@excelsystems.com>.
Hi,
I checked out the /example web.xml file for any entries that mention
"invoker"
and found the following:
<filter-mapping>
<filter-name>Servlet Mapped Filter</filter-name>
<servlet-name>invoker</servlet-name>
</filter-mapping>
<servlet-mapping>
<servlet-name>invoker</servlet-name>
<url-pattern>/servlet/*</url-pattern>
</servlet-mapping>
I've attached the whole web.xml file in case I've got something in the wrong
order. I still can't access servlets in the ROOT web app. I own the latest
edition of "Java Servlet Programming" by Jason Hunter, but "invoker" is not
in the index and I can't find any info on it anywhere else. My ROOT context
in the server.xml file looks like this:
<Context path="/" docBase="ROOT" debug="0"/>
The default had no slash in the path entry, but it doesn't work with or
without
the slash. What else do I need to do/fix?
Regards,
Stuart
-----Original Message-----
From: John Turner [mailto:tomcat-user@johnturner.com]
Sent: April 7, 2003 11:24 AM
To: Tomcat Users List
Subject: Re: ROOT Web Application difficulties
You are correct.
The Invoker servlet is disabled by default in recent versions of 4.1.x for
everything except the /examples webapp, for security reasons. Running in
production with the Invoker servlet is possible but not recommended. To do
so, you will need to setup the Invoker servlet in your web.xml file (see
the /example web.xml file for guidance).
John
On Mon, 7 Apr 2003 11:20:43 -0700, Stuart Morse <st...@excelsystems.com>
wrote:
> Hi All,
>
> I just upgraded from Tomcat 3.2 to 4.1.24. Under 3.2 I could just drop a
> class file in the ROOT web application's "classes" directory, and it was
> immediately accessible without further configuration. This does not seem
> to
> be the case under 4.1.24.
>
> Can someone please verify that I am correct in the assumption above? Do I
> really have to manually edit the web.xml file for the ROOT application
> for
> every servlet that I want to deploy to the that webapp?
>
> Regards,
>
> Stuart Morse
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: ROOT Web Application difficulties
Posted by John Turner <to...@johnturner.com>.
You are correct.
The Invoker servlet is disabled by default in recent versions of 4.1.x for
everything except the /examples webapp, for security reasons. Running in
production with the Invoker servlet is possible but not recommended. To do
so, you will need to setup the Invoker servlet in your web.xml file (see
the /example web.xml file for guidance).
John
On Mon, 7 Apr 2003 11:20:43 -0700, Stuart Morse <st...@excelsystems.com>
wrote:
> Hi All,
>
> I just upgraded from Tomcat 3.2 to 4.1.24. Under 3.2 I could just drop a
> class file in the ROOT web application's "classes" directory, and it was
> immediately accessible without further configuration. This does not seem
> to
> be the case under 4.1.24.
>
> Can someone please verify that I am correct in the assumption above? Do I
> really have to manually edit the web.xml file for the ROOT application
> for
> every servlet that I want to deploy to the that webapp?
>
> Regards,
>
> Stuart Morse
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org