Questions tagged [embedded-tomcat-7]

Questions about running Apache Tomcat 7 as an embedded server in another application.

155 questions
1
vote
2 answers

Spring boot - Embedded Tomcat - Connector Customizer - fail to add parseBodyMethods attributes

The original problem is when I sent a http request with method 'DELETE', the body part couldn't be sent to the server. After googling, I found this article that suggests modifying the server.xml file and adding 'parseBodyMethods' to the Connector…
1
vote
1 answer

tomcat7-maven-plugin can't find dependency from reactor

I have a product line, it has two maven modules: module A and module B I declare module B depends on module A. Also I define a maven reactor like this: A B Module A is a…
Justin
  • 1,050
  • 11
  • 26
1
vote
0 answers

Spring MVC + embedded Tomcat doesn't work

I am new in Java Spring. I would like to configure Tomcat to use as embedded servlet in the following way: EmbeddeApp.java public class EmbeddedApp { public static void main(String[] args) throws Exception { …
pawel_b85
  • 11
  • 1
1
vote
1 answer

How can I add a dependency to embedded tomcat using the maven plugin?

UPDATE As it turns out there is nothing wrong with my dependencies. The problem is that my META-INF/context.xml file packaged inside my war is not being read by the tomcat plugin. I am still looking for a solution as to why this isn't…
Rob Benton
  • 427
  • 1
  • 4
  • 11
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
2 answers

Heroku webapp-runner --enable-naming

I've been facing with a combersome task: deploying a spring project ( using JNDI ). Right now the problem is related to the webapp-runner option "enable-naming". My datasources are declared by jndi - using tomcar context.xml. When i feed…
Gonçalo
  • 561
  • 5
  • 14
1
vote
0 answers

Embedded Tomcat doesn´t start with eclipse

I´m using an embedded tomcat in my maven project to do some integration tests (client - server scenario). Tomcat tomcat = new Tomcat(); //set Host and port.. //add user and role for basic authentication tomcat.start() If I build the project with…
monti
  • 455
  • 7
  • 25
1
vote
0 answers

Can't run embedded Tomcat with Gradle

I am trying to run embedded Tomcat with gradle, everything looks good, but when i am executing tomcatRunWar task this task running into console and nothing is going on. buildscript { repositories { jcenter() } dependencies { classpath…
Ilya
  • 41
  • 8
1
vote
1 answer

Where the embedded Tomcat extracts?

Where the embedded in executable jar Tomcat archive extracts? In memory or in the some folder on hard drive? How many resources it requires compared with ordinary Tomcat?
RocketBoom
  • 139
  • 3
  • 10
1
vote
1 answer

"Unable to locate Spring NamespaceHandler for XML schema namespace" happening only in Executable jar

I found several question with similar topic Context initialization failed org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 2 in XML document from ServletContext resource [/WEB-INF/App-servlet.xml] is invalid; nested…
Jim C
  • 3,957
  • 25
  • 85
  • 162
1
vote
0 answers

Spring Boot Server display name customize

I would like to change the SpringBoot Application URL. As my current application.properties file looks like this : spring.application.name=MyApplication server.port=9090 and the directory structure is…
virsha
  • 1,140
  • 4
  • 19
  • 40
1
vote
1 answer

War deployment in Embedded Tomcat

I have an embedded tomcat (7.0.64) on MAC and am deploying a war file, running on java 1.7.067. For some reason my tomcat server hangs on the call "Tomcat.start()". I know for sure that it's getting stuck deploying the war file. The way i figured…
Victor
  • 1,207
  • 2
  • 13
  • 21
1
vote
2 answers

Adding gzip to spring embedded tomcat

I'm trying to add gzip compression to my server (reading and writing) I've tried it with (spring boot): server.tomcat.compression=on server.tomcat.compressableMimeTypes=application/json,application/xml,text/html,text/xml,text/plain but when my…
user_s
  • 1,058
  • 2
  • 12
  • 35
1
vote
1 answer

spring boot basic http authentication with multiple roles throws 403 forbidden error

I am trying to configure spring boot-Embedded Tomcat basic HTTP authentication with multiple roles, with most of the url's similar but few of them specific to each role. Here for first role the basic HTTP authentication pops up and working fine.…
1
vote
1 answer

Spring Boot: Dynamic ServletPath and ContextPath for Embedded Tomcat

I'd like to modify the Embedded Tomcat, so that I can programmatically modify the incoming request: Original Input: http://localhost:8080/webapp/foo with contextPath = and servletPath = /webapp/foo Modified: contextPath = /webapp and servletPath =…
Benjamin M
  • 23,599
  • 32
  • 121
  • 201