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
10
votes
4 answers

java.lang.ClassNotFoundException: org.apache.catalina.core.ThreadLocalLeakPreventionListener

I'm trying to create a web service and deply it on Tomcat. I'm following this tutorial. I'm using Eclipse Europa. But when I try to start the server it returns this error: java.lang.ClassNotFoundException:…
rogcg
  • 10,451
  • 20
  • 91
  • 133
10
votes
6 answers

Has anyone created a Hudson or Jenkins Job to deploy to an AWS Beanstalk Instance?

I want to move an app I have to beanstalk. I want to have an easy automated way to promote new builds though. The console interface in beanstalk is nice: I can just get the war file and upload it. However, it would be nice if I could just run a…
Rob
  • 11,446
  • 7
  • 39
  • 57
10
votes
4 answers

How do I configure dynamic weaving using EclipseLink & Spring?

How do I configure dynamic weaving using EclipseLink & Spring? Right now I'm trying to get this working with a Junit test, but I'll later have to have it work with Tomcat (my department has been standardized on it for something like 10 years). I'm…
Kaypro II
  • 3,210
  • 8
  • 30
  • 41
10
votes
2 answers

Embedded Tomcat not serving static content

I'm using the following (based on this) to create an embedded Tomcat server: File catalinaHome = new File("."); File webAppDir = new File("web"); Embedded server = new Embedded(); server.setCatalinaHome(catalinaHome.getAbsolutePath()); Context…
Alan Krueger
  • 4,701
  • 4
  • 35
  • 48
10
votes
4 answers

jps not showing Tomcat process

I am running Tomcat 6.0.31 on Ubuntu 10.10 and using tge Sun JDK (java-6-sun). Although tomcat is running its process does not show up when I run jps (Java Virtual Machine Process Status Tool). The only output I see is the pid for the jps process…
user768520
  • 115
  • 1
  • 6
10
votes
3 answers

Tomcat Java Servlet - Initialize Class on Application Startup

I have a class that takes a bit of time to start up (makes some JNI calls and what not), so it is not feasable to initialize this class everytime a page loads. Is it possible to initialize this class on application startup, then access its methods…
Petey B
  • 11,439
  • 25
  • 81
  • 101
10
votes
1 answer

Tomcat NioEndpoint - Error running socket processor

In a Spring Boot production app, the following exception is occasionally thrown: o.a.t.u.n.NioEndpoint : Error running socket processor java.util.NoSuchElementException: No value present at java.util.Optional.get(Optional.java:148) ~[?:?] …
Snackoverflow
  • 5,332
  • 7
  • 39
  • 69
10
votes
5 answers

Tomcat is unable to find my Servlet and is throwing exceptions, but why?

I'm trying to get into Java web development but seem to be running into a strange issue with Tomcat and an extremely simple servlet. The catalina log is spewing this every time I try and load the app: Caused by: java.lang.IllegalArgumentException:…
spligak
  • 197
  • 1
  • 3
  • 11
10
votes
2 answers

Prevent session timeout during database update

Background A web application calls a stored procedure to perform an intensive database update. The relevant portion of web.xml was updated to four hours: 240 The technologies…
Dave Jarvis
  • 30,436
  • 41
  • 178
  • 315
10
votes
2 answers

Are multiple requests handled by single thread in Spring Boot until certain requests threshold is reached?

In my Spring Boot 2.1.6 project (based on Tomcat) I have a rest controller. I added a default constructor to it which prints something. I thought in Tomcat-based servers each request is handled in separate thread. So I expected each request to…
hitchhiker
  • 1,099
  • 5
  • 19
  • 44
10
votes
4 answers

Tomcat and java SDK problem

I am trying to create a new dynamic web project in eclipse (in ubuntu). When I point to Target Runtime as Tomcat V 7.0 , I get the below warning runtime "Apache Tomcat v7.0" is invalid. Tomcat requires a Java SDK in order to compile JSP files.…
Vinoth Kumar C M
  • 10,378
  • 28
  • 89
  • 130
10
votes
2 answers

How to catch FileSizeLimitExceededException in a spring boot multipart controller action in a tomcat container?

When I upload a file of size that exceeds the configured max file size, the response returned is not very pretty or useful to my JS UI. So, I want to catch it and handle it. But, the issue is error is thrown before my controller is entered. Thus,…
Calicoder
  • 1,322
  • 1
  • 19
  • 37
10
votes
3 answers

Tomcat occasionally returns a response without HTTP headers

I’m investigating a problem where Tomcat (7.0.90 7.0.92) returns a response with no HTTP headers very occasionally. According to the captured packets by Wireshark, after Tomcat receives a request it just returns only a response body. It returns…
Kohei Nozaki
  • 1,154
  • 1
  • 13
  • 36
10
votes
1 answer

Why is tomcat going to 200+ threads with Spring WebFlux?

I am doing a POC with Spring WebFlux on Tomcat. The stack is totally reactive and using Spring Reactor and Reactive Couchbase. When I added load on the System, I saw that the number of threads in JVisualVM increased to 200+. Basically, reactor-http…
Vikram Rawat
  • 1,472
  • 11
  • 16
10
votes
4 answers

Java and Xerces: can't find property XMLConstants.ACCESS_EXTERNAL_DTD

I looked for similar posts on this blog, but couldn't find an answer to my question, so I decided to ask for help. I wrote this simple function in Java: public void open(InputStream stream) throws FoliumFatalException { try { …
Bia
  • 165
  • 1
  • 3
  • 12
1 2 3
99
100