Questions tagged [tomcat7]

For questions specific to Apache Tomcat version 7.

242 questions
3
votes
1 answer

Apache reverse proxy with ssl not working

I am trying to use apache(2.4) as an reverse proxy for tomcat(7), which works fine when I use http only. http config: ServerName abc.domain.org ProxyRequests Off ProxyPreserveHost On Order allow,deny Allow from…
SomeGuyOnTheNet
  • 33
  • 1
  • 2
  • 7
3
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,…
3
votes
1 answer

How much memory must be left to the OS with a java server application?

Suppose I am running tomcat with -Xms256m -Xmx1024m, but would like to increase my heap usage. What is the largest safe heap size I can allocate? For the purpose of this question, please assume, the system has 5GB RAM and is a z/Linux system. …
GC_
  • 211
  • 2
  • 6
3
votes
1 answer

why is Tomcat ajp connection by default enabled

The Tomcat server configuration (server.xml) has AJP connector enabled by default. And so tomcat by default listens at port 8009. Why is this by default enabled ? I thought there will be only few people who will use Apache as reverse proxy, or…
Yaalie
  • 175
  • 1
  • 2
  • 8
3
votes
1 answer

Nginx upstream timed out

Newbie to Nginx and Tomcat setup. Can someone help me understand what this error message means. 2014/09/21 00:10:03 [error] 293#0: *127 upstream timed out (60: Operation timed out) while reading response header from upstream, client: 192.168.10.211,…
java_dude
  • 133
  • 1
  • 2
  • 6
3
votes
1 answer

Adding a docBase for Virtual Host using the Tomcat Virtual Host Manager

In the Tomcat Virtual Host Manager there is an option to add a virtual host with options for: Name Aliases App base AutoDeploy DeployOnStartup DeployXML UnpackWARs Manager App However there doesn't appear to be an option to set the docBase for a…
andrewdixon
  • 228
  • 3
  • 10
3
votes
2 answers

Install Tomcat7 on EC2

I'm trying to install Tomcat7 on an Amazon EC2 instance, but it doesn't work. Below is the console output: [ec2-user@ip-XXX ~]$ sudo yum install tomcat7 Loaded plugins: amazon-id, rhui-lb, security Setting up Install Process No package tomcat7…
Adrian Ber
  • 305
  • 2
  • 5
  • 16
3
votes
1 answer

How I can make Tomcat 7 to respond with static file slow?

For the testing purposes I need to make Tomcat to respond with late http responses. It is quite clear how to do it for the servlet responses. But it is not clear if I want Tomcat to answer, say with 10000 ms delay for each static file request. How…
3
votes
2 answers

Tomcat 7 with mod_jk

I am at cross roads in deciding whether to use mod_jk or mod_proxy for setting up a load balancing system with Apache 2 and Tomcat 7. I read the usual comparison that mod_jk is more powerful but harder to configure, etc. but all that I read is a bit…
Santosh
  • 133
  • 1
  • 4
3
votes
1 answer

How can we restart a Tomcat 7 instance without redeploying war files?

Scenario: Bad logging configuration internal to war file. No Manager app in the instance. Is there a JVM property or something we can set that will cause Tomcat to NOT redeploy on restart? That way we can just edit the properties file under…
user447607
  • 493
  • 1
  • 6
  • 9
3
votes
2 answers

Getting error 403 with Tomcat 7.0.100 and Apache server 2.4 when using "secret" with AJP

Because of the bug CVE-2020-1938 we want to use the latest Tomcat 7.0.100. See also CVE-2020-1938 We also use an Apache server in version 2.4, which connects to the Tomcat via AJP. The latest Tomcat version requires various new settings for secure…
egmontr
  • 33
  • 1
  • 5
3
votes
1 answer

How do I remove the www from my domain URL

I am using a tomcat server and I have installed the SSL by changing strings in server.xml and web.xml file. Problem is, When I browse with domain.com, www.domain.com, in both the cases it is browsing. But I want it to redirect to domain.com…
Nagkings
  • 31
  • 1
  • 2
2
votes
0 answers

How can I make Liferay/Tomcat processes do outbound HTTPS queries over TLS 1.2?

I've got a Liferay 6.2 server running on tomcat 7.0 behind Apache 2.4. Apache is handling SSL for the site that Liferay is serving, and all is well with inbound connections. What I'm having some trouble with is that one of the important parts of…
Dave
  • 21
  • 1
2
votes
2 answers

Tomcat startup - Error: Could not find or load main class

When I attempt to startup Tomcat (7.0.82) on RHEL6/Java7, the logs will display this: Error: Could not find or load main class Notice, no specific class specified at the end of the log entry. Most hits on google seem to indicate a specific class at…
TechFanDan
  • 297
  • 1
  • 6
  • 20
2
votes
1 answer

Tomcat has stopped generating stdout logs

We have tomcat server in our production environment. Suddenly tomcat has stopped generating stdout logs. Last generated log by tomcat is one month ago and the size of stdout log file is 5006 KB. What is the reason behind there is no stdout log…
Pawan Patil
  • 121
  • 1
  • 5
1
2
3
16 17