Open source web server developed by the Apache Software Foundation

learn more… | top users | synonyms

0
votes
1answer
493 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
230 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
395 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
801 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 ...
6
votes
1answer
5k 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
2k 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
95 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
260 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
371 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
160 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 ...
4
votes
2answers
706 views

best way to monitor web app performance in tomcat

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
180 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
2k 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
640 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
131 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
190 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
800 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
371 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
129 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 ...
0
votes
1answer
202 views

How do I stop Apache Tomcat from requiring context paths to exist on the file system?

I'm in the middle of trying to deploy IIS + Tomcat, and its' a mess. The company has a ton of virtuals set up in IIS, and because there are so many and some of the virtuals contain JSPs, we need ...
0
votes
1answer
112 views

PersistenceManagerFactory not initialized while accessing wookie in tomcat

I am trying wookie inside tomcat. Whenever I try to run wookie through (http://localhost:8080/wookie) I get the following log. org.apache.catalina.core.StandardWrapperValve invoke SEVERE: ...
0
votes
1answer
1k views

Tomcat is logging everything to stdout

I have Tomcat 6 installed as a Windows service. All log messages from my web application dreambear (logged with getServletContext().log()) are going to the stdout log instead of the log file I ...
1
vote
1answer
285 views

Tomcat-6: manager for specific host

I have Linux server with one Tomcat-6 installation and many hosts. All hosts are configured in /etc/tomcat/server.xml , each host points to different folder and webapps folder. Is there any way to ...
0
votes
1answer
361 views

Remotely deploy .war file into tomcat webapps

I have tomcat5.x and tomcat6 running on different machines. I usually use scp to deploy .war file to tomcat servers. Is there any other way to remotely deploy? Thank you!
1
vote
1answer
290 views

Deployment routine for WAR archive on Windows / Tomcat 6 without downtime?

We have an web application running on Tomcat 6 (on WS2K3) which is updated every week as of a new release. Currently, we have a very simple batch script that every night checks the content of one ...
1
vote
2answers
1k views

Tomcat - additional classpath

We have set up Tomcat 6 with [TOMCAT_HOME]/lib - here is the standard tomcat release [TOMCAT_BASE]/lib - here we like to add non standard additional jar file However somehow I don't manage to get ...
1
vote
2answers
3k 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 ...
0
votes
1answer
172 views

Tomcat6 vhost problem

I've been using vhosts on my XP dev machine with little to no problems, but I can't seem to duplicate the environment on Ubuntu. I've already added a line to /etc/hosts like so: 127.0.0.1 ...
0
votes
4answers
83 views

What is the most appropriate place to place tomcat in a RHEL/Centos Environment

Developing a virtual machine that will be managed by IT Admins - where is the most appropriate or commonly accepted place to install the tomcat directory on a CentOS system?
2
votes
2answers
3k 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 ...
1
vote
1answer
501 views

Tomcat: List of Command Line Parameter/Arguments

I've moved a Production application from Tomcat 5.5.23 to 6.0.29, and my question is - are my command line arguments/parameters still valid? export JAVA_OPTS="-Xms1024m -Xmx2048m ...
0
votes
1answer
545 views

Point root domain to one server and all sub-domains to another server

I have a requirement where I want to point my root domain i.e www.abc.com or abc.com to one server (static website) and *.abc.com to another server (application server) I have bought domain from ...
2
votes
2answers
474 views

Tomcat 6 init.d/SysV script

I have a custom Tomcat 6 installation on an Ubuntu box. I'm trying to get it to start on system boot, but can't seem to find a script to put in /etc/init.d. Where can I find one? Or how do I write it ...
0
votes
1answer
152 views

Configuring ssl in tomcat6

How to configure ssl for testing on local machine with windows and tomcat6 to enter sites like http://localhost:8443? Thanks
1
vote
1answer
224 views

Number of war files on Tomcat 6.0

How many war files be deployed on a Tomcat 6.0 server?
0
votes
1answer
307 views

Ubuntu 10, tomcat, Apache, concurrent user load

I have a question regarding the web server that I am setting up. It is a dual core 2.67 G AMD 64 bit X2 based machine with 2GB of ram (667MHZ). I am setting it up with tomcat, apache2 and MySql(all ...
0
votes
2answers
190 views

Tomcat not shutting down in Red Hat 5.5

I'm running a Tomcat 6 server on a Red Hat 5.5 machine that I don't have root access for, although I do own all of the Tomcat files. The server starts up fine when I run startup.sh, but for some ...
0
votes
1answer
278 views

Configuring Ubuntu as a webserver for tomcat

Our SysAdmin has been in an accident and is out of action (Coma) for a while and we're in desperate need of setting up Confluence on our clients domain, as the resident "java drinker" at work I've ...
0
votes
3answers
1k views

Fix a tomcat6 error message “/bin/bash already running” when starting tomcat?

I have a Ubuntu 10.04 machine that has tomcat6 on it. When I start tomcat6 with /etc/init.d/tomcat6 start I get * Starting Tomcat servlet engine tomcat6 /bin/bash already running. and the server ...
0
votes
2answers
498 views

In Ubuntu 10.04, how can I add the “manager” webapp to a private tomcat6 instance?

I created a tomcat6 instance using the tomcat6-instance-create command from the tomcat6-user package. However, there are no webapps by default, and I want to add the "manager" webapp to this instance. ...
0
votes
2answers
158 views

New tomcat install on OSX choking on startup

I've completed a fresh install of Tomcat6 on an OS X box that didn't have it before. It's behaved a bit strangely in other ways, but the current hang-up is that it won't start at all. In response to ...
2
votes
2answers
635 views

Hardening non-root standalone Linux Tomcat install

I want to know if you have any tips as to how to strengthen the security of a non-root install of Tomcat in standalone mode once Tomcat is already installed in a non-root account, in standalone mode. ...
0
votes
1answer
2k views

Force Tomcat6 to server all *.manifest files as text/cache-manifest?

How do I configure tomcat to server all .manifest files as text/cache-manifest? I'm trying to create an offline cache, and this is tripping me up.
5
votes
6answers
627 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 ...
3
votes
2answers
691 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 ...
0
votes
2answers
2k 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 ...
2
votes
3answers
5k 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 ...
0
votes
1answer
129 views

Tomcat abnormal shutdown

I have tomcat 6 running perfectly all jsp files tested and working, but Tomcat get closed abnormally any time, i am not able to diagnose the cause. Suggest how to diagnose.
0
votes
2answers
1k views

tomcat6 on ubuntu fails when user set to root

I'm well aware that running tomcat6 is really bad from a security point of view - and opens the box it is running on to all kinds of security risks and attack vectors. That said: When I change the ...
4
votes
1answer
178 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 ...