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
0
votes
0 answers

Why Spring Boot Embedded tomcat is delaying API response?

We have been using microservices architecture for a long time. The services have been developed using spring-boot. The services were developed long back using Spring Boot 1.3.5.RELEASE, which is internally using the following tomcat…
adwived
  • 63
  • 5
0
votes
2 answers

Spring boot embedded tomcat threadpool configuration

Application is built using spring boot.My application uses application.yaml for external config .But when i am trying to add below config in application.yaml , application fails to start with error as tomcat is not valid.However similar equivalent…
0
votes
0 answers

How to serve programmatically generated html pages on the file system in spring boot

I have a spring boot application that uses spring-web and embedded tomcat. The app has a REST URI where a tar file will be posted to. The tar file will have a number of .csv files. The tar will be kept in a persistent data store for later…
0
votes
0 answers

Spring boot and tomcat connection pool: using embedded server, and without embedded server

I am aware that in Spring boot, we can set properties related to Spring boot and connection pool properties. When we set these properties in a Spring boot application with embedded server, do they take effect? Also, when we disable embedded tomcat…
Chetan Yewale
  • 192
  • 4
  • 16
0
votes
0 answers

mvn spring-boot:run vs java -jar xxx.jar performance difference

In my project i use spring-boot with jsf. When i start my web application from IDE(eclipse) or using 'mvn spring-boot:run' command there is no problem response time is very good. But when i package my app with ' mvn clean install ' and than run…
0
votes
0 answers

could anyone tell me how to set http proxy in embedded tomcat?

I tried to use -Dhttp.proxyHost properties as jvm option to boot spring-boot web application, but it is useless。 here is my code: java -Dhttp.proxyHost=127.0.0.1 -Dhttp.proxyPort=8888 -Djava.ext.dirs=d:\test\MyApp\WEB-INF\lib;%JAVA_HOME%\jre\lib\ext…
boner
  • 11
  • 1
0
votes
1 answer

ClassNotFoundException: ContextLoaderListener, when using Intellij with maven tomcat8 plugin and PostResources

I am using Intellij with the maven tomcat8 plugin. I added a PostResource to my context file:
Robert Bowen
  • 487
  • 2
  • 13
  • 24
0
votes
1 answer

Tomcatembedded not throwing FAILED LifeCycleState

I have a rest jersey application like this @ApplicationPath("/rest") public class HelloApp extends Application { public HelloApp() throws Exception { //also tried throwing Runtimeexcpetion throw new Exception(); } …
vjk
  • 2,163
  • 6
  • 28
  • 42
0
votes
3 answers

Spring boot 2.2 with embeded tomcat 8.5 do not start. disableRegistry did not exist

In my app we are force to use a tomcat 8.5 because we have to support servlet api 3.1 but we upgradred to spring boot 2.2.6. and now the problem is happening while starting using the embedded tomcat. If I comment out the tomcat version in my pom…
creamteam
  • 26
  • 1
  • 3
0
votes
1 answer

Disable JSP pooling in tomcat-embed-jasper

I have a web application using embedded tomcat/jasper, configured in-code as such: public class Main { public static void main(String[] args) throws Exception { String webappDirLocation = "src/main/webapp/"; Tomcat tomcat = new…
LetsBeFrank
  • 774
  • 11
  • 31
0
votes
2 answers

How to disable SpringBoot autoconfiguration for TomcatServletWebServerFactory in order for a custom spring-starter to provide it?

so I was writing my own SpringBootStarter which was supposed to enable the JNDI lookup in the embedded tomcat of a SpringBoot application. My sample SpringBoot application has a dependency of my custom SpringBootStarter, which in turn has a…
0
votes
0 answers

Configuring embedded Tomcat from Spring Boot

I'm searching about how to harden embedded tomcat according to CIS security Benchmark, how I can configure CATALINAHOME, BASE, and how can I configure the security manager with polices. I did not find a flexible way to configure the embedded tomcat…
Murad
  • 81
  • 1
  • 3
0
votes
1 answer

Spring-boot + Apache camel + Embedded tomcat showing The receipt handle has expired on SQS delete. Working fine in external tomcat

Using apache camel for accessing SQS. After message is consumed from SQS it must be deleted from the queue but it is showing 'The receipt handle has expired'. We are facing issue when we do load testing, with few requests it is working fine. The…
0
votes
1 answer

Packaging embedded tomcat server

First time ever using tomcat/setting up a webapp from scratch so please be mercyful. I have created an embedded tomcat server which basically looks like this: public class Server implements Runnable { private Tomcat tomcat; public Server() { …
Erik
  • 293
  • 1
  • 8
0
votes
0 answers

Spring boot 2.0 and Spring security with embedded tomcat 8.5 with Redis sessions

guys! I'm using Spring boot 2 with embedded tomcat with redis for distributed sessions. Everything works perfectly - I have distributed sessions and I'm able to make Blue-green deployment. The problem is when I want to track every request for the…
ROZZ
  • 1,334
  • 3
  • 20
  • 36