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
3
votes
2 answers

how to configure Embedded Tomcat virtual host for Spring Boot Application?

i have a multiple domains on my centos vps (domains running on apache http server via virtual host configurations). and also same vps, i want to add my new domain but that domain will route my spring boot application (application is a jar file also…
cekil
  • 56
  • 1
  • 5
3
votes
1 answer

Spring Boot load time weaving doesn't work in embedded tomcat

I can't get LTW to work in Spring Boot 1.2.2 w/ Embedded Tomcat. My application is a WAR file, not a .JAR file. When I run in DEBUG, it never stops in my aspect even with hitting calls that should match the pointcuts, so that is how I figure it is…
Jason
  • 2,006
  • 3
  • 21
  • 36
3
votes
1 answer

How can I use annotations instead of XML to create a custom component tag in embedded Tomcat

Edit: The only technologies required to reproduce this issue are JSF 2.2 and Spring Boot 1.2.1 + Its embedded Tomcat 8.0.5 server. Everything else listed in this question is just to give context on the tech I'm using. Update #2: Following along…
3
votes
2 answers

Spring Boot Using Embedded Tomcat with JNDI

I am using Spring Boot with Embedded Tomcat and attempting to use JNDI but getting the following error: javax.naming.NameNotFoundException: Name [jdbc/dataSource] Any tips would be greatly appreciated. Here is my code: @Configuration public class…
shep519
  • 56
  • 1
  • 1
  • 4
2
votes
1 answer

Adding a webApp to Tomcat Embedded dynamically

I need to understand why using the below code to add a webapp dynamically to the embedded tomcat giving the following error, when we add Context on startup everything works fine, the code is the same. Code: /* * Add a context to the host and…
2
votes
0 answers

How to configure embedded Tomcat to run a Spring MVC application?

Following the tutorial given here: https://www.codejava.net/servers/tomcat/how-to-embed-tomcat-server-into-java-web-applications, I am attempting to deploy a Spring war file in a separate embedded tomcat configured project. Here's my java…
Musa Khan
  • 21
  • 4
2
votes
1 answer

SpringBoot 2.1.3 : Embedded Tomcat Logging

I have developed a SpringBoot 2.1.3 WebApp with Thymeleaf 3. For quick testing purpose I create a fat jar with two SQL Procedure which automatically create the DB if it is not present and fill typological table if they are empty. Now I put my .jar…
CoderJammer
  • 599
  • 3
  • 8
  • 27
2
votes
0 answers

How to disable force HTTPS in tomcat based on header value

I've got a Spring boot application hosted on internal tomcat. We've enabled the below properties to force a redirect to HTTPS as a…
rupesh
  • 413
  • 9
  • 19
2
votes
0 answers

FileNotFoundException on method tomcat.addwebapp() running embedded tomcat in fat jar, outside target folder of maven

I am trying to run a fat jar somewhere outside maven project. The runnable jar is created from eclipse (Export-->Runnable jar-->Extract required libraries in generated jar). This jar have got all dependencies jars & external jars in lib as well as…
2
votes
1 answer

Response Body Bad chunk header - I/O error on GET request

Setup - 2 Rest services, spring-boot 2.x, embedded tomcat 8.x Service A calls Service B using restTemplate, in a test loop running for 300 times, on every 100th interval within the loop throws an exception "Bad chunk header exception". Enabled…
Rajanish
  • 21
  • 1
  • 3
2
votes
0 answers

TomcatEmbeddedContext[] failed to start

I am migrating maven based spring application to spring boot 2.0.4.RELEASE. Application has dependency on Apache CXF, Security, Sleuth, mongoDB, and RabbitMQ along with a few other libraries. Build is successful using command mvn clean install, but…
2
votes
1 answer

Why wouldn't the Range header work for static resources hosted from a Spring Boot WAR using an embedded Tomcat?

I have a Spring Boot 2.0 WAR using WebMVC with an embedded Tomcat 8.5, and I host my static resources from within the WAR. A request for a static resource that includes a Range: bytes=0- fails with HTTP 416 (Range Not Satisfiable), whereas the same…
Doug Paul
  • 1,221
  • 12
  • 16
2
votes
1 answer

java.lang.NoClassDefFoundError: org/apache/catalina/LifecycleException

I am working on a project which looks to embed tomcat in a java web application. I wish to convert this application into java web start so that it can be deployed and anyone who downloads the application can use the application on the embedded…
NoJo
  • 41
  • 1
  • 7
2
votes
0 answers

Spring boot service higher response times under heavy load

the response time of my spring boot rest service running on embedded tomcat sometimes goes really high. I have isolated the external dependencies and all of that is pretty quick. I am at a point that I think that it is something to do with tomcat's…
Hary
  • 1,127
  • 4
  • 24
  • 51
2
votes
0 answers

Embedded Tomcat failed to scan

I work on Eclipse with an embedded Tomcat (8.0.24). I ran mvn clean package install and got a build success. However, when I start tomcat by running a main method in Eclipse (as it's an embedded Tomcat), I got lots of error like : mai 11, 2018…
Gabriel
  • 163
  • 1
  • 1
  • 15