Questions tagged [server.xml]

190 questions
33
votes
7 answers

Redirect HTTP to HTTPS:PORT in Tomcat

I have a running tomcat application that already have the following redirection rule from HTTP to HTTPs:
iddqd
  • 1,225
  • 2
  • 16
  • 34
32
votes
5 answers

Tomcat 7 GZIP compression not working

I have added the following lines in tomcat's conf/server.xml file to enable gzip compression but its not working. Pages are still uncompressesd.
Popeye
  • 1,548
  • 3
  • 25
  • 39
15
votes
7 answers

Encrypt tomcat keystore password

Is there an option to encrypt keystorePass value in tomcat server.xml? I don't want it to be a plain text
Adi Baron
  • 546
  • 2
  • 5
  • 21
11
votes
1 answer

tomcat 7: automatically redirect https requests to port 8443

On tomcat7, our web application is running through https over port 8443 and works fine except that we are unable to redirect https default port (443) to 8443 so as a consequence the ':8443' has to be included in the URL whenever we have to access…
jon
  • 910
  • 3
  • 12
  • 34
11
votes
1 answer

does maxPostSize apply to multipart/form-data file uploads

I have a webapp on a Tomcat server that allows files to be uploaded. There is a limit on the size of a file upload, and I'd like that limit to be enforced preemptively (ie, once you cross the limit, the file upload fails, rather than transferring…
BostonJohn
  • 2,631
  • 2
  • 26
  • 48
10
votes
3 answers

Start webapps in tomcat in a determinate order

I have 2 webapps: WebApp 2 depends from WebApp 1 If WebApp 1 is not running, WebApp 2 fails Can I define in tomcat that I always want that webapp 1 starts before webapp 2?
xfernandez
  • 167
  • 4
  • 8
9
votes
1 answer

Tomcat - How to specify properties that can be expanded in server.xml

Currently, I have in my server.xml: I want it to become:
Boris Hamanov
  • 3,085
  • 9
  • 35
  • 58
8
votes
2 answers

Programmatically get Tomcat HTTP Connector's maxPostSize in a JSP

I am using Tomcat 6 and would like to be able to retrieve the maxPostSize (defined in the HTTP Connector in server.xml) programmatically from within a JSP so that I can know what the max file upload size is. Is there a way to get this?
Stephen Cathers
  • 113
  • 1
  • 6
8
votes
4 answers

mvn tomcat:run - how do I edit server.xml?

I want to run "mvn tomcat:run" from the command line, but how can I edit the server.xml to set maxHttpHeaderSize="65536" in the connectors? Or can I configure the connectors in the pom.xml? Cheers Nik
niklassaers
  • 8,480
  • 20
  • 99
  • 146
7
votes
2 answers

Tomcat runs but complains about missing server.xml

I'm using ubuntu 9.10 and I installed java and tomcat using the package manager. When I went to run startup.sh, it first complains about catalina.out not being there and not being writable. I fixed that and it doesn't complain about that (why isn't…
aarona
  • 35,986
  • 41
  • 138
  • 186
7
votes
1 answer

tomcat 7 ignoring my context.xml

I hope this is something stupid. But I've been staring at it way too long. I am upgrading to Tomcat 7 (from 6) on Linux and it's ignoring my context.xml file. If I include the Context (datasource) in the server.xml, it work fine. But I would like to…
PrecisionPete
  • 3,139
  • 5
  • 33
  • 52
6
votes
1 answer

Tomcat 7/8: Reuse of Environment variables in server.xml

for some projects with tomcat we externalize some configs (URLs, etc) in environment variables. Example: /usr/share/tomcat7/conf/other-urls.xml
user1195024
  • 83
  • 1
  • 4
6
votes
8 answers

Error in Tomcat during Startup: DB name not found

While staring the Tomcat, I am getting the following error: SEVERE: Exception looking up UserDatabase under key UserDatabase javax.naming.NameNotFoundException: Name UserDatabase is not bound in this Context at…
user1417746
  • 191
  • 2
  • 3
  • 11
5
votes
2 answers

How to pass datasource password to websphere liberty container during runtime

I am trying to run my app in websphere liberty profile container. I want to have 1 image which can be run on diff env(dev, st, sit etc). I can use env variable to pass the values at runtime to the container. How to use those in wlp settings? Is this…
5
votes
2 answers

Disallowing to show the directories in my ROOT folder

I have a JSP web application project StudentApp and I configured in my server.xml as follows < Host name="test.com" appBase="D:/StudentApp" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> Context path="" …
Alex
  • 790
  • 1
  • 7
  • 22
1
2 3
12 13