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
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
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
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
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
<
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
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
> 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
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
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
> 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
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
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
13 matches
Mail list logo