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

Official reasons for "Software caused connection abort: socket write error"

Given this stack trace snippet Caused by: java.net.SocketException: Software caused connection abort: socket write error  at java.net.SocketOutputStream.socketWrite0(Native Method) I tried to answer the following questions: What code is…
Eran Medan
  • 44,555
  • 61
  • 184
  • 276
163
votes
7 answers

The import javax.servlet can't be resolved

I'm trying to use eclipse for Java EE to develop web applications. I need to use Tomcat as my server. I've downloaded Tomcat and it's running. But my program doesn't compile. I get the following error: The import javax.servlet can't be…
snakile
  • 52,936
  • 62
  • 169
  • 241
162
votes
8 answers

How to use JNDI DataSource provided by Tomcat in Spring?

It is said that in the Spring javadoc article about DriverManagerDataSource class, that this class is very simple and that it is recommended to use a JNDI DataSource provided by the container. Such a DataSource can be exposed as a DataSource bean…
Suzan Cioc
  • 29,281
  • 63
  • 213
  • 385
161
votes
14 answers

How to change the port of Tomcat from 8080 to 80?

I want to execute my web app as http://localhost.
Lokesh Sah
  • 2,283
  • 5
  • 23
  • 33
157
votes
8 answers

Error during SSL Handshake with remote server

I have Apache2 (listening on 443) and a web app running on Tomcat7 (listening on 8443) on Ubuntu. I set apache2 as reverse proxy so that I access the web app through port 443 instead of 8443. Besides, I need to have SSL communication not only…
user2791481
  • 1,671
  • 2
  • 12
  • 4
152
votes
6 answers

IntelliJ and Tomcat....changed files are not automatically recognized by Tomcat

I am running Intellij Ultimate with Tomcat and deploy a war. Everything deploys fine to the webapp directory of tomcat. When I change a file like an xhtml file, is there a way for tomcat to automatically pick up that change? As of right now I…
Peter
  • 1,657
  • 2
  • 11
  • 18
151
votes
24 answers

Multiple contexts with the same path error running web service in Eclipse using Tomcat

This is the error that I got when I created my first Axis2 web service using Eclipse. After I wrote the class, I created the web service with Apache Axis2. When I click the start server button in eclipse it gives an error message: Could not publish…
kkk
  • 1,551
  • 2
  • 10
  • 9
150
votes
20 answers

How to set the max size of upload file

I'm developing application based on Spring Boot and AngularJS using JHipster. My question is how to set max size of uploading files? If I'm trying to upload to big file I'm getting this information in console: DEBUG 11768 --- [io-8080-exec-10]…
Michał Styś
  • 1,743
  • 3
  • 12
  • 16
150
votes
4 answers

Error starting Tomcat from NetBeans - '127.0.0.1*' is not recognized as an internal or external command

Both Google and Stackoverflow have shown me people with similar issues however this error is slightly different in that the IP address is suffixed with an asterisk: NetBeans 8.0.1 is giving me the following error when trying to start…
user835745
  • 1,974
  • 3
  • 17
  • 18
147
votes
10 answers

Deploying my application at the root in Tomcat

I have the war file of my application. I need to deploy this at the root level. The current URL is http://localhost:8080/war_name/application_name.
iamjustcoder
  • 4,714
  • 10
  • 33
  • 46
147
votes
8 answers

Where can I view Tomcat log files in Eclipse?

Where can I view Tomcat log files in Eclipse? For some reason my Tomcat installation/log folder is always empty. BTW, does Tomcat dump to the log file after a while or is it immediate?
Blankman
  • 259,732
  • 324
  • 769
  • 1,199
144
votes
14 answers

Eclipse Build Path Nesting Errors

I'm working on a simple JSP/Servlet/Tomcat webapp for my class. The professor asked us to use a folder structure that is slightly different than the default dynamic web project structure. Rather than using the webcontent folder he wants all of our…
0xBrandon
  • 1,739
  • 3
  • 18
  • 21
140
votes
5 answers

JBoss vs Tomcat again

This will appear to be the age old question (which it is :)) that which server is better between Tomcat and JBoss, but I have not found a good enough answer yet to solve my problem. I know that Tomcat is only a servlet engine and JBoss offers many…
Ashish
  • 3,028
  • 5
  • 28
  • 35
140
votes
7 answers

IntelliJ and Tomcat.. Howto..?

Using Netbeans, I develop sites with Tomcat as the local server to manage it. In Netbeans it was "Install, write hit Run and it works" How do I pull the same thing off in IntelliJ? I can't find step-by-step instructions for this.
Mantar
  • 2,710
  • 5
  • 23
  • 30
140
votes
11 answers

Simplest way to serve static data from outside the application server in a Java web application

I have a Java web application running on Tomcat. I want to load static images that will be shown both on the Web UI and in PDF files generated by the application. Also new images will be added and saved by uploading via the Web UI. It's not a…
Janne
  • 3,647
  • 7
  • 28
  • 34