Because tomcat is running as a service, permissions may be an issue for
creating/writing to the directory in question, most likely this is why
the task fails... unless the Timer task is a critical process don't use
System.exit(0), just check the if the task runs or not and if not log
the error/send an alert.
Peter
Martin Cavanagh wrote:
Mark Thomas wrote:
Martin Cavanagh wrote:
Heres trouble...........the System does call System.exit(), when it
can't create the directory... - so I understand why my application
would
stop- but why would tomcat shutdown?
And there is the problem. System.exit() will kill the JVM (unless you
are running under a security manager and don't give the code permission
to do this). Tomcat registers a shutdown hook on startup which performs
a clean stop if the JVM is stopped. This is why you see what appears to
be a 'normal' shutdown in the logs.
Mark
ahh good - and now I "just" need to work out why it can't create
directorys on this one server - great!
Now before I execute the System.exit I do a dump.
Thanks alot. Additionaly I'll be installing the JDK so I can use the
server JVM.
Martin
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]