Yes, I have encountered this problem as well. It is deploying your app 2
times. Once at / and the other at /myapp. Check the management tool.  I
think this is a bug with tomcat, but have not had time to track it down.

-----Original Message-----
From: Gavin, Rick [mailto:[EMAIL PROTECTED]
Sent: Friday, March 14, 2003 2:02 PM
To: Tomcat Users List
Subject: RE: [4.1.18] Startup Servlets Load Twice???


it look the problem stems from the fact that i declared the context path for
my app as ""

<Context path="" ...>  

if i put a path in like <Context path="/myapp" ...> it only runs the
servlets once.  What is the correct way to define an app as the root
context.

Thanks,
Rick

-----Original Message-----
From: Scott, Sean [mailto:[EMAIL PROTECTED]
Sent: Friday, March 14, 2003 11:03 AM
To: 'Tomcat Users List'
Subject: RE: [4.1.18] Startup Servlets Load Twice???


Check the manager app to see if your app might have been deployed twice

-----Original Message-----
From: Gavin, Rick [mailto:[EMAIL PROTECTED]
Sent: Friday, March 14, 2003 11:40 AM
To: Tomcat Users List
Subject: RE: [4.1.18] Startup Servlets Load Twice???


Hello,
  I checked, i have neither of these cases.. as i said, this only started
happening in 4.1.18.

Thanks,

Rick

-----Original Message-----
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Friday, March 14, 2003 8:24 AM
To: Tomcat Users List
Subject: RE: [4.1.18] Startup Servlets Load Twice???



Howdy,
Some things that could do it:
- One load-on-startup <servlet> tag with two (or more) <servlet-mapping>
elements in web.xml.
- One load-on-startup <servlet> tag for the same servlet defined in
multiple contexts.

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: Gavin, Rick [mailto:[EMAIL PROTECTED]
>Sent: Friday, March 14, 2003 9:50 AM
>To: [EMAIL PROTECTED]
>Subject: [4.1.18] Startup Servlets Load Twice???
>
>Hi All,
>  Can anyone tell me what would cause my servlets that i have set to
load a
>startup would be executing twice.  If i have a simple servlet that
spits
>out
>a line of text ot the log, when i start tomcat (4.1.18) i see the text
gets
>written out twice.  This same servlet did not do it in earlier versions
of
>tomcat.
>
>Anyone help please.
>
>Thanks for your time,
>
>Rick
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to