Test valve with tomcat-embed 9?

2021-10-08 Thread Me Self
I would like to test a custom tomcat valve with tomcat-embed and junit. Is that possible? Found a few tomcat-embed samples on the web but most seem to only deal with setting up a webapp - something along the lines: @BeforeAll public static void setup() throws LifecycleException { Tomcat tomcat

JEP 411 Deprecate the Security Manager for removal

2021-04-15 Thread Me Self
Hi All It appears the security manager is going to be removed from a future release of java according to https://openjdk.java.net/jeps/411. When running Tomcat on Linux there are many excellent alternatives to locking down the JVM process with sandboxing/mandatory access control for instance Syst

Re: systemd tomcat script for Linux EL7

2016-03-19 Thread Me Self
Hi I use this Systemd unit file (from https://sorenpoulsen.com/install-tomcat-8-on-ubuntu) on ubuntu, but it's probably fairly generic as the unit file just calls tomcats start and stop scripts directly. [Unit] Description=Apache Tomcat After=syslog.target network.target [Service] Type=forking

Re: context doesnt pick up

2016-02-22 Thread Me Self
nStartup="true" for that to work. And for that to work I would have to grant write access on the webapps folder for tomcat user? On Sun, Feb 21, 2016 at 5:43 PM, Mark Thomas wrote: > On 20/02/2016 22:40, Me Self wrote: > > Hi All > > > > When I put the context in

Re: context doesnt pick up

2016-02-20 Thread Me Self
OK thanks. On Sun, Feb 21, 2016 at 12:25 AM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] > > Subject: RE: context doesnt pick up > > > If all you have in the element is the docBase and your webapp > is located > > i

Re: context doesnt pick up

2016-02-20 Thread Me Self
< chuck.caldar...@unisys.com> wrote: > > From: Me Self [mailto:wmso...@gmail.com] > > Subject: context doesnt pick up > > > When I put the context in server.xml it works fine, but if I put the same > > context tag in a xml file under /conf/Catalina/localhost/test.xml then

context doesnt pick up

2016-02-20 Thread Me Self
Hi All When I put the context in server.xml it works fine, but if I put the same context tag in a xml file under /conf/Catalina/localhost/test.xml then tomcat doesn't pick it up. I would rather want to use the latter. The test.xml is Its a set up where the tomcat user has no write access to /w

Re: 8443 to 443 problem

2010-04-16 Thread Me Self
> b) the file that you are changing is not the one that is actually used. > I do not use JBoss, so there might be differences with what I know. > E.g., you are saying about context.xml, but in Tomcat that is > configured in server.xml. I found out jboss uses a hybrid of Tomcats server.xml file and

Re: 8443 to 443 problem

2010-04-16 Thread Me Self
I can change the redirectPort at runtime through managed bean "org.apache.catalina.mbeans.ConnectorMBean" to 443. When I do that it works immediately but after server restart the port is back to 8443. On Thu, Apr 15, 2010 at 6:24 PM, Me Self wrote: > I am trying to use port

Re: 8443 to 443 problem

2010-04-15 Thread Me Self
Many times, also tried reinstalling the server complete. On Thu, Apr 15, 2010 at 6:59 PM, Jeffrey Janner wrote: > Did you restart your Tomcat instance? > - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For addition

Re: 8443 to 443 problem

2010-04-15 Thread Me Self
> 1. Tomcat version? > 2. Is Tomcat running standalone, or behind another web server, e.g. Apache? > 3. There are only these two connectors in your server.xml? Its tomcat 5.5 (i believe) embedded in jboss5.1.0GA running standalone "default" server. Those are the only 2 connectors in the context.xm

8443 to 443 problem

2010-04-15 Thread Me Self
I am trying to use port 443 for https - without success so far. I changed from 8443 to 443 in two places in server.xml: ... But apparently this is not enough because when I navigate to a confidential part of the web app tomcat sends a http 302 redirect to port 8443 still instead of 443.. W

getOutputStream() has already been called for this response

2010-03-29 Thread Me Self
Hello When I include a servlet inside a tagfile then it works: But if a try to do the same in a tag that subclasses SimpleTagSupport then tomcat throws the exception mentioned in the subject:     @Override     public void doTag() throws IOException, JspException {         HttpServletRequest re