Questions tagged [tomcat]

Use this tag for questions about Apache Tomcat (or simply Tomcat, formerly also Jakarta Tomcat) which is an open source Servlet Container developed by the Apache Software Foundation (ASF). Most questions should also include a tag specifying the operating system.

Apache Tomcat (or simply Tomcat, formerly also Jakarta Tomcat) is an open-source web server and servlet container developed by the Apache Software Foundation (ASF).

Apache Tomcat is an open-source software implementation of the , Java Server Pages (), and Java API for technologies. The Java Servlet, JSP, and Java API for WebSocket specifications are developed under the Java Community Process. Apache Tomcat is developed in an open and participatory environment and released under the Apache License version 2.

Resources

Documentation

Downloads

Books

43039 questions
683
votes
8 answers

Difference between the Apache HTTP Server and Apache Tomcat?

What is the difference in terms of functionality between the Apache HTTP Server and Apache Tomcat? I know that Tomcat is written in Java and the HTTP Server is in C, but other than that I do not really know how they are distinguished. Do they have…
kaybenleroll
  • 16,794
  • 16
  • 54
  • 66
467
votes
35 answers

MySQL JDBC Driver 5.1.33 - Time Zone Issue

Some background: I have a Java 1.6 webapp running on Tomcat 7. The database is MySQL 5.5. Previously, I was using Mysql JDBC driver 5.1.23 to connect to the DB. Everything worked. I recently upgraded to Mysql JDBC driver 5.1.33. After the upgrade,…
bluecollarcoder
  • 14,339
  • 4
  • 22
  • 18
460
votes
8 answers

What is the difference between Tomcat, JBoss and Glassfish?

I am starting to look into Enterprise Java and the book I am following mentions that it will use JBoss. Netbeans ships with Glassfish. I have used Tomcat in the past. What are the differences between these three programs?
samoz
  • 56,849
  • 55
  • 141
  • 195
375
votes
14 answers

How to get UTF-8 working in Java webapps?

I need to get UTF-8 working in my Java webapp (servlets + JSP, no framework used) to support äöå etc. for regular Finnish text and Cyrillic alphabets like ЦжФ for special cases. My setup is the following: Development environment: Windows…
kosoant
  • 11,619
  • 7
  • 31
  • 37
371
votes
13 answers

How to deploy a war file in Tomcat 7

I have copied the sample.war file into the webapps directory of Tomcat, and I can access localhost:8080. Now how will Tomcat deploy it, I mean do I need to open it in browser? How can I access the application?
John
351
votes
14 answers

To prevent a memory leak, the JDBC Driver has been forcibly unregistered

I am getting this message when I run my web application. It runs fine but I get this message during shutdown. SEVERE: A web application registered the JBDC driver [oracle.jdbc.driver.OracleDriver] but failed to unregister it when the web…
mona
  • 6,079
  • 12
  • 41
  • 46
280
votes
37 answers

Several ports (8005, 8080, 8009) required by Tomcat Server at localhost are already in use

I'm getting the following error when I try to run a simple JSP program on Tomcat in Eclipse. Several ports (8005, 8080, 8009) required by Tomcat v6.0 Server at localhost are already in use. The server may already be running in another process, or…
elle
  • 3,195
  • 6
  • 25
  • 23
264
votes
12 answers

Eclipse add Tomcat 7 blank server name

I was trying to add Tomcat 7 in my Eclipse in Ubuntu. When I click "Add new server" in Eclipse and select "Tomcat v7.0 Server", the field "Server Name" is blank and I cannot type in anything in that textbox as shown below: What I did before is I…
tonga
  • 11,749
  • 25
  • 75
  • 96
231
votes
31 answers

Tomcat: How to find out running Tomcat version?

I'm trying to get Appfuse + Tomcat + jRebel working. Appfuse by default uses Cargo to download tomcat (ver. 7.0.33) and deploy the application to it. I wish to use an already installed tomcat (ver. 7.0.27) instead of the downloaded one. I made the…
Yichz
  • 9,250
  • 10
  • 54
  • 92
212
votes
4 answers

Eclipse debugger always blocks on ThreadPoolExecutor without any obvious exception, why?

I'm working on my usual projects on Eclipse, it's a J2EE application, made with Spring, Hibernate and so on. I'm using Tomcat 7 for this (no particular reason, I don't exploit any new feature, I just wanted to try that). Every time I debug my…
gotch4
  • 13,093
  • 29
  • 107
  • 170
207
votes
7 answers

Jersey stopped working with InjectionManagerFactory not found

I am receiving below error while running my Jersey API in Tomcat 8.5.11 which is causing my API to stop: HTTP Status 500 - Servlet.init() for servlet Jersey REST Service threw exception type Exception report message Servlet.init() for servlet…
gregor
  • 2,397
  • 2
  • 12
  • 18
190
votes
11 answers

What is username and password when starting Spring Boot with Tomcat?

When I deploy my Spring application via Spring Boot and access localhost:8080 I have to authenticate, but what is the username and password or how can I set it? I tried to add this to my tomcat-users file but it didn't work:
Gustavo
  • 3,461
  • 7
  • 26
  • 41
179
votes
8 answers

Apache Tomcat Not Showing in Eclipse Server Runtime Environments

I have tomcat 5.5 installed, running and verifiable at http://localhost:8080/. The Tomcat menu option appears in the Eclipse menu bar and I can start and stop Tomcat from there. In Eclipse, it does not show as a Server Runtime Environment in Window…
Dumars
  • 1,791
  • 2
  • 11
  • 3
173
votes
14 answers

How to set the context path of a web application in Tomcat 7.0

I know that I can rename my webapp (or it's WAR file) to ROOT but this is a terrible way to do it, IMHO. Now I checked out the tomcat doc & it says It is NOT recommended to place elements directly in the server.xml file So I tried doing it…
Chantz
  • 5,883
  • 10
  • 56
  • 79
172
votes
3 answers

Tomcat VS Jetty

I'm wondering about the downsides of each servers in respect to a production environment. Did anyone have big problems with one of the features? Performance, etc. I also quickly took a look at the new Glassfish, does it match up the simple servlet…
Loki
  • 29,950
  • 9
  • 48
  • 62
1
2 3
99 100