Open source web server developed by the Apache Software Foundation

learn more… | top users | synonyms

3
votes
2answers
7k 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 ...
1
vote
1answer
838 views

Groovy-grails: grails run-war works, but grails run-app throws BindException: Address already in use: JVM_Bind<null>:80n

When I run grails -Dserver.port=80 run-app, I get LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use: JVM_Bind<n ...
1
vote
1answer
743 views

Apache mod_rewrite in proxy mode, .htaccess and ProxyPassReverse

In a .htaccess file, I have something like this to proxy Apache to Tomcat: RewriteRule (.*) http://localhost:8080/tomcat-app/$1 [P] All the redirects as well as internal links in HTML files are ...
2
votes
1answer
8k 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 ...
2
votes
2answers
6k 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 ...
1
vote
1answer
166 views

Problem when deploying new app in tomcat6 server

i have written the webservices suing SOAP, and its still under development. When have set of code which are already running the webapps folder of tomcat6. When I make changes in particular file I ...
1
vote
1answer
926 views

Tomcat web application high availability

I have setup apache-tomcat clustering(Ubuntu Servers) and I used tomcat supported clustering technique with mod_jk following the link which is clear and easy to follow. I did this in my LAN with ...
0
votes
3answers
181 views

Why reverse proxies when HA & LB are possessed by Tomcat & apache? [closed]

Anybody has any strong reason why HeartBeat, HAProxy, NGINX or any other reverse proxies needed for apache tomcat web application when we can have HA and LB with Tomcat supported Clustering with ...
9
votes
1answer
8k 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 ...
2
votes
2answers
7k views

Webapp causes java.lang.ClassNotFoundException: javax.mail.Authenticator

I have tomcat6 running on ubuntu, with java 1.6.0_20. One of the webapps causes an error, which has as root cause: java.lang.ClassNotFoundException: javax.mail.Authenticator the mail.jar and ...
3
votes
1answer
174 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 ...
0
votes
1answer
334 views

Tomcat 6, unable to login via /manager/status page despite the username / password being in tomcat-users.xml file?

I need to be able to remotely login to my Tomcat 6 server to setup an application that monitors it and have been instructed to first use the Tomcat http:///manager/status page to try to login with a ...
0
votes
1answer
571 views

How to set up a web server to serve jsp files in Fedora 15?

I have installed Fedora 15 on my system. Installed Web server using the command sudo yum groupinstall "Web Server" Have it running successfully at port 80. The files are put in "/var/www/html". It ...
1
vote
0answers
301 views

mod_jk with Tomcat 6 and HTTP Authentication

Are there any gotchas using ModJK to forward to an application protected by standard HTTP Authentication? We have two web apps installed on our Tomcat 6.0.14, one is the standard Tomcat Manager while ...
1
vote
1answer
649 views

How can I make Tomcat 6 show the real error instead of a 404?

For deploying and troubleshooting an application, getting 404s has little use. I have deployed applications that report no issue in the logs but return 404s. There IS an error in the application as ...
1
vote
1answer
3k views

How do I figure out why a tomcat6 webapps dir symbolic link works on one machine, but not another?

I recently built an Ubuntu virtual machine for MarkLogic development. The machine was then distributed to 4 other developers to provide a consistent dev platform. Now I'm setting up another piece to ...
0
votes
1answer
390 views

Spring Security, Apache 2 fronting Tomcat6. Can't login / immediatly logs out

I deployed my GWT app, that uses SpringSecurity, and have a problem. After feeding the credentials it logs out immediately. If I put in the wrong credentials, it says 'wrong credentials', but when I ...
0
votes
1answer
678 views

Ubuntu apache-tomcat webserver clustering/load balancing

I have a Ubuntu production server running apache2 and tomcat6 both on port 80 with mod_jk setup hosting some jsp pages. And also, all the client's informations are stored in the mysql databases on the ...
0
votes
1answer
280 views

How to install tomcat under apache2 in a Debian system

What is the easiest way to install tomcat6 under apache2 in a Debian system? The idea is to have all incoming connections on port 80 of a specific host to be redirected to a specific Application ...
0
votes
1answer
138 views

tomcat, jvm, monitoring, restarting

I have a web application running as a jar, I need a automated way to restart this jvm with a reboot/crash. What are you guys using for this? I am running ubuntu 10.04 lts . (Examples would be great) ...
0
votes
2answers
238 views

mapping my EC2 instance to the www.mydomain.com

I am newbie to concepts like Cname, A record and all. I am running a EC2 instance with tomcat6. Now I need to map my java based application to www.mydomain.com. I just went through few documents and ...
2
votes
1answer
1k views

Disable public Tomcat6 stack trace

Can anyone advise me how I can go about disabling Tomcat6 from displaying stacktrace output to the browser? Tomcat: 6.0.29 I have made the following changes to /opt/apache-tomcat-6.0.29/conf/web.xml ...
1
vote
1answer
382 views

Tomcat 5.5 and Tomcat 6 side by side on same server

On Suse Linux server I have Tomcat 5.5. installed (port 8080) Can I also install Tomcat 6 on the same server (side by side) but on different port (for example 8081). Are there any pitfalls I should ...
1
vote
1answer
811 views

MongoDB Java, R2.5.3 - NoSuchMethodError on DBCollection.save(DBObject) in Tomcat6

java.lang.NoSuchMethodError: com.mongodb.DBCollection.save(Lcom/mongodb/DBObject;)V Here is the sample code. Error is on Line 3. 1 BasicDBObject dbo=new BasicDBObject(data); 2 DBCollection coll =...
0
votes
1answer
1k views

Run a cron job as the tomcat user

I want to be able to run a cron job as the tomcat6 user. I tried to su tomcat6 but I don't know the default password for that user. Should I run them as tomcat6 (if I can find out the password - ...
10
votes
1answer
12k 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 -...
0
votes
1answer
276 views

Managing deployment to Tomcat to minimize downtime

In the past when I needed to run something on Tomcat, I just made a .war file and deployed it. While that is a common way to do things in the Tomcat world (it seems), I was taking a hit with downtime ...
0
votes
1answer
529 views

How to debug POST issue related to Squid / Tomcat on Ubuntu / EC2?

I am running a Tomcat server (6.0.28) on a Ubuntu (10.10) with APR enabled (direct on port 80 without any Web server fronting). When I submit a page from the browser and the POST data is big (> 1444 ...
2
votes
1answer
301 views

Enabling APR for Tomcat 6 on Ubuntu Maverick 10.10

I have installed tomcat6, libapr1 & libtcnative-1 on Ubuntu Maverick. However, when Tomcat starts it says it is using "org.apache.coyote.http11.Http11Protocol" instead of loading APR. Is there a ...
1
vote
0answers
779 views

tomcat max number of threads

I have a very confusing scenario.. We are using tomcat6 to host an internal application. In server.xml file maxthreads attributes is set to 150 but if I log on to the manager, in "http-8080" section I ...
0
votes
3answers
3k views

Running Tomcat6 on port 80 on Ubuntu LTS 10.04.2

I've recent un-installed apache2 so I could run Tomcat6 on port 80 directly. I've been pulling my hair out trying to get this set up correctly. I've read this post regarding setting up tomcat to ...
1
vote
2answers
771 views

Downgrading Tomcat on Ubuntu?

I installed Tomcat 7 and it is giving me all sorts of fits :) .jar files are missing and I have many error messages coming at me from different directions :) As I understand it, deleting tomcat is ...
1
vote
2answers
699 views

Tomcat 6 virtual host + Apache 2 proxy

I have a problem with my Apache and Tomcat configuration. I have an Apache instance as a proxy to Tomcat. The Tomcat serves two virtual hosts. The problem occurs when one Apache virtual points to ...
1
vote
1answer
477 views

deploying application on tomcat server status is ok but hitting the url throws 404 not found

I have been put in to the project involving Spring, Hibernate, Drools, RabbitMq . Though I have no idea of how drools work in coherence with Spring,Hibernate etc but I need to learn it in no time ...
16
votes
6answers
37k 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) + ...
0
votes
2answers
3k views

I am not able to see the stdout and stderr log files in the tomcat/log directory?

all the error messages are being displayed in console. i want the tomcat to print in log files stdout and stderr .. how to configure that?(i am using windows XP)
1
vote
3answers
4k views

Tomcat6 Manager Webapp is 404 on apt-get install on Ubuntu 10.10

http://localhost:8080/manager/html gives a 404 error on apt-get install of tomcat6 (6.0.28 on JVM 1.6.0_20-b20 on 2.6.35-27-generic amd64). http://localhost:8080/host-manager/html works. Lists one ...
3
votes
2answers
3k 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 ...
0
votes
1answer
1k views

can't start tomcat on vps - java VM error “could not reserve enough space for object heap”

I can't start tomcat6 on my VPS (which has 256 MB, 512 MB burst and uses currently only 20MB of it). the log entry shows: Error occurred during initialization of VM Could not reserve enough space for ...
1
vote
1answer
2k views

Setting up Tomcat6 properly in Ubuntu 10.04

We have a Tomcat6 instance running on Ubuntu 10.04LTS. Our test box was just a Windows machine running Tomcat6. Both machines (Linux and Windows) have 1GB of ram. Via the Tomcat configuration tool ...
0
votes
1answer
974 views

Rewriting URL for tomcat through an apache AJP connector

I've tried several attempts to resolve this, but all have come up naught. Currently I have apache setup to forward all urls at and past the /portal/ tag to tomcat. Unfortunately, tomcat receives ...
0
votes
1answer
1k views

Proper procedure to replace VeriSign certificates in Tomcat

I have been having some issues at a client site renewing an SSL cert that previously worked fine. I am familiar with the keytool JDK command line app, and it was how I installed the intermediate CA ...
0
votes
1answer
442 views

Nginx ssl redirection of images

I am trying to set up nginx as reverse proxy for a tomcat server using SSL connection. I want the client's browser to load my tomcat application when nginx reverse proxy's IP is called from client's ...
0
votes
1answer
671 views

Auto-deploy WAR to arbitrary URL on Tomcat

How can I auto-deploy a WAR file (created by Play! framework, by the way) to Tomcat 6, but on an arbitrary URL such as "/sub/url", and without changing the WAR filename? I know I can simply upload it ...
0
votes
2answers
2k views

Tomcat6 on RHEL 5.5

Based on the answer to a similar question (CentOS) I have installed the jPackage .repo file and attempted sudo yum install tomcat6. I am met with the following error messages: --> Finished Dependency ...
2
votes
1answer
1k views

hosting 2 webapps under 1 apache/tomcat

I am trying to host multiple webapps under tomcat 6 behind apache2 via mod_jk. I am at my wits end with this. the problem i am facing that both domains seems to point to a single tomcat 'domain'. my ...
1
vote
1answer
766 views

apache tomcat IE caching problem

I'm running apche2 and tomcat6 both on port 80 with mod_jk setup on ubuntu servers(8.10,9.10). Tomcat is being used for serving jsp pages. I've a small problem with the IE browser which doesn't cache ...
0
votes
1answer
561 views

how to correctly download tomcat 6 on centos 5.5

i am a big confused about how to install tomcat 6 on centos 5.5 final. this is what i am trying to do: # cd /etc/yum.repos.d/ # wget http://jpackage.org/jpackage50.repo # yum install tomcat6 tomcat6-...
5
votes
3answers
8k 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 ...
1
vote
2answers
4k views

Issue replacing SSL certificate with renewed one on Tomcat 6.0 (using keytool)

I have SSL up and running and in use with a Tomcat 6.0 webapp. Recently, the SSL cert (A VeriSign cert) expired , I exported a Certificate Sign Request (CSR) went through the process, and received a ...