Open source web server developed by the Apache Software Foundation

learn more… | top users | synonyms

1
vote
1answer
299 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
242 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
902 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 - ...
7
votes
1answer
7k 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
250 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
449 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
282 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
588 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 ...
0
votes
2answers
542 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
654 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
292 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 ...
15
votes
6answers
18k 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
2k 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
2answers
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 ...
1
vote
2answers
1k 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
938 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 ...
0
votes
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
660 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
993 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
193 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
534 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 ...
1
vote
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
553 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
524 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 ...
4
votes
3answers
5k 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
2k 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 ...
0
votes
1answer
2k views

trouble running multiple domains on tomcat behind apache via mod_jk

I am having trouble setting up tomcat6 with 2 virtual hosts, behind apache2. if i have just one host defined in tomcat, and one jk worker, everything works fine. as soon as i define another jk worker ...
0
votes
3answers
987 views

How to get html/css/jpg pages server by both apache & tomcat with mod_jk

I've apache2 and tomcat6 both running on port 80 with mod_jk setup on ubutnu servers. I had to setup an error document 503 ErrorDocument 503 /maintenance.html in the apache configuration and somehow I ...
0
votes
2answers
2k views

How do I configure tomcat6 with a host name?

I'm trying to deploy the WAR file of Apache Shindig to an apt-installed Tomcat 6 server on Ubuntu 10.04. Unfortunately, when it writes out things like <script> tags, all the URLs are ...
0
votes
1answer
662 views

Switch 302 redirect to 301 with Apache 2 ProxyPass in front of Tomcat 6

I'm trying to optimise my site for SEO and it seems as though their is a 302 direct in action for the http requests. I'm hosting my app on a Tomcat 6 server which lies behind an Apache 2 server. I ...
0
votes
1answer
247 views

apache2 tomcat6 single instance or multiple instances

I have apache tomcat servers(ubuntu 9.10) hosting jsp pages. Each server has two virtual hosting and is setup in apache and tomcat configuration files. Developers are in a plan to add two more jsp ...
0
votes
2answers
471 views

Tomcat hangs when enabling tomcat-users.xml

Disclaimer: I'm not a server admin. I recently put up tomcat on my home server and I intend to link it to my apache2 service. My issue here is that I can't even get manager as it seems that whenever ...
0
votes
1answer
1k views

Setting Environment Variable for Tomcat 6 Servlet

I'm using Ubuntu's default installation of Tomcat 6. I'm deploying a ROOT.war, and trying to set an environment variable specific to it, i.e. accessible from System.getenv() in the ...
10
votes
1answer
12k 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 ...
1
vote
1answer
3k views

JNDI Datasource Problem on Tomcat 6, Hibernate

I am using Tomcat 6 as application server, Struts-Hibernate and MyEclipse 6.0. My application uses JDBC driver but I should modify it to use JNDI Datasource. I followed steps as described in tomcat ...
0
votes
1answer
97 views

Where can I find details on installing and using Solr on Tomcat using the solr-common and solr-tomcat packages?

I'm seeing lots of Solr/Tomcat installation instructions, but all of them install at least one of these packages from source. Since there's tomcat6, solr-common, and solr-tomcat packages (in Ubuntu ...
0
votes
1answer
321 views

Tomcat unable to start

When I am starting the tomcat-6, its giving me the below error: Error: Invalid com.sun.management.jmxremote.port number: %my.jmx.port% I have enabled the remote port sometime back in catalina.sh ...
0
votes
1answer
406 views

tomcat6 & apache2 virtual hosting

I've apache2 and tomcat6 running on port 80 on ubuntu server 9.10. I've a registered domain name and I'll access the jsp index page navigating to http://abc.mydomain.com. The page is under ...
0
votes
1answer
178 views

Tomcat virtual hosts accessible at two URLs

I have some web apps deployed on Tomcat, using the following configuration: <Engine ...> <Host name="a.mycompany.com" ...> <Host name="b.mycompany.com" ...> <Host ...
3
votes
2answers
1k 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 ...
0
votes
1answer
215 views

Apache VirtualHost and ModProxy not working as hoped

I have 3 wars set up on a Tomcat instance - these wars are being served at: http://machine:9023/war1 http://machine:9023/war2 http://machine:9023/war3 I have Apache on the same machine. I am ...
0
votes
2answers
5k 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 ...
0
votes
1answer
953 views

Tomcat unpack wars into directory other than appBase

We would like to configure Tomcat in the following way (where X -SL-> Y represents a symlink named X pointing to a path Y): CATALINA_HOME/webapps -SL-> /var/data/nas/deploymentconfiguration_a ...
1
vote
1answer
160 views

Requiring a password for every webapp under Tomcat

This guide shows how to configure a user/pass authentication for a specific webapp. How can I configure Tomcat to require a global user/pass for all the webapps?
0
votes
1answer
206 views

How do I deploy wars to JBossWeb using context files, like in Tomcat

In Tomcat 6, I can create context fragment files in CATALINA_HOME/conf/Catalina/localhost to handle the deployment of wars (instead of copying the war to the webapps folder). Is it possible to do the ...
0
votes
1answer
980 views

tomcat6 on centos 5.5 not stopping

Configuring a server for a friend, first time I've dealt with Tomcat and I'm close to tearing what little hair I have left, out :) For his project he needs to use a PHP Java Bridge, I've got the ...
0
votes
1answer
416 views

How should I deploy my JVM-based web application on ubuntu?

I've developed a web application using clojure/compojure (JVM based) and while developing I tested it using embedded jetty that runs on 0.0.0.0:8080. I would now like to deploy it to run on port 80 on ...
0
votes
1answer
138 views

Apache Httpd bad caching on Drupal pages that include content from Tomcat

I have a Drupal website running on Httpd that makes AJAX calls to fetch fragments of HTML that are served up by JSPs in Tomcat 6 running on a different virtual host. Integration between the two ...