Questions tagged [embedded-tomcat]

53 questions
1
vote
2 answers

how to use digest.sh in embedded-tomcat

I know that $CATALINE_HOME/bin/digest.sh is used to generate hashed passwords which can be used in tomcat_users.xml but how can I implement the same behavior where I am using embedded tomcat in the project as it doesn't have bin/digest.sh? UPDATE: I…
1
vote
1 answer

org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter cannot be cast to javax.servlet.Filter in Struts 2 using embedded Tomcat

I have a Struts 2.5.5 web app. I want to run it with integrated Tomcat. I am using the below plugin org.apache.tomcat.maven tomcat7-maven-plugin 2.1
GeekCoder
  • 150
  • 1
  • 14
1
vote
0 answers

Spring Boot: StackOverflowError HttpServletRequestWrapper getUserPrincipal

in our production log we got the following very long stack traces: java.lang.StackOverflowError: null at javax.servlet.http.HttpServletRequestWrapper.getUserPrincipal(HttpServletRequestWrapper.java:199) ~[tomcat-embed-core-9.0.37.jar!/:4.0.FR] …
1
vote
1 answer

How to hide the embedded tomcat version when we have errors while using springboot with microservices?

As we have default tomcat in our springboot project, not able to set as in the below url. https://www.inoks.com/hide-tomcat-version-from-the-error-message/ https://www.thegeekstuff.com/2013/08/hide-tomcat-version-number/ Also tried by adding…
Rakshith M
  • 79
  • 1
  • 1
  • 7
1
vote
0 answers

Spring Boot Embedded Tomcat Internal Working

I recently read an article regarding Tomcat architecture and a high level overview of its working and monitoring. Key metrics for monitoring Tomcat - DataDog In this article, it mentions Tomcat having a pool of worker threads per connector that can…
VishG
  • 11
  • 4
1
vote
0 answers

Get NoInitialContext Spring Boot 2.0.x Embedded Tomcat Resource and DataSource Configuration Using JavaConfig

Following other links I have tried all configurations including enabling jndi of embedded tomcat container. (A very good detailed like is: https://www.roytuts.com/spring-boot-jndi-datasource/) But the problem is that the DataSource is looked up…
Hridayesh
  • 11
  • 1
0
votes
0 answers

Can the configuration for the embedded tomcat affect the external tomcat?

I have a Spring Boot Web application In the configuration file, I configure the server (for local launch): server: port: 8085 tomcat: threads: max: 25 servlet: context-path: /path Can these settings somehow affect tomcat…
Santa Monica
  • 332
  • 3
  • 11
0
votes
0 answers

Spring Boot App - Reactor Core Threads not being Stopped on Shutdown

Since upgrading from Sprint Boot 2.5.14 to Spring Boot 2.7.10, I see numerous warnings on application shutdown notifying me that threads have not been properly stopped. Through testing, I discovered this was related to the usage of Schedulers in…
Katie926
  • 1
  • 4
0
votes
0 answers

Tomcat9 transferring execution of same http request to different http-nio-8080-exec-x thread after reading 1448 bytes

2023-04-10 21:09:48,132 [http-nio-8080-exec-6] DEBUG Http11NioProtocol - Found processor [null] for socket [org.apache.tomcat.util.net.NioChannel@75e0481f:java.nio.channels.SocketChannel[connected local=/**ipv4**:8080…
R C
  • 21
  • 1
  • 7
0
votes
1 answer

How to define rewrite rules for a jhipster application with angular frontend running productive as jar with embedded tomcat?

One needs to configure some rewrite rules for Angular SPAs to redirect requests to the index.html: https://angular.io/guide/deployment#server-configuration We use the Jhipster generator (Spring Boot) as a starting point for our applications and…
0
votes
1 answer

how to set maxHttpHeaderSize in spring-boot 3.x

As stated in the Spring Boot 3 Migration Guide the server.max-http-header-size property has been deprecated. You can use the server.max-http-request-header-size property to set the max http request header size only. I get the following…
pero_hero
  • 2,881
  • 3
  • 10
  • 24
0
votes
1 answer

Basic Weld example with Embedded Tomcat not working

I am trying to use Weld with Embedded Tomcat (10.1.5) using a basic example and settings from official weld docs. This weld injection with same code works fine with Tomcat on Eclipse. However, on Embedded Tomcat, the injected bean is always null. If…
newuser
  • 76
  • 4
0
votes
0 answers

Passing @PropertySource and Maven variable from command line

I have create a SpringBoot fat war application to run it inside his embedded Tomcat. Now I have a older configuration like follow: @SpringBootApplication @PropertySources({ @PropertySource(value = "${app.config}", ignoreResourceNotFound =…
CoderJammer
  • 599
  • 3
  • 8
  • 27
0
votes
0 answers

How to implement websocket by embed-tomcat?

I want to implement websocket by embed-tomcat, but when I run my program, the tomcat can't handle websocket request, it just can handle servlet request, this is my github demo program: https://github.com/ZTW1995/tomcat-websocket-demo. What should I…
0
votes
1 answer

Packaging Spring MVC project with embedded Tomcat server into a JAR file

I need to create a JAR file for the Spring MVC (not spring boot) project with an embedded tomcat server. I am using shadow gradle plugin to create the JAR. Everything works fine when I run the main method which launches the tomcat server and deploys…
Yaphet17
  • 123
  • 9