tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <Yoav.Shap...@mpi.com>
Subject RE: Servlets not working in my context
Date Tue, 20 May 2003 15:13:58 GMT

Howdy,
You have to restart your web application.  You can do this via the
Manager webapp included with tomcat, or you can just restart the whole
tomcat instance yourself.

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: Schwartz, David (CHR) [mailto:David.Schwartz3@pfizer.com]
>Sent: Tuesday, May 20, 2003 11:10 AM
>To: 'Tomcat Users List'
>Subject: RE: Servlets not working in my context
>
>Does Tomcat have to be restarted after a mapping is added or edited in
the
>web.xml file?
>
>-----Original Message-----
>From: John Turner [mailto:tomcat-user@johnturner.com]
>Sent: Tuesday, May 20, 2003 10:45 AM
>To: Tomcat Users List
>Subject: Re: Servlets not working in my context
>
>
>
>Agreed.
>
>Have fun.
>
>John
>
>On Tue, 20 May 2003 10:20:20 -0400, Schwartz, David (CHR)
><David.Schwartz3@pfizer.com> wrote:
>
>> Agreed! Already started.
>>
>> However, the invoker servlet makes it a little easier	for
beginers
>since
>> there is one less item to configure.
>> Also, the Tomcat docs are very skimpy on this.
>>
>>
>> -----Original Message-----
>> From: John Turner [mailto:tomcat-user@johnturner.com]
>> Sent: Tuesday, May 20, 2003 9:48 AM
>> To: Tomcat Users List
>> Subject: Re: Servlets not working in my context
>>
>>
>>
>> Right, but note that using the Invoker servlet is not recommended.
You
>> would be wise to stop using it and go with the recommended practice,
>> which is setting up your servlets explicitly in web.xml.
>>
>> John
>> s
>>>
>>> After you uncomment - call your servlets this way...
>>>
>>> http://localhost/myfirst/servlet/HelloWorld
>>>
>>> In this example "myfirst" is the name of your folder where your app
(&
>>> folder structure) is located.
>>>
>>>> From release notes...
>>>
>>> ------------------------
>>> Enabling invoker servlet:
>>> ------------------------
>>>
>>> Starting with Tomcat 4.1.12, the invoker servlet is no longer
available
>>> by default in all webapp. Enabling it for all webapps is possible by
>>> editing
>>> $CATALINA_HOME/conf/web.xml to uncomment the "/servlet/*" servlet-
>>> mapping
>>> definition.
>>>
>>> Using the invoker servlet in a production environment is not
recommended
>>> and
>>> is unsupported.
>>>
>>>
>>> -----Original Message-----
>>> From: Shapira, Yoav [mailto:Yoav.Shapira@mpi.com]
>>> Sent: Wednesday, May 14, 2003 3:14 PM
>>> To: Tomcat Users List
>>> Subject: RE: Servlets not working in my context
>>>
>>>
>>>
>>> Howdy,
>>> Nice dog ;)
>>>
>>> Are you relying on the invoker servlet to handle /servlet/* URLs?
If
>>> so, you need to enable it in web.xml.
>>>
>>> Yoav Shapira
>>> Millennium ChemInformatics
>>>
>>>
>>>> -----Original Message-----
>>>> From: Kenny G. Dubuisson, Jr. [mailto:kdubuisson@kcmria.com]
>>>> Sent: Wednesday, May 14, 2003 3:10 PM
>>>> To: Tomcat Users List
>>>> Subject: Re: Servlets not working in my context
>>>>
>>>> Half dalmation, half pit bull (I adopted her from the pound around
>>>> Christmas). HTH,
>>>> Kenny
>>>>
>>>> ----- Original Message -----
>>>> From: "John Turner" <tomcat-user@johnturner.com>
>>>> To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
>>>> Sent: Wednesday, May 14, 2003 2:09 PM
>>>> Subject: Re: Servlets not working in my context
>>>>
>>>>
>>>>>
>>>>> What kind of dog? ;)
>>>>>
>>>>> John
>>>>>
>>>>> On Wed, 14 May 2003 13:55:42 -0500, Kenny G. Dubuisson, Jr.
>>>>> <kdubuisson@kcmria.com> wrote:
>>>>>
>>>>> > Hello all.  I just recently lost my hard drive in my development
>>> server
>>>>> > and
>>>>> > had to rebuild it.  After reloading all software and creating my
>>>> context
>>>>> > I
>>>>> > can't get any of my servlets to work (I get an error saying that
>>> the
>>>>> > servlet
>>>>> > is unavailable).  My JSP's work fine in my context but servlets
>>> don't.
>>>>> >
>>>>> > I'm running Tomcat 4.1.24 with Apache 2 and mod_jk.  My context
was
>>>>> > created
>>>>> > with the following in my server.xml file:
>>>>> >
>>>>> > <Context path="/kcmria" docBase="kcmria" debug="0"
>>> reloadable="true"
>>>>> > crossContext="true">
>>>>> > <Logger className="org.apache.catalina.logger.FileLogger"
>>>>> > prefix="localhost_kcmria_log." suffix=".txt" timestamp="true"/>
>>>>> > </Context>
>>>>> >
>>>>> > I also added the following lines to my mod_jk.conf file:
>>>>> >
>>>>> > JkMount /kcmria ajp13
>>>>> > JkMount /kcmria/* ajp13
>>>>> >
>>>>> > I'm stumped.  I even tried the HelloWorldExample servlet in my
>>> context
>>>>> > but
>>>>> > still no go.  I've also tried different file permissions to no
>>> avail.
>>>>> > I've
>>>>> > lost a full day of development on this so any help would be very
>>> much
>>>>> > appreciated.  I'll give you my dog, cat, wife, etc. if you can
>>> figure
>>>>> > this
>>>>> > out.
>>>>> >
>>>>> > Thanks,
>>>>> > Kenny
>>>>> >
>>>>> >
>>>>> >
>>>
---------------------------------------------------------------------
>>>>> > 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
>>>
>>>
>>>
>>>
>>> This e-mail, including any attachments, is a confidential business
>>> communication, and may contain information that is confidential,
>>> proprietary
>>> and/or privileged.  This e-mail is intended only for the
individual(s)
>>> to
>>> whom it is addressed, and may not be saved, copied, printed,
disclosed
>>> or
>>> used by anyone else.  If you are not the(an) intended recipient,
please
>>> immediately delete this e-mail from your computer system and notify
the
>>> sender.  Thank you.
>>>
>>>
>>>
---------------------------------------------------------------------
>>> 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
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org




This e-mail, including any attachments, is a confidential business communication, and may
contain information that is confidential, proprietary and/or privileged.  This e-mail is intended
only for the individual(s) to whom it is addressed, and may not be saved, copied, printed,
disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message