Questions tagged [tomcat6]

Open source web server developed by the Apache Software Foundation

Filter by
Sorted by
Tagged with
39 votes
7 answers
118k views

How does one get tomcat to bind to ipv4 address?

I recently installed tomcat via an installation script from the apache solr typo3 community and spent the last 3 days trying to figure out why it won't work until by chance I noticed that when I ...
Dark Star1's user avatar
  • 1,435
35 votes
6 answers
384k views

Where are my Tomcat Logs?

I installed Tomcat6 on a Ubuntu 9.04 server using apt-get install tomcat6. I uploaded a WAR using the manager interface and tried to start the application but get a pretty generic error on the Web ...
gav's user avatar
  • 503
33 votes
1 answer
51k views

How to configure Tomcat to only listen to 127.0.0.1?

The environment is Ubuntu 10.04.1 LTS running Tomcat 6 and Apache 2.2 from the repos. Apache is configured to proxy requests to Tomcat, so I really want to turn off Tomcat listening to requests on ...
Jacob's user avatar
  • 911
19 votes
3 answers
25k views

How do I use non-plaintext passwords for Tomcat users?

On Ubuntu 10.04.3 LTS, after installing Tomcat 6, the way to add a manager / admin account is to add a record like this to /etc/tomcat6/tomcat-users.xml: <role rolename="manager"/> <role ...
John Whitlock's user avatar
17 votes
6 answers
55k views

Tons of TCP connections in TIME_WAIT state on windows 2008 - running on amazon AWS

OS: Windows Server 2008, SP2 (running on EC2 Amazon). Running web app using Apache httpd & tomcat server 6.02 and Web server has keep-alive settings. There are around 69,250 (http port 80) + ...
user avatar
13 votes
3 answers
10k views

Tomcat 7 trailing slash issue with webapps

Recently I upgraded my tomcat server from 6.x version to the most recent 7.x version. I came up with little trouble, hoping to get help. I have an application calls MyApp On tomcat6, when I went to ...
user avatar
12 votes
1 answer
23k views

How to start tomcat in remote debug mode under Ubuntu 10?

I'm getting crazy to set up Tomcat in remote debug mode under ubuntu 10. Basically I added this to /etc/init.d/tomcat6 (at the beginning): JAVA_OPTS="-Djava.awt.headless=true -Xmx256M -Xdebug -...
gotch4's user avatar
  • 275
9 votes
2 answers
83k views

How to access a simple file or folder from Tomcat webapps folder

I want to be able to access a folder from my tomcat webapps folder so that I can give someone a URL like: http://localhost:8080/myFolder/myFile.f And in a web browser if they point to this they ...
Ankur's user avatar
  • 2,379
9 votes
5 answers
19k views

Tomcat 6.0 service does not start: java/lang/NoClassDefFoundError

I installed Tomcat on my Windows server but I can't get it to start. I start the service and I see the progress bar, but it fails. I installed the Java Runtime Environment Version 6 and created ...
James Lawruk's user avatar
8 votes
3 answers
61k views

Forwarding apache requests (port 80) to Tomcat (port 8080)?

I want to run a Tomcat application through a regular website URL, such as www.xyz.com. I would like the root of this domain to act as the base directory for the web application, so each request to www....
Stefan Kendall's user avatar
7 votes
3 answers
14k views

http in the Location-header when the original request was made over https

I am currently implementing https on our production environment, but I am scratching my head over a little thing here. SSL is terminated in the load balancer and the flow in our stack is basically ...
pkhamre's user avatar
  • 6,230
7 votes
2 answers
21k views

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. <Connector port="8080" protocol="org.apache.coyote.http11.Http11AprProtocol" connectionTimeout="3000" redirectPort="8443" ...
Michael's user avatar
  • 183
7 votes
1 answer
15k views

Apache mod_proxy: Multiple virtual hosts disable each other

I have an Ubuntu 12.04 server, which had Redmine already installed on a stand-alone apache (everything under /opt/redmine). I wanted to install an instance of Jenkins on the same system, without ...
Max Hohenegger's user avatar
6 votes
1 answer
12k views

How to reduce the memory used by Tomcat?

I bought a virtual server with 1gb of memory to run java web site application. I have installed Tomcat 6.0.33 . Each time i run tomcat, it s taking around 450 mb of memory. I tried everything to ...
stunaz's user avatar
  • 161
6 votes
4 answers
32k views

tomcat6 on CentOS 6: cannot stop/restart service

I have this problem with stopping and starting tomcat6 (package from the repos). I've seen with several CentOS 6 and RHEL 6 boxes. The symptoms are that when I want to restart or stop tomcat6 it just ...
aairey's user avatar
  • 61
6 votes
2 answers
25k views

how to add multiple Context elements to conf/context.xml in tomcat6

my existing conf/context.xml file has already a element; WEB-INF/web.xml I would like to add another to allow localhost access to the /manager/status location to my monitoring, however adding a ...
Tom's user avatar
  • 11.3k
6 votes
2 answers
18k views

Why isn't tomcat serving the correct SSL certificate

I configured tomcat with SSL successfully and was using a self-signed certificate. Recently an issue arose where just having the client "Accept/trust" our certificate wasn't easy. We ended up ...
Raystorm's user avatar
  • 171
5 votes
3 answers
77k views

Why can't I access Tomcat externally?

We hire a Virtual MS Server 2008 machine from a hosting company. I say this because maybe it's got a bunch of extra settings that aren't the "vanilla" 2008 settings. Anyway, I installed a default ...
andy's user avatar
  • 217
5 votes
3 answers
3k views

Amazon EC2- many micro-instances vs single small/medium instance

I have a chat application using stack of Openfire, Tomcat6 and MySQL. Currently, i have installed all these servers on single Linux micro-instance(613 MB memory). Even in low user base 10-20 i am ...
shashankaholic's user avatar
5 votes
3 answers
11k views

Connecting tomcat6 to apache2

Disclaimier: Not a server admin I've been scratching my head over this for weeks now (not consistently mind you, as that would be maddening). I've been trying to connect my apache2 server to my ...
StudentKen's user avatar
5 votes
1 answer
21k views

How to configure tomcat to rollover catalina.log log files

I'm trying to configure my tomcat to rollover log files once a size limit is reached. I'm running tomcat as a windows service and am redirecting all my stdout to catalina.log. This is how I configured ...
Srinivas's user avatar
5 votes
2 answers
19k views

Tomcat directly serve static (css, js) files shared by multiple applications

I'm using the ExtJS framework which has a bulk of js and css files that are used for all apps. I intend to share these between a number of web applications (different war files). For this reason I ...
Joseph Victor Zammit's user avatar
4 votes
2 answers
2k views

Time-based 32-bit overflow in Java? Or SLES11?

This is Tomcat 6.0.18, Java 1.7.0_03 (32-bit), and SLES11 SP2 (64-bit). As for kernel information: $ uname -a Linux server-1 3.0.13-0.27-default #1 SMP Wed Feb 15 13:33:49 UTC 2012 (d73692b) x86_64 ...
QuantumMechanic's user avatar
4 votes
1 answer
239 views

Apache 2.2 with Tomcat

i'm trying to set up a dev environment with apache2.2 + tomcat + mysql. Of course i already have apache2.2 + mysql working fine with php but, when i look at google about how to setup tomcat, i find a ...
Andrea Baccega's user avatar
4 votes
6 answers
961 views

load balancing in Tomcat

I want to implement the load balancing in tomcat 6.0 so that we can create more than one instance of a tomcat and when any of the instance is down then other instance will run our application. so that ...
user avatar
4 votes
1 answer
3k views

Reading files on network share from a Windows service (app over tomcat as service)

I have a webapp over tomcat6, which is installed as a service in a WinServer (2008 or 2003r2, don't know for sure, people haven't let me put a hand over it so far). The Tomcat service runs with a ...
Alfabravo's user avatar
  • 302
3 votes
6 answers
9k views

rpmbuild on Cent OS 6: "cpio: bad magic"

When I try to run this command : rpmbuild -bb SPECS/software.spec I get an error when the WAR file (as in tomcat java web archive file) is being added to the rpm: error: create archive failed on ...
djhaskin987's user avatar
3 votes
2 answers
11k views

Farm Deployer not working in Tomcat Cluster

I have setup apache-tomcat clustering(Ubuntu Server) and I used tomcat supported clustering technique with mod_jk following the link. I've setup with One Load Balancer and Two web servers. The major ...
user53864's user avatar
  • 1,753
3 votes
2 answers
10k views

Tomcat 6: Access Control Exception?

I'm trying to setup a tomcat6 server, and I'm trying to match another setup someone else established. However, my deployment (default Ubuntu install) uses a policy.d/ directory structure, and the ...
Stefan Kendall's user avatar
3 votes
2 answers
5k views

Cannot shutdown Tomcat - transport Error

I am using Tomcat6.0.29. When I try to close Tomcat using shutdown.bat, it is not shutting down tomcat and also I don't see any update in log file for what happened. If I try to use "catalina stop" at ...
RKodakandla's user avatar
3 votes
1 answer
301 views

Suggestions for swapping out a production server

Background My team has been investigating an issue in our production environment (see Stack Overflow post). We've looked thoroughly at application layer (i.e., code, logs, etc.) and also have done ...
John's user avatar
  • 536
3 votes
2 answers
2k views

Best way to bring a system down with a "maintenance" message?

What's the best way to bring down an apache2/tomcat6 setup for maintenance? Specifically, apache2 can stay running, but tomcat needs to restart to accomplish a number of tasks. My initial thought is ...
Stefan Kendall's user avatar
3 votes
1 answer
5k views

SolrCore initialization failures

When I visit the dashboard it tells me: SolrCore initialization failures The only warning line in /var/log/tomcat6/catalina.out is: WARNING: New index directory detected: old=null new=/var/solr/...
Joe's user avatar
  • 589
3 votes
2 answers
3k views

best way to monitor web app performance in tomcat [closed]

I have a web application running in Tomcat 6.x on a Debian Linux box. I have recently started using Google App Engine for another java app and now have serious stats envy; is there a comparable tool ...
Alex's user avatar
  • 39
3 votes
1 answer
15k views

Tomcat's "Connection refused" error on startup

I had manually installed tomcat on Ubuntu 12.04 it worked fine for couple of time but now its throwing this error alpha@TM:~/apache-tomcat-6.0.35/bin$ st Using CATALINA_BASE: /home/alpha/apache-...
user avatar
3 votes
1 answer
535 views

how to configure tomcat6 for ubuntu

i have installed apache tomcat6 for ubuntu 9.04 recenty.But it seems that some API's like servelet and http are not included althogh i have installed openJDK 1.6. somebody advised me to set JAVA_HOME ...
Bipul's user avatar
  • 143
3 votes
1 answer
7k views

"Current Classes Loaded:" continually increasing, PermGen bouncing around max?

I've run load against my web application for the past few days, and I've noticed that "Current Classes Loaded" viewed via JMX monitoring is continually increasing. It will go up and then back down, ...
Stefan Kendall's user avatar
3 votes
2 answers
3k views

Apache Web Server character encoding

I've recently transferred my webapp from my localhost (LH) to a VPS, and have had hebrew chars-encoding probs since. Whenever I send a request with a heb-char it results in "?????" saved to the DB. ...
OBY's user avatar
  • 31
2 votes
6 answers
63k views

how do I know tomcat is running on Windows

I'm on Windows, went to %CATALINA_HOME%\bin\ and ran startup. I did see another commandline window popup and tomcat was loading some webapps that were there before (I had run webapp inside my IDE ...
EyeQ Tech's user avatar
  • 131
2 votes
2 answers
7k views

Setup Tomcat with Puppet (noob question)

I have been learning Puppet (as in, the last 24 hours) and have come up with the following module to install Tomcat. It works great, but I can't help but feel like this is not the most optimal way to ...
Peter Sankauskas's user avatar
2 votes
1 answer
10k views

Tomcat Cluster Farm Deployer issue

I have setup apache-tomcat cluster with mod_jk on ubuntu server. I have some issues with FarmDeployer which deploys war files to other web servers in the cluster and I got some hope that it works as I ...
user53864's user avatar
  • 1,753
2 votes
1 answer
13k views

Memory Leak in Tomcat

I'm using Tomcat 6.0, JDK 1.6 for a web app. It's dying frequently requiring manual reboots, and the log file shows this: Notice: Maximum number of threads (200) created for connector with address ...
user avatar
2 votes
3 answers
51k views

War deployed in Tomcat not showing up at URL, getting 404 instead

I have a web app which Tomcat says it has deployed, but when I go to its URL, I get a 404. The war file is called sonar.war, and is deployed in WebApps. I can see in the logs that it is deploying (...
Rich's user avatar
  • 1,353
2 votes
1 answer
2k views

Unable to start tomcat6: Java error (Exception in thread "main")

After installing tomcat6 on CentOS 6.3, I am unable to start tomcat6 server. root@host [/var/log/tomcat6]# service tomcat6 start Starting tomcat6: [ OK ] ...
Nyxynyx's user avatar
  • 1,479
2 votes
1 answer
1k views

Do we need to reboot Ubuntu server after un-installing tomcat6

i am on ubuntu 10.04 server, having tomcat6. because of some reasons i had to un-install it so i used apt-get purge tomcat6 it removed tomcat and config files. now i am trying to install tomcat6 ...
bee's user avatar
  • 121
2 votes
4 answers
34k views

Tomcat shudown does not kill process

I have got some problems with my tomcat instance. I am using apache-tomcat-6.0.20 for linux.My OS is CENTOS when I execute command # bin/shutdown.sh It does not close the process that is running ...
user avatar
2 votes
3 answers
4k views

Redirect HTTP traffic to an internal Web Server for a particular subdomain

I can't get my head around the following situation. We have an outside-available web site (say, http://example.com). It runs on our Windows 2008 server in IIS7. Now I want to make one of our internal ...
Anton Gogolev's user avatar
2 votes
1 answer
4k views

Where does tomcat6 put standard output by default (Ubuntu apt install)

Where does tomcat6 put logs by default? catalina.out seems to contain startup/shutdown information in /var/lib/tomcat6/logs, but standard out is either being swallowed or redirected somewhere else. I'...
Stefan Kendall's user avatar
2 votes
1 answer
2k views

How to find the JVM version that ran Apache Tomcat from its logs?

I have a Tomcat log directory with very many log files in it. I want to determine which JVM was running this Tomcat. I could not find anything in the logs I lessed and I do not even know if it's ...
bmscomp's user avatar
  • 129
2 votes
1 answer
8k views

Log warnings and errors only in Tomcat

I'm running an instance of Apache Solr with Tomcat 6. The scripts I used for installing configured Tomcat to log "everything" which means that it generates huge logfiles because every query etc. is ...
lorenz's user avatar
  • 141

1
2 3 4 5 6