Re: Tomcat silently shuts down after 10 minutes - SOLVED

2024-07-05 Thread Bryan Buchanan
Thanks all for the replies. Turns out I needed to execute my "C" program with a "nohup" i.e. $ nohup /usr/local/bin/ManageTomcat START Tomcat was only stopping after about 10 mins because that's when I logged out. Doh ! In the business app code I now execute the above and regular users can now

Re: Tomcat silently shuts down after 10 minutes

2024-07-04 Thread Bryan Buchanan
> I think you should check the return value of setuid. > > I don't think you can change the uid of a process that easily. > > Otherwise you could also write setuid(0), become root and that would look to > me as a huge security hole. > You need to be root to "chmod u+s [your_program]" so your

Tomcat silently shuts down after 10 minutes

2024-07-04 Thread Bryan Buchanan
t;%s", "Syntax: ManageTomcat START|STOP"); return(0); } printf("%s\n", argv[0]); printf("%s\n", argv[1]); setuid(1000); if(strcmp(argv[1], "STOP")) { system("/opt/apache-tomcat-9.0.14/bin/startup.sh"); } else { system("/opt/apache-tomcat-9.0.14/bin/shutdown.sh"); } return(1); } Any ideas would be appreciated. Bryan

Re: Limit connections in multi-context environment

2016-10-28 Thread Bryan Larson
such as redirecting to an error page, also works through subclassing the SemaphoreValve class. I'll add that the built-in JMX support is a huge plus. The custom attributes that I added to the valve were also exposed through JMX without any hassle. Bryan On Tue, Oct 25, 2016 at 9:14 AM, Bry

Re: Limit connections in multi-context environment

2016-10-25 Thread Bryan Larson
Mark, I browsed the source code for the SemaphoreValve, and it appears that if a Semaphore cannot be acquired the request will effectively "drop through". Does that sound accurate? What would I expect in terms of http status code for the requests that are filtered out? Thanks, Bry

Re: Limit connections in multi-context environment

2016-10-21 Thread Bryan Larson
Mark, Sorry for the delayed response. I had a chance to test out the valve, and my preliminary testing showed that this worked like a charm for my application. Thanks for your help. Bryan On Tue, Oct 18, 2016 at 9:24 AM, Mark Thomas wrote: > On 18/10/2016 15:04, Bryan Larson wrote: >

Limit connections in multi-context environment

2016-10-18 Thread Bryan Larson
e virtual hosts per connector (SNI)" lead me to believe there might be changes in Tomcat 9 that support this without extensive configuration changes. Can this be confirmed? Thanks, Bryan

Re: NoSuchMethodError loading class in webapp from common class loader

2013-05-03 Thread Bryan Baugher
, May 3, 2013 at 9:45 AM, Bryan Baugher wrote: > Sorry I tried to leave on what I thought were unnecessary details. > > You are correct my constructor has arguments. One of the arguments comes > from another dependency jar that exists in both the webapp and tomcat/lib > so I thin

Re: NoSuchMethodError loading class in webapp from common class loader

2013-05-03 Thread Bryan Baugher
dependency out of the webapp and into tomcat/lib. On Fri, May 3, 2013 at 9:16 AM, Konstantin Kolinko wrote: > 2013/5/3 Bryan Baugher : > > Hi, > > > > I am running Tomcat 7.0.28 on RHEL 6.2 with a single web app. The web app > > in question uses reflection to load

NoSuchMethodError loading class in webapp from common class loader

2013-05-03 Thread Bryan Baugher
ese docs[1][2] don't seem to indicate there should be any issue. -Bryan [1] - http://tomcat.apache.org/tomcat-7.0-doc/class-loader-howto.html [2] - http://download.oracle.com/otndocs/jcp/servlet-2.4-fr-spec-oth-JSpec/

RE: error-page exception-type subclasses of RuntimeException are not handled

2010-05-12 Thread bryan jacobs
. Bryan > Date: Wed, 12 May 2010 19:50:16 +0400 > Subject: Re: error-page exception-type subclasses of RuntimeException are not > handled > From: knst.koli...@gmail.com > To: users@tomcat.apache.org > > 2

RE: error-page exception-type subclasses of RuntimeException are not handled

2010-05-12 Thread bryan jacobs
Thanks for that information. I will do some research based on that. Bryan > Date: Wed, 12 May 2010 19:50:16 +0400 > Subject: Re: error-page exception-type subclasses of RuntimeException are not > handled > From: knst.koli...@gmail.com > To: users@tomcat.apache.org >

RE: error-page exception-type subclasses of RuntimeException are not handled

2010-05-12 Thread bryan jacobs
However, I will try creating a checked Exception subclass and see if that fixes the problem. Thanks for the response. Bryan > From: yucca...@live.co.za > To: users@tomcat.apache.org > Subject: Re: error-page exception-type subclasses of RuntimeException are not > handled > Da

error-page exception-type subclasses of RuntimeException are not handled

2010-05-11 Thread bryan jacobs
which are appropriate for my application and handle them with specific error pages. Any help would be appreciated. If you need more information please let me know. Bryan _ Hotmail is redefining

Remote debugging via shmem, Tomcat as a service

2008-09-12 Thread Bryan D. Fish
nect to the shmem address, and the log (logs/stdout.log) doesn't show anything about the debugger listening. I'm running Tomcat 5.0.28, jdk 1.5.0_16, on Windows XP SP2. Thanks in advance for any ideas & suggestions. Cheers, Bryan

Tomcat 6: 20 minutes on 10 minutes off duty cycle

2008-09-04 Thread Bryan McGinty
ordinary. Has anyone seen this sort of behaviour when upgrading to Tomcat 6? If not, does anyone have any idea of how I may be able to determine the cause of this behaviour? Thanks, Bryan - To start a new topic, e-mail: users

RE: What is Tomcat 6 status?

2007-06-28 Thread Bryan Rood
opics. Maybe someone else can. Bryan Rood -Original Message- From: Michael Jouravlev [mailto:[EMAIL PROTECTED] Sent: Thursday, June 28, 2007 4:56 PM To: Tomcat Users List Subject: What is Tomcat 6 status? Tomcat 6 status is not quite clear from Tomcat website. I want to use the latest po

RE: Tomcat as a windows service

2007-04-30 Thread Bryan Rood
needs the var it doesn't matter where it is set. If you are using multiple java homes, then it becomes important where it set, otherwise I don't think it matters, Bryan Rood IT Manager Quantros Inc. [EMAIL PROTECTED] www.quantros.com (408) 957 - 3300 ext. 230 -Original Message---

RE: run two versions of tomcat as windows services at the same time

2007-04-30 Thread Bryan Rood
Charles, I wanted to thank you for your help as your tips helped me find the right solution. I was trying to use the .exe instead of the zip and with the zip I was able to correctly change the environment variables. Thanks for your time. Bryan Rood IT Manager Quantros Inc. [EMAIL PROTECTED

Error Running Multiple Tomcat 6.0.10 Instances on Windows: Prunsrv.c

2007-04-26 Thread Bryan Rood
-stage respectively. I've been on google and none of my searches reveal anyone using version 6.0. I've also been all over: http://tomcat.apache.org/tomcat-6.0-doc/windows-service-howto.html but they don't say how to handle multiple installations. Thank you in advance if anyone ca

Tomcat Service Manager for windows

2007-02-26 Thread Bryan Berndt
Hello, I just joined this mailing list to plug a piece of software that has been enormously helpful to the company I work for. I have no idea if its been mentioned on this mailing list or not, so excuse my redundancy. Its called Tomcat Service Manager. it enables one to very easily make multiple

Re: Hy Users....

2007-02-13 Thread Bryan Basham
one (not shown here) that has the critical point at which JSF threw it root cause. Cheers, Bryan what a hell, i cant use JSF with my Tomcat 5.5.20 ??? Every JSF app i´ve try load on my deploy, happen this: what can i do ?? i´m desesperate!!! thanks. type Exception report message description

Re: Deadlock in Tomcat 5.5.20

2007-02-09 Thread Bryan Basham
Upon reflection my team has decided that it is some strange interaction between Firefox and our VMware instance running Tomcat. If we kill Firefox, then Tomcat resumes processing requests. How bizarre. Sorry to waste the bandwidth. -Bryan

Deadlock in Tomcat 5.5.20

2007-02-09 Thread Bryan Basham
some fixes required doing things like performing cross-context dispatching and merging of JSF's RuntimeConfig objects from each webapp ServletContext. However, I don't see how any of these changes would cause the deadlock. Sincere thanks, Bryan "Java2D Disposer" daemon prio=1

Re: Configuring JSF in the TOMCAT/conf/web.xml for all webapps

2007-02-02 Thread Bryan Basham
Hello Tim, OK, but if the JSF jar files are *only* in TOMCAT/common/lib/ directory and *never* in the WEBAPP/WEB-INF/lib/ directory? Thanks, Bryan This is almost certainly caused by the involvement of two different classloaders. For example, if you place a driver jar such as Oracle&#

Configuring JSF in the TOMCAT/conf/web.xml for all webapps

2007-02-02 Thread Bryan Basham
configuration back into each webapp-specific web.xml, then it works fine. Any ideas why this would happen? Thanks, Bryan - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Session timeout during method execution

2007-01-31 Thread Bryan Basham
e you verified that the browser or server will not "timeout" during this long request cycle? HTH, Bryan - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: Creating a custom session manager -- SOLVED

2007-01-10 Thread Bryan Basham
Oops... I had some bugs in the code. Here's the latest source. -Bryan/ / TestSharedSession.tar.gz Description: GNU Zip compressed data - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [

Re: Creating a custom session manager -- SOLVED

2007-01-10 Thread Bryan Basham
r run scripts. BTW, I tested this on JDK v1.5 and Tomcat v5.5. I hope that this is useful to a few of you. If you do take a look at the code and have some suggestions for improvement, please let me know. Cheers, Bryan Hello Tomcat users, I have a need that I believe Tomcat's pluggabl

Creating a custom session manager

2007-01-09 Thread Bryan Basham
e the tag to setup the manager on all webapps. Unfortunately, when I run a simple webapp (after restarting Tomcat, of course) I am not seeing any output in any log file (nor to the console) from my test manager. Is my configuration invalid? What am I missing? Sincere thanks, Bryan -- *StillSec

Re: how setup landing page in tomcat

2006-04-10 Thread Bryan
org.apache.jsp.index_jsp /index.jsp My hunch is I should be changing the content of this web.xml file to point to the webapp that I want to be the default... P Y <[EMAIL PROTECTED]> wrote: (not very TC specific) ... Use a "refresh" http://www.html-reference

how setup landing page in tomcat

2006-04-10 Thread Bryan
Hi I am new to Tomcat 5 config. I have a webapp running on tomcat, and to get to it you have to type http://this.com/dir1/dir2/dir3/file.html, and I want to change the settings so that when you type http://this.com, you get to the right subdirectory. I know how to do this in IIS, but have not