Windows service logging

2008-03-05 Thread Kaderabek, Kevin (TS)
Here's my problem.

We've been runing an application under Tomcat for 7 years now, but
usually on Linux.  Just now, I have need to run Tomcat as a Windows
service.  I did this by running service.bat, and everything seems to
work fine, except the logging.  The only log files I get are the stdout
and stderr.  None of the logs described in logging.properties, neither
the master one in the conf directory for catalina-log nor the files
described in logging.properties for our application, are created.  When
I don't run tomcat as a service and just start it with the startup.bat,
there's no problem.  When I run it as a service, no logging.  Seached
FAQ, Web, files, etc.  Loggings been working great for the last 2 years.
I'm at a loss.

I'm running 5.5.20. on Windows XP Pro.  I also get some library version
errors in the stdout when tomcat starts up ... SEVERE ... Incomapatible
Varsion of a Tomcat Native Library is installed.  I only get this when
starting as a service.


Kevin Kaderabek
Sr. Software Engineer
Northrop Grumman Technical Services
(405) 736-8412
[EMAIL PROTECTED]



RE: Windows service logging

2008-03-05 Thread Kaderabek, Kevin (TS)
I tried that.  Didn't help.  The service is writing to stdout log file. 

Anyway, I upgraded to Tomcat 6 and installed using the windows
installer, and everything works.  It does seem like a permission problem
though.

Thanks
-Original Message-
From: Mladen Turk [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 05, 2008 4:02 PM
To: Tomcat Users List
Subject: Re: Windows service logging

Kaderabek, Kevin (TS) wrote:
> Here's my problem.
> 
> We've been runing an application under Tomcat for 7 years now, but 
> usually on Linux.  Just now, I have need to run Tomcat as a Windows 
> service.  I did this by running service.bat, and everything seems to 
> work fine, except the logging.  The only log files I get are the 
> stdout and stderr.  None of the logs described in logging.properties, 
> neither the master one in the conf directory for catalina-log nor the 
> files described in logging.properties for our application, are 
> created.  When I don't run tomcat as a service and just start it with 
> the startup.bat, there's no problem.  When I run it as a service, no 
> logging.  Seached FAQ, Web, files, etc.  Loggings been working great
for the last 2 years.
> I'm at a loss.
> 

LOCAL_SERVICE account (one used for running services) probably doesn't
have access to your logs folder.
Try adding full access right to service account for that folder.

Regards
--
(TM)

-
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]



RE: Nio related problem - all threads are stuck

2008-03-06 Thread Kaderabek, Kevin (TS)
On Linux, I have to create a virtual display with Xvfb and use it as the
DISPLAY environment variable for the startup script.  Maybe this was
included in the old startup shell script, but was not carried over to
the new tomcat.  I think I got a DISPLAY not defined when I forgot to do
this, but maybe there's some other environment variable you had set in
the old startup that needs to be added to the new one.   

-Original Message-
From: esagi123 esagi123 [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 06, 2008 9:29 AM
To: Tomcat Users List
Subject: Re: Nio related problem - all threads are stuck

I am running with JDK 1.5.0_11-b03, tomcat 6.0.14 on a linux redhat
machine

On Thu, Mar 6, 2008 at 4:38 PM, Caldarale, Charles R <
[EMAIL PROTECTED]> wrote:

> > From: esagi123 esagi123 [mailto:[EMAIL PROTECTED]
> > Subject: Nio related problem - all threads are stuck
> >
> > Looking at the thread dump It appears 392 request processing threads

> > are stuck while waiting for a monitor:
>
> Tomcat version?  JRE/JDK version?  Platform?
>
>  - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE 
> PROPRIETARY MATERIAL and is thus for use only by the intended 
> recipient. If you received this in error, please contact the sender 
> and delete the e-mail and its attachments from all computers.
>
> -
> 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]



RE: Nio related problem - all threads are stuck

2008-03-06 Thread Kaderabek, Kevin (TS)
Understood.  My point was more to see if startup.sh had been modified in
previous tomcat version and those changes needed including in the new
tomcat startup.sh.  The DISPLAY variable was the one that's always
bitten me in the past on Unix systems.  

Good day,
Kevin 

-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 06, 2008 10:55 AM
To: Tomcat Users List
Subject: Re: Nio related problem - all threads are stuck

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Kevin,

Kaderabek, Kevin (TS) wrote:
| On Linux, I have to create a virtual display with Xvfb

This is very unlikely to be the problem. If the application needs X,
you'll get an exception when you try to do something that requires it.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkfQIfIACgkQ9CaO5/Lv0PBI+wCeIMqzSWax7i/Lvh56tjQVOUHy
pWcAnjuLj2xUDnbrT98p4gJzagWAOdQT
=gNqS
-END PGP SIGNATURE-

-
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]