Re: servlet start-up

2001-05-30 Thread Brian Elliott

Silvestre Turija Jr. wrote:
 
 sorry for the intrusion, I am having the same problem
 Internal Servlet Error kindly inform me I you got a
 fixed on this bug.

Based on another unrelated discussion on this list, I tried starting
tomcat (embedded in jboss) first and then apache - and it fixed my
problem (code 500 Internal Server Errors when requesting a serlvet right
after startup). I have just tried it once so far but it would be
interesting to see if this fixes the problem for other people as well.

Brian
-- 
+---+--+
| Brian Elliott | Unplugged Systems / ESWC.com /   |
| President  CTO   |   ES Innovation Labs |
| [EMAIL PROTECTED] | MLS Unplugged  Wireless Systems |
|   | http://www.unpluggedsystems.com  |
+---+--+



Re: servlet start-up

2001-05-30 Thread Tom . Hunter

Brian,

 Yesterday, I got an answer from Marty Hall (author of Core Servlets 
JSPs ):

 Go to this URL and you'll get help:

  www.archive.coreservlets.com/Using-Tomcat.html


  Good Luck!





Tom Hunter
I/S Managed Health Care
x6201


   
 
Brian Elliott  
 
belliott@unpluggedsyTo: [EMAIL PROTECTED] 
 
stems.com   cc: tomcat 
[EMAIL PROTECTED]
 Subject: Re: servlet start-up 
 
05/29/2001 01:02 PM
 
Please respond to  
 
tomcat-user
 
   
 
   
 




Rui,

I am having the same problem with tomcat for my servlets as you
described in your posting where you get an Internal Server Error when
first requesting a servlet. Did you ever get the problem fixed?

I am under some intense time pressures and would GREATLY appreciate any
help.

Thanks,

Brian
--
+---+--+
| Brian Elliott | Unplugged Systems / ESWC.com /   |
| President  CTO   |   ES Innovation Labs |
| [EMAIL PROTECTED] | MLS Unplugged  Wireless Systems |
|   | http://www.unpluggedsystems.com  |
+---+--+






Re: servlet start-up

2001-05-30 Thread Milt Epstein

On Wed, 30 May 2001, Brian Elliott wrote:

 Silvestre Turija Jr. wrote:
 
  sorry for the intrusion, I am having the same problem
  Internal Servlet Error kindly inform me I you got a
  fixed on this bug.

 Based on another unrelated discussion on this list, I tried starting
 tomcat (embedded in jboss) first and then apache - and it fixed my
 problem (code 500 Internal Server Errors when requesting a serlvet right
 after startup). I have just tried it once so far but it would be
 interesting to see if this fixes the problem for other people as well.

I don't have any particular suggestions for this problem, but I just
want to point out that Internal Server Error is a very general
error, indicating that there is some problem with some component of
the server, and it could be one of a hundred or more things wrong.  So
specifying just that info and asking what's wrong is off-base.  You're
going to need to dig deeper and get some specifics about the problem,
and give some details about the configuration (because it is often due
to something related to the configuration).  There is typically no
magic bullet that will fix things when you have an Internal Server
Error.  Looking at the relevant log files for more detailed error
messages is a good start.

BTW, similar is true for some other errors, like OutOfMemoryError.  In
that case, something simple like upping the initial/max heap size may
take care of the problem.  On the other hand, it could very well be
that the code is buggy and/or has a memory leak-type problem that is
causing the memory usage to continue to grow.  Resolving those errors
may also take some further investigation.

Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]




Re: servlet start-up

2001-05-29 Thread Brian Elliott

Rui,

I am having the same problem with tomcat for my servlets as you
described in your posting where you get an Internal Server Error when
first requesting a servlet. Did you ever get the problem fixed?

I am under some intense time pressures and would GREATLY appreciate any
help.

Thanks,

Brian
-- 
+---+--+
| Brian Elliott | Unplugged Systems / ESWC.com /   |
| President  CTO   |   ES Innovation Labs |
| [EMAIL PROTECTED] | MLS Unplugged  Wireless Systems |
|   | http://www.unpluggedsystems.com  |
+---+--+



Re: servlet start-up

2001-05-29 Thread Brian Elliott

Rui,

I am having the same problem with tomcat for my servlets as you
described in your posting where you get an Internal Server Error when
first requesting a servlet. Did you ever get the problem fixed?

I am under some intense time pressures and would GREATLY appreciate any
help.

Thanks,

Brian

Reporting-MTA: dns; mail-in.namezero.com
Arrival-Date: Tue, 29 May 2001 16:24:12 -0700 (PDT)

Final-Recipient: rfc822; [EMAIL PROTECTED]
Action: failed
Status: 5.0.0
Diagnostic-Code: X-Postfix; host
inbound.namezero.com.criticalpath.net[209.228.14.51] said: 550 User unknown




Rui,

I am having the same problem with tomcat for my servlets as you
described in your posting where you get an Internal Server Error when
first requesting a servlet. Did you ever get the problem fixed?

I am under some intense time pressures and would GREATLY appreciate any
help.

Thanks,

Brian
-- 
+---+--+
| Brian Elliott | Unplugged Systems / ESWC.com /   |
| President  CTO   |   ES Innovation Labs |
| [EMAIL PROTECTED] | MLS Unplugged  Wireless Systems |
|   | http://www.unpluggedsystems.com  |
+---+--+





Re: servlet start-up

2001-04-11 Thread Rui M . Silva Seabra

On Tue, Apr 10, 2001 at 02:41:12PM -0400, Michael Wentzel wrote:
  On Tue, Apr 10, 2001 at 05:13:05PM +1000, Warren Crossing wrote:
   the load-on-startup child element of servlet in web.xml is 
  documented and
   specified in the j2ee servlet stuff things..
  Well, tomcat tells me it loads the servlets, but they still 
  are only loaded when I hit them, thus getting an Apache 
  Internal Server Error untill tomcat has them all properly "heated".
  load-on-startup doesn't solve that problem :(
 It may be of importance to note that the load-on-startup param
 just instantiates the servlet(calls the init method of the servlet)
 and does not make any requests to any of the services(doPost, doGet, 
 etc...).  And also note that there is an instance created for each
 servlet mapping you have configured plus the default 
 webapps/myapp/servlets/MyServlet.

I know that, but I had hopes that it would sove those "engine heating" problems that 
are pushing us towards an ugly alternative (jrun) against my will.

Hugs,
rms

-- 
+ No matter how much you do, you never do enough -- unknown
+ Whatever you do will be insignificant,
| but it is very important that you do it -- Ghandi
+ So let's do it...?



RE: servlet start-up

2001-04-10 Thread Warren Crossing

the load-on-startup child element of servlet in web.xml is documented and
specified in the j2ee servlet stuff things..

-Original Message-
From: Pradeep Kumar [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 10 April 2001 5:08 PM
To: [EMAIL PROTECTED]
Subject: servlet start-up


Hello group,
I am using tomcat 3.2.1 on win2k box.
My requirement is that I need to instantiate my servlet when I start the
tomcat server and not when the first request is hit. If anyone knows how to
do this please reply to this email ASAP. 
Your help is highly appreciated.

Thanks in advance,
Pradeep



RE: servlet start-up

2001-04-10 Thread Pradeep Kumar

Warren,
Thanks for your reply.
I have one more question.
What is the value that I need to give for load-on-startup child element of
servlet in web.xml. I could not find this information. I saw people using a
huge negative number, sometimes -1 and sometimes values like 1, 2 , 3, 5,
etc.
Now, what does this value indicate ? I am assuming that it can't be the
number of instances of the servlet, because servlet 1.2 specification says
that there can be only one instance of a servlet unless it's a single thread
model.

Thanks,
pradeep

 -Original Message-
From:   Warren Crossing [mailto:[EMAIL PROTECTED]] 
Sent:   Tuesday, April 10, 2001 12:43 PM
To: '[EMAIL PROTECTED]'
Subject:RE: servlet start-up

the load-on-startup child element of servlet in web.xml is documented and
specified in the j2ee servlet stuff things..

-Original Message-
From: Pradeep Kumar [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 10 April 2001 5:08 PM
To: [EMAIL PROTECTED]
Subject: servlet start-up


Hello group,
I am using tomcat 3.2.1 on win2k box.
My requirement is that I need to instantiate my servlet when I start the
tomcat server and not when the first request is hit. If anyone knows how to
do this please reply to this email ASAP. 
Your help is highly appreciated.

Thanks in advance,
Pradeep





RE: servlet start-up

2001-04-10 Thread Saurabh Shukla

hi Pradeep,

You can load a servlet at startup, refer tomcat documentation and read
web.xml file.(it has a servlet loaded at startup, you can directly cog ).

Shuklix

Ps: web.xml comes with tomcat.

-Original Message-
From: Pradeep Kumar [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 10, 2001 12:38 PM
To: [EMAIL PROTECTED]
Subject: servlet start-up


Hello group,
I am using tomcat 3.2.1 on win2k box.
My requirement is that I need to instantiate my servlet when I start the
tomcat server and not when the first request is hit. If anyone knows how to
do this please reply to this email ASAP.
Your help is highly appreciated.

Thanks in advance,
Pradeep




Re: servlet start-up

2001-04-10 Thread Rui M . Silva Seabra

On Tue, Apr 10, 2001 at 05:13:05PM +1000, Warren Crossing wrote:
 the load-on-startup child element of servlet in web.xml is documented and
 specified in the j2ee servlet stuff things..

Well, tomcat tells me it loads the servlets, but they still are only loaded when I hit 
them, thus getting an Apache Internal Server Error untill tomcat has them all properly 
"heated".

load-on-startup doesn't solve that problem :(

Thanks, rms

-- 
+ No matter how much you do, you never do enough -- unknown
+ Whatever you do will be insignificant,
| but it is very important that you do it -- Ghandi
+ So let's do it...?



RE: servlet start-up

2001-04-10 Thread Michael Wentzel

 On Tue, Apr 10, 2001 at 05:13:05PM +1000, Warren Crossing wrote:
  the load-on-startup child element of servlet in web.xml is 
 documented and
  specified in the j2ee servlet stuff things..
 
 Well, tomcat tells me it loads the servlets, but they still 
 are only loaded when I hit them, thus getting an Apache 
 Internal Server Error untill tomcat has them all properly "heated".
 
 load-on-startup doesn't solve that problem :(

It may be of importance to note that the load-on-startup param
just instantiates the servlet(calls the init method of the servlet)
and does not make any requests to any of the services(doPost, doGet, 
etc...).  And also note that there is an instance created for each
servlet mapping you have configured plus the default 
webapps/myapp/servlets/MyServlet.


---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com