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
14
votes
3 answers

eclipse + maven + tomcat debugging

I'm developping a web application in Eclipse and I'm using maven, spring and tomcat. Now the problem I have is that debug as => debug on server doesn't work. I just get exceptions. (and yes I've created the server) If I use the mvn command to…
Tom
  • 141
  • 1
  • 1
  • 3
14
votes
9 answers

java.lang.ClassNotFoundException: javax.faces.webapp.FacesServlet

I am getting this error, when executing JSF and PrimeFaces. I have included these jars, jsf-api-2.0.3.jar, jsf-impl-2.0.3.jar , jstl-1.0.2.jar jars and primefaces-2.2.RC2.jar in the WEB-INF/lib folder. Is there any jar I am missing?
Mohan Raj
  • 590
  • 3
  • 8
  • 22
13
votes
3 answers

How do disable Transfer-Encoding in Tomcat 6

I have a web application running on Tomcat 6.0.29 server and JDK 1.6. When I send the response to the client, Tomcat sends Transfer-Encoding: chunked in the headers when the response size is > 8KB. For responses < 8KB, it sends Content-Length :…
Rajendra
  • 1,703
  • 2
  • 16
  • 22
13
votes
1 answer

java.lang.ClassNotFoundException: org.apache.tomcat.jdbc.pool DataSourceFactory

I'm investigating moving away from an Oracle connection pool and using the Tomcat connection pool. I followed the myriad of example for configuring the in Tomcat's /conf/server.xml. I found great info here. However, when I start Tomcat, I…
eze
  • 2,332
  • 3
  • 19
  • 30
13
votes
8 answers

Two or more Web modules defined in the configuration have the same context root

I am running tomcat server 6.0, when I tried to run any web app on this server it gives me a error saying "Two or more Web modules defined in the configuration have the same context root To start this server you will need to remove the…
Jeevan Dongre
  • 4,627
  • 13
  • 67
  • 129
13
votes
3 answers

Tomcat: Restrict access to localhost for /just one/ webapp

I'm running Tomcat 6 to serve several web apps, most of which are public-facing. But I'd like to restrict access to just one webapp, allowing connections only from localhost. I can restrict access for all webapps using a valve in context.xml, as…
Bosh
  • 8,138
  • 11
  • 51
  • 77
13
votes
3 answers

Quartz scheduler in Tomcat 6, thread does not stop

for my webapp I use Quartz. When I deploy the app all is ok. When I undeploy the app, the Quartz thread is not destroyed. Log is: INFO: Stopping service Catalina SEVERE: The web application [/example] appears to have started a thread…
Tommaso Taruffi
  • 8,932
  • 9
  • 44
  • 56
13
votes
3 answers

Is Tomcat 6 ready for continuous integration or how to get it work?

I'm looking for a hint how to make tomcat CI ready or an servlet container / application container which stand often redeploys like they happen when using hudson ci. I experienced that Tomcat 6 does not properly undeploy webapps, leaving classes in…
jpse
  • 229
  • 2
  • 9
12
votes
2 answers

How can a JAX-RS REST service have authentication handled by annotations?

I have a REST api written with JAX-RS, and I need to add authentication to it. So far all the information I've been able to find about it has suggestions for doing it via spring, which I'm not using. Is there something already existing, or would it…
Daenyth
  • 35,856
  • 13
  • 85
  • 124
12
votes
3 answers

Running multiple tomcat servers

I have installed tomcat 6 and 7 to the port 8080. I am using tomcat 6 for deploying my projects in local LAN by loading files from its web apps. At the same time I am using eclipse ide for developing purpose. When ever I have to run my project from…
Sarin Jacob Sunny
  • 2,138
  • 3
  • 29
  • 61
12
votes
5 answers

java.lang.OutOfMemoryError: PermGen space

i'm getting the following error "http-9000-5" java.lang.OutOfMemoryError: PermGen space org.apache.catalina.core.ApplicationDispatcher invoke SEVERE: Servlet.service() for servlet jsp threw exception java.lang.OutOfMemoryError: PermGen space. My…
jayavardhan
  • 587
  • 5
  • 9
  • 19
12
votes
2 answers

Tomcat works but I can't reach http://localhost:8080/

When I run Tomcat from the windows tray, it starts and I can't reach http://localhost:8080/ Tomcat homepage, but if I run it from Eclipse, it works, my applications works, but I can't reach the http://localhost:8080/... How to solve it? Or is it…
Milan
  • 643
  • 4
  • 15
  • 31
12
votes
3 answers

Exception about flash in Mojarra JSF

I upgraded to Mojarra JSF 2.2.1 (from 2.1.22) and since then for each of my requests I'm having an exception in console: GRAVE: JSF1094: Could not decode flash data from incoming cookie value /?. Processing will continue, but the flash is…
Aritz
  • 30,971
  • 16
  • 136
  • 217
12
votes
6 answers

Eclipse: The selection did not contain any resource that can run on a server

I am not able to run maven java web application project to the configured tomcat within eclipse ide. Initially I could right click on the project and run it on tomcat server but ever since I shared the project to a repository I am not able to do…
skip
  • 12,193
  • 32
  • 113
  • 153
11
votes
3 answers

How to set context path in Tomcat so one could enter the site without appending the deployed folder name?

I read about this on Tomcat guide here and some SO questions. And I think I'm pretty much doing the same thing. But in some way cannot manage to succeed. First of all I have to say that my application is deployed on a shared Tomcat server that I…
doctrey
  • 1,227
  • 1
  • 12
  • 25