For questions specific to Apache Tomcat version 7.
Questions tagged [tomcat7]
242 questions
23
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
- 829
- 2
- 10
- 28
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
- 2,995
- 8
- 32
- 36
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
- 1
- 3
- 10
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.
confile
- 183
- 1
- 2
- 8
5
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
- 191
- 7
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
- 1
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
- 2
- 7
- 18
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
- 1
- 3
- 10
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
- 1
- 6
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
- 201
- 3
- 7
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
…
R. S.
- 1,624
- 12
- 19
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
- 1
- 1
- 7
3
votes
1 answer
Tomcat Virtual Host to prevent Improper-Input-Handling attack
I'm currently on the process of trying fix a site vulnerability, basically it is one type of the "Improper Input Handling" attack.
Let's say my website is www.mywebsite.com
and there is hacker's website www.hacker.com
whenever there is a request…
CharlesC
- 151
- 1
- 6
3
votes
1 answer
Is it a good practice to clear `work` and `temp` directory when deploying applications to Tomcat?
I wonder if work and temp should generally be left to be manged by Tomcat or should I manually clear it from time to time?
In our specific case new versions of the applications are always enumerated with ## notation (e.g. app##123.war, a next one is…
Nux
- 541
- 3
- 12
- 21