Questions about running Apache Tomcat 7 as an embedded server in another application.
Questions tagged [embedded-tomcat-7]
155 questions
2
votes
2 answers
Spring boot jar fails to start embedded server on adding tomcat-embed-jasper dependency
I am upgrading a legacy application to spring boot and creating a fully executable jar. In order to render jsp and tiles I suppose I need to add the tomcat-embed-jasper dependency. After I do that, and try to run the application application startup…

Juzer Ali
- 4,109
- 3
- 35
- 62
2
votes
3 answers
Building a maven war overlay project with gradle
I want to integrate a maven project into my gradle build process. Although I was successful in converting the maven project (which is a war overlay project) into a gradle project, there are several drawbacks doing this. First of all the maven tomcat…

Christian Metzler
- 2,971
- 5
- 24
- 30
2
votes
1 answer
Spring Boot / Security - Cannot customize security when running on embedded Tomcat
I've got a Spring Boot application that won't run on embedded tomcat, but runs fine on a hosted tomcat install. The setup worked prior to Spring Boot 1.0.0.RELEASE, but I can't determine what changed.
Essentially what is happening is that my app…

David Welch
- 1,941
- 3
- 26
- 34
2
votes
0 answers
OpenShift - I execute gem install rhc - successfully completed - rhc setup message command not found
Congrats,
I'm trying to debug an application(java tomcat7/mysql) and for that I have to install rhc, when I run gem install rhc everything proceeds normally in the installation, but when I run rhc setup message displays: command not found.
could…

Lanmaster
- 29
- 3
2
votes
1 answer
OutOfMemoryError: PermGen space when starting an embedded Tomcat
I have a library (vraptor-test) that does unit testing at my webservices in my maven project. In onder to run these tests, this library starts an embedded Tomcat.
Tomcat tomcat = new Tomcat();
I have checked the dependency tree, and the list below…

Bruno Gasparotto
- 671
- 12
- 31
2
votes
1 answer
Modify SO_TIMEOUT (read timeout) for embedded tomcat
How can I modify the read timeout for embedded tomcat?
From Apache Tomcat Configuration Reference:
socket.soTimeout
Value in milliseconds for the sockets read timeout (SO_TIMEOUT). Default value is 5000 milliseconds.
I've tried the following
…

danieln
- 4,795
- 10
- 42
- 64
2
votes
1 answer
Non-ASCII symbols in path variable of Spring MVC application on embedded Tomcat server setup using Spring Boot
I am building a service using Spring MVC set up using Spring Boot where I want to be able to have arbitrary unicode characters in the URLs.
By looking around the web I end up with
@Configuration
@ComponentScan
@EnableAutoConfiguration
public class…

bisgardo
- 4,130
- 4
- 29
- 38
2
votes
1 answer
tomcat7-maven-plugin - jsp/html no deployed
Using the tomcat plugin "tomcat7-maven-plugin", I'm trying to get the "hot deploy" working with the embedded tomcat (using tomcat7:run).
I'm using a typical maven web app configuration under eclipse.
From now, I can debug my java class and they are…

Begoodpy
- 1,018
- 3
- 8
- 20
2
votes
1 answer
Disadvanteges of Embedded Tomcat
I am thinking about using Embedded Tomcat instead of the default one with deployment and I wonder why it is not widely used. Are there any disadvantages? Is it in any way slower?
Thanks.
EDIT:
I did my own tests and seems that embedded tomcat is 25…

Vojtěch
- 11,312
- 31
- 103
- 173
2
votes
1 answer
Embedded Tomcat: how to configure the number of request threads
In Embedded Tomcat, how can I configure the number of request threads?
I can't seem to get it to work. I tried all of these without success:
tomcat.getConnector().setProperty("maxThreads", "20");
tomcat.getConnector().setAttribute("maxThreads",…

Axel Fontaine
- 34,542
- 16
- 106
- 137
2
votes
1 answer
Port not getting free on removing connector in embedded Tomcat 7
I am embedding Apache Tomcat 7.0.30 in my application. I am using the Tomcat class,and my application requires dynamic addition and removal of connectors(HTTP).
Now while removing the connectors,the application gets undeployed but the port remains…

Chirag Dewan
- 23
- 3
2
votes
0 answers
Adding MIME definitions to Trinidad
I'm using the trinidad gem to host my jruby application.
However, any requests for .woff or .ttf font files are met with 400 Bad Request.
When I was jar-ing up my project with warbler and dumping the jar file in a regular Tomcat instance, I was able…
user684934
1
vote
1 answer
static resources not deploying to tomcat-docbase folder - (IntelliJ 2018 / Spring Boot 2 / Embedded Tomcat)
I've been converting an older Spring 4.x app to run on Spring Boot 2.x. This app contains JSPs which are stored in the WAR's "/WEB-INF/tiles" directory.
When I run the application locally (using IntelliJ 2018.3) the server starts, but when I try to…

LoganBlack
- 254
- 2
- 14
1
vote
2 answers
How to create/find application jar to deploy your spring boot maven application using embedded tomcat?
I want to deploy my application using the embedded tomcat in spring -boot. I figured that I have to run the java -jar spring-boot-app.jar command, but I cannot find the jar file for the application anywhere.
On running mvn clean package I am able…

Denise
- 898
- 1
- 16
- 30
1
vote
1 answer
How to run a spring web app without a full Tomcat install?
I just began learning Spring MVC, using this tutorial.
Entire write and build (under Eclipse) went successfully and a target .war file is generated.
However, I need to test-run it and I do not wish to download and install Tomcat at the moment.
I…

WebViewer
- 761
- 7
- 21