RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError]

2003-09-22 Thread Ralph Einfeldt
May be you should run
ulimit -a   # sh/bash as shell
limit   # tcsh as shell
for the root user and the user you wann't to start tomcat with.

Maybe that shows something interesting.

> -Original Message-
> From: Denise Mangano [mailto:[EMAIL PROTECTED]
> Sent: Monday, September 22, 2003 5:50 PM
> To: Tomcat Users List
> Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start
> Tomcat - java.lang.OutOfMemoryError]
> 
> 

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



RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError]

2003-09-22 Thread Denise Mangano
When Tomcat is shut down and I run a ps -ef no java threads are
displayed.  Is there any way for me to go in manually and check if there
are any threads are being held onto by Tomcat/Java, and release them?  

Thanks.
Denise



-Original Message-
From: Denise Mangano 
Sent: Monday, September 22, 2003 8:57 AM
To: Tomcat Users List
Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


After compiling and running some offline sample java programs, it seems
unlikely that the problem is with the JVM.  If it were I shouldn't be
able to run any java programs under non-root users, but I can.

The problem still only appears to be when starting and stopping Tomcat
as a non-root user.  I need to find a resolution to this asap.  I am
wondering if there is any way that if I am stuck with starting Tomcat as
root, is there anyway it can be started as root, but then spawn off
child threads as a non-root user (i.e. the way apache does it..)

Thanks in advance.
Denise

-Original Message-
From: Denise Mangano 
Sent: Friday, September 19, 2003 4:51 PM
To: Tomcat Users List
Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


My Tomcat is not running on port 80.  I have Apache running on port 80
communicating with Tomcat via mod_jk (Apache starts up fine).  Also I am
not using IPTables - I have relied on our network firewall for
protection.

I think Filip is on to something with the JVM... I am posting to Linux
boards right now...

Denise Mangano
Complus Data Innovations, Inc.
914-747-1200


-Original Message-
From: Mike Curwen [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 19, 2003 4:48 PM
To: 'Tomcat Users List'
Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


I forget if you've said or not, but are non-root users allowed to
priveleged ports? Which is what Tomcat would do if you've changed it to
port 80.  Forgive my non-linux background, but perhaps you were using an
IPTables solution to work around this limitation I vaguely and poorly
remember, and because your machine crashed, those settings are gone.

Sysadmins, feel free to flame my clutching at straws!

> -Original Message-
> From: Denise Mangano [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 19, 2003 3:42 PM
> To: Tomcat Users List
> Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start 
> Tomcat - java.lang.OutOfMemoryError]
> 
> 
> Why would this happen suddenly though?  Tomcat was running fine
> before. Unfortunately switching OS is not an option.  So this sounds 
> like a linux problem?
> 
> Denise Mangano
> Complus Data Innovations, Inc.
> 914-747-1200
> 
> 
> -Original Message-
> From: Filip Hanik [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 19, 2003 4:39 PM
> To: Tomcat Users List
> Subject: Re: Cannot run Tomcat as new user [Was: Urgent! Cannot start 
> Tomcat - java.lang.OutOfMemoryError]
> 
> 
> the problem is somewhere in the native JVM.
> It fails when trying to create a native thread on the OS level as a
> noon root user. All I can say is, switch OS :)
> 
> Filip
> - Original Message -
> From: "Denise Mangano" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Friday, September 19, 2003 1:15 PM
> Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start
> Tomcat - java.lang.OutOfMemoryError]
> 
> 
> I know I've flooded the list about this, and I appreciate everyone's
> help but I am at a complete loss.  I even restored from backup tape 
> and the same thing is happening.  I reinstalled tomcat, reinstalled 
> j2sdk, yet Tomcat will only run as root.
> 
> It is obviously not safe to run Tomcat as root, but I absolutely have
> to get my app back up.  Any more suggestions are greatly appreciated.
> 
> Thanks.
> Denise
> 
> 
> -Original Message-
> From: Denise Mangano
> Sent: Friday, September 19, 2003 3:20 PM
> To: Tomcat Users List
> Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start
> Tomcat - java.lang.OutOfMemoryError]
> 
> 
> Filip .. Sorry - this was in my original post:
> 
> Starting service Tomcat-Standalone
> Apache Tomcat/4.1.27
> Sep 19, 2003 9:01:25 AM
> org.apache.struts.util.PropertyMessageResources
> 
> INFO: Initializing, config='org.apache.struts.util.LocalStrings',
> returnNull=true
> Sep 19, 2003 9:01:25 AM
> org.apache.struts.util.PropertyMessageResources
> 
> INFO: Initializing, config='org.apache.struts.action.ActionResources',
> returnNull=true
> Sep 19, 2003 9:01:26 AM 
> org.apach

RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError]

2003-09-22 Thread Denise Mangano
After compiling and running some offline sample java programs, it seems
unlikely that the problem is with the JVM.  If it were I shouldn't be
able to run any java programs under non-root users, but I can.

The problem still only appears to be when starting and stopping Tomcat
as a non-root user.  I need to find a resolution to this asap.  I am
wondering if there is any way that if I am stuck with starting Tomcat as
root, is there anyway it can be started as root, but then spawn off
child threads as a non-root user (i.e. the way apache does it..)

Thanks in advance.
Denise

-Original Message-
From: Denise Mangano 
Sent: Friday, September 19, 2003 4:51 PM
To: Tomcat Users List
Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


My Tomcat is not running on port 80.  I have Apache running on port 80
communicating with Tomcat via mod_jk (Apache starts up fine).  Also I am
not using IPTables - I have relied on our network firewall for
protection.

I think Filip is on to something with the JVM... I am posting to Linux
boards right now...

Denise Mangano
Complus Data Innovations, Inc.
914-747-1200


-Original Message-
From: Mike Curwen [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 19, 2003 4:48 PM
To: 'Tomcat Users List'
Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


I forget if you've said or not, but are non-root users allowed to
priveleged ports? Which is what Tomcat would do if you've changed it to
port 80.  Forgive my non-linux background, but perhaps you were using an
IPTables solution to work around this limitation I vaguely and poorly
remember, and because your machine crashed, those settings are gone.

Sysadmins, feel free to flame my clutching at straws!

> -Original Message-
> From: Denise Mangano [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 19, 2003 3:42 PM
> To: Tomcat Users List
> Subject: RE: Cannot run Tomcat as new user [Was: Urgent!
> Cannot start Tomcat - java.lang.OutOfMemoryError]
> 
> 
> Why would this happen suddenly though?  Tomcat was running fine 
> before. Unfortunately switching OS is not an option.  So this sounds 
> like a linux problem?
> 
> Denise Mangano
> Complus Data Innovations, Inc.
> 914-747-1200
> 
> 
> -Original Message-
> From: Filip Hanik [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 19, 2003 4:39 PM
> To: Tomcat Users List
> Subject: Re: Cannot run Tomcat as new user [Was: Urgent!
> Cannot start Tomcat - java.lang.OutOfMemoryError]
> 
> 
> the problem is somewhere in the native JVM.
> It fails when trying to create a native thread on the OS level as a 
> noon root user. All I can say is, switch OS :)
> 
> Filip
> - Original Message -
> From: "Denise Mangano" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Friday, September 19, 2003 1:15 PM
> Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start 
> Tomcat - java.lang.OutOfMemoryError]
> 
> 
> I know I've flooded the list about this, and I appreciate everyone's 
> help but I am at a complete loss.  I even restored from backup tape 
> and the same thing is happening.  I reinstalled tomcat, reinstalled 
> j2sdk, yet Tomcat will only run as root.
> 
> It is obviously not safe to run Tomcat as root, but I absolutely have 
> to get my app back up.  Any more suggestions are greatly appreciated.
> 
> Thanks.
> Denise
> 
> 
> -Original Message-
> From: Denise Mangano
> Sent: Friday, September 19, 2003 3:20 PM
> To: Tomcat Users List
> Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start 
> Tomcat - java.lang.OutOfMemoryError]
> 
> 
> Filip .. Sorry - this was in my original post:
> 
> Starting service Tomcat-Standalone
> Apache Tomcat/4.1.27
> Sep 19, 2003 9:01:25 AM 
> org.apache.struts.util.PropertyMessageResources
> 
> INFO: Initializing, config='org.apache.struts.util.LocalStrings',
> returnNull=true
> Sep 19, 2003 9:01:25 AM
> org.apache.struts.util.PropertyMessageResources
> 
> INFO: Initializing, config='org.apache.struts.action.ActionResources',
> returnNull=true
> Sep 19, 2003 9:01:26 AM 
> org.apache.struts.util.PropertyMessageResources
> 
> INFO: Initializing, 
> config='org.apache.webapp.admin.ApplicationResources', 
> returnNull=true Exception during startup processing 
> java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
> orImpl.jav
> a:39)
> at 
> sun.reflect.Delegating

RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError]

2003-09-19 Thread Denise Mangano
My Tomcat is not running on port 80.  I have Apache running on port 80
communicating with Tomcat via mod_jk (Apache starts up fine).  Also I am
not using IPTables - I have relied on our network firewall for
protection.

I think Filip is on to something with the JVM... I am posting to Linux
boards right now...

Denise Mangano
Complus Data Innovations, Inc.
914-747-1200


-Original Message-
From: Mike Curwen [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 19, 2003 4:48 PM
To: 'Tomcat Users List'
Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


I forget if you've said or not, but are non-root users allowed to
priveleged ports? Which is what Tomcat would do if you've changed it to
port 80.  Forgive my non-linux background, but perhaps you were using an
IPTables solution to work around this limitation I vaguely and poorly
remember, and because your machine crashed, those settings are gone.

Sysadmins, feel free to flame my clutching at straws!

> -Original Message-
> From: Denise Mangano [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 19, 2003 3:42 PM
> To: Tomcat Users List
> Subject: RE: Cannot run Tomcat as new user [Was: Urgent! 
> Cannot start Tomcat - java.lang.OutOfMemoryError]
> 
> 
> Why would this happen suddenly though?  Tomcat was running
> fine before. Unfortunately switching OS is not an option.  So 
> this sounds like a linux problem?
> 
> Denise Mangano
> Complus Data Innovations, Inc.
> 914-747-1200
> 
> 
> -Original Message-
> From: Filip Hanik [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 19, 2003 4:39 PM
> To: Tomcat Users List
> Subject: Re: Cannot run Tomcat as new user [Was: Urgent! 
> Cannot start Tomcat - java.lang.OutOfMemoryError]
> 
> 
> the problem is somewhere in the native JVM.
> It fails when trying to create a native thread on the OS
> level as a noon root user. All I can say is, switch OS :)
> 
> Filip
> - Original Message -
> From: "Denise Mangano" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Friday, September 19, 2003 1:15 PM
> Subject: RE: Cannot run Tomcat as new user [Was: Urgent!
> Cannot start Tomcat - java.lang.OutOfMemoryError]
> 
> 
> I know I've flooded the list about this, and I appreciate
> everyone's help but I am at a complete loss.  I even restored 
> from backup tape and the same thing is happening.  I 
> reinstalled tomcat, reinstalled j2sdk, yet Tomcat will only 
> run as root.
> 
> It is obviously not safe to run Tomcat as root, but I
> absolutely have to get my app back up.  Any more suggestions 
> are greatly appreciated.
> 
> Thanks.
> Denise
> 
> 
> -Original Message-
> From: Denise Mangano
> Sent: Friday, September 19, 2003 3:20 PM
> To: Tomcat Users List
> Subject: RE: Cannot run Tomcat as new user [Was: Urgent!
> Cannot start Tomcat - java.lang.OutOfMemoryError]
> 
> 
> Filip .. Sorry - this was in my original post:
> 
> Starting service Tomcat-Standalone
> Apache Tomcat/4.1.27
> Sep 19, 2003 9:01:25 AM
> org.apache.struts.util.PropertyMessageResources
> 
> INFO: Initializing, config='org.apache.struts.util.LocalStrings',
> returnNull=true
> Sep 19, 2003 9:01:25 AM 
> org.apache.struts.util.PropertyMessageResources
> 
> INFO: Initializing, config='org.apache.struts.action.ActionResources',
> returnNull=true
> Sep 19, 2003 9:01:26 AM 
> org.apache.struts.util.PropertyMessageResources
> 
> INFO: Initializing, 
> config='org.apache.webapp.admin.ApplicationResources', 
> returnNull=true Exception during startup processing 
> java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
> orImpl.jav
> a:39)
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> odAccessor
> Impl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
> 
> Caused by: java.lang.OutOfMemoryError: unable to create new
> native thread
> at java.lang.Thread.start(Native Method)
> at 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable. t>(ThreadP
> ool.java:582)
> at
> org.apache.tomcat.util.threads.ThreadPool.openThreads(ThreadPo
> ol.java:46
> 0)
> at
> org.apache.tomcat.util.threads.ThreadPool.start(ThreadPool.java:179)
> at 
> org.apache.tomcat.util.net.PoolTcpEndpoint.startEndpoint(PoolT
> cpEndpoint
> .java:30

RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError]

2003-09-19 Thread Mike Curwen
I forget if you've said or not, but are non-root users allowed to
priveleged ports? Which is what Tomcat would do if you've changed it to
port 80.  Forgive my non-linux background, but perhaps you were using an
IPTables solution to work around this limitation I vaguely and poorly
remember, and because your machine crashed, those settings are gone.

Sysadmins, feel free to flame my clutching at straws!

> -Original Message-
> From: Denise Mangano [mailto:[EMAIL PROTECTED] 
> Sent: Friday, September 19, 2003 3:42 PM
> To: Tomcat Users List
> Subject: RE: Cannot run Tomcat as new user [Was: Urgent! 
> Cannot start Tomcat - java.lang.OutOfMemoryError]
> 
> 
> Why would this happen suddenly though?  Tomcat was running 
> fine before. Unfortunately switching OS is not an option.  So 
> this sounds like a linux problem?
> 
> Denise Mangano
> Complus Data Innovations, Inc.
> 914-747-1200
> 
> 
> -Original Message-
> From: Filip Hanik [mailto:[EMAIL PROTECTED] 
> Sent: Friday, September 19, 2003 4:39 PM
> To: Tomcat Users List
> Subject: Re: Cannot run Tomcat as new user [Was: Urgent! 
> Cannot start Tomcat - java.lang.OutOfMemoryError]
> 
> 
> the problem is somewhere in the native JVM.
> It fails when trying to create a native thread on the OS 
> level as a noon root user. All I can say is, switch OS :)
> 
> Filip
> - Original Message -
> From: "Denise Mangano" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Friday, September 19, 2003 1:15 PM
> Subject: RE: Cannot run Tomcat as new user [Was: Urgent! 
> Cannot start Tomcat - java.lang.OutOfMemoryError]
> 
> 
> I know I've flooded the list about this, and I appreciate 
> everyone's help but I am at a complete loss.  I even restored 
> from backup tape and the same thing is happening.  I 
> reinstalled tomcat, reinstalled j2sdk, yet Tomcat will only 
> run as root.
> 
> It is obviously not safe to run Tomcat as root, but I 
> absolutely have to get my app back up.  Any more suggestions 
> are greatly appreciated.
> 
> Thanks.
> Denise
> 
> 
> -Original Message-
> From: Denise Mangano
> Sent: Friday, September 19, 2003 3:20 PM
> To: Tomcat Users List
> Subject: RE: Cannot run Tomcat as new user [Was: Urgent! 
> Cannot start Tomcat - java.lang.OutOfMemoryError]
> 
> 
> Filip .. Sorry - this was in my original post:
> 
> Starting service Tomcat-Standalone
> Apache Tomcat/4.1.27
> Sep 19, 2003 9:01:25 AM 
> org.apache.struts.util.PropertyMessageResources
> 
> INFO: Initializing, config='org.apache.struts.util.LocalStrings',
> returnNull=true
> Sep 19, 2003 9:01:25 AM 
> org.apache.struts.util.PropertyMessageResources
> 
> INFO: Initializing, config='org.apache.struts.action.ActionResources',
> returnNull=true
> Sep 19, 2003 9:01:26 AM 
> org.apache.struts.util.PropertyMessageResources
> 
> INFO: Initializing, 
> config='org.apache.webapp.admin.ApplicationResources', 
> returnNull=true Exception during startup processing 
> java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
> orImpl.jav
> a:39)
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> odAccessor
> Impl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
> 
> Caused by: java.lang.OutOfMemoryError: unable to create new 
> native thread
> at java.lang.Thread.start(Native Method)
> at 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable. t>(ThreadP
> ool.java:582)
> at 
> org.apache.tomcat.util.threads.ThreadPool.openThreads(ThreadPo
> ol.java:46
> 0)
> at
> org.apache.tomcat.util.threads.ThreadPool.start(ThreadPool.java:179)
> at 
> org.apache.tomcat.util.net.PoolTcpEndpoint.startEndpoint(PoolT
> cpEndpoint
> .java:300)
> at
> org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:161)
> at 
> org.apache.coyote.tomcat4.CoyoteConnector.start(CoyoteConnecto
> r.java:118
> 0)
> at
> org.apache.catalina.core.StandardService.start(StandardService
> .java:506)
> at
> org.apache.catalina.core.StandardServer.start(StandardServer.j
> ava:2190)
> at 
> org.apache.catalina.startup.Catalina.start(Catalina.java:512)
> at
> org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
> at
> org.apache.catalina.startup.

RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError]

2003-09-19 Thread Denise Mangano
Why would this happen suddenly though?  Tomcat was running fine before.
Unfortunately switching OS is not an option.  So this sounds like a
linux problem?

Denise Mangano
Complus Data Innovations, Inc.
914-747-1200


-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 19, 2003 4:39 PM
To: Tomcat Users List
Subject: Re: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


the problem is somewhere in the native JVM.
It fails when trying to create a native thread on the OS level as a noon
root user. All I can say is, switch OS :)

Filip
- Original Message -
From: "Denise Mangano" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, September 19, 2003 1:15 PM
Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


I know I've flooded the list about this, and I appreciate everyone's
help but I am at a complete loss.  I even restored from backup tape and
the same thing is happening.  I reinstalled tomcat, reinstalled j2sdk,
yet Tomcat will only run as root.

It is obviously not safe to run Tomcat as root, but I absolutely have to
get my app back up.  Any more suggestions are greatly appreciated.

Thanks.
Denise


-Original Message-
From: Denise Mangano
Sent: Friday, September 19, 2003 3:20 PM
To: Tomcat Users List
Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


Filip .. Sorry - this was in my original post:

Starting service Tomcat-Standalone
Apache Tomcat/4.1.27
Sep 19, 2003 9:01:25 AM org.apache.struts.util.PropertyMessageResources

INFO: Initializing, config='org.apache.struts.util.LocalStrings',
returnNull=true
Sep 19, 2003 9:01:25 AM org.apache.struts.util.PropertyMessageResources

INFO: Initializing, config='org.apache.struts.action.ActionResources',
returnNull=true
Sep 19, 2003 9:01:26 AM org.apache.struts.util.PropertyMessageResources

INFO: Initializing,
config='org.apache.webapp.admin.ApplicationResources', returnNull=true
Exception during startup processing
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

Caused by: java.lang.OutOfMemoryError: unable to create new native
thread
at java.lang.Thread.start(Native Method)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.(ThreadP
ool.java:582)
at
org.apache.tomcat.util.threads.ThreadPool.openThreads(ThreadPool.java:46
0)
at
org.apache.tomcat.util.threads.ThreadPool.start(ThreadPool.java:179)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint
.java:300)
at
org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:161)
at
org.apache.coyote.tomcat4.CoyoteConnector.start(CoyoteConnector.java:118
0)
at
org.apache.catalina.core.StandardService.start(StandardService.java:506)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
... 5 more

Exception in thread "main" java.lang.OutOfMemoryError: unable to create
new native thread
at java.lang.Thread.start(Native Method)
at java.lang.Shutdown.runHooks(Shutdown.java:126)
at java.lang.Shutdown.sequence(Shutdown.java:165)
at java.lang.Shutdown.exit(Shutdown.java:210)
at java.lang.Runtime.exit(Runtime.java:90)
at java.lang.System.exit(System.java:715)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:208)

Denise Mangano
Complus Data Innovations, Inc.
914-747-1200


-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Friday, September 19, 2003 3:16 PM
To: Tomcat Users List
Subject: Re: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


stack traces and log entries are always helpful
- Original Message -
From: "Denise Mangano" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, September 19, 2003 12:10 PM
Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


By executing your command, it gave rwx access to everyone, and I still
cannot run Tomcat as another user.  The only user that

Re: Cannot run Tomcat as new user [Was: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError]

2003-09-19 Thread Filip Hanik
the problem is somewhere in the native JVM.
It fails when trying to create a native thread on the OS level as a noon
root user.
All I can say is, switch OS :)

Filip
- Original Message -
From: "Denise Mangano" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, September 19, 2003 1:15 PM
Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


I know I've flooded the list about this, and I appreciate everyone's
help but I am at a complete loss.  I even restored from backup tape and
the same thing is happening.  I reinstalled tomcat, reinstalled j2sdk,
yet Tomcat will only run as root.

It is obviously not safe to run Tomcat as root, but I absolutely have to
get my app back up.  Any more suggestions are greatly appreciated.

Thanks.
Denise


-Original Message-
From: Denise Mangano
Sent: Friday, September 19, 2003 3:20 PM
To: Tomcat Users List
Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


Filip .. Sorry - this was in my original post:

Starting service Tomcat-Standalone
Apache Tomcat/4.1.27
Sep 19, 2003 9:01:25 AM org.apache.struts.util.PropertyMessageResources

INFO: Initializing, config='org.apache.struts.util.LocalStrings',
returnNull=true
Sep 19, 2003 9:01:25 AM org.apache.struts.util.PropertyMessageResources

INFO: Initializing, config='org.apache.struts.action.ActionResources',
returnNull=true
Sep 19, 2003 9:01:26 AM org.apache.struts.util.PropertyMessageResources

INFO: Initializing,
config='org.apache.webapp.admin.ApplicationResources', returnNull=true
Exception during startup processing
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

Caused by: java.lang.OutOfMemoryError: unable to create new native
thread
at java.lang.Thread.start(Native Method)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.(ThreadP
ool.java:582)
at
org.apache.tomcat.util.threads.ThreadPool.openThreads(ThreadPool.java:46
0)
at
org.apache.tomcat.util.threads.ThreadPool.start(ThreadPool.java:179)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint
.java:300)
at
org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:161)
at
org.apache.coyote.tomcat4.CoyoteConnector.start(CoyoteConnector.java:118
0)
at
org.apache.catalina.core.StandardService.start(StandardService.java:506)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
... 5 more

Exception in thread "main" java.lang.OutOfMemoryError: unable to create
new native thread
at java.lang.Thread.start(Native Method)
at java.lang.Shutdown.runHooks(Shutdown.java:126)
at java.lang.Shutdown.sequence(Shutdown.java:165)
at java.lang.Shutdown.exit(Shutdown.java:210)
at java.lang.Runtime.exit(Runtime.java:90)
at java.lang.System.exit(System.java:715)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:208)

Denise Mangano
Complus Data Innovations, Inc.
914-747-1200


-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Friday, September 19, 2003 3:16 PM
To: Tomcat Users List
Subject: Re: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


stack traces and log entries are always helpful
- Original Message -
From: "Denise Mangano" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, September 19, 2003 12:10 PM
Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


By executing your command, it gave rwx access to everyone, and I still
cannot run Tomcat as another user.  The only user that will start Tomcat
successfully and remain running is root.  All other users get the java
errors (OutofMemoryError & InvocationTargetException)

I'm at a loss...

Denise Mangano
Complus Data Innovations, Inc.
914-747-1200


-Original Message-----
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Friday, September 19, 2003 3:04 PM
To: Tomcat Users List
Subject: Re: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


s

RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError]

2003-09-19 Thread Denise Mangano
I know I've flooded the list about this, and I appreciate everyone's
help but I am at a complete loss.  I even restored from backup tape and
the same thing is happening.  I reinstalled tomcat, reinstalled j2sdk,
yet Tomcat will only run as root.

It is obviously not safe to run Tomcat as root, but I absolutely have to
get my app back up.  Any more suggestions are greatly appreciated. 

Thanks.
Denise 


-Original Message-
From: Denise Mangano 
Sent: Friday, September 19, 2003 3:20 PM
To: Tomcat Users List
Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


Filip .. Sorry - this was in my original post:

Starting service Tomcat-Standalone
Apache Tomcat/4.1.27
Sep 19, 2003 9:01:25 AM org.apache.struts.util.PropertyMessageResources

INFO: Initializing, config='org.apache.struts.util.LocalStrings',
returnNull=true
Sep 19, 2003 9:01:25 AM org.apache.struts.util.PropertyMessageResources

INFO: Initializing, config='org.apache.struts.action.ActionResources',
returnNull=true
Sep 19, 2003 9:01:26 AM org.apache.struts.util.PropertyMessageResources

INFO: Initializing,
config='org.apache.webapp.admin.ApplicationResources', returnNull=true
Exception during startup processing
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

Caused by: java.lang.OutOfMemoryError: unable to create new native
thread
at java.lang.Thread.start(Native Method)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.(ThreadP
ool.java:582)
at
org.apache.tomcat.util.threads.ThreadPool.openThreads(ThreadPool.java:46
0)
at
org.apache.tomcat.util.threads.ThreadPool.start(ThreadPool.java:179)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint
.java:300)
at
org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:161)
at
org.apache.coyote.tomcat4.CoyoteConnector.start(CoyoteConnector.java:118
0)
at
org.apache.catalina.core.StandardService.start(StandardService.java:506)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
... 5 more

Exception in thread "main" java.lang.OutOfMemoryError: unable to create
new native thread
at java.lang.Thread.start(Native Method)
at java.lang.Shutdown.runHooks(Shutdown.java:126)
at java.lang.Shutdown.sequence(Shutdown.java:165)
at java.lang.Shutdown.exit(Shutdown.java:210)
at java.lang.Runtime.exit(Runtime.java:90)
at java.lang.System.exit(System.java:715)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:208)

Denise Mangano
Complus Data Innovations, Inc.
914-747-1200


-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 19, 2003 3:16 PM
To: Tomcat Users List
Subject: Re: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


stack traces and log entries are always helpful
- Original Message -
From: "Denise Mangano" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, September 19, 2003 12:10 PM
Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


By executing your command, it gave rwx access to everyone, and I still
cannot run Tomcat as another user.  The only user that will start Tomcat
successfully and remain running is root.  All other users get the java
errors (OutofMemoryError & InvocationTargetException)

I'm at a loss...

Denise Mangano
Complus Data Innovations, Inc.
914-747-1200


-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Friday, September 19, 2003 3:04 PM
To: Tomcat Users List
Subject: Re: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


so if you do

chmod -R 777 /usr/local/jakarta-tomcat-4.1.27

you can't run it as another user?

Filip
- Original Message -
From: "Denise Mangano" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, September 19, 2003 12:02 PM
Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


Actually the tomcat-users.xml.new does not exist... Perhaps it

RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError]

2003-09-19 Thread Denise Mangano
Filip .. Sorry - this was in my original post:

Starting service Tomcat-Standalone
Apache Tomcat/4.1.27
Sep 19, 2003 9:01:25 AM org.apache.struts.util.PropertyMessageResources

INFO: Initializing, config='org.apache.struts.util.LocalStrings',
returnNull=true
Sep 19, 2003 9:01:25 AM org.apache.struts.util.PropertyMessageResources

INFO: Initializing, config='org.apache.struts.action.ActionResources',
returnNull=true
Sep 19, 2003 9:01:26 AM org.apache.struts.util.PropertyMessageResources

INFO: Initializing,
config='org.apache.webapp.admin.ApplicationResources', returnNull=true
Exception during startup processing
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

Caused by: java.lang.OutOfMemoryError: unable to create new native
thread
at java.lang.Thread.start(Native Method)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.(ThreadP
ool.java:582)
at
org.apache.tomcat.util.threads.ThreadPool.openThreads(ThreadPool.java:46
0)
at
org.apache.tomcat.util.threads.ThreadPool.start(ThreadPool.java:179)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint
.java:300)
at
org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:161)
at
org.apache.coyote.tomcat4.CoyoteConnector.start(CoyoteConnector.java:118
0)
at
org.apache.catalina.core.StandardService.start(StandardService.java:506)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
... 5 more

Exception in thread "main" java.lang.OutOfMemoryError: unable to create
new native thread
at java.lang.Thread.start(Native Method)
at java.lang.Shutdown.runHooks(Shutdown.java:126)
at java.lang.Shutdown.sequence(Shutdown.java:165)
at java.lang.Shutdown.exit(Shutdown.java:210)
at java.lang.Runtime.exit(Runtime.java:90)
at java.lang.System.exit(System.java:715)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:208)

Denise Mangano
Complus Data Innovations, Inc.
914-747-1200


-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 19, 2003 3:16 PM
To: Tomcat Users List
Subject: Re: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


stack traces and log entries are always helpful
- Original Message -
From: "Denise Mangano" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, September 19, 2003 12:10 PM
Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


By executing your command, it gave rwx access to everyone, and I still
cannot run Tomcat as another user.  The only user that will start Tomcat
successfully and remain running is root.  All other users get the java
errors (OutofMemoryError & InvocationTargetException)

I'm at a loss...

Denise Mangano
Complus Data Innovations, Inc.
914-747-1200


-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Friday, September 19, 2003 3:04 PM
To: Tomcat Users List
Subject: Re: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


so if you do

chmod -R 777 /usr/local/jakarta-tomcat-4.1.27

you can't run it as another user?

Filip
- Original Message -
From: "Denise Mangano" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, September 19, 2003 12:02 PM
Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


Actually the tomcat-users.xml.new does not exist... Perhaps it's a
temporary file that gets created as Tomcat starts?? There is a
tomcat-users.xml which I added the user into.  I added write permissions
to the conf directory for the owner, and when I went to start Tomcat I
was right back where I started with the Out of Memory errors...

I can start Tomcat as root, and it runs fine.  I changed owner to a
couple of different users & tried running, but same errors occur.  So it
appears that I can only start and run Tomcat as root.  This is obviously
not a good thing to do.  I feel as I am back to square one... Does
anyone please have any suggestions?

Thank you.

Denise Mangano
Co

Re: Cannot run Tomcat as new user [Was: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError]

2003-09-19 Thread Filip Hanik
stack traces and log entries are always helpful
- Original Message -
From: "Denise Mangano" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, September 19, 2003 12:10 PM
Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


By executing your command, it gave rwx access to everyone, and I still
cannot run Tomcat as another user.  The only user that will start Tomcat
successfully and remain running is root.  All other users get the java
errors (OutofMemoryError & InvocationTargetException)

I'm at a loss...

Denise Mangano
Complus Data Innovations, Inc.
914-747-1200


-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Friday, September 19, 2003 3:04 PM
To: Tomcat Users List
Subject: Re: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


so if you do

chmod -R 777 /usr/local/jakarta-tomcat-4.1.27

you can't run it as another user?

Filip
- Original Message -
From: "Denise Mangano" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, September 19, 2003 12:02 PM
Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


Actually the tomcat-users.xml.new does not exist... Perhaps it's a
temporary file that gets created as Tomcat starts?? There is a
tomcat-users.xml which I added the user into.  I added write permissions
to the conf directory for the owner, and when I went to start Tomcat I
was right back where I started with the Out of Memory errors...

I can start Tomcat as root, and it runs fine.  I changed owner to a
couple of different users & tried running, but same errors occur.  So it
appears that I can only start and run Tomcat as root.  This is obviously
not a good thing to do.  I feel as I am back to square one... Does
anyone please have any suggestions?

Thank you.

Denise Mangano
Complus Data Innovations, Inc.
914-747-1200


-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Friday, September 19, 2003 2:56 PM
To: Tomcat Users List
Subject: Re: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


not sure what is is, but shouldn't the file
/usr/local/jakarta-tomcat-4.1.27/conf/tomcat-users.xml.new

be named
/usr/local/jakarta-tomcat-4.1.27/conf/tomcat-users.xml

try to rename it and start again
Filip
- Original Message -
From: "Denise Mangano" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, September 19, 2003 11:55 AM
Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


Sorry - didn't mean to send that yet...

This is the output I am getting in catalina.out

Sep 19, 2003 2:54:18 PM org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
Sep 19, 2003 2:54:18 PM org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
Sep 19, 2003 2:54:18 PM org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
Sep 19, 2003 2:54:19 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
GlobalResourcesLifecycleListener: Exception processing Global JNDI
Resources
javax.naming.NamingException:
/usr/local/jakarta-tomcat-4.1.27/conf/tomcat-users.xml.new (Permission
denied)
at
org.apache.naming.NamingContext.lookup(NamingContext.java:844)
at
org.apache.naming.NamingContext.lookup(NamingContext.java:194)
at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans
(GlobalResourcesLifecycleListener.java:214)
at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans
(GlobalResourcesLifecycleListener.java:181)
at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEve
nt(GlobalResourcesLifecycleListener.java:149)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:166)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2183)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Starting service Tomcat-Standalone
Apache Tomcat/4.1.27
javax.naming.NamingException:
/usr/local/jakarta

RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError]

2003-09-19 Thread Timothy Halloran
On Fri, 2003-09-19 at 15:02, Denise Mangano wrote:
> Actually the tomcat-users.xml.new does not exist... Perhaps it's a
> temporary file that gets created as Tomcat starts?? There is a
> tomcat-users.xml which I added the user into.  I added write permissions
> to the conf directory for the owner, and when I went to start Tomcat I
> was right back where I started with the Out of Memory errors...

Clearly you had a permissions problem, I looked at the code pointed to
by your exception trace -- but you got there quicker :-)

> I can start Tomcat as root, and it runs fine.  I changed owner to a
> couple of different users & tried running, but same errors occur.  So it
> appears that I can only start and run Tomcat as root.  This is obviously
> not a good thing to do.  I feel as I am back to square one... Does
> anyone please have any suggestions?

OK, double check that you are running the same Linux kernel -- go to
your "/boot" directory and look at all your kernels vmlinuz-(version
strings).  You should get something like:

{gs06:/boot} ll vmlinuz*
lrwxrwxrwx1 root root   19 Aug 20 18:12 vmlinuz ->
vmlinuz-2.4.20-20.9
-rw-r--r--1 root root 1.1M Aug 18 11:57
vmlinuz-2.4.20-20.9
-rw-r--r--1 root root 1.2M Aug 18 11:44
vmlinuz-2.4.20-20.9smp
{gs06:/boot}

I have two kernels (one SMP one single processor)

To determine the current version use "uname -r"

I get:

{gs06:/boot} uname -r
2.4.20-20.9smp


If you have a bunch and the file date looks more recent than your last
reboot you might try booting with the earlier kernel (pick it in lilo
menu -- I think RH7.3 used Lilo.

If no changes...we'll need to think of something else.

> Thank you.
> 
> Denise Mangano
> Complus Data Innovations, Inc.
> 914-747-1200
> 
> 
> -Original Message-
> From: Filip Hanik [mailto:[EMAIL PROTECTED] 
> Sent: Friday, September 19, 2003 2:56 PM
> To: Tomcat Users List
> Subject: Re: Cannot run Tomcat as new user [Was: Urgent! Cannot start
> Tomcat - java.lang.OutOfMemoryError]
> 
> 
> not sure what is is, but shouldn't the file
> /usr/local/jakarta-tomcat-4.1.27/conf/tomcat-users.xml.new
> 
> be named
> /usr/local/jakarta-tomcat-4.1.27/conf/tomcat-users.xml
> 
> try to rename it and start again
> Filip
> - Original Message -
> From: "Denise Mangano" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Friday, September 19, 2003 11:55 AM
> Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start
> Tomcat - java.lang.OutOfMemoryError]
> 
> 
> Sorry - didn't mean to send that yet...
> 
> This is the output I am getting in catalina.out
> 
> Sep 19, 2003 2:54:18 PM org.apache.commons.modeler.Registry loadRegistry
> INFO: Loading registry information
> Sep 19, 2003 2:54:18 PM org.apache.commons.modeler.Registry getRegistry
> INFO: Creating new Registry instance
> Sep 19, 2003 2:54:18 PM org.apache.commons.modeler.Registry getServer
> INFO: Creating MBeanServer
> Sep 19, 2003 2:54:19 PM org.apache.coyote.http11.Http11Protocol init
> INFO: Initializing Coyote HTTP/1.1 on port 8080
> GlobalResourcesLifecycleListener: Exception processing Global JNDI
> Resources
> javax.naming.NamingException:
> /usr/local/jakarta-tomcat-4.1.27/conf/tomcat-users.xml.new (Permission
> denied)
> at
> org.apache.naming.NamingContext.lookup(NamingContext.java:844)
> at
> org.apache.naming.NamingContext.lookup(NamingContext.java:194)
> at
> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans
> (GlobalResourcesLifecycleListener.java:214)
> at
> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans
> (GlobalResourcesLifecycleListener.java:181)
> at
> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEve
> nt(GlobalResourcesLifecycleListener.java:149)
> at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
> pport.java:166)
> at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:2183)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
> at
> org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
> at
> org.apache.catalina.startup.Catalina.process(Catalina.java:180)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> a:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at
> org.apache.catali

RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError]

2003-09-19 Thread Denise Mangano
By executing your command, it gave rwx access to everyone, and I still
cannot run Tomcat as another user.  The only user that will start Tomcat
successfully and remain running is root.  All other users get the java
errors (OutofMemoryError & InvocationTargetException)

I'm at a loss...

Denise Mangano
Complus Data Innovations, Inc.
914-747-1200


-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 19, 2003 3:04 PM
To: Tomcat Users List
Subject: Re: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


so if you do

chmod -R 777 /usr/local/jakarta-tomcat-4.1.27

you can't run it as another user?

Filip
- Original Message -
From: "Denise Mangano" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, September 19, 2003 12:02 PM
Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


Actually the tomcat-users.xml.new does not exist... Perhaps it's a
temporary file that gets created as Tomcat starts?? There is a
tomcat-users.xml which I added the user into.  I added write permissions
to the conf directory for the owner, and when I went to start Tomcat I
was right back where I started with the Out of Memory errors...

I can start Tomcat as root, and it runs fine.  I changed owner to a
couple of different users & tried running, but same errors occur.  So it
appears that I can only start and run Tomcat as root.  This is obviously
not a good thing to do.  I feel as I am back to square one... Does
anyone please have any suggestions?

Thank you.

Denise Mangano
Complus Data Innovations, Inc.
914-747-1200


-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Friday, September 19, 2003 2:56 PM
To: Tomcat Users List
Subject: Re: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


not sure what is is, but shouldn't the file
/usr/local/jakarta-tomcat-4.1.27/conf/tomcat-users.xml.new

be named
/usr/local/jakarta-tomcat-4.1.27/conf/tomcat-users.xml

try to rename it and start again
Filip
- Original Message -
From: "Denise Mangano" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, September 19, 2003 11:55 AM
Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


Sorry - didn't mean to send that yet...

This is the output I am getting in catalina.out

Sep 19, 2003 2:54:18 PM org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
Sep 19, 2003 2:54:18 PM org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
Sep 19, 2003 2:54:18 PM org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
Sep 19, 2003 2:54:19 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
GlobalResourcesLifecycleListener: Exception processing Global JNDI
Resources
javax.naming.NamingException:
/usr/local/jakarta-tomcat-4.1.27/conf/tomcat-users.xml.new (Permission
denied)
at
org.apache.naming.NamingContext.lookup(NamingContext.java:844)
at
org.apache.naming.NamingContext.lookup(NamingContext.java:194)
at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans
(GlobalResourcesLifecycleListener.java:214)
at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans
(GlobalResourcesLifecycleListener.java:181)
at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEve
nt(GlobalResourcesLifecycleListener.java:149)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:166)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2183)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Starting service Tomcat-Standalone
Apache Tomcat/4.1.27
javax.naming.NamingException:
/usr/local/jakarta-tomcat-4.1.27/conf/tomcat-users.xml.new (Permission
denied)
at
org.apache.naming.NamingContext.lookup(NamingContext.java:844)
at
org.apache.naming.NamingContext.lookup(NamingContext.java:194)
at
org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java
:302)
at
org.apache.catalina.core.Cont

RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError]

2003-09-19 Thread Shapira, Yoav

Howdy,
Make sure the tomcat user has write permissions to the directory where
tomcat-users.xml is located as well as the file itself.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Denise Mangano [mailto:[EMAIL PROTECTED]
>Sent: Friday, September 19, 2003 3:03 PM
>To: Tomcat Users List
>Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start
>Tomcat - java.lang.OutOfMemoryError]
>
>Actually the tomcat-users.xml.new does not exist... Perhaps it's a
>temporary file that gets created as Tomcat starts?? There is a
>tomcat-users.xml which I added the user into.  I added write
permissions
>to the conf directory for the owner, and when I went to start Tomcat I
>was right back where I started with the Out of Memory errors...
>
>I can start Tomcat as root, and it runs fine.  I changed owner to a
>couple of different users & tried running, but same errors occur.  So
it
>appears that I can only start and run Tomcat as root.  This is
obviously
>not a good thing to do.  I feel as I am back to square one... Does
>anyone please have any suggestions?
>
>Thank you.
>
>Denise Mangano
>Complus Data Innovations, Inc.
>914-747-1200
>
>
>-Original Message-
>From: Filip Hanik [mailto:[EMAIL PROTECTED]
>Sent: Friday, September 19, 2003 2:56 PM
>To: Tomcat Users List
>Subject: Re: Cannot run Tomcat as new user [Was: Urgent! Cannot start
>Tomcat - java.lang.OutOfMemoryError]
>
>
>not sure what is is, but shouldn't the file
>/usr/local/jakarta-tomcat-4.1.27/conf/tomcat-users.xml.new
>
>be named
>/usr/local/jakarta-tomcat-4.1.27/conf/tomcat-users.xml
>
>try to rename it and start again
>Filip
>- Original Message -
>From: "Denise Mangano" <[EMAIL PROTECTED]>
>To: "Tomcat Users List" <[EMAIL PROTECTED]>
>Sent: Friday, September 19, 2003 11:55 AM
>Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start
>Tomcat - java.lang.OutOfMemoryError]
>
>
>Sorry - didn't mean to send that yet...
>
>This is the output I am getting in catalina.out
>
>Sep 19, 2003 2:54:18 PM org.apache.commons.modeler.Registry
loadRegistry
>INFO: Loading registry information
>Sep 19, 2003 2:54:18 PM org.apache.commons.modeler.Registry getRegistry
>INFO: Creating new Registry instance
>Sep 19, 2003 2:54:18 PM org.apache.commons.modeler.Registry getServer
>INFO: Creating MBeanServer
>Sep 19, 2003 2:54:19 PM org.apache.coyote.http11.Http11Protocol init
>INFO: Initializing Coyote HTTP/1.1 on port 8080
>GlobalResourcesLifecycleListener: Exception processing Global JNDI
>Resources
>javax.naming.NamingException:
>/usr/local/jakarta-tomcat-4.1.27/conf/tomcat-users.xml.new (Permission
>denied)
>at
>org.apache.naming.NamingContext.lookup(NamingContext.java:844)
>at
>org.apache.naming.NamingContext.lookup(NamingContext.java:194)
>at
>org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBean
s
>(GlobalResourcesLifecycleListener.java:214)
>at
>org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBean
s
>(GlobalResourcesLifecycleListener.java:181)
>at
>org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEv
e
>nt(GlobalResourcesLifecycleListener.java:149)
>at
>org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleS
u
>pport.java:166)
>at
>org.apache.catalina.core.StandardServer.start(StandardServer.java:2183)
>at
org.apache.catalina.startup.Catalina.start(Catalina.java:512)
>at
>org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
>at
>org.apache.catalina.startup.Catalina.process(Catalina.java:180)
>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>at
>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
v
>a:39)
>at
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
r
>Impl.java:25)
>at java.lang.reflect.Method.invoke(Method.java:324)
>at
>org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
>Starting service Tomcat-Standalone
>Apache Tomcat/4.1.27
>javax.naming.NamingException:
>/usr/local/jakarta-tomcat-4.1.27/conf/tomcat-users.xml.new (Permission
>denied)
>at
>org.apache.naming.NamingContext.lookup(NamingContext.java:844)
>at
>org.apache.naming.NamingContext.lookup(NamingContext.java:194)
>at
>org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.jav
a
>:302)
>at
>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1173)
>at
>org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)

Re: Cannot run Tomcat as new user [Was: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError]

2003-09-19 Thread Filip Hanik
so if you do

chmod -R 777 /usr/local/jakarta-tomcat-4.1.27

you can't run it as another user?

Filip
- Original Message -
From: "Denise Mangano" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, September 19, 2003 12:02 PM
Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


Actually the tomcat-users.xml.new does not exist... Perhaps it's a
temporary file that gets created as Tomcat starts?? There is a
tomcat-users.xml which I added the user into.  I added write permissions
to the conf directory for the owner, and when I went to start Tomcat I
was right back where I started with the Out of Memory errors...

I can start Tomcat as root, and it runs fine.  I changed owner to a
couple of different users & tried running, but same errors occur.  So it
appears that I can only start and run Tomcat as root.  This is obviously
not a good thing to do.  I feel as I am back to square one... Does
anyone please have any suggestions?

Thank you.

Denise Mangano
Complus Data Innovations, Inc.
914-747-1200


-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Friday, September 19, 2003 2:56 PM
To: Tomcat Users List
Subject: Re: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


not sure what is is, but shouldn't the file
/usr/local/jakarta-tomcat-4.1.27/conf/tomcat-users.xml.new

be named
/usr/local/jakarta-tomcat-4.1.27/conf/tomcat-users.xml

try to rename it and start again
Filip
- Original Message -
From: "Denise Mangano" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, September 19, 2003 11:55 AM
Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


Sorry - didn't mean to send that yet...

This is the output I am getting in catalina.out

Sep 19, 2003 2:54:18 PM org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
Sep 19, 2003 2:54:18 PM org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
Sep 19, 2003 2:54:18 PM org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
Sep 19, 2003 2:54:19 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
GlobalResourcesLifecycleListener: Exception processing Global JNDI
Resources
javax.naming.NamingException:
/usr/local/jakarta-tomcat-4.1.27/conf/tomcat-users.xml.new (Permission
denied)
at
org.apache.naming.NamingContext.lookup(NamingContext.java:844)
at
org.apache.naming.NamingContext.lookup(NamingContext.java:194)
at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans
(GlobalResourcesLifecycleListener.java:214)
at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans
(GlobalResourcesLifecycleListener.java:181)
at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEve
nt(GlobalResourcesLifecycleListener.java:149)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:166)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2183)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Starting service Tomcat-Standalone
Apache Tomcat/4.1.27
javax.naming.NamingException:
/usr/local/jakarta-tomcat-4.1.27/conf/tomcat-users.xml.new (Permission
denied)
at
org.apache.naming.NamingContext.lookup(NamingContext.java:844)
at
org.apache.naming.NamingContext.lookup(NamingContext.java:194)
at
org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java
:302)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1173)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at
org.apache.catalina.core.StandardService.start(StandardService.java:497)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
s

RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError]

2003-09-19 Thread Denise Mangano
Actually the tomcat-users.xml.new does not exist... Perhaps it's a
temporary file that gets created as Tomcat starts?? There is a
tomcat-users.xml which I added the user into.  I added write permissions
to the conf directory for the owner, and when I went to start Tomcat I
was right back where I started with the Out of Memory errors...

I can start Tomcat as root, and it runs fine.  I changed owner to a
couple of different users & tried running, but same errors occur.  So it
appears that I can only start and run Tomcat as root.  This is obviously
not a good thing to do.  I feel as I am back to square one... Does
anyone please have any suggestions?

Thank you.

Denise Mangano
Complus Data Innovations, Inc.
914-747-1200


-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 19, 2003 2:56 PM
To: Tomcat Users List
Subject: Re: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


not sure what is is, but shouldn't the file
/usr/local/jakarta-tomcat-4.1.27/conf/tomcat-users.xml.new

be named
/usr/local/jakarta-tomcat-4.1.27/conf/tomcat-users.xml

try to rename it and start again
Filip
- Original Message -
From: "Denise Mangano" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, September 19, 2003 11:55 AM
Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


Sorry - didn't mean to send that yet...

This is the output I am getting in catalina.out

Sep 19, 2003 2:54:18 PM org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
Sep 19, 2003 2:54:18 PM org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
Sep 19, 2003 2:54:18 PM org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
Sep 19, 2003 2:54:19 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
GlobalResourcesLifecycleListener: Exception processing Global JNDI
Resources
javax.naming.NamingException:
/usr/local/jakarta-tomcat-4.1.27/conf/tomcat-users.xml.new (Permission
denied)
at
org.apache.naming.NamingContext.lookup(NamingContext.java:844)
at
org.apache.naming.NamingContext.lookup(NamingContext.java:194)
at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans
(GlobalResourcesLifecycleListener.java:214)
at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans
(GlobalResourcesLifecycleListener.java:181)
at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEve
nt(GlobalResourcesLifecycleListener.java:149)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:166)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2183)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Starting service Tomcat-Standalone
Apache Tomcat/4.1.27
javax.naming.NamingException:
/usr/local/jakarta-tomcat-4.1.27/conf/tomcat-users.xml.new (Permission
denied)
at
org.apache.naming.NamingContext.lookup(NamingContext.java:844)
at
org.apache.naming.NamingContext.lookup(NamingContext.java:194)
at
org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java
:302)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1173)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at
org.apache.catalina.core.StandardService.start(StandardService.java:497)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
UserDatabaseRealm[Standalone]: Exception looking up UserDatabase under
key UserDatabase
javax.naming.Nam

Re: Cannot run Tomcat as new user [Was: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError]

2003-09-19 Thread Filip Hanik
not sure what is is, but shouldn't the file
/usr/local/jakarta-tomcat-4.1.27/conf/tomcat-users.xml.new

be named
/usr/local/jakarta-tomcat-4.1.27/conf/tomcat-users.xml

try to rename it and start again
Filip
- Original Message -
From: "Denise Mangano" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, September 19, 2003 11:55 AM
Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start
Tomcat - java.lang.OutOfMemoryError]


Sorry - didn't mean to send that yet...

This is the output I am getting in catalina.out

Sep 19, 2003 2:54:18 PM org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
Sep 19, 2003 2:54:18 PM org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
Sep 19, 2003 2:54:18 PM org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
Sep 19, 2003 2:54:19 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
GlobalResourcesLifecycleListener: Exception processing Global JNDI
Resources
javax.naming.NamingException:
/usr/local/jakarta-tomcat-4.1.27/conf/tomcat-users.xml.new (Permission
denied)
at
org.apache.naming.NamingContext.lookup(NamingContext.java:844)
at
org.apache.naming.NamingContext.lookup(NamingContext.java:194)
at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans
(GlobalResourcesLifecycleListener.java:214)
at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans
(GlobalResourcesLifecycleListener.java:181)
at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEve
nt(GlobalResourcesLifecycleListener.java:149)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:166)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2183)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Starting service Tomcat-Standalone
Apache Tomcat/4.1.27
javax.naming.NamingException:
/usr/local/jakarta-tomcat-4.1.27/conf/tomcat-users.xml.new (Permission
denied)
at
org.apache.naming.NamingContext.lookup(NamingContext.java:844)
at
org.apache.naming.NamingContext.lookup(NamingContext.java:194)
at
org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java
:302)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1173)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at
org.apache.catalina.core.StandardService.start(StandardService.java:497)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
UserDatabaseRealm[Standalone]: Exception looking up UserDatabase under
key UserDatabase
javax.naming.NamingException:
/usr/local/jakarta-tomcat-4.1.27/conf/tomcat-users.xml.new (Permission
denied)
at
org.apache.naming.NamingContext.lookup(NamingContext.java:844)
at
org.apache.naming.NamingContext.lookup(NamingContext.java:194)
at
org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java
:302)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1173)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at
org.apache.catalina.core.StandardService.start(StandardService.java:497)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
s

RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError]

2003-09-19 Thread Denise Mangano
Sorry - didn't mean to send that yet...

This is the output I am getting in catalina.out

Sep 19, 2003 2:54:18 PM org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
Sep 19, 2003 2:54:18 PM org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
Sep 19, 2003 2:54:18 PM org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
Sep 19, 2003 2:54:19 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
GlobalResourcesLifecycleListener: Exception processing Global JNDI
Resources
javax.naming.NamingException:
/usr/local/jakarta-tomcat-4.1.27/conf/tomcat-users.xml.new (Permission
denied)
at
org.apache.naming.NamingContext.lookup(NamingContext.java:844)
at
org.apache.naming.NamingContext.lookup(NamingContext.java:194)
at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans
(GlobalResourcesLifecycleListener.java:214)
at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans
(GlobalResourcesLifecycleListener.java:181)
at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEve
nt(GlobalResourcesLifecycleListener.java:149)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:166)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2183)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Starting service Tomcat-Standalone
Apache Tomcat/4.1.27
javax.naming.NamingException:
/usr/local/jakarta-tomcat-4.1.27/conf/tomcat-users.xml.new (Permission
denied)
at
org.apache.naming.NamingContext.lookup(NamingContext.java:844)
at
org.apache.naming.NamingContext.lookup(NamingContext.java:194)
at
org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java
:302)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1173)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at
org.apache.catalina.core.StandardService.start(StandardService.java:497)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
UserDatabaseRealm[Standalone]: Exception looking up UserDatabase under
key UserDatabase
javax.naming.NamingException:
/usr/local/jakarta-tomcat-4.1.27/conf/tomcat-users.xml.new (Permission
denied)
at
org.apache.naming.NamingContext.lookup(NamingContext.java:844)
at
org.apache.naming.NamingContext.lookup(NamingContext.java:194)
at
org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java
:302)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1173)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at
org.apache.catalina.core.StandardService.start(StandardService.java:497)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Catalina.start: LifecycleException:  No UserDatabase component found
under key UserDatabase
LifecycleException:  No UserDatabase component found under key
UserDatabase
at
org.apache.catalina.realm.UserDatabaseRealm.start(