tomcat6

Eclipse - How can I change a 'Project Facet' from Tomcat 6 to Tomcat 5.5?

(Eclipse 3.4, Ganymede) I have an existing Dynamic Web Application project in Eclipse. When I created the project, I specified 'Default configuration for Apache Tomcat v6' under the 'Configuration' drop down. It's a month or 2 down the line, and I would now like to change the configuration to Tomcat 'v5.5'. (This will be the version of...

Problem creating a tomcat 6 server in eclipse form Ubuntu

Hey Guys, I m Having a problem running tomcat 6 with eclipse 3 in ubuntu. i installed tomcat 6 on my machine and when i test it using http://localhost:8080, it work fine. But when i want to create a server in eclipse, when i select Tomcat 6 , i get the following message " Cannot create a server using the selected type". and i can't click...

How to use htpasswd file in Tomcat 6

I have already created a user database file using Apache's htpasswd command. This file is now used by several other application like apache and subversion. Users in are created like this: htpasswd /path/to/users.htpasswd peter This user file is global, not per directory. How I can make Tomcat 6 use this same file as a security real...

How to deploy a WAR onto an existing Tomcat 6 instance using Cargo?

I installed Tomcat using the Windows installer ages ago and it runs fine as a service on my development laptop. Now I'm mavenising my project and would like to use Cargo (or something similar) to deploy updated WARs onto the local Tomcat. I can't find any fully worked examples of a POM file containing the right XML to do this and am str...

Tomcat 6.x Administration

With the Administration tool was not ported from Tomcat 5.x to Tomcat 6.x, how do people manage Tomcat configuration? Are there other 3rd party Admin applications available? Or is all configuration done through editing xml files. Thanks ...

Howto embed Tomcat 6?

I'm currently running my webapps on Tomcat 6 in production, and would like to evaluate running Tomcat in embedded mode. Is there a good tutorial or other resource besides what's in the api documentation? ...

Tomcat6, how to interpret stop service event ?

Hello all, I would like to take some action when tomcat service is going down. For example, I would like to simply log the stop time of the tomcat service. Is there any way to do this by applying hooks to tomcat lifecycle event ? If yes, then please provide some details. I would like to call one class when tomcat is going down and this...

log4j with Tomcat6

I have a peculiar problem with Log4j. We are deploying on Weblogic 10 using log4j.xml. That works fine. We figured a way to run Tomcat 6 in such a way that we can develop on this platform and deploy on Weblogic 10. I have figured out how to make log4j.properies work with Tomcat 6 with additional JArs that use the JULI logging mechanism ...

Tomcat startup fails with not a valid identifier

I have tomcat 6.0.18 running on one server without a problem. With the exact same settings it fails to launch on my colleague's machine. He's even running from the same folder as me (I've stopped my copy while he tries to make it work) All we get when we fire off tomcat using bin/startup.sh is this: CATALINA_OPTS=-server -Xms768m -XX:+...

Error with Tomcat 6 and Tomcat 5.5 Incompatibility

I developed a Tomcat application using Tomcat 6 for testing. I have now deployed it to Tomcat 5.5 - when I invoke the servlet I get an error which doesn't make much sense to me. Does anyone know what causes this error. exception javax.servlet.ServletException: Error allocating a servlet instance org.apache.catalina.valves.ErrorRepo...

Tomcat 6 Hot Deploy issue

Hi I am using Java 6 64-bit and STANDALONE Tomcat 6.0.18 on Vista 64-bit. I am working on a web application with struts 1.3.10 and tiles. Now when I make changes to my java or jsp files, they are not visible when I reload the page. I have to manually reload the web application in Tomcat Manager to see the changes. My web app configurati...

Tomcat 6 and log4j application logging produce no output

I'm trying to get log4j application (webapp) logging working in a Tomcat 6 app. I have log4j-1.2.15.jar in my WEB-INF directory, log4j.dtd and log4j.xml in WEB-INF/classes. My log4j.xml looks like: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd" > <log4j:configuration> <appender name="massAppende...

Tomcat 6 freezes at startup

When I start tomcat 6 it freezes in certain point of the startup and stays there forever (I've waited 3 hours and nothing happened - not even an out of memory error). I don't have any clue of what could cause a behavior like that. I'm runnig tomcat with Jira and Confluence, and the problem seem to be when tomcat tries to load confluence...

how to make tomcat 6 running mulitple domain with non ROOT application name

Hi Gurus, I am trying to run multiple domain on a tomcat 6 on a linux server. I got 404 Errors when I follow the steps here http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html Here is the conf server.xml <Engine name="Catalina" defaultHost="a.mydomain.com"> <Host name="a.mydomain.com" appBase="aapps" autoDeploy="tr...

Tomcat 6 HTTP log rolling and purging

We run our web app in an Apache Tomcat 6 container. Our code uses SLF4J and Logback and rolls/purges just fine. The Tomcat log (catalina, stdout, etc.) just get deleted on a Tomcat service restart. The problem is we also are doing some HTTP logging. As far as anyone can tell it's coming from this line in the Tomcat server.xml file. <Va...

window service auto restart existing tomcat service everday

Is there any utility / maybe use window scheduler to auto restart "tomcat6 service" everyday? any guideliness on this? My tomcat service is installed using javaservice.exe . ...

Is there a practical HTTP Header length limit?

I have a web application that adds contextual information to XmlHttpRequest objects using the setRequestHeader API. I am using a custom header name (e.g. X-Foo) and a JSON structured value. It isn't part of the URL QueryString or POST body because it is meta information about the request. Is there a practical size limit to the header ...

Configuring Apache Web Server with Tomcat

I am trying to configuring apache webserver with tomcat using AJP but i am not sure am i doing it right or not. Here are the steps that i followed Enabled required module in httpd.conf file LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_ajp_module modules/mod_proxy_ajp.so Added the ifModule condition...

php java bridge not working on tomcat 6

I just installed the current Tomcat version on my mac because I wanted to try the PHP Java bridge. I followed the guide here http://php-java-bridge.sourceforge.net/pjb/tomcat6.php but when I paste the xml config to the tomcat configuration file <listener><listener-class>php.java.servlet.ContextLoaderListener</listener-class></listener...

Avoiding tomcat status report

Hi there, I am trying to return a 401 error code from a webapp to trigger a basic authentication process, but tomcat is hijacking the response to display its status report page. Is there a way to prevent tomcat from doing this and let the error code go all the way to the browser? UPDATE My mistake: I forgot the WWW-Authenticate header ...