For questions specific to Apache Tomcat version 7.
Questions tagged [tomcat7]
244 questions
27
votes
1 answer
What's the redirect port for in Tomcat?
It's hard to make sense of tomcat documentation and looking at server.xml you will find a salad of ports that may be hard to understand because it's not really explained properly, or extensively, in the documentation.
For example, this line in the…
Ulukai
- 929
- 3
- 14
- 29
9
votes
5 answers
Set JENKINS_HOME in Tomcat7?
I'm trying to set up Jenkins in Tomcat7 on Ubuntu. I installed Tomcat7 and deployed jenkins.war, and I now see the Jenkins home page at http://myhost:8080/jenkins, but it's attempting to create the Jenkins directory at /usr/share/tomcat7/.jenkins,…
C. Ross
- 3,125
7
votes
1 answer
tomcat cannot change port 8080 to 80
I want to change the port 8080 to the default HTTP port (80), to use a Jersey Application as HTTP-Restful API. Therefore I replaced the port from 8080 to 80 (within /etc/tomcat7/server.xml) and configured it to use AUTHBIND (/etc/defaults/tomcat7).…
NaN
- 335
7
votes
2 answers
How can I determine the optimal size of the maxThreads of my NIO/APR Connector for Tomcat?
I am using NIO/APR Connector for Tomcat7.
E.g.
Michael
- 183
- 1
- 2
- 8
6
votes
0 answers
SELinux: How to allow apache, samba and tomcat access on the same file
Running RedHat 7.4
Until recently I could use
semanage fcontext -a -t public_content_rw_t '/var/www(/.*)?'
restorecon -R /var/www
from answer https://serverfault.com/a/346779/125461
on How do I get SELinux to allow Apache and Samba on the same…
carl verbiest
- 203
4
votes
1 answer
GZip compression not working on Tomcat7
I recently tried using gzip compression to improve web UI performance. I configured Tomcat Connector as below.
compression="on"
compressionMinSize="2048"
noCompressionUserAgents="gozilla,…
pratikpawar
- 141
4
votes
1 answer
WARNING: None of the ciphers specified are supported by the SSL engine
I have a working web service running through Apache Tomcat 7 with the following connector element in server.xml:
Withheld
- 187
- 1
- 1
- 7
4
votes
0 answers
Page served by tomcat image server by Apache
I need to configure Apache to call Tomcat to serve a page and this page has an image on /image folder called logo that should be served by Apache.
This is the Apache virtual host:
DocumentRoot "/var/www/helloworld"
…
AFS
- 141
4
votes
2 answers
YouTrack on Tomcat 7 using SSL
I have a running YouTrack instance deployed using Tomcat 7 and it works fine on http://example.com:8080/youtrack
Apache is already configured to support SSL for the main domain (I have .pem file). Both https://example.com and http://example.com are…
Sfisioza
- 592
4
votes
3 answers
What tool to use to identify a high-CPU Tomcat thread?
We have a load balanced server farm using Tomcat 7. Once in a while (once a day, at least) a server's CPU load spikes way up. This appears to be legitimate server usage and not a fault, but I can't figure out how to identify what particular…
user1071914
- 183
4
votes
2 answers
Difference between calling tomcat shutdown script and killing process
On our linux boxes, we have multiple users who run tomcat.
Currently we are using process kill commands to kill the respective user's tomcat , instead of using shutdown.sh
Are there any downsides of using this approach ?
Novice User
- 161
4
votes
2 answers
mod_jk status page not working
I am doing clustering in Tomcat 7 with Apache server. It is working fine too. However I have the following issues:
1) I am trying to monitor the mod_jk status page; but it is giving 404 error.
2) in Log following error is shown -
[Tue Dec 17…
Kumar
- 211
4
votes
1 answer
Tomcat url rewrite fails with 404, but browsing directly returns a 200
I have a web application deployed in webapps/appname and I'm trying to add in rewrite rules to example.org/appname-slow to rewrite to example.org/appname?delay=1. I have the following in webapps/ROOT/WEB-INF/web.xml
…
user99283
4
votes
2 answers
How to make Tomcat 7 log debugging info?
Tomcat 7 takes more than 21 minutes to start:
ene 09, 2013 10:01:39 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1290787 ms
When it finishes it says that it's scanning JARs that don't contain TLDs:
ene 09, 2013 10:59:39 AM…
Keyslinger
- 149
3
votes
2 answers
What is the correct way of running Tomcat under a different user (Centos 7)?
I run Tomcat 7 in my Centos 7 machine, with systemd, under a user webapp different from the default tomcat. I guess it should be easy to accomplish this but I'm having problems.
From what I see there are three places where the user and group can be…
leonbloy
- 2,258
- 1
- 19
- 25