Re: crontab problems

2003-02-27 Thread Jon Wingfield
erlying classes sometimes cache a negative response, so you have to restart tomcat to enable a new lookup. (That's not specific to tomcat) -Original Message- From: Hannes Schmidt [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 3:02 AM To: Tomcat Users List Subject:

[OT] DNS Fun (was Re: crontab problems)

2003-02-26 Thread Tim Funk
M To: Tomcat Users List Subject: Re: crontab problems Regarding your problem: I don't understand why bouncing Tomcat would resolve a DNS problem. The UnknownHostException is a indication that something is wrong with DNS

RE: crontab problems

2003-02-26 Thread Oscar Carrillo
, so you have to restart tomcat to enable a new > lookup. (That's not specific to tomcat) > > > -Original Message- > > From: Hannes Schmidt [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, February 26, 2003 3:02 AM > > To: Tomcat Users List > > Subject

Re: JDK DNS cache (was Re: crontab problems)

2003-02-26 Thread Will Hartung
> From: "Michael Micek" <[EMAIL PROTECTED]> > Sent: Wednesday, February 26, 2003 10:54 AM > Subject: JDK DNS cache (was Re: crontab problems) > The web application developer I'm supporting has instructed me to ask: > > Would this be true if the jsp or sess

RE: JDK DNS cache (was Re: crontab problems)

2003-02-26 Thread Ron Day
I do not understand this question at all ? jsp has page scope, session has session scope ??? -Original Message- From: Michael Micek [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 12:54 PM To: Tomcat Users List Subject: JDK DNS cache (was Re: crontab problems) On Wed, Feb

Re: JDK DNS cache (was Re: crontab problems)

2003-02-26 Thread Tim Funk
Thats like comparing apples to cowbells. The DNS caching issue is part of the java.net package. (Actually, the sun classes which implement that) So anything which relies on java.net has this issue. This issue has nothing to do with session or application scope. More information: http://java.su

JDK DNS cache (was Re: crontab problems)

2003-02-26 Thread Michael Micek
On Wed, Feb 26, 2003 at 06:57:11AM -0500, Tim Funk wrote: > Ron Day wrote: > >Do you know which class cache the negative response > Its a JDK issue. > (IIRC) Successful (and unsucessful?) DNS lookups are cached forever > during the life of the JVM. The web application developer I'm

RE: crontab problems

2003-02-26 Thread Ron Day
6:36 AM To: Tomcat Users List Subject: RE: crontab problems It's the java implementation that does the caching, as java implements the lookup on it's own and doesn't use the operating system functions for that. (That doesn't mean that the operating system or the resolver l

RE: crontab problems

2003-02-26 Thread Ron Day
:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 6:01 AM To: Tomcat Users List Subject: Re: crontab problems Good morning! When I deliberately use a non-existing hostname in order to force the lookup to fail, the exception is thrown in a method indirectly called by HttpURLConnection.connect

RE: crontab problems

2003-02-26 Thread Ralph Einfeldt
Users List' > Subject: RE: crontab problems > > That's a shame...it's not up to the client > to determine how long a DNS response should be cached, its up > to the zone file on the server doing the replying. > -

RE: crontab problems

2003-02-26 Thread Turner, John
ale behind this, as it doesn't make any sense. I'm surprised Sun would do this. John > -Original Message- > From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 26, 2003 7:36 AM > To: Tomcat Users List > Subject: RE: crontab problems >

RE: crontab problems

2003-02-26 Thread Turner, John
rom: Ralph Einfeldt [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, February 26, 2003 2:07 AM > > To: Tomcat Users List > > Subject: RE: crontab problems > > > > > > Because the underlying classes sometimes cache a negative > > response, so you have

RE: crontab problems

2003-02-26 Thread Turner, John
nesday, February 26, 2003 2:46 AM > To: Tomcat Users List > Subject: RE: crontab problems > > > Just a side note: > > If the sole reason for this jsp is the automatic check > then your example can be stripped down to: > > SUCCESS > > The rest i

RE: crontab problems

2003-02-26 Thread Ralph Einfeldt
ebruary 26, 2003 1:01 PM > To: Tomcat Users List > Subject: Re: crontab problems > > Where do you get your excepetion? My guts is telling me that > the lookup result is cached by the operating system rather > than a Java class. On the other hand, caching a nega

Re: crontab problems

2003-02-26 Thread Hannes Schmidt
tform does your webapp run on? - Original Message - From: "Ron Day" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Wednesday, February 26, 2003 9:27 AM Subject: RE: crontab problems > Do you know which class cache the negative respon

Re: crontab problems

2003-02-26 Thread Tim Funk
-Tim Ron Day wrote: Do you know which class cache the negative response -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 2:07 AM To: Tomcat Users List Subject: RE: crontab problems Because the underlying classes sometimes ca

Re: crontab problems

2003-02-26 Thread Hannes Schmidt
Runtime.getRuntime().exec( restartCommand ); } catch( IOException e ) { e.printStackTrace(); } } } - Original Message - From: "Ron Day" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Wednesday, February 26, 2

RE: crontab problems

2003-02-26 Thread Ron Day
Do you know which class cache the negative response -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 2:07 AM To: Tomcat Users List Subject: RE: crontab problems Because the underlying classes sometimes cache a negative

RE: crontab problems

2003-02-26 Thread Ralph Einfeldt
To: Tomcat Users List > Subject: Re: crontab problems > > Regarding your problem: I don't understand why bouncing > Tomcat would resolve a DNS problem. The UnknownHostException > is a indication that something is wro

RE: crontab problems

2003-02-26 Thread Ralph Einfeldt
uesday, February 25, 2003 9:42 PM > To: 'Tomcat Users List' > Subject: RE: crontab problems > > Well, to be paranoid, it would have to be on a remote machine. If it > wasn't, a network outage would take your app down, but your > moni

RE: crontab problems

2003-02-25 Thread Ralph Einfeldt
bruary 25, 2003 9:17 PM > To: 'Tomcat Users List' > Subject: RE: crontab problems > > > > APP Monitor > > > <% > String myMonitor = "SUCCESS"; > out.println(myMonitor); > %> > > > ---

RE: crontab problems

2003-02-25 Thread Ron Day
No Code attached ??? -Original Message- From: Hannes Schmidt [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 8:02 PM To: Tomcat Users List Subject: Re: crontab problems I attached a version of my sample code that actually works (JDK used 1.4.1). Regarding your problem: I

RE: crontab problems

2003-02-25 Thread Ron Day
DNS issue clears up , but the heartbeat still thinks there is an exception. -Original Message- From: Hannes Schmidt [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 8:02 PM To: Tomcat Users List Subject: Re: crontab problems I attached a version of my sample code that actually

Re: crontab problems

2003-02-25 Thread Hannes Schmidt
ssage - From: "Ron Day" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Wednesday, February 26, 2003 1:37 AM Subject: RE: crontab problems > I have code very similar to this that does work... except > whenever I get an unknowHos

RE: crontab problems

2003-02-25 Thread Ron Day
--Original Message- From: Hannes Schmidt [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 6:27 PM To: Tomcat Users List Subject: Re: crontab problems Probably not. But the connection does have to be inside the loop. Keep in mind that this is a concept. I have never compiled or tested

Re: crontab problems

2003-02-25 Thread Hannes Schmidt
Tuesday, February 25, 2003 11:09 PM Subject: RE: crontab problems > Does the URL instantiation have to be inside the while loop ?? > > -Original Message- > From: Hannes Schmidt [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 25, 2003 3:56 PM > To: Tomcat Users Li

RE: crontab problems

2003-02-25 Thread Ron Day
Does the URL instantiation have to be inside the while loop ?? -Original Message- From: Hannes Schmidt [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 3:56 PM To: Tomcat Users List Subject: Re: crontab problems Right. My sample code wasn't meant to be 100% correct. I w

Re: crontab problems

2003-02-25 Thread Hannes Schmidt
7;" <[EMAIL PROTECTED]> Sent: Tuesday, February 25, 2003 9:53 PM Subject: RE: crontab problems > > Still won't work. A 404, 500, or other error will have a content length > greater than 0. That's bad. > > John > > > -Original Message- >

RE: crontab problems

2003-02-25 Thread Turner, John
Still won't work. A 404, 500, or other error will have a content length greater than 0. That's bad. John > -Original Message- > From: Ron Day [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 25, 2003 3:43 PM > To: Tomcat Users List > Subject: RE: cronta

RE: crontab problems

2003-02-25 Thread Ron Day
nal Message- From: Hannes Schmidt [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 2:06 PM To: Tomcat Users List Subject: Re: crontab problems > Would you expand on option 2. A Java thread is a sequence of execution of Java bytecode on a JVM. Obviously, there can be multiple threads per

RE: crontab problems

2003-02-25 Thread Turner, John
quot;flapping", where the admin gets up/down alerts repeatedly, even though there is nothing wrong. John > -Original Message- > From: Oscar Carrillo [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 25, 2003 4:00 AM > To: Tomcat Users List > Subject: RE: crontab probl

RE: crontab problems

2003-02-25 Thread Oscar Carrillo
t. If yes, everything is OK. If not, something is wrong. > > John > > > -Original Message- > > From: Hannes Schmidt [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, February 25, 2003 3:06 PM > > To: Tomcat Users List > > Subject: Re: crontab prob

RE: crontab problems

2003-02-25 Thread Turner, John
MAIL PROTECTED] > Sent: Tuesday, February 25, 2003 3:06 PM > To: Tomcat Users List > Subject: Re: crontab problems > > > > Would you expand on option 2. > > A Java thread is a sequence of execution of Java bytecode on a JVM. > Obviously, there can be multiple threads per J

Re: crontab problems

2003-02-25 Thread Hannes Schmidt
CurrentThread().sleep( 100 ); // or so, I'm not sure } } } - Original Message - From: "Ron Day" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Tuesday, February 25, 2003 8:00 PM Subject: RE: crontab problems > > > R

Re: crontab problems

2003-02-25 Thread Will Hartung
- Original Message - From: "Ayhan Peker" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 25, 2003 1:29 AM Subject: crontab problems > Hi everybody , > I have a problem..I am trying to write an application , which will run from > crona

RE: crontab problems

2003-02-25 Thread Ron Day
Would you expand on option 2. Why is this a thread rather than a java app that is started on system startup ? Ron -Original Message- From: Hannes Schmidt [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 12:50 PM To: Tomcat Users List Subject: Re: crontab problems There'

Re: crontab problems

2003-02-25 Thread Hannes Schmidt
ROTECTED]> Sent: Tuesday, February 25, 2003 6:16 PM Subject: RE: crontab problems > > No, I guess that would work. It just seems to be needlessly complicated and > resource intensive. You normally don't consider a program crashing as > normal behavior. The point of a moni

RE: crontab problems

2003-02-25 Thread Turner, John
MAIL PROTECTED] > Sent: Tuesday, February 25, 2003 12:06 PM > To: Tomcat Users List > Subject: RE: crontab problems > > > Am I right to think that if jvm crashes...Once writing to > core file is > finished, jvm can be restarted..(that is what we have been doing--jvm > cr

RE: crontab problems

2003-02-25 Thread Ayhan Peker
:43 AM > To: Tomcat Users List > Subject: RE: crontab problems > > > I have no problems with tomcat... > > But sometimes under heavy load jvm 1.4 crashes... > see the links: > > Ok this is the bug: > http://developer.java.sun.com/developer/bugParade/bugs/4779653.

RE: crontab problems

2003-02-25 Thread Turner, John
wrote: > > >Yes, Tomcat is generally very stable. But: Trust, but verify. ;) > > > >John > > > > > -Original Message----- > > > From: Hannes Schmidt [mailto:[EMAIL PROTECTED] > > > Sent: Tuesday, February 25, 2003 9:23 AM > > > To

RE: crontab problems

2003-02-25 Thread Ayhan Peker
bruary 25, 2003 9:23 AM > To: Tomcat Users List > Subject: Re: crontab problems > > > Yes, using wget is probably the second best solution. The > best one is to > find the reason why Tomcat crashes at all, since it generally > is a stable > and reliable product. > > Cr

RE: crontab problems

2003-02-25 Thread Turner, John
Yes, Tomcat is generally very stable. But: Trust, but verify. ;) John > -Original Message- > From: Hannes Schmidt [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 25, 2003 9:23 AM > To: Tomcat Users List > Subject: Re: crontab problems > > > Yes, using wge

Re: crontab problems

2003-02-25 Thread Hannes Schmidt
be ok too. But that's a matter of taste, really. - Original Message - From: "Turner, John" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" <[EMAIL PROTECTED]> Sent: Tuesday, February 25, 2003 3:00 PM Subject: RE: crontab problems > &g

RE: crontab problems

2003-02-25 Thread Turner, John
er, and a whole bunch of others. John > -Original Message- > From: Hannes Schmidt [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 25, 2003 6:29 AM > To: Tomcat Users List > Subject: Re: crontab problems > > > Right, you might also just put > > JAVA_HOME=...

Re: crontab problems

2003-02-25 Thread Hannes Schmidt
his out of my head ... - Original Message - From: "Ralph Einfeldt" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Tuesday, February 25, 2003 10:43 AM Subject: RE: crontab problems You have to make shure that your script retstart_t

RE: crontab problems

2003-02-25 Thread Ralph Einfeldt
ALINA_BASE JAVA_OPTS ./startup.sh > -Original Message- > From: Ayhan Peker [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 25, 2003 10:30 AM > To: [EMAIL PROTECTED] > Subject: crontab problems > > but the last two lines returns > / > The

crontab problems

2003-02-25 Thread Ayhan Peker
Hi everybody , I have a problem..I am trying to write an application , which will run from cronatb on linux... My application runs without a problem when i try it from the command line..BUT NOT FROM CRONTAB... The challenge is: if jvm crashes i want to restart tomcat my code is : String[] com