Questions tagged [embedded-tomcat-8]

Embedded Apache Tomcat 8

Apache Tomcat 8 implements new versions of the Servlet, JSP and EL specifications as well as adding support for the new WebSocket specification.

It requires Java 7 or later.

Tomcat 8 supports the Java Servlet 3.1, JavaServer Pages 2.3, Java Unified Expression Language 3.0 and Java WebSocket 1.0 specifications

Tomcat 8 embeds a packaged renamed version of Commons DBCP 2.x.

Reference :

http://tomcat.apache.org/tomcat-8.0-doc/changelog.html

213 questions
1
vote
1 answer

Embedded Tomcat gives "did not permit the HTTP upgrade to WebSocket" error

I've been trying to develop an webapp with embedded Tomcat that have both @WebServlet (for serving webpages and RESTful requests) and a @ServerEndpoint (websocket). So far it's working fine on my Intellij. However, when I build the code with Maven…
kevguy
  • 4,328
  • 1
  • 24
  • 45
1
vote
1 answer

How to run a spring web app without a full Tomcat install?

I just began learning Spring MVC, using this tutorial. Entire write and build (under Eclipse) went successfully and a target .war file is generated. However, I need to test-run it and I do not wish to download and install Tomcat at the moment. I…
1
vote
0 answers

Enabling logging in Embedded Tomcat 8.5

I'm rather new to the whole embedded tomcat setup. I'm working on a project that embeds tomcat in an application which I further wish to deploy as a java web start file. So I get this one error which requires me to check logging and having no…
NoJo
  • 41
  • 1
  • 7
1
vote
2 answers

Use tomcat embbed as a datasource instand of Hikari?

I am trying to create a CRUD application with Spring Boot + Spring Data JPA + thymleaf. When I run the application is fine but I can't open it in a browser. I have noticed on the logs the ApplicationContext picked is not…
1
vote
1 answer

Tomcat 8 Disable Chunked Encoding Filter

We have a VPN that we sometimes use to connect to sites remotely only to find that the chunked encoding tomcat seems to use often ends up with a lot of JavaScript files being truncated. In an attempt to remedy this I wanted to build a Tomcat filter…
1
vote
0 answers

Why does servletContext.getResourceAsStream get files outside of the executable jar?

I'm in the process of switching from war-packaging of my Spring Boot app to using an executable jar. My resources are under src/main/webapp and, according to Spring Boot docs (if I understand correctly), should not even be included in the final…
machinery
  • 3,793
  • 4
  • 41
  • 52
1
vote
1 answer

1000+ threads blocks on Tomcat response process

Problem first: My service reponse time increases while the concurrency increases. I found 1000+ threads blocks on the step that tomcat response to client. But I don't know how to solve it. Background: My service is a Spring boot project which…
Wenbin Zhang
  • 323
  • 4
  • 11
1
vote
1 answer

Embedded tomcat doesn't serve img files from tmp dir

I've been migrating a web application from JBoss 7.1 to embedded tomcat and one of our pages is not working properly. The system save an image file in a tmp folder and this file should be accessed like…
1
vote
0 answers

Can Spring Cloud Task application can run on embedded tomcat

I have a simple webapp with @EnableTask annotation at main class. My Application is running on embedded tomcat. Is it is possible to run SpringBoot WebApp wrapped with @EnableTask annotation in embedded tomcat. Is yes can i have a simple example for…
1
vote
2 answers

Spring boot _jspService is exceeding the 65535 bytes limit

I'm getting the following error _jspService(HttpServletRequest, HttpServletResponse) is exceeding the 65535 bytes limit I know that with Apache Tomcat the following tag in tomcat's web.xml fixes the issue
Ujjwal Pathak
  • 646
  • 12
  • 21
1
vote
2 answers

Struts 2 fails to initialize Dispatcher in executable war - Embedded Tomcat

I'm migrating a webapp from JBoss to Embedded Tomcat. It works on intellij but when I run the war file with java -jar myapplication.war it shows the following error. After googling I couldn't find any solution. This problem seems like I have two…
1
vote
2 answers

Spring boot - Embedded Tomcat - Connector Customizer - fail to add parseBodyMethods attributes

The original problem is when I sent a http request with method 'DELETE', the body part couldn't be sent to the server. After googling, I found this article that suggests modifying the server.xml file and adding 'parseBodyMethods' to the Connector…
1
vote
0 answers

Tomcat logging.properties changes not being respected

I have a web application running on top of Tomcat 8.5.11. When I create different instances, all the instances are up and running properly. A class called TcpFailureDetector is present in Tomcat which is responsible for checking if all the instances…
1
vote
0 answers

Springboot Load-Time Weaving doesn't allow to inject a spring bean into an aspect for embedded Tomcat when devtools is used

I'm using pretty recent springboot v1.5.2 with aspectj's (v1.8.10) load time weaving. I was able to inject a spring bean into my aspectj aspect while running my application on an external tomcat and now I wonder why just the same failed for the…
1
vote
1 answer

404 when deploying Grails 3.1.10 war to tomcat7 or tomcat8

The closest stackoverflow question that explains my symptoms is here - How can I deploy a Grails 3.0.1 war file in Tomcat7? I am in the process of upgrading a Grails 2.3.4 application to Grails 3.1.10 and everything is working with 'grails…
Kirby
  • 1,980
  • 3
  • 21
  • 33