RE: Servlet Loaded

2003-11-05 Thread Shapira, Yoav

Howdy,
By loaded, do you mean the servlet class has been loaded by a
classloader into memory?  Or an instance of the servlet is created and
available to service requests?  Or something else?


Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Peter O'Reilly [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, November 04, 2003 5:55 PM
>To: [EMAIL PROTECTED]
>Subject: Servlet Loaded
>
>To all,
>
>   Anybody know how you can tell if a specific servlet is loaded into
>Tomcat(4.1.29) after it's started?
>
>
>-Peter
>
>
>-
>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]



Re: Servlet Loaded

2003-11-04 Thread Tim Funk
If you have JMX enabled (See a JMX book for using JMX, to complex to discuss 
in an email) - it may be available to be queried via a JMX tool.
(This will work with 5, I forget how much is exposed with 4)

-Tim

Peter O'Reilly wrote:

To all,

  Anybody know how you can tell if a specific servlet is loaded into 
Tomcat(4.1.29) after it's started?
 


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


Servlet Loaded

2003-11-04 Thread Peter O'Reilly
To all,

  Anybody know how you can tell if a specific servlet is loaded into 
Tomcat(4.1.29) after it's started?

-Peter

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


RE: init servlet loaded twice

2003-09-19 Thread Shapira, Yoav

Howdy,
By the same token, it's legal for the container to swap out
load-on-startup servlet (i.e. their destroy() method will be called) as
it needs to balance user requests with system resources.  Accordingly,
many times a ServletContextListener is a better choice than a
load-on-startup servlet.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Chris Rolfe [mailto:[EMAIL PROTECTED]
>Sent: Thursday, September 18, 2003 5:16 PM
>To: Tomcat Users List
>Subject: Re: init servlet loaded twice
>
>I've noticed that load-on-startup also causes an extra instances of
jsps.
>
>I came across another thread on multiple inits (Sun forum?). The gist
was
>that it's legitimate for the container to instantiate several of your
>class.
>Makes sense if you think about it. It's a "class" after all.
>
>Chris
>
>
>
>on 9/18/03 12:38 PM, Phillip Qin wrote:
>
>> I was looking at my webapp log this afternoon. I use tomcat + log4j +
>> struts. In the log, I found that my InitServlet was loaded twice. One
>under
>> Thread-xxx, the other under HostConfig[localhost]. Could any body
please
>> explain?
>>
>> PQ
>>
>>
>
>
>-
>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]



Re: init servlet loaded twice

2003-09-18 Thread Chris Rolfe
I've noticed that load-on-startup also causes an extra instances of jsps.

I came across another thread on multiple inits (Sun forum?). The gist was
that it's legitimate for the container to instantiate several of your class.
Makes sense if you think about it. It's a "class" after all.

Chris



on 9/18/03 12:38 PM, Phillip Qin wrote:

> I was looking at my webapp log this afternoon. I use tomcat + log4j +
> struts. In the log, I found that my InitServlet was loaded twice. One under
> Thread-xxx, the other under HostConfig[localhost]. Could any body please
> explain?
> 
> PQ
> 
> 


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



RE: init servlet loaded twice

2003-09-18 Thread Shapira, Yoav

Howdy,
That's proper behavior by tomcat.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Phillip Qin [mailto:[EMAIL PROTECTED]
>Sent: Thursday, September 18, 2003 4:04 PM
>To: 'Tomcat Users List'
>Subject: RE: init servlet loaded twice
>
>Yeah. If I start tomcat, my init Servlet only loads once (main thread).
If
>I
>deploy my webapp, my ini Servlet loads twice. So it is caused by tomcat
>manager app.
>
>-Original Message-
>From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
>Sent: September 18, 2003 4:00 PM
>To: Tomcat Users List
>Subject: RE: init servlet loaded twice
>
>
>Howdy,
>Reloading a webapp will cause another init of load-on-startup servlets,
>yes.
>
>Yoav Shapira
>Millennium ChemInformatics
>
>
>>-Original Message-
>>From: Phillip Qin [mailto:[EMAIL PROTECTED]
>>Sent: Thursday, September 18, 2003 3:55 PM
>>To: 'Tomcat Users List'
>>Subject: RE: init servlet loaded twice
>>
>>One. Is it because of using tomcat manager app?
>>
>>-Original Message-
>>From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
>>Sent: September 18, 2003 3:41 PM
>>To: Tomcat Users List
>>Subject: RE: init servlet loaded twice
>>
>>
>>Howdy,
>>How many declarations do you have for that servlet in your web.xml?
>>
>>Yoav Shapira
>>Millennium ChemInformatics
>>
>>
>>>-Original Message-
>>>From: Phillip Qin [mailto:[EMAIL PROTECTED]
>>>Sent: Thursday, September 18, 2003 3:39 PM
>>>To: '[EMAIL PROTECTED]'
>>>Subject: init servlet loaded twice
>>>
>>>I was looking at my webapp log this afternoon. I use tomcat + log4j +
>>>struts. In the log, I found that my InitServlet was loaded twice. One
>>under
>>>Thread-xxx, the other under HostConfig[localhost]. Could any body
>>please
>>>explain?
>>>
>>>PQ
>>
>>
>>
>>
>>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]
>
>
>
>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]



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]



RE: init servlet loaded twice

2003-09-18 Thread Phillip Qin
Yeah. If I start tomcat, my init Servlet only loads once (main thread). If I
deploy my webapp, my ini Servlet loads twice. So it is caused by tomcat
manager app.

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: September 18, 2003 4:00 PM
To: Tomcat Users List
Subject: RE: init servlet loaded twice


Howdy,
Reloading a webapp will cause another init of load-on-startup servlets,
yes.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Phillip Qin [mailto:[EMAIL PROTECTED]
>Sent: Thursday, September 18, 2003 3:55 PM
>To: 'Tomcat Users List'
>Subject: RE: init servlet loaded twice
>
>One. Is it because of using tomcat manager app?
>
>-Original Message-
>From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
>Sent: September 18, 2003 3:41 PM
>To: Tomcat Users List
>Subject: RE: init servlet loaded twice
>
>
>Howdy,
>How many declarations do you have for that servlet in your web.xml?
>
>Yoav Shapira
>Millennium ChemInformatics
>
>
>>-Original Message-
>>From: Phillip Qin [mailto:[EMAIL PROTECTED]
>>Sent: Thursday, September 18, 2003 3:39 PM
>>To: '[EMAIL PROTECTED]'
>>Subject: init servlet loaded twice
>>
>>I was looking at my webapp log this afternoon. I use tomcat + log4j +
>>struts. In the log, I found that my InitServlet was loaded twice. One
>under
>>Thread-xxx, the other under HostConfig[localhost]. Could any body
>please
>>explain?
>>
>>PQ
>
>
>
>
>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]



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]


RE: init servlet loaded twice

2003-09-18 Thread Shapira, Yoav

Howdy,
Reloading a webapp will cause another init of load-on-startup servlets,
yes.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Phillip Qin [mailto:[EMAIL PROTECTED]
>Sent: Thursday, September 18, 2003 3:55 PM
>To: 'Tomcat Users List'
>Subject: RE: init servlet loaded twice
>
>One. Is it because of using tomcat manager app?
>
>-Original Message-
>From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
>Sent: September 18, 2003 3:41 PM
>To: Tomcat Users List
>Subject: RE: init servlet loaded twice
>
>
>Howdy,
>How many declarations do you have for that servlet in your web.xml?
>
>Yoav Shapira
>Millennium ChemInformatics
>
>
>>-Original Message-
>>From: Phillip Qin [mailto:[EMAIL PROTECTED]
>>Sent: Thursday, September 18, 2003 3:39 PM
>>To: '[EMAIL PROTECTED]'
>>Subject: init servlet loaded twice
>>
>>I was looking at my webapp log this afternoon. I use tomcat + log4j +
>>struts. In the log, I found that my InitServlet was loaded twice. One
>under
>>Thread-xxx, the other under HostConfig[localhost]. Could any body
>please
>>explain?
>>
>>PQ
>
>
>
>
>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]



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]



RE: init servlet loaded twice

2003-09-18 Thread Phillip Qin
One. Is it because of using tomcat manager app?

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: September 18, 2003 3:41 PM
To: Tomcat Users List
Subject: RE: init servlet loaded twice


Howdy,
How many declarations do you have for that servlet in your web.xml?

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Phillip Qin [mailto:[EMAIL PROTECTED]
>Sent: Thursday, September 18, 2003 3:39 PM
>To: '[EMAIL PROTECTED]'
>Subject: init servlet loaded twice
>
>I was looking at my webapp log this afternoon. I use tomcat + log4j +
>struts. In the log, I found that my InitServlet was loaded twice. One
under
>Thread-xxx, the other under HostConfig[localhost]. Could any body
please
>explain?
>
>PQ




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]


RE: init servlet loaded twice

2003-09-18 Thread Shapira, Yoav

Howdy,
How many declarations do you have for that servlet in your web.xml?

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Phillip Qin [mailto:[EMAIL PROTECTED]
>Sent: Thursday, September 18, 2003 3:39 PM
>To: '[EMAIL PROTECTED]'
>Subject: init servlet loaded twice
>
>I was looking at my webapp log this afternoon. I use tomcat + log4j +
>struts. In the log, I found that my InitServlet was loaded twice. One
under
>Thread-xxx, the other under HostConfig[localhost]. Could any body
please
>explain?
>
>PQ




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]



init servlet loaded twice

2003-09-18 Thread Phillip Qin
I was looking at my webapp log this afternoon. I use tomcat + log4j +
struts. In the log, I found that my InitServlet was loaded twice. One under
Thread-xxx, the other under HostConfig[localhost]. Could any body please
explain?

PQ