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 init INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true Sep 19, 2003 9:01:25 AM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true Sep 19, 2003 9:01:26 AM org.apache.struts.util.PropertyMessageResources init 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.ini t(ThreadP ool.java:582
RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError]
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 init INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true Sep 19, 2003 9:01:25 AM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true Sep 19, 2003 9:01:26 AM org.apache.struts.util.PropertyMessageResources init 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
RE: Cannot run Tomcat as new user
If ps doesn't show any, there aren't any. What make you think there are ? -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] 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? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cannot run Tomcat as new user
The problem that I am having doesn't appear to make any sense - so unfortunately I am grasping at straws. The common response that I seemed to get from the java forums, the Linux forums, and at times here is a memory issue. However, when starting Tomcat as root these memory problems do not occur. It was suggested that the problem is with the JVM, but it is only starting Tomcat that gives me this problem. I am completely at a loss, but find it hard to believe that there is no solution. Thanks, Denise -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 12:10 PM To: Tomcat Users List Subject: RE: Cannot run Tomcat as new user If ps doesn't show any, there aren't any. What make you think there are ? -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] 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? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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]
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
To me your problem sounds as if some system or user parameter has been set manually to some value and this setting has vanished after the last reboot. -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 6:14 PM To: Tomcat Users List Subject: RE: Cannot run Tomcat as new user The problem that I am having doesn't appear to make any sense - so unfortunately I am grasping at straws. The common response that I seemed to get from the java forums, the Linux forums, and at times here is a memory issue. However, when starting Tomcat as root these memory problems do not occur. It was suggested that the problem is with the JVM, but it is only starting Tomcat that gives me this problem. I am completely at a loss, but find it hard to believe that there is no solution. Thanks, Denise -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 12:10 PM To: Tomcat Users List Subject: RE: Cannot run Tomcat as new user If ps doesn't show any, there aren't any. What make you think there are ? -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] 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? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cannot run Tomcat as new user
The output of ulimit for the user 'jakarta' and root are the same: core file size(blocks, -c) 0 data seg size (kbytes, -d) unlimited file size (blocks, -f) unlimited max locked memory (kbytes, -l) unlimited max memory size (kbytes, -m) 5000 open files(-n) 1024 pipe size (512 bytes, -p) 8 stack size(kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes(-u) 20 virtual memory(kbytes, -v) unlimited When you are suggesting manual settings, do you mean in the OS or in Tomcat itself? I'm going to have to go through my notes, and make sure all my settings are the same - but I can't recall making any special changes to Tomcat. Thanks. Denise -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 12:23 PM To: Tomcat Users List Subject: RE: Cannot run Tomcat as new user To me your problem sounds as if some system or user parameter has been set manually to some value and this setting has vanished after the last reboot. -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 6:14 PM To: Tomcat Users List Subject: RE: Cannot run Tomcat as new user The problem that I am having doesn't appear to make any sense - so unfortunately I am grasping at straws. The common response that I seemed to get from the java forums, the Linux forums, and at times here is a memory issue. However, when starting Tomcat as root these memory problems do not occur. It was suggested that the problem is with the JVM, but it is only starting Tomcat that gives me this problem. I am completely at a loss, but find it hard to believe that there is no solution. Thanks, Denise -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 12:10 PM To: Tomcat Users List Subject: RE: Cannot run Tomcat as new user If ps doesn't show any, there aren't any. What make you think there are ? -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] 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? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cannot run Tomcat as new user
More a OS parameter. (As otherwise tc wouln't run as other user) E.G.: max user processes (-u) 20 max memory size (kbytes, -m) 5000 These are quite low. We have 256 and unlimited. 20 processes per user and especially 5MB memory is not enough to run tomcat. (I'm not shure if these values are ignored for root) -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 6:29 PM To: Tomcat Users List Subject: RE: Cannot run Tomcat as new user When you are suggesting manual settings, do you mean in the OS or in Tomcat itself? I'm going to have to go through my notes, and make sure all my settings are the same - but I can't recall making any special changes to Tomcat. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cannot run Tomcat as new user
Well I'll be I just increased those settings, therefore: max memory size (kbytes, -m) unlimited max user processes(-u) 256 Wouldn't you know it I can now start Tomcat as the user 'jakarta'! So perhaps as you said root ignores those values. A million thanks cannot even cover the gratitude that I feel right now!! So now my question is... I've had those set as 20 5000 for some time now... Why did this OutOfMemoryError just coincidentally occur with the brownout? Lastly, how can I make sure my application itself is not causing the problem. I downloaded and installed Java Memory Profiler and tried to run it on my programs, but it hangs - so I have to try another solution. Well thanks again for your help on this! Denise Mangano Complus Data Innovations, Inc. 914-747-1200 -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 12:46 PM To: Tomcat Users List Subject: RE: Cannot run Tomcat as new user More a OS parameter. (As otherwise tc wouln't run as other user) E.G.: max user processes (-u) 20 max memory size (kbytes, -m) 5000 These are quite low. We have 256 and unlimited. 20 processes per user and especially 5MB memory is not enough to run tomcat. (I'm not shure if these values are ignored for root) -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2003 6:29 PM To: Tomcat Users List Subject: RE: Cannot run Tomcat as new user When you are suggesting manual settings, do you mean in the OS or in Tomcat itself? I'm going to have to go through my notes, and make sure all my settings are the same - but I can't recall making any special changes to Tomcat. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cannot run Tomcat as new user
Denise, Java makes tracking your own memory usage quite difficult, which is good in some ways, not so good in others. What you could try is temorarily removing your web app. Then create a dummy servlet which gets loaded when Tomcat loads. This servlet won't do anything, it will just hang around periodically calling Runtime.getRuntime().gc() followed by Runtime.getRuntime().freeMemory(), logging the result (use a java.util.Timer for this). Then re-enable your web app and see how the total is affected. It's somewhat crude, and will require a several runs to get a half-decent average, but it's better than nothing. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cannot run Tomcat as new user [Was: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError]
Denise Mangano Complus Data Innovations, Inc. 914-747-1200 -Original Message- From: Denise Mangano Sent: Friday, September 19, 2003 2:03 PM To: Tomcat Users List Subject: RE: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError I restored my Tomcat Installation to the way it was previously with my config and webapps. I am going to delete the user 'tomcat'. I am going to create a new user to run Tomcat as. My question now is, should I make any special settings for this user (i.e. Such as Ralph had suggested: ulimit -s 2048 export LD_ASSUME_KERNEL=2.2.5)? Thanks!! Denise Mangano Complus Data Innovations, Inc. 914-747-1200 -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, September 19, 2003 1:40 PM To: Tomcat Users List Subject: RE: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError Howdy, It's very a possible for a user to have much lower ulimit/thread limit/kernel sym version settings than root does... Yoav Shapira Millennium ChemInformatics -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED] Sent: Friday, September 19, 2003 1:33 PM To: Tomcat Users List Subject: RE: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError I think it might be safe to assume the problem was with the user I was running tomcat as, if that makes any sense at all??? After I did what I said below, I realized that I was testing this out as root, and I should try it as other users. I tried it with my login, and I can start Tomcat just fine... I tried it with the user that was running it previously, and that is when Tomcat will not start and I get the same errors... Is it possible for a user to become corrupt?? Denise Mangano Complus Data Innovations, Inc. 914-747-1200 -Original Message- From: Denise Mangano Sent: Friday, September 19, 2003 12:18 PM To: Tomcat Users List Subject: RE: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError I did as you all suggested, and installed a second instance of tomcat. Without changing anything in the configuration, and using the default example webapps everything worked fine. So instead of trying to map my webapp to run off this second instance, I backed up the existing tomcat installation and moved the working one to the original location. I am not sure if doing so was a newbie mistake, but it is still working fine, and I can run all the examples. So is it safe to assume that the problem was with Tomcat? If so, how can I begin to find out exactly what happened... I have a few concerns before I start adding back my config and webapps 1. I would like to test my java app to make sure that the program is not causing (or will not cause) the out of memory error. 2. What is the best procedures for restoring my configuration? I'm concerned that possibly something in my config allowed this to happen... Thanks again to everyone for their help. Denise -Original Message- From: Denise Mangano Sent: Friday, September 19, 2003 11:37 AM To: Tomcat Users List Subject: RE: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError Ok, here is something interesting I wanted to follow Ralph's suggestion of trimming down Tomcat's config, but I wasn't exactly sure what I could or couldn't touch in server.xml. So what I did was backuped up my server.xml - then renamed the server-noexamples.xml.config (shipped with the distro) to server.xml and attempted to start Tomcat Wouldn't you know it, Tomcat started, AND I can get to www.mysite.com:8080 I tried to stop it, and restart it again - and now I am getting the same errors... Does that shed any light? Or should I go with the second install of Tomcat? Thanks again so much for everyone's posts. Denise -Original Message- From: Timothy Halloran [mailto:[EMAIL PROTECTED] Sent: Friday, September 19, 2003 11:25 AM To: Tomcat Users List Subject: RE: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError On Fri, 2003-09-19 at 11:18, Denise Mangano wrote: The filesystem check returns that everything is clean. I ran the test versions of the java programs that are part of my webapp from the command line, and the program executes without a hitch. It makes a URL connection to a remote server and sends data, and then receives a response... So I would assume there is no problem with the java installation?? How do I load a second instance of Tomcat without it interfering with the current installation? Use the TGZ version not RPM and put it in another directory...you'll have to change some variables (as I recall) and save your others. Just run the second tomcat as your local user. I haven't done this in a while but it works fine as long as you don't run them together (if you do you'll need to change ports and such). Thanks! Denise Mangano Complus Data Innovations, Inc. 914-747-1200 -Original Message- From: Timothy Halloran [mailto:[EMAIL PROTECTED] Sent: Friday
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 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
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.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
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 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
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.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
RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError]
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) 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
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-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
RE: Cannot run Tomcat as new user [Was: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError]
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.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
RE: Cannot run Tomcat as new user [Was: Urgent! Cannot startTomcat - java.lang.OutOfMemoryError]
I did as you suggested and this is my output: [EMAIL PROTECTED] boot]# ll vmlinuz* lrwxrwxrwx1 root root 16 Aug 19 14:02 vmlinuz - vmlinuz-2.4.18-3 -rw-r--r--1 root root 1030147 Apr 18 2002 vmlinuz-2.4.18-3 [EMAIL PROTECTED] boot]# uname -r 2.4.18-3 I find it very strange that root can run it fine, but no one else can. I would automatically think permission issue, but even when I had rwx for everyone I still could only run it as root. When I try to run as anyone else I got those two java errors, and the processes would start, but would disappear in a few seconds. Denise Mangano Complus Data Innovations, Inc. 914-747-1200 -Original Message- From: Timothy Halloran [mailto:[EMAIL PROTECTED] Sent: Friday, September 19, 2003 3:12 PM To: Tomcat Users List Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot startTomcat - java.lang.OutOfMemoryError] 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
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 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
RE: Cannot run Tomcat as new user [Was: Urgent! Cannot startTomcat - java.lang.OutOfMemoryError]
By the way - there have been no changes to my server.xml - Tomcat is listening to port 8080 (even though it gets passed control from apache in a live setting) Denise Mangano Complus Data Innovations, Inc. 914-747-1200 -Original Message- From: Denise Mangano Sent: Friday, September 19, 2003 3:16 PM To: Tomcat Users List Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot startTomcat - java.lang.OutOfMemoryError] I did as you suggested and this is my output: [EMAIL PROTECTED] boot]# ll vmlinuz* lrwxrwxrwx1 root root 16 Aug 19 14:02 vmlinuz - vmlinuz-2.4.18-3 -rw-r--r--1 root root 1030147 Apr 18 2002 vmlinuz-2.4.18-3 [EMAIL PROTECTED] boot]# uname -r 2.4.18-3 I find it very strange that root can run it fine, but no one else can. I would automatically think permission issue, but even when I had rwx for everyone I still could only run it as root. When I try to run as anyone else I got those two java errors, and the processes would start, but would disappear in a few seconds. Denise Mangano Complus Data Innovations, Inc. 914-747-1200 -Original Message- From: Timothy Halloran [mailto:[EMAIL PROTECTED] Sent: Friday, September 19, 2003 3:12 PM To: Tomcat Users List Subject: RE: Cannot run Tomcat as new user [Was: Urgent! Cannot startTomcat - java.lang.OutOfMemoryError] 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
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 init INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true Sep 19, 2003 9:01:25 AM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true Sep 19, 2003 9:01:26 AM org.apache.struts.util.PropertyMessageResources init 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.init(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 Complus Data Innovations, Inc. 914-747-1200 -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED] Sent: Friday
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 init INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true Sep 19, 2003 9:01:25 AM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true Sep 19, 2003 9:01:26 AM org.apache.struts.util.PropertyMessageResources init 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.init(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
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 init INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true Sep 19, 2003 9:01:25 AM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true Sep 19, 2003 9:01:26 AM org.apache.struts.util.PropertyMessageResources init 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.init(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
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 init INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true Sep 19, 2003 9:01:25 AM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true Sep 19, 2003 9:01:26 AM org.apache.struts.util.PropertyMessageResources init 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.init(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
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 init INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true Sep 19, 2003 9:01:25 AM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true Sep 19, 2003 9:01:26 AM org.apache.struts.util.PropertyMessageResources init 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.ini 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.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
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 init INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true Sep 19, 2003 9:01:25 AM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true Sep 19, 2003 9:01:26 AM org.apache.struts.util.PropertyMessageResources init 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.ini 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
[5.0.12] New alpha build
A new alpha test build has been released. The most important changes are fixes and improvements in the HTTP connector. Please test it. Downloads: http://jakarta.apache.org/site/binindex.cgi Remy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: new Aspen Group Email
On Thursday 11 September 2003 07:23 pm, you wrote: Can't this address be removed? Please... -- Darryl L. Pierce [EMAIL PROTECTED] Visit the Infobahn Offramp - http://bellsouthpwp.net/m/c/mcpierce What do you care what other people think, Mr. Feynman? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: new Aspen Group Email
I know how you apache guys feel about list-admin duties.. but is there no way to kill this guy's old email for him and for us. When there is a problem, send e-mail to: [EMAIL PROTECTED] e.g., [EMAIL PROTECTED] The list moderator may not be reading the list. --- Noel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
new Aspen Group Email
Due to problems with SPAM, [EMAIL PROTECTED] has been discontinued. Please note my new email address. To prevent automated systems from obtaining my new email address, I will spell out the @ symbol. Please send all future email to: gordon[at]aspengroup.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: new Aspen Group Email
Proposal to remove [EMAIL PROTECTED] from the list. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, September 13, 2003 9:33 AM Subject: new Aspen Group Email Due to problems with SPAM, [EMAIL PROTECTED] has been discontinued. Please note my new email address. To prevent automated systems from obtaining my new email address, I will spell out the @ symbol. Please send all future email to: gordon[at]aspengroup.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
new Aspen Group Email
Due to problems with SPAM, [EMAIL PROTECTED] has been discontinued. Please note my new email address. To prevent automated systems from obtaining my new email address, I will spell out the @ symbol. Please send all future email to: gordon[at]aspengroup.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
new Aspen Group Email
Due to problems with SPAM, [EMAIL PROTECTED] has been discontinued. Please note my new email address. To prevent automated systems from obtaining my new email address, I will spell out the @ symbol. Please send all future email to: gordon[at]aspengroup.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
new Aspen Group Email
Due to problems with SPAM, [EMAIL PROTECTED] has been discontinued. Please note my new email address. To prevent automated systems from obtaining my new email address, I will spell out the @ symbol. Please send all future email to: gordon[at]aspengroup.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
new Aspen Group Email
Due to problems with SPAM, [EMAIL PROTECTED] has been discontinued. Please note my new email address. To prevent automated systems from obtaining my new email address, I will spell out the @ symbol. Please send all future email to: gordon[at]aspengroup.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: new Aspen Group Email
If [EMAIL PROTECTED] has been discontinued, then perhaps the owner of this 'former' email address can no longer send an unsubscribe message. Seriously, I know how you apache guys feel about list-admin duties.. but is there no way to kill this guy's old email for him and for us. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, September 11, 2003 9:01 AM To: [EMAIL PROTECTED] Subject: new Aspen Group Email Due to problems with SPAM, [EMAIL PROTECTED] has been discontinued. Please note my new email address. To prevent automated systems from obtaining my new email address, I will spell out the @ symbol. Please send all future email to: gordon[at]aspengroup.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: new Aspen Group Email
I sent him a email to his new address at [EMAIL PROTECTED] - no reply and he is still on the list. Robert Wynkoop -Original Message- From: Mike Curwen [mailto:[EMAIL PROTECTED] Sent: Thursday, September 11, 2003 9:08 AM To: 'Tomcat Users List' Subject: RE: new Aspen Group Email If [EMAIL PROTECTED] has been discontinued, then perhaps the owner of this 'former' email address can no longer send an unsubscribe message. Seriously, I know how you apache guys feel about list-admin duties.. but is there no way to kill this guy's old email for him and for us. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, September 11, 2003 9:01 AM To: [EMAIL PROTECTED] Subject: new Aspen Group Email Due to problems with SPAM, [EMAIL PROTECTED] has been discontinued. Please note my new email address. To prevent automated systems from obtaining my new email address, I will spell out the @ symbol. Please send all future email to: gordon[at]aspengroup.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
new Aspen Group Email
Due to problems with SPAM, [EMAIL PROTECTED] has been discontinued. Please note my new email address. To prevent automated systems from obtaining my new email address, I will spell out the @ symbol. Please send all future email to: gordon[at]aspengroup.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: new Aspen Group Email
Can't this address be removed? Mr. Michele Neylon Blacknight Solutions http://www.blacknightsolutions.ie/ Probably the cheapest ie's in Ireland Tel. +353 (0)59 9139897 Fax. +353 (0)59 9139897 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 12 September 2003 00:00 To: [EMAIL PROTECTED] Subject: new Aspen Group Email Due to problems with SPAM, [EMAIL PROTECTED] has been discontinued. Please note my new email address. To prevent automated systems from obtaining my new email address, I will spell out the @ symbol. Please send all future email to: gordon[at]aspengroup.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] # This message (and any attachment) is intended only for the recipient and may contain confidential and/or privileged material. If you have received this in error, please contact the sender and delete this message immediately. Disclosure, copying or other action taken in respect of this email or in reliance to it is prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
new Aspen Group Email
Due to problems with SPAM, [EMAIL PROTECTED] has been discontinued. Please note my new email address. To prevent automated systems from obtaining my new email address, I will spell out the @ symbol. Please send all future email to: gordon[at]aspengroup.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: new Aspen Group Email
You need to unsubscribe using your old email address (which you will need to enable so that you can respond to the confirmation email) and then resubscribe using your new address, otherwise you'll generate bounce messages in the mailing list. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 10, 2003 3:44 AM Subject: new Aspen Group Email Due to problems with SPAM, [EMAIL PROTECTED] has been discontinued. Please note my new email address. To prevent automated systems from obtaining my new email address, I will spell out the @ symbol. Please send all future email to: gordon[at]aspengroup.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
new Aspen Group Email
Due to problems with SPAM, [EMAIL PROTECTED] has been discontinued. Please note my new email address. To prevent automated systems from obtaining my new email address, I will spell out the @ symbol. Please send all future email to: gordon[at]aspengroup.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
new Aspen Group Email
Due to problems with SPAM, [EMAIL PROTECTED] has been discontinued. Please note my new email address. To prevent automated systems from obtaining my new email address, I will spell out the @ symbol. Please send all future email to: gordon[at]aspengroup.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
new Aspen Group Email
Due to problems with SPAM, [EMAIL PROTECTED] has been discontinued. Please note my new email address. To prevent automated systems from obtaining my new email address, I will spell out the @ symbol. Please send all future email to: gordon[at]aspengroup.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
new Aspen Group Email
Due to problems with SPAM, [EMAIL PROTECTED] has been discontinued. Please note my new email address. To prevent automated systems from obtaining my new email address, I will spell out the @ symbol. Please send all future email to: gordon[at]aspengroup.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
new Aspen Group Email
Due to problems with SPAM, [EMAIL PROTECTED] has been discontinued. Please note my new email address. To prevent automated systems from obtaining my new email address, I will spell out the @ symbol. Please send all future email to: gordon[at]aspengroup.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[5.0.11] New alpha build
I have released a new alpha test build, with, among others, a fix for the commons-logging classloading issues that were present in previous 5.0.x releases. Please test it. Downloads: http://jakarta.apache.org/site/binindex.cgi I'll post a vote on the build tomorrow. Remy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Running JSP....new to Tomcat 5.0
Hi, How can I setup the server configuration using TOMCAT Ver5.0? I follow the same method for TOMCAT Ver3.0 but it give error as below: SEVERE: Cannot find msg asso. with key stdContext.resourcesStart Document base does not exit or is not a readable directory What is the correct to initialize the docBase? My folder is stored in C:\SLF_proj. Where to put the code in server.xml? Thks!!! __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running JSP....new to Tomcat 5.0
Urm, there is almost nothing in common between setting up Tomcat 3.x and setting up Tomcat 5.x (except that the name of the 'server.xml' file has stayed the same ;-). Almost all of the directories have changed (with the exceptions of 'conf' and 'webapps'), the syntax of 'server.xml' is completely different, if you are using app-context.xml files the location has changed as well as the content. My advice is to go to http://jakarta.apache.org/tomcat/tomcat-5.0-doc/index.html and re-learn how to setup Tomcat as though you never knew how to setup Tomcat 3.x. Amy Cheung [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, How can I setup the server configuration using TOMCAT Ver5.0? I follow the same method for TOMCAT Ver3.0 but it give error as below: SEVERE: Cannot find msg asso. with key stdContext.resourcesStart Document base does not exit or is not a readable directory What is the correct to initialize the docBase? My folder is stored in C:\SLF_proj. Where to put the code in server.xml? Thks!!! __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
New Connection pooling = Apache Connects Maxing out ?
Hello, With some great help from this list the other night I implemented connection pooling on Tomcat using the commons-dbcp package. I am using Tomcat 4.0.4 That seemed to work fine and there are no problems in testing but as soon as I put it live the number of Apache processes rockets through the roof and apache stops accepting connections. The log file says MaxClients reached. This was no problem as MaxClients was set to 20 which was fine with the old (non connection pooling) .war file. So I set up MaxClients to 256 and restarted, now the problem happens again. Why does TOMCAT connection pooling require my Apache web server to make more connections to the client??? This is causing a total site outage as I cannot replicate the problem in any test environment so it is URGENT!! Please Please help. Kind regards, Andoni.
difference between session expired or session new
Hi, I have an app in which users do not have to login, but each user does have its own session. I tried to come with a way to detect whether the users current session has expired, but I can't seem to find a way to differentiate between 'no' session and an 'expired' session. What I had was: if (request.getRequestedSessionId() != null !request.isRequestedSessionIdValid()) { response.sendRedirect(this.getInitParameter(session_timeout_url)); return; } this works, as long as the servlet is not called from a different context in which another session is already active. If I use a sessionlistener to flag somewhere that the session for a certain session id is no longer valid, this 'flag'repository will keep on growing, it would probably take forever to cause problems, still is doesn't seem like a good solution. Why isn't there something like session.isValid(); so that request.getSession(false) returns a session object which can be queried for validness? Now it returns null, which makes it a bit hard to determine session history. Greetz Hans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How many concurrent user on Tomcat and Apache(New Bie)
Can any body tell me that on a Apache web Server(tomcat as worker) hosting web site. How many concurrent user possible if Server has good hardware configuration. Do we need to maintains worker.properties file for many tomcat Instances under Apache.. If any body help me or any suggesstion Thanks Sachin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How many concurrent user on Tomcat and Apache(New Bie)
You only need one workers.properties file. All it does is tell mod_jk.so where to find Tomcat. Regarding how many concurrent users that is impossible to say. It depends on what your definition of good hardware is, as well as the complexity and quality of the web applications you're hosting. It doesn't matter how much hardware you have or how many users you have, a single poorly designed web application can bring even the most robust server to a halt. John Sachin wrote: Can any body tell me that on a Apache web Server(tomcat as worker) hosting web site. How many concurrent user possible if Server has good hardware configuration. Do we need to maintains worker.properties file for many tomcat Instances under Apache.. If any body help me or any suggesstion Thanks Sachin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How many concurrent user on Tomcat and Apache(New Bie)
Hi John, But john i have to deploy my applciation for client now client is ready for each hardware And my appication performance is good. Bu My Client is saying 10,000 concurrent user.. I have found in forum archive that people suffering from problem of concurrency when concurrent user become new 1000 Well my applciation basically handling serveral temporary XML files and at last update data into database. XML file documents. created by application is nearly 2-3 kb But i am not able to judge that what approach should i follow. Well i am thinking that worker.properties file will manage load balancing between several tomcat which work as a worker under Apache So how will i judge that how many tomcat or there is no need for multiple If ant suggesstion then please let me know?? tnanks sachin -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Friday, July 25, 2003 6:03 PM To: Tomcat Users List Subject: Re: How many concurrent user on Tomcat and Apache(New Bie) You only need one workers.properties file. All it does is tell mod_jk.so where to find Tomcat. Regarding how many concurrent users that is impossible to say. It depends on what your definition of good hardware is, as well as the complexity and quality of the web applications you're hosting. It doesn't matter how much hardware you have or how many users you have, a single poorly designed web application can bring even the most robust server to a halt. John Sachin wrote: Can any body tell me that on a Apache web Server(tomcat as worker) hosting web site. How many concurrent user possible if Server has good hardware configuration. Do we need to maintains worker.properties file for many tomcat Instances under Apache.. If any body help me or any suggesstion Thanks Sachin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How many concurrent user on Tomcat and Apache(New Bie)
Suggestion: build a test environment and test. You can't wing it. John Sachin wrote: Hi John, But john i have to deploy my applciation for client now client is ready for each hardware And my appication performance is good. Bu My Client is saying 10,000 concurrent user.. I have found in forum archive that people suffering from problem of concurrency when concurrent user become new 1000 Well my applciation basically handling serveral temporary XML files and at last update data into database. XML file documents. created by application is nearly 2-3 kb But i am not able to judge that what approach should i follow. Well i am thinking that worker.properties file will manage load balancing between several tomcat which work as a worker under Apache So how will i judge that how many tomcat or there is no need for multiple If ant suggesstion then please let me know?? tnanks sachin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how 2 start tomcat from ms-dos command prompt without creating a new window ?
i have an question about how to start the tomcat servlet container as an windows-process from the ms-dos command prompt without getting a new cmd-window. Its that when i start my java server with STARTUP it makes a new command window and starts the new process in this new window. i know what in unix one can write nohup before calling the startscript too not to kill the process if u close ur telnet window, there has to be a way 2 do this, i hope u understand my question, thanx _ MSN Messenger http://www.msn.no/messenger - Den korteste veien mellom deg og dine venner - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how 2 start tomcat from ms-dos command prompt without creatinga new window ?
Install Tomcat as a service. John Me myself wrote: i have an question about how to start the tomcat servlet container as an windows-process from the ms-dos command prompt without getting a new cmd-window. Its that when i start my java server with STARTUP it makes a new command window and starts the new process in this new window. i know what in unix one can write nohup before calling the startscript too not to kill the process if u close ur telnet window, there has to be a way 2 do this, i hope u understand my question, thanx _ MSN Messenger http://www.msn.no/messenger - Den korteste veien mellom deg og dine venner - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how 2 start tomcat from ms-dos command prompt without creating a new window?
Yes, but, would tomcat then start with the windows startup ? and every time i take down the server for a new deployment, would i then need to restart windows all over again for tomcat to start ? That ain't a very good solution, is there not any other way i can do this ? Thanx for ur response. From: John Turner [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: how 2 start tomcat from ms-dos command prompt without creating a new window ? Date: Thu, 24 Jul 2003 15:26:42 -0400 Install Tomcat as a service. John Me myself wrote: i have an question about how to start the tomcat servlet container as an windows-process from the ms-dos command prompt without getting a new cmd-window. Its that when i start my java server with STARTUP it makes a new command window and starts the new process in this new window. i know what in unix one can write nohup before calling the startscript too not to kill the process if u close ur telnet window, there has to be a way 2 do this, i hope u understand my question, thanx _ MSN Messenger http://www.msn.no/messenger - Den korteste veien mellom deg og dine venner - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Hotmail snakker ditt språk! http://www.hotmail.msn.com/cgi-bin/sbox?rru=dasp/lang.asp - Få Hotmail på norsk i dag - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: how 2 start tomcat from ms-dos command prompt without creating a new window ?
-Original Message- From: Me myself [mailto:[EMAIL PROTECTED] Sent: Thursday, July 24, 2003 2:32 PM To: [EMAIL PROTECTED] Subject: Re: how 2 start tomcat from ms-dos command prompt without creating a new window ? Yes, but, would tomcat then start with the windows startup ? Yes, that's the whole point of a Windows Service. You can also set it to start Manually. and every time i take down the server for a new deployment, would i then need to restart windows all over again for tomcat to start ? No, you just restart the service. This is all in the Services control panel app. That ain't a very good solution, is there not any other way i can do this ? You could also just open a command window (or write a batch script) that says catalina.bat run Thanx for ur response. From: John Turner [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: how 2 start tomcat from ms-dos command prompt without creating a new window ? Date: Thu, 24 Jul 2003 15:26:42 -0400 Install Tomcat as a service. John Me myself wrote: i have an question about how to start the tomcat servlet container as an windows-process from the ms-dos command prompt without getting a new cmd-window. Its that when i start my java server with STARTUP it makes a new command window and starts the new process in this new window. i know what in unix one can write nohup before calling the startscript too not to kill the process if u close ur telnet window, there has to be a way 2 do this, i hope u understand my question, thanx _ MSN Messenger http://www.msn.no/messenger - Den korteste veien mellom deg og dine venner - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Hotmail snakker ditt språk! http://www.hotmail.msn.com/cgi-bin/sbox?rru=dasp/lang.asp - Få Hotmail på norsk i dag - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how 2 start tomcat from ms-dos command prompt without creatinga new window ?
Services are very good solutions, that's why they are there. You use the services control panel applet to manage services, there is no need to reboot the machine to stop and start them. John Me myself wrote: Yes, but, would tomcat then start with the windows startup ? and every time i take down the server for a new deployment, would i then need to restart windows all over again for tomcat to start ? That ain't a very good solution, is there not any other way i can do this ? Thanx for ur response. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how 2 start tomcat from ms-dos command prompt without creating a new window ?
There is another solution that I use: in my startup.bat i have a line like this: call %EXECUTABLE% start %CMD_LINE_ARGS% and I changed it in: call %EXECUTABLE% run %CMD_LINE_ARGS% and now it doesn't make another window, it remains in the one that starts the process. I hope it helps. Gabi P.S. this tip is in catalina.sh - try to read its command arguments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how 2 start tomcat from ms-dos command prompt without creating a new window ?
try the dos start command: start tomcat\bin\startup.bat (start /? for help) At 19:17 24.07.2003 +, you wrote: i have an question about how to start the tomcat servlet container as an windows-process from the ms-dos command prompt without getting a new cmd-window. Its that when i start my java server with STARTUP it makes a new command window and starts the new process in this new window. i know what in unix one can write nohup before calling the startscript too not to kill the process if u close ur telnet window, there has to be a way 2 do this, i hope u understand my question, thanx _ MSN Messenger http://www.msn.no/messenger - Den korteste veien mellom deg og dine venner - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
installing new version of mod_jk.so
I am trying to download a previously compiled version of mod_jk.so for AIX from http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.0/bin/aix/ However it seems I can't unpack it into my libexec directory and go - starting apache gives me errors that it cannot load this module. Am I missing a step? Maureen Barger, CIT/ID, Cornell University Ithaca, NY 14850 [EMAIL PROTECTED] http://mo.cit.cornell.edu/ Experience is something you don't get until just after you need it. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Help Creating new Host
Hi I'm using Tomcat 4.1.24 and when I create a new host with the Administration Tool I have to restart the server for the changes to take place. If I don't restart the new host is not available. Is there a way to create a new Host without restarting the server? Thanks Oreste - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help Creating new Host
so far as i know no, cause tomcat had to read the config files to make the changes. bernd At 12:25 07.07.2003 -0400, you wrote: Hi I'm using Tomcat 4.1.24 and when I create a new host with the Administration Tool I have to restart the server for the changes to take place. If I don't restart the new host is not available. Is there a way to create a new Host without restarting the server? Thanks Oreste - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help Creating new Host
bernd pier wrote: so far as i know no, cause tomcat had to read the config files to make the changes. bernd Thanks for your answer. But why with the Administration Tool one can do various configurations with the server running except create a new Host? How do the Tomcat hosting sites do it? Thanks again Oreste - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
New context
Hello, I would like to create (install) a new context (just a direcotry) from my application (in a ServletContextListener per exemple). I had see the ServletManager source and had search in archive mail whitout success. If I use : org.apache.catalina.startup.Embedded, catalina.bat not found this class ! Have you an idea to do this ? Thanks, Elisabeth J. Toulouse _ MSN Search, le moteur de recherche qui pense comme vous ! http://search.msn.fr/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: New context
Just to understand your question... You are trying to dynamically create a new context? Like when Tomcat has already started? _ Atreya Basu Developer, Greenfield Research Inc. e-mail: atreya (at) greenfieldresearch (dot) ca -Original Message- From: Elisabeth Rotbach [mailto:[EMAIL PROTECTED] Sent: July 3, 2003 7:25 AM To: [EMAIL PROTECTED] Subject: New context Hello, I would like to create (install) a new context (just a direcotry) from my application (in a ServletContextListener per exemple). I had see the ServletManager source and had search in archive mail whitout success. If I use : org.apache.catalina.startup.Embedded, catalina.bat not found this class ! Have you an idea to do this ? Thanks, Elisabeth J. Toulouse _ MSN Search, le moteur de recherche qui pense comme vous ! http://search.msn.fr/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: New context
Yes. From: Atreya Basu [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: New context Date: Thu, 03 Jul 2003 08:21:52 -0300 Just to understand your question... You are trying to dynamically create a new context? Like when Tomcat has already started? _ Atreya Basu Developer, Greenfield Research Inc. e-mail: atreya (at) greenfieldresearch (dot) ca -Original Message- From: Elisabeth Rotbach [mailto:[EMAIL PROTECTED] Sent: July 3, 2003 7:25 AM To: [EMAIL PROTECTED] Subject: New context Hello, I would like to create (install) a new context (just a direcotry) from my application (in a ServletContextListener per exemple). I had see the ServletManager source and had search in archive mail whitout success. If I use : org.apache.catalina.startup.Embedded, catalina.bat not found this class ! Have you an idea to do this ? Thanks, Elisabeth J. Toulouse _ MSN Search, le moteur de recherche qui pense comme vous ! http://search.msn.fr/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ MSN Messenger 6 http://g.msn.fr/FR1001/866 : dialoguez en son et en image avec vos amis. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: New context
Okay, So I guess you tried to use the Embedded version of Tomcat. You should have a look at http://www.onjava.com/pub/a/onjava/2002/04/03/tomcat.html That should explain well how to dynamically load a new context. The other option is if you have a Tomcat server running is to use the Manager Application. You probably want to use it to deploy a new Web Application. The thing that you may want to do is use the HTTP command interface to upload a WAR and deploy the application. I think it would go: http://host:port/manager?deploy=/context_path with the web app being upload as a WAR file in a PUT request. This is pretty rough but have you checked out tomcat-docs/manager-howto.html ? That should give you an idea of what is possible using the manager app. There is also a GUI version of the app but I'm guessing that you want to do this programmatically. _ Atreya Basu Developer, Greenfield Research Inc. e-mail: atreya (at) greenfieldresearch (dot) ca -Original Message- From: Elisabeth Rotbach [mailto:[EMAIL PROTECTED] Sent: July 3, 2003 7:25 AM To: [EMAIL PROTECTED] Subject: New context Hello, I would like to create (install) a new context (just a direcotry) from my application (in a ServletContextListener per exemple). I had see the ServletManager source and had search in archive mail whitout success. If I use : org.apache.catalina.startup.Embedded, catalina.bat not found this class ! Have you an idea to do this ? Thanks, Elisabeth J. Toulouse _ MSN Search, le moteur de recherche qui pense comme vous ! http://search.msn.fr/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with new 4.1.24 install
I'm integrating Tomcat 4.1.24 with IIS in a Windows 2000 Server environment. 1. I downloaded and installed the distribution. 2. Downloaded the isapi_redirector.dll and placed it in /conf/ 3. I created the workers.properties and uriworkermap.properties file. 4. Uncommented the APJ13 section of the server.xml file 5. Created the required Windows Registry keys 6. Created a tomcat Virtual Directory in IIS with read, write execute permissions and pointed it to /conf/. 6. Added the ISAPI to IIS and it loaded fine. 7. Shutdown World Wide Web Publishing Service, started Tomcat and restarted WWWPS Service. Now if I open the url: http://127.0.0.1/examples I get the proper screen from Tomcat. If I select the JSP section and then an example (let's say numberguess) I get a Error 500 from Jasper saying it cannot compile. I get the same problem if I try to load using the 127.0.0.1:8080/examples url. Any help would be appreciated. The integration seemed to go fine, I just don't understand why it won't compile JSPs. Could it be a permissions thing? Tom E. Cole, Jr. General Manager, Lamatek, Inc. [EMAIL PROTECTED] http://www.lamatek.com
Re: Problem with new 4.1.24 install
Here might be some reasons why ... http://jakarta.apache.org/tomcat/faq/misc.html#compile -Tim Tom Cole wrote: I'm integrating Tomcat 4.1.24 with IIS in a Windows 2000 Server environment. 1. I downloaded and installed the distribution. 2. Downloaded the isapi_redirector.dll and placed it in /conf/ 3. I created the workers.properties and uriworkermap.properties file. 4. Uncommented the APJ13 section of the server.xml file 5. Created the required Windows Registry keys 6. Created a tomcat Virtual Directory in IIS with read, write execute permissions and pointed it to /conf/. 6. Added the ISAPI to IIS and it loaded fine. 7. Shutdown World Wide Web Publishing Service, started Tomcat and restarted WWWPS Service. Now if I open the url: http://127.0.0.1/examples I get the proper screen from Tomcat. If I select the JSP section and then an example (let's say numberguess) I get a Error 500 from Jasper saying it cannot compile. I get the same problem if I try to load using the 127.0.0.1:8080/examples url. Any help would be appreciated. The integration seemed to go fine, I just don't understand why it won't compile JSPs. Could it be a permissions thing? Tom E. Cole, Jr. General Manager, Lamatek, Inc. [EMAIL PROTECTED] http://www.lamatek.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem with new 4.1.24 install
Howdy, Does it (JSP compilation) work in tomcat stand-alone? Always try that first in order to help distinguish between connector/configuration problems and tomcat internal/configuration problems. Yoav Shapira Millennium ChemInformatics -Original Message- From: Tom Cole [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 9:19 AM To: [EMAIL PROTECTED] Subject: Problem with new 4.1.24 install I'm integrating Tomcat 4.1.24 with IIS in a Windows 2000 Server environment. 1. I downloaded and installed the distribution. 2. Downloaded the isapi_redirector.dll and placed it in /conf/ 3. I created the workers.properties and uriworkermap.properties file. 4. Uncommented the APJ13 section of the server.xml file 5. Created the required Windows Registry keys 6. Created a tomcat Virtual Directory in IIS with read, write execute permissions and pointed it to /conf/. 6. Added the ISAPI to IIS and it loaded fine. 7. Shutdown World Wide Web Publishing Service, started Tomcat and restarted WWWPS Service. Now if I open the url: http://127.0.0.1/examples I get the proper screen from Tomcat. If I select the JSP section and then an example (let's say numberguess) I get a Error 500 from Jasper saying it cannot compile. I get the same problem if I try to load using the 127.0.0.1:8080/examples url. Any help would be appreciated. The integration seemed to go fine, I just don't understand why it won't compile JSPs. Could it be a permissions thing? Tom E. Cole, Jr. General Manager, Lamatek, Inc. [EMAIL PROTECTED] http://www.lamatek.com This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Ann: new bP release now ships w/ Tomcat 5 and has JSTL v1.1.
basicPortal is a Struts CMS app, that requires a DB to run. New release v 97_2 has JSTL v1.1 (for JSP 2) and includes Tomcat 5 and IDE integrated. (Prior release was JSTL 1.03 for JSP 1.2) Download links from baseBeans.com -- Vic Cekvenich, Struts Instructor, 1-800-917-JAVA Advanced a href =baseBeans.comStruts Training/a and project recovery in North East. Open Source a href =baseBeans.comContent Management/a basicPortal sofware Best practicea href =baseBeans.comStruts Support/a v.1.1 helper ScafflodingXPress - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Upgrade or new install?
I'm currently running Tomcat 4.1.18 and mySQL 3.23.54 on Red Hat 8.0. I haven't installed any connectors, and although I am running Tomcat on port 8080, I'm not currently running Apache (Tomcat provides all the web server I really need). This is really a learning/development system on my home network, and unless some hacker has singled me out and cracked my password, I'm the only person who ever uses the machine. I am also a Linux novice, so it's a bit more difficult for me to figure out installs, etc. than it would be for someone with a bit more experience. I need to install an application onto this machine for work, and have been told that it requires Tomcat 4.1.24 and mySQL 4.0.13, along with the mySQL connector 3.0.8. Would it be easier/better for me to try to upgrade the versions of Tomcat and mySQL that I have, install the new versions in their own directory and just ignore the old ones, or delete the old ones entirely before installing the new ones from scratch? Also, when I installed Tomcat 4.1.18, I did it from RPM and later discovered all kinds of special features (non-standard setups, standard directories missing, etc.). Would it be better for me to use a more generic install? Backing up the few projects I have under the Tomcat directory, and the mySQL databases I've been playing around with, isn't a problem -- there really isn't all that much there, and they're easy to restore to the appropriate places. I'm looking for how to achieve the goal (Tomcat 4.1.24 connected to mySQL 4.0.13) with the least amount of frustration possible for a Linux novice. I don't really care if it's the most efficient way, as long as it's clear and hard to screw up. Thanks, Lisa - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Upgrade or new install?
Hello - I can't really address your questions relating to MySQL, but I can help you out relating to Tomcat. In my opinion, this is how I would proceed given your situation: - stop Tomcat 4.1.18. Make sure it doesn't start on boot by removing the tomcat startup script from the boot sequence (we can help you on this if you need it) - download the binary install of the latest JDK. Unpack it, move it to a reasonable location, and set the JAVA_HOME environment variable to its location - download the binary install of Tomcat 4.1.24. Unpack it, move it to a reasonable location, like /usr/local/tomcat-4124, and set the CATALINA_HOME environment variable to its location - upgrade your MySQL (not sure on the best way to suggest you do this) - get the latest MySQL JDBC driver, or the one that is compatible with MySQL 4.0.13, copy the .jar file to CATALINA_HOME/tomcat/common/lib My HOWTOs describe steps 2 and 3 above: http://www.johnturner.com/howto. The version numbers for the JDK and Tomcat are a little old, but the steps are the same. Ignore the sections on installing Apache and installing a Connector. Then, to start Tomcat, all you would do is use $CATALINA_HOME/bin/startup.sh from the command line. You might consider changing server.xml to use port 80 instead of 8080 to make things easier. HTH John On Fri, 20 Jun 2003 11:22:01 -0400, Lisa Foister [EMAIL PROTECTED] wrote: I'm currently running Tomcat 4.1.18 and mySQL 3.23.54 on Red Hat 8.0. I haven't installed any connectors, and although I am running Tomcat on port 8080, I'm not currently running Apache (Tomcat provides all the web server I really need). This is really a learning/development system on my home network, and unless some hacker has singled me out and cracked my password, I'm the only person who ever uses the machine. I am also a Linux novice, so it's a bit more difficult for me to figure out installs, etc. than it would be for someone with a bit more experience. I need to install an application onto this machine for work, and have been told that it requires Tomcat 4.1.24 and mySQL 4.0.13, along with the mySQL connector 3.0.8. Would it be easier/better for me to try to upgrade the versions of Tomcat and mySQL that I have, install the new versions in their own directory and just ignore the old ones, or delete the old ones entirely before installing the new ones from scratch? Also, when I installed Tomcat 4.1.18, I did it from RPM and later discovered all kinds of special features (non-standard setups, standard directories missing, etc.). Would it be better for me to use a more generic install? Backing up the few projects I have under the Tomcat directory, and the mySQL databases I've been playing around with, isn't a problem -- there really isn't all that much there, and they're easy to restore to the appropriate places. I'm looking for how to achieve the goal (Tomcat 4.1.24 connected to mySQL 4.0.13) with the least amount of frustration possible for a Linux novice. I don't really care if it's the most efficient way, as long as it's clear and hard to screw up. Thanks, Lisa - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] how to extract a new autoindex after inserting with a CachedRowSet (possible bug)
Hi List, I know this is OT but a post in more Java/DB related lists has brought no result :( I am using sun.jdbc.rowSet.CachedRowSet within my app and managed to get it to work now. The problem I have is this, if I insert a new row into the CachedRowSet and write the data back to the db by calling crst.acceptChanges() the data is inserted into the table allright - But, I do not get the autocreated index for the new row back - although the API doc states that: ...When the method acceptChanges executes successfully, it replaces the original value of the rowset with the current value... However, a crst.getObject(INDEX_COLUMN) returns null afterwards. I am using MySQL (4.0.12) with the latest driver 3.0.8. Is this a bug? Or am I doing something wrong? I hope that one of you gurus out there can help me out. Thanks, Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Create a new lib folder
Hi, I am trying to get the send mail example working, and previous questions I asked, discovered that the mail.jar and activation.jar files need to be in a lib folder. It is also my understanding that this lib folder can be local to the application of global. When the file are in the common\lib folder everything is ok. However when I put them in the local lib folder (inside the web-inf folder) the example does not work. Can I have a local lib folder? Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Create a new lib folder
Howdy, You can, and it's encouraged. The app development guide has details and an example: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html Yoav Shapira Millennium ChemInformatics -Original Message- From: Mark Irvine LCGI [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 28, 2003 2:19 PM To: [EMAIL PROTECTED] Subject: Create a new lib folder Hi, I am trying to get the send mail example working, and previous questions I asked, discovered that the mail.jar and activation.jar files need to be in a lib folder. It is also my understanding that this lib folder can be local to the application of global. When the file are in the common\lib folder everything is ok. However when I put them in the local lib folder (inside the web-inf folder) the example does not work. Can I have a local lib folder? Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Create a new lib folder
Yoav, I have read the some of the text at the URL you sent. However, and I think it was you who help me with a previous problem I had with the sendmailservlet example. You suggested coping the mail and activation jar file to a local lib - however the page still through an exception. It would only work if the files were both in the common\lib folder. Have you ever seen this before? Mark -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 28 May 2003 20:44 To: Tomcat Users List; [EMAIL PROTECTED] Subject: RE: Create a new lib folder Howdy, You can, and it's encouraged. The app development guide has details and an example: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html Yoav Shapira Millennium ChemInformatics -Original Message- From: Mark Irvine LCGI [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 28, 2003 2:19 PM To: [EMAIL PROTECTED] Subject: Create a new lib folder Hi, I am trying to get the send mail example working, and previous questions I asked, discovered that the mail.jar and activation.jar files need to be in a lib folder. It is also my understanding that this lib folder can be local to the application of global. When the file are in the common\lib folder everything is ok. However when I put them in the local lib folder (inside the web-inf folder) the example does not work. Can I have a local lib folder? Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Ann: new bB release
basicPortal is an open source Portal app that stores content via DB access, a sample Struts v.1 webapp. It is built on scaffoldingXPress, Struts v1.1 best practices, commercially supported, with JSTL and DAO. Both are available on http://basicPortal.sf.net New release (v095) includes a video demo sample, Resin (as did old version), reporting (helper based on Jasper), includes stress test, async operations, options collection example and mis. fixes. I intend to user Resin 3 ASAP. .V PS: In the next day I will announce a special rate only for the MVC mail list (on baseBeans.com) to sign up for an online advanced Struts class that will cover Master Detail Processing, Reporting, Security, etc. Online web class will star -- Vic Cekvenich, Struts Instructor, 1-800-917-JAVA Advanced a href =baseBeans.comStruts Training/a and project recovery in North East. Open Source a href =baseBeans.comContent Management/a basicPortal sofware Best practicea href =baseBeans.comStruts Support/a v.1.1 helper ScafflodingXPress - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Not seeing new classes
I'm playing with the Tomcat example jsp files, specifically the date.jsp file. I can add a statement like: %= new java.util.Date() % br / to kick out the current date as a string, but when I try to access a java class I've written, I get a 'cannot resolve symbol'. The error happens as the jsp is being compiled. Here's the offending statement: %= Yada.getString() % br / Here's the class definition: public class Yada { public static String getString() { return Hello from Yada.getString(); } } The Yada.java and Yada.class file lives in the WEB-INF\classes directory. The WEB-INF\classes directory is in the classpath as per the screen dump I'm getting. Frank = __ My full time permanent email address is always: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more http://tax.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Not seeing new classes
-Original Message- From: Frank Garber [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 10:06 PM To: [EMAIL PROTECTED] Subject: Not seeing new classes I'm playing with the Tomcat example jsp files, specifically the date.jsp file. I can add a statement like: %= new java.util.Date() % br / to kick out the current date as a string, but when I try to access a java class I've written, I get a 'cannot resolve symbol'. The error happens as the jsp is being compiled. Here's the offending statement: %= Yada.getString() % br / Here's the class definition: public class Yada { public static String getString() { return Hello from Yada.getString(); } } The Yada.java and Yada.class file lives in the WEB-INF\classes directory. The WEB-INF\classes directory is in the classpath as per the screen dump I'm getting. Frank = Hi Frank, just asking a maybe stupid question... but have you reloaded the examples webapp through the webapp-manager? regards, Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Not seeing new classes
Does your JSP page include the right import declaration, something like this: %@ page contentType=text/html; charset=iso-8859-1 language=java import=java.sql.*,innovtech.util.*% Note the import attributte. -Brian -Original Message- From: Jan Behrens [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 12:09 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: RE: Not seeing new classes -Original Message- From: Frank Garber [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 10:06 PM To: [EMAIL PROTECTED] Subject: Not seeing new classes I'm playing with the Tomcat example jsp files, specifically the date.jsp file. I can add a statement like: %= new java.util.Date() % br / to kick out the current date as a string, but when I try to access a java class I've written, I get a 'cannot resolve symbol'. The error happens as the jsp is being compiled. Here's the offending statement: %= Yada.getString() % br / Here's the class definition: public class Yada { public static String getString() { return Hello from Yada.getString(); } } The Yada.java and Yada.class file lives in the WEB-INF\classes directory. The WEB-INF\classes directory is in the classpath as per the screen dump I'm getting. Frank = Hi Frank, just asking a maybe stupid question... but have you reloaded the examples webapp through the webapp-manager? regards, Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Not seeing new classes
Yes, I did a 'Reload' and a Stop/Start but neither helped. This seems like a no brainer but the heck if I can get it to work. Can you try doing the same on your sytem? Thanks, Frank --- Jan Behrens [EMAIL PROTECTED] wrote: -Original Message- From: Frank Garber [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 10:06 PM To: [EMAIL PROTECTED] Subject: Not seeing new classes I'm playing with the Tomcat example jsp files, specifically the date.jsp file. I can add a statement like: %= new java.util.Date() % br / to kick out the current date as a string, but when I try to access a java class I've written, I get a 'cannot resolve symbol'. The error happens as the jsp is being compiled. Here's the offending statement: %= Yada.getString() % br / Here's the class definition: public class Yada { public static String getString() { return Hello from Yada.getString(); } } The Yada.java and Yada.class file lives in the WEB-INF\classes directory. The WEB-INF\classes directory is in the classpath as per the screen dump I'm getting. Frank = Hi Frank, just asking a maybe stupid question... but have you reloaded the examples webapp through the webapp-manager? regards, Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = __ My full time permanent email address is always: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more http://tax.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Not seeing new classes
Brian, Thanks for the reply. No, I didn't have an import because I'm using the default package (that is no package statement). I did add your import statement below, minus the innovtech.util.*, and it had no affect. If you have any other thoughts, please, please let me know. I've been struggling with this for awhile... Thanks, Frank --- Brian Menke [EMAIL PROTECTED] wrote: Does your JSP page include the right import declaration, something like this: %@ page contentType=text/html; charset=iso-8859-1 language=java import=java.sql.*,innovtech.util.*% Note the import attributte. -Brian -Original Message- From: Jan Behrens [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 12:09 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: RE: Not seeing new classes -Original Message- From: Frank Garber [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 10:06 PM To: [EMAIL PROTECTED] Subject: Not seeing new classes I'm playing with the Tomcat example jsp files, specifically the date.jsp file. I can add a statement like: %= new java.util.Date() % br / to kick out the current date as a string, but when I try to access a java class I've written, I get a 'cannot resolve symbol'. The error happens as the jsp is being compiled. Here's the offending statement: %= Yada.getString() % br / Here's the class definition: public class Yada { public static String getString() { return Hello from Yada.getString(); } } The Yada.java and Yada.class file lives in the WEB-INF\classes directory. The WEB-INF\classes directory is in the classpath as per the screen dump I'm getting. Frank = Hi Frank, just asking a maybe stupid question... but have you reloaded the examples webapp through the webapp-manager? regards, Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = __ My full time permanent email address is always: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more http://tax.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Not seeing new classes
Is you classes in a package? such as com.frank.yada It was my understanding from other posts I have seen on this list, that Tomcat will not pick up classes not in a package -Original Message- From: Frank Garber [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 1:21 PM To: Tomcat Users List Subject: RE: Not seeing new classes Yes, I did a 'Reload' and a Stop/Start but neither helped. This seems like a no brainer but the heck if I can get it to work. Can you try doing the same on your sytem? Thanks, Frank --- Jan Behrens [EMAIL PROTECTED] wrote: -Original Message- From: Frank Garber [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 10:06 PM To: [EMAIL PROTECTED] Subject: Not seeing new classes I'm playing with the Tomcat example jsp files, specifically the date.jsp file. I can add a statement like: %= new java.util.Date() % br / to kick out the current date as a string, but when I try to access a java class I've written, I get a 'cannot resolve symbol'. The error happens as the jsp is being compiled. Here's the offending statement: %= Yada.getString() % br / Here's the class definition: public class Yada { public static String getString() { return Hello from Yada.getString(); } } The Yada.java and Yada.class file lives in the WEB-INF\classes directory. The WEB-INF\classes directory is in the classpath as per the screen dump I'm getting. Frank = Hi Frank, just asking a maybe stupid question... but have you reloaded the examples webapp through the webapp-manager? regards, Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = __ My full time permanent email address is always: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more http://tax.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Not seeing new classes
Frank, you have to import the java class that you wrote in jsp code even if the class is in the classes folder of the same context... At 03:24 PM 4/4/2003, you wrote: Brian, Thanks for the reply. No, I didn't have an import because I'm using the default package (that is no package statement). I did add your import statement below, minus the innovtech.util.*, and it had no affect. If you have any other thoughts, please, please let me know. I've been struggling with this for awhile... Thanks, Frank --- Brian Menke [EMAIL PROTECTED] wrote: Does your JSP page include the right import declaration, something like this: %@ page contentType=text/html; charset=iso-8859-1 language=java import=java.sql.*,innovtech.util.*% Note the import attributte. -Brian -Original Message- From: Jan Behrens [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 12:09 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: RE: Not seeing new classes -Original Message- From: Frank Garber [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 10:06 PM To: [EMAIL PROTECTED] Subject: Not seeing new classes I'm playing with the Tomcat example jsp files, specifically the date.jsp file. I can add a statement like: %= new java.util.Date() % br / to kick out the current date as a string, but when I try to access a java class I've written, I get a 'cannot resolve symbol'. The error happens as the jsp is being compiled. Here's the offending statement: %= Yada.getString() % br / Here's the class definition: public class Yada { public static String getString() { return Hello from Yada.getString(); } } The Yada.java and Yada.class file lives in the WEB-INF\classes directory. The WEB-INF\classes directory is in the classpath as per the screen dump I'm getting. Frank = Hi Frank, just asking a maybe stupid question... but have you reloaded the examples webapp through the webapp-manager? regards, Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = __ My full time permanent email address is always: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more http://tax.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Vladimer Shioshvili QRC Division of Macro International Inc. 7315 Wisconsin Avenue, Suite 400W Bethesda, MD 20814 Phone: (301) 657 3077 ext. 155 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Not seeing new classes
Hi Frank. just another thought... do the following: your class Yada: package myYada; public class Yada { public static String getString() { return Hello from Yada.getString(); } } store compile that in: WEB-INF\classes\myYada\ add the following to your date.jsp instead of %@ page session=false% right at the top: [EMAIL PROTECTED] contentType=text/html session=false import=myYada.*% and reload the examples webapp HTH jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Not seeing new classes
Your a live saver! That did it!! Just moving it into the util package solved the problem THanks --- PELOQUIN,JEFFREY (HP-Boise,ex1) [EMAIL PROTECTED] wrote: Is you classes in a package? such as com.frank.yada It was my understanding from other posts I have seen on this list, that Tomcat will not pick up classes not in a package -Original Message- From: Frank Garber [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 1:21 PM To: Tomcat Users List Subject: RE: Not seeing new classes Yes, I did a 'Reload' and a Stop/Start but neither helped. This seems like a no brainer but the heck if I can get it to work. Can you try doing the same on your sytem? Thanks, Frank --- Jan Behrens [EMAIL PROTECTED] wrote: -Original Message- From: Frank Garber [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 10:06 PM To: [EMAIL PROTECTED] Subject: Not seeing new classes I'm playing with the Tomcat example jsp files, specifically the date.jsp file. I can add a statement like: %= new java.util.Date() % br / to kick out the current date as a string, but when I try to access a java class I've written, I get a 'cannot resolve symbol'. The error happens as the jsp is being compiled. Here's the offending statement: %= Yada.getString() % br / Here's the class definition: public class Yada { public static String getString() { return Hello from Yada.getString(); } } The Yada.java and Yada.class file lives in the WEB-INF\classes directory. The WEB-INF\classes directory is in the classpath as per the screen dump I'm getting. Frank = Hi Frank, just asking a maybe stupid question... but have you reloaded the examples webapp through the webapp-manager? regards, Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = __ My full time permanent email address is always: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more http://tax.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = __ My full time permanent email address is always: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more http://tax.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Not seeing new classes
Your a live saver! That did it!! Just moving it into the util package solved the problem THanks --- Jan Behrens [EMAIL PROTECTED] wrote: Hi Frank. just another thought... do the following: your class Yada: package myYada; public class Yada { public static String getString() { return Hello from Yada.getString(); } } store compile that in: WEB-INF\classes\myYada\ add the following to your date.jsp instead of %@ page session=false% right at the top: [EMAIL PROTECTED] contentType=text/html session=false import=myYada.*% and reload the examples webapp HTH jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = __ My full time permanent email address is always: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more http://tax.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: MBeanException on init new Realm class
It's sparsely documented (and AFAIK only at all for 4.1.18), but it comes up on this list like clockwork ;-). You need to do a better search on the archives. You need to create an mbeans-descriptors.xml file (in your case, just copy the JDBCRealm stuff and change the name), usually in the same package as your Realm, and package it in the same jar file as your Realm. Then set the 'descriptors' attribute on the ServerLifeCycleListener to point to your mbeans-descriptors.xml. e.g. : Listener className=org.apache.catalina.mbeans.ServerLifeCycleListener descriptors=/com/myfirm/mypackage/realm/mbeams-descriptors.xml / G. Wade Johnson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am working on a Tomcat-based server (4.1.18). I've checked the list archive without a match. The particular application required an authentication model that was close-to but not quite the same as JDBCRealm. I wrote a new class that extends JDBCRealm to add the needed behavior. When I restart the Tomcat server, I get the following exception: ServerLifecycleListener: createMBeans: MBeanException java.lang.Exception: ManagedBean is not found with CryptJDBCRealm at org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:614) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecy cleListener.java:574) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecy cleListener.java:783) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecy cleListener.java:751) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecy cleListener.java:339) at org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEvent(ServerLife cycleListener.java:206) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor t.java:166) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2182) 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.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) The code is called. It does function. My class basically overrides the method public synchronized Principal authenticate(Connection dbConnection, String username, String credentials); There are no other methods in the class. Any thoughts, G. Wade - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: MBeanException on init new Realm class
Thanks for the response. (Apparently, all of the list archives are _not_ created equal.shrug/) I've attempted this change and ended up with another problem. Now I exception with: ServerLifecycleListener: createMBeans: MBeanException java.lang.ClassCastException at org.apache.commons.modeler.ManagedBean.createMBean(ManagedBean.java:386) at org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:620) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:574) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:783) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:751) Checking the code in org.apache.commons.modeler.ManagedBean.createMBean() shows the exception is occurring in this code: Class clazz = null; try { clazz = Class.forName(getClassName()); } catch (Exception e) { throw new MBeanException (e, Cannot load ModelMBean class + getClassName()); } // Create a new ModelMBean instance ModelMBean mbean = null; try { // exception occurs here v --- mbean = (ModelMBean) clazz.newInstance(); mbean.setModelMBeanInfo(createMBeanInfo()); } catch (MBeanException e) { As near as I can tell, this method has not even accessed my object yet. Obviously, I'm baffled. Any clues that can help me track this further? Thanks again, G. Wade Bill Barker wrote: It's sparsely documented (and AFAIK only at all for 4.1.18), but it comes up on this list like clockwork ;-). You need to do a better search on the archives. You need to create an mbeans-descriptors.xml file (in your case, just copy the JDBCRealm stuff and change the name), usually in the same package as your Realm, and package it in the same jar file as your Realm. Then set the 'descriptors' attribute on the ServerLifeCycleListener to point to your mbeans-descriptors.xml. e.g. : Listener className=org.apache.catalina.mbeans.ServerLifeCycleListener descriptors=/com/myfirm/mypackage/realm/mbeams-descriptors.xml / G. Wade Johnson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am working on a Tomcat-based server (4.1.18). I've checked the list archive without a match. The particular application required an authentication model that was close-to but not quite the same as JDBCRealm. I wrote a new class that extends JDBCRealm to add the needed behavior. When I restart the Tomcat server, I get the following exception: ServerLifecycleListener: createMBeans: MBeanException java.lang.Exception: ManagedBean is not found with CryptJDBCRealm at org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:614) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecy cleListener.java:574) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecy cleListener.java:783) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecy cleListener.java:751) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecy cleListener.java:339) at org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEvent(ServerLife cycleListener.java:206) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor t.java:166) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2182) 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.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) The code is called. It does function. My class basically overrides the method public synchronized Principal authenticate(Connection dbConnection, String username, String credentials); There are no other methods in the class. Any thoughts, G. Wade - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands
Re: MBeanException on init new Realm class - FIXED
I found the solution to my final problem on this. For the CryptJDBCRealm class, the mbean-descriptor is exactly the same as the one for JDBCRealm except for two attributes: name and type. mbean name=CryptJDBCRealm className=org.apache.catalina.mbeans.ClassNameMBean description=Extension of domain=Catalina group=Realm type=com.abbnm.realm.CryptJDBCRealm ... Don't change the 'className' attribute like I did. You'll get the ClassCastException I reported below. BTW, it is important not to change configuration files you don't understand when you are low on caffeine.shrug/ Thanks for everyone's help. G. Wade G. Wade Johnson wrote: Thanks for the response. (Apparently, all of the list archives are _not_ created equal.shrug/) I've attempted this change and ended up with another problem. Now I exception with: ServerLifecycleListener: createMBeans: MBeanException java.lang.ClassCastException at org.apache.commons.modeler.ManagedBean.createMBean(ManagedBean.java:386) at org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:620) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:574) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:783) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:751) Checking the code in org.apache.commons.modeler.ManagedBean.createMBean() shows the exception is occurring in this code: Class clazz = null; try { clazz = Class.forName(getClassName()); } catch (Exception e) { throw new MBeanException (e, Cannot load ModelMBean class + getClassName()); } // Create a new ModelMBean instance ModelMBean mbean = null; try { // exception occurs here v --- mbean = (ModelMBean) clazz.newInstance(); mbean.setModelMBeanInfo(createMBeanInfo()); } catch (MBeanException e) { As near as I can tell, this method has not even accessed my object yet. Obviously, I'm baffled. Any clues that can help me track this further? Thanks again, G. Wade Bill Barker wrote: It's sparsely documented (and AFAIK only at all for 4.1.18), but it comes up on this list like clockwork ;-). You need to do a better search on the archives. You need to create an mbeans-descriptors.xml file (in your case, just copy the JDBCRealm stuff and change the name), usually in the same package as your Realm, and package it in the same jar file as your Realm. Then set the 'descriptors' attribute on the ServerLifeCycleListener to point to your mbeans-descriptors.xml. e.g. : Listener className=org.apache.catalina.mbeans.ServerLifeCycleListener descriptors=/com/myfirm/mypackage/realm/mbeams-descriptors.xml / G. Wade Johnson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am working on a Tomcat-based server (4.1.18). I've checked the list archive without a match. The particular application required an authentication model that was close-to but not quite the same as JDBCRealm. I wrote a new class that extends JDBCRealm to add the needed behavior. When I restart the Tomcat server, I get the following exception: ServerLifecycleListener: createMBeans: MBeanException java.lang.Exception: ManagedBean is not found with CryptJDBCRealm at org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:614) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecy cleListener.java:574) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecy cleListener.java:783) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecy cleListener.java:751) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecy cleListener.java:339) at org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEvent(ServerLife cycleListener.java:206) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor t.java:166) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2182) 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.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke
MBeanException on init new Realm class
I am working on a Tomcat-based server (4.1.18). I've checked the list archive without a match. The particular application required an authentication model that was close-to but not quite the same as JDBCRealm. I wrote a new class that extends JDBCRealm to add the needed behavior. When I restart the Tomcat server, I get the following exception: ServerLifecycleListener: createMBeans: MBeanException java.lang.Exception: ManagedBean is not found with CryptJDBCRealm at org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:614) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:574) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:783) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:751) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:339) at org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEvent(ServerLifecycleListener.java:206) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2182) 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.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) The code is called. It does function. My class basically overrides the method public synchronized Principal authenticate(Connection dbConnection, String username, String credentials); There are no other methods in the class. Any thoughts, G. Wade - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
new sample best practice Struts data driven web app for Tomcat5/Resin 3
I released a new basicPortal implementation called bP v0.8k available for download on basicPortal.sf.net. - The new version is same simple bean has a dao helper design, but it uses ibatis.com db layer. (the older design used RowSet) Ibatis db layer is very nice. - It now works fine and is tested with MYSQL. (and pgSQL) - It is build for JSP 2.0 containers, like a late build of resin 3 and tomcat 5, tested to work with both (but could be converted to JSP 1.2 with addition of the c tag) - It now has a list of maps backed beans for more flexibility. (old design was rows of columns), aka list backed bean. - It uses display tag (struts menu, JSP2, JSTL, tiles, etc.) - Like before, the base action dispatches, DAO is a interface (so you do not have to use iBatis db layer) and beans knows how to CRUD, via very nice OO. Of course... still more to do .V - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
TC 3.3.1 new tomcat.sh
Hi, I just tried the newest version of tomcat.sh in the 3.3.1 version of TC Works like a charme (I need the JDPA support which I hardcoded before) One small comment (subject for discussion): I think it would make sense to change # Read local properties if [ -f $HOME/.tomcatrc ] ; then . $HOME/.tomcatrc fi to # Read local properties if [ -f ../.tomcatrc ] ; then . ../.tomcatrc fi Note the .. instead the $HOME My setup: I have 4 different Tomcats installed which use all the same Tomcat installation in in TOMCAT_HOME (/usr/tomcat). BTW. I have 4 tomcat directories with 4 bin and conf dirs set up for this. Is there a simpler way of distinguishing the different profiles? All 4 Tomcats need different memory settings -Xms and -Xmx Currently $HOME/.tomcatrc points to a single profile configuration With my change every tomcat gets its own configuration .tomcatrc file instead of a single global one. If we decide to leave it as it is, we might consider to change the $HOME to $TOMCAT_HOME for consistency. What do you think? Regards, Hans Hans Schmid einsurance Agency AG Information Technology Bayerstrasse 33 80335 München Tel: +49-89-55292-860 Fax: +49-89-55292-855 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TC 3.3.1 new tomcat.sh
Urm, this is probably better suited to the tomcat-dev list. Replies intermixed. Hans Schmid [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I just tried the newest version of tomcat.sh in the 3.3.1 version of TC Works like a charme (I need the JDPA support which I hardcoded before) One small comment (subject for discussion): I think it would make sense to change # Read local properties if [ -f $HOME/.tomcatrc ] ; then . $HOME/.tomcatrc fi to # Read local properties if [ -f ../.tomcatrc ] ; then . ../.tomcatrc fi Note the .. instead the $HOME I don't particularly like it, since it depends on where the script is lauched from. What I, personally, do in my init.d scripts is something like: HOME=/path/to/this/tomcat/home $TOMCAT_INSTALL/bin/startup.sh My setup: I have 4 different Tomcats installed which use all the same Tomcat installation in in TOMCAT_HOME (/usr/tomcat). I admit that the scripts could be better about setting tomcat.install. This would also work around problems with Mac/Classic (that are hopefully fixed in 3.3.2-dev). BTW. I have 4 tomcat directories with 4 bin and conf dirs set up for this. Is there a simpler way of distinguishing the different profiles? Having separate $TOMCAT_HOME directories is in some ways the easiest way to go. I don't generally don't go this way, and instead use the '-f config-file' option to specify different Tomcats running on the same box. All 4 Tomcats need different memory settings -Xms and -Xmx Currently $HOME/.tomcatrc points to a single profile configuration With my change every tomcat gets its own configuration .tomcatrc file instead of a single global one. If we decide to leave it as it is, we might consider to change the $HOME to $TOMCAT_HOME for consistency. What do you think? Regards, Hans Hans Schmid einsurance Agency AG Information Technology Bayerstrasse 33 80335 München Tel: +49-89-55292-860 Fax: +49-89-55292-855 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
New user
Hello All, I am a new user. we are developing some new Web application. We want to use TomCat/Apache as our server. I need to get some feed back regarding TomCat/Apache stability and support. I know this is a free software but I am reluctance to go into production without support. Any feed back appreciated. Thanks Amir Shidfar VeriZon Wireless 845-365-7386 work 845-365-5910 fax [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]