Questions tagged [tomcat6]

Version 6.x (December 2006) of the Apache Tomcat servlet container. Use only if your question is specifically related to features of this version.

Version 6.x (December 2006) of the Apache Tomcat servlet container.

Apache Tomcat is one of the most popular open source servlet containers developed by the Apache Software Foundation (ASF). Questions here should relate to Tomcat Version 6.x.

Use only if your question is specifically related to features of this version. Just because you are using this version, doesn't mean you need this tag. Use in addition to or instead of this tag.

See for more information.

1866 questions
43
votes
7 answers

Why is Jboss "better" than Tomcat?

I'm currently starting a new app development. The app architect insists we use JBoss5 because its "better". Do anyone has a wider definition of "better" (if its the case)? I have experience using Tomcat5 and 6 in large scale applications with big…
Chepech
  • 5,258
  • 4
  • 47
  • 70
42
votes
2 answers

AbstractMethodError on deploying Spring 4.0 in Tomcat 6

I am getting below exception on deploying Spring 4.0.1 app in Tomcat 6.0.37: SEVERE: Exception sending context initialized event to listener instance of class…
Vikas Sharma
  • 1,235
  • 2
  • 27
  • 53
41
votes
12 answers

message java.lang.IllegalStateException: No output folder

I am new to Tomcat on Windows. I am trying to deploy my Java project which I have made in RHEL 5 using Tomcat. Now I want to run that project on window. So I copied and pasted my project folder inside the Tomcat web apps Directory i.e C:\Program…
Harishsingh Thakur
  • 1,105
  • 2
  • 11
  • 15
40
votes
3 answers

The command '/bin/sh -c returned a non-zero code: 127

I'm new to docker so I might be doing this wrong, but I'm trying to install Tomcat6 through a Dockerfile which like this: FROM rhel7:latest RUN cd /tmp RUN "wget",…
user5201726
  • 542
  • 1
  • 5
  • 13
37
votes
9 answers

CATALINA_HOME environmental variable is not defined correctly

I installed Apache Tomcat 6.0 to a C:/Program Files folder and I set the environmental variables JAVA_HOME and CATALINA_HOME, but when I start the server using startup.bat, I am getting the error: CATALINA_HOME environmental variable is not defined…
krishna bhargavi
  • 961
  • 4
  • 15
  • 24
36
votes
4 answers

Looking for an example for inserting content into the response using a servlet filter

I've been searching the net and stackoverflow for an example of somebody inserting content into the response using a servlet filter, but can only find examples of people capturing/compressing the output and/or changing the headers. My goal is to…
matt snider
  • 4,013
  • 4
  • 24
  • 39
36
votes
1 answer

How to determine the best number of threads in Tomcat?

How does one determine the best number of maxSpare, minSpare and maxThreads, acceptCount etc in Tomcat? Are there existing best practices? I do understand this needs to be based on hardware (e.g. per core) and can only be a basis for further…
KingOfCoders
  • 2,253
  • 2
  • 23
  • 34
35
votes
12 answers

Get the server port number from tomcat without a request

Is there any Tomcat API or configuration available which can tell an application (probably on startup), what port its running on without a request? Imagine a scenario where there are two web applications running in the same Tomcat and one of which…
Teja Kantamneni
  • 17,402
  • 12
  • 56
  • 86
33
votes
13 answers

Why are my JSP changes are not reflected without restarting Tomcat?

I am editing JSP files which are residing directly inside tomcat/webapps/myapp/WEB-INF, but to see the changes, I have to restart the server. As far as I know, JSP changes don't require you to restart the server. The only configuration I found which…
Rakesh Juyal
  • 35,919
  • 68
  • 173
  • 214
29
votes
6 answers

How to pass the -D additional parameter while starting tomcat?

I have a maven project, after running command mvn install all project as well as module compile and copied to local repository successfully. But now I want to run the generated web application in tomcat6. Client provided some parameter for tomcat…
Rais Alam
  • 6,970
  • 12
  • 53
  • 84
28
votes
4 answers

Define Servlet Context in WAR-File

How can I tell e.g. Tomcat to use a specific context path when given my WAR-File? Example: I have a war file created by maven build and the resulting name of the file is rather long. So I do not want the tomcat manager application to use the…
er4z0r
  • 4,711
  • 8
  • 42
  • 62
27
votes
15 answers

Unable to "Run on Server" a webapp from Eclipse

When running my WebApp project from Eclipse most of times it run correctly. But if by mistake to stop server, I kill it in "Console" view on instead of "Stop" Server from "Servers" View. While running clean project I get…
Ram
  • 2,237
  • 4
  • 23
  • 27
26
votes
3 answers

Deploying war file to Tomcat with a different path

If I deploy a war file to Tomcat, called for example foo-bar-1.1.2.war, how can I deploy it so that it is extracted to webapps/bar and its URL root is /bar/...? My intention here is to keep the war file in the webapps server with its version…
z12345
  • 2,186
  • 4
  • 20
  • 28
26
votes
7 answers

Facing some issues regarding tomcat startup and shutdown on ubuntu 10.04

I am facing some issues regarding tomcat startup and shutdown. I am using Tomcat v.6.0.32 (using the extracted the bundle downloaded from Apache website and not the one distributed by Ubuntu 10.04) Ubuntu v.10.04 I start the tomcat using command:…
Jignesh Gohel
  • 6,236
  • 6
  • 53
  • 89
24
votes
9 answers

Tomcat 6 JAVA_HOME

I try to set the JAVA_HOME path as my Tomcat server is looking for it. I am trying to set it but it doesn't seem to work and causes an error when I do. I am trying to set the JAVA in the setclasspath.bat using set JAVA_HOME="C:\Program Files…
QuinsUK
  • 361
  • 2
  • 5
  • 14