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
> 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
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
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
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
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:
>
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
, 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
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
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/
.
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
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
>
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
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
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
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
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
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---
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
-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
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
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
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
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
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
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
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,
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: [
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
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
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
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
32 matches
Mail list logo