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

How to disable direct URL access in a Spring Boot Application?

We have a Spring Boot application with Embedded Tomcat configured using a YAML file. Client side scripting is in AngularJS. The problem is that a user can see the HTML contents of a page when using the direct URL. For example, our primary login…
Indra Chatterjee
  • 101
  • 1
  • 2
  • 10
1
vote
0 answers

Redirect Tomcat Embedded 8 Log

I have a web app in Spring Boot that can take a war file and deploy it with embedded tomcat 8. So, for each uploaded war file I do the following Tomcat tomcat = new Tomcat(); tomcat.setPort(port); File catalinaHome = new File(TOMCAT_DIR +…
Jorj
  • 1,291
  • 1
  • 11
  • 32
1
vote
0 answers

Springboot jersey with multiple source paths (servlets)

I am starting to use Springboot in my application. My web.xml looks like this Internal Tools org.glassfish.jersey.servlet.ServletContainer
theGamblerRises
  • 686
  • 1
  • 11
  • 27
1
vote
2 answers

Json Views template not found when run as a war file

I am using Json views plugin of grails. Which works in development, but when I run it as a jar file, it is not able to find the templates/gson files for rendering. I get the following error //code def template =…
Amit Jain
  • 1,372
  • 8
  • 16
1
vote
1 answer

Disable Weak Ciphers Tomcat Embedded

I'm using Trend Micro Deep Security as part of a PCI DSS environment. The problem is that the SSL certificate uses a weak cipher: The connection to this site uses a strong protocol (TLS 1.2), an obsolete key exchange (RSA), and an obsolete cipher…
markpirvine
  • 1,485
  • 1
  • 23
  • 54
1
vote
1 answer

Spring boot load test: some requests stuck

I'm load testing spring boot application with embed jetty/tomcat and I got strange behaviour. I use apache ab for testing ab -n 100000 -c 1000 http://127.0.0.1:8080/ping Server Software: Server Hostname: 127.0.0.1 Server Port: …
1
vote
1 answer

What are the limitations using spring-boot embedded tomcat?

I am planning to migrate some applications currently running on tomcat to spring-boot running tomcat embedded. The current setup is that each app has its own instance and they don't share any common resources. What are the current limitations on…
G.R
  • 65
  • 6
1
vote
2 answers

How to configure JDBC Resource in Embedded Tomcat 8?

I need to set up a connection pool for an application that uses an embedded Tomcat 8 application server. Normally, I would configure a new resource in the context.xml file. But of course, such a file does not exist when using the embedded version.…
1
vote
1 answer

shared classloader with embedded Tomcat 8

I have upgraded tomcat from version 7.0.34 to version 8.0.33, and since then I have been facing a problem to share the web application context and Junit context. I have a web application with singleton class that gathers statistic data about the web…
Oren
  • 21
  • 5
1
vote
0 answers

How to add external library using spring boot with embedded server?

I would like to know if is possible use external jars with web application that uses spring boot with embedded server. Example: java -cp external.api -jar app.war -spring.config.location=application.properties When I use application I got errors…
1
vote
2 answers

Embedded tomcat fails to start when upgraded from Spring Boot 1.3.3 -> 1.3.5

Spring Boot application fails to launch after upgrade from 1.3.3 to 1.3.5. Spring is unable to start embedded container (Tomcat 8) and following error message is displayed: org.springframework.context.ApplicationContextException: Unable to start…
1
vote
0 answers

Grails 3.0.15 running embedded war / jar vs running in a container

Is running Grails in embedded mode (meaning the server is embedded in the application) safe and ready for production? Are there any known issues that shall prevent from using this mode? Is embedded jar better than embedded war file?
galusben
  • 5,948
  • 6
  • 33
  • 52
1
vote
1 answer

How to configure SSL in Grails 3.1.6+?

We recently changed from using standalone Tomcat 8 containers to using the embedded Tomcat 8 container. We are having some trouble getting SSL to work on Grails 3.1.6 with the embedded container. We had been using the certificateFile approach with…
fcnorman
  • 1,154
  • 9
  • 19
1
vote
1 answer

JasperException springframework.org/tags/form cannot be resolved only in Embedded Tomcat

Why I am getting the error below by using <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%> in an embedded Tomcat? If I try same JSP with same POM without embedded dependency and I deploy it to a Tomcat Server there will be…
Jim C
  • 3,957
  • 25
  • 85
  • 162
1
vote
1 answer

Embedded Tomcat 8 Fails to to start

I have a jar that deploys and runs in a standalone tomcat 8.0.28 server with Java 8.0.66 I wish to run it from an embedded Tomcat to run integration tests. The war deploys but fails to start, I ran out of ideas, I am getting the following error: Dec…
Louis Biron
  • 113
  • 1
  • 10