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
2
votes
1 answer

Scanning manifest classpath jars in Embeeded Tomcat

I have an embedded Tomcat application packaged as an executable (thin) jar with multiple external jar dependencies. The build process generates a META-INF/MANIFEST.MF with header fields Main-Class and Class-Path (with an entry per runtime…
idelvall
  • 1,536
  • 15
  • 25
2
votes
1 answer

how to change the session id length in spring boot

I am using spring boot for a webapp running on embedded tomcat. I want to change the session id length from the default 16 bytes to 32 bytes. I had a look into this post Session Id Length in Tomcat and learnt that we can provide the following in the…
Amith M
  • 61
  • 1
  • 7
2
votes
1 answer

Thymeleaf-template not found with embedded tomcat

At my program sze I tried to switch to embedded tomcat. Unfortunately I run into trouble, because the following thymeleaf-construct can't be solved. The main.html is in the same directory as login.html which…
niels
  • 7,321
  • 2
  • 38
  • 58
2
votes
2 answers

Howto use JNDI database connection with Spring Boot and Spring Data using embedded Tomcat?

When I try to use a JNDI datasource with Spring Boot and Spring Data JPA using an embedded Tomcat server, I get the following error message when running the application with…
derkoe
  • 5,649
  • 2
  • 23
  • 31
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

Accessing Rest API deployed on private port from a angular app deployed on public port (Internet facing)

I have a spring boot based REST API deployed on a private Port 7070(embedded tomcat) which is not accessible via internet. Also, I have made a angular app which is deployed on public port 9070 which is accessible via internet. When i am trying to…
Siddharth Singh
  • 65
  • 2
  • 12
1
vote
1 answer

Embedded Tomcat Hardening - How to alter/override Advertised server information in Spring boot?

I've been digging how to do 'tomcat hardening' on embedded tomcat and I can't find a way to alter these 3 catalina server info properties: server.info, server.built, server.number Is there a way to alter those 3 properties in spring…
Pory
  • 71
  • 5
1
vote
0 answers

How to make spring boot embedded tomcat to accept gzipped request data

I hava a spring boot API using the embedded tomcat . I want to make the API to accept compressed request body . I could find references on making compressed responses only . Could anyone please share what needs to be changed to support gzipped…
Ansar Samad
  • 572
  • 2
  • 11
  • 34
1
vote
2 answers

AJP in containerised Spring boot app doesn't work

I'm trying to use AJP protocol to communicate with the app created using Spring Boot 2.2.6 with embedded Tomcat and containerised using this official guide. My server uses Apache Server to proxy all requests to different apps and containerised…
Krzysztof Skrzynecki
  • 2,345
  • 27
  • 39
1
vote
1 answer

How to read an excel which has arabic columns

while reading excel sheet, arabic columns are displaying as ???? remaining english columns are displaying fine. i guess utf-8 issue i don't know where i miss something. please do happy help FileInputStream fis = new FileInputStream(fileName); …
1
vote
2 answers

How do I get real path as string in Grails

Developed project using grails-3.3.1 and generated a Runnable WAR file. When I run using the command: java -jar build/libs/myproject-0.1.war It is returning null for the following line: serveltContext.getRealPath("/someSource"); But it is working…
Abdul
  • 81
  • 8
1
vote
1 answer

Using embedded Tomcat 8, how can I initialize the Websocket Containter if the tomcat-embed-websocket.jar is not in the class path?

I am using a runnable jar (with-depenencies) to start an embedded tomcat that hosts a webapplication which uses struts2 and websockets. The application works propperly when running in an Tomcat installation, but when run from the mentioned runnable…
Juan
  • 5,525
  • 2
  • 15
  • 26
1
vote
2 answers

Spring Boot 2.1.3.RELEASE and I wanted swagger-ui.html as home/welcome page and handel ROOT context (/)

I have spring boot 2 and swagger API page working at http://localhost:8448/portalapi/swagger-ui.html. But I wanted to map http://localhost:8448/ and http://localhost:8448/portalapi/ to forward the request to…
Bmis13
  • 550
  • 1
  • 8
  • 27
1
vote
0 answers

Cannot enable APR Protocol on Embedded Tomcat

I am trying to use the APR protocol in my Spring Boot project. Till now i have downloaded the tomcat-native library and did what it instructed me to do, which are ./configure , make and make install. After that i copied all libtcnative files with…
sam
  • 1,800
  • 1
  • 25
  • 47
1
vote
0 answers

Spring boot war with embedded tomcat causing performance issues for jsps

We've lots of jsps in our application when we migrated to spring-boot 1.5 we had to retain those. but after building a war and from there if we are running it's taking lots of time to load the page. samething from the eclipse or command line gradle…
Naresh
  • 333
  • 1
  • 2
  • 9