Questions tagged [embedded-tomcat-7]

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

155 questions
0
votes
1 answer

Permission denied with embeded tomcat

I have a Spring boot application which tries to access files located in "/var/someDirectory" Platform is: linux ubuntu 16 Server Application is: Embedded tomcat here is the code: File file = new File("/var/testFile1.txt"); if…
Nosairat
  • 482
  • 9
  • 20
0
votes
3 answers

Receiving Caused by: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake

I am getting javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake exception when I try to do Https get of a web service Caused by: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake …
F.BOU
  • 327
  • 3
  • 5
  • 17
0
votes
1 answer

bootstraping multiple sprint boot servlets

I have a complex application with multiple (5) modules, following micro services architecture. Each module is using spring boot, but in the end we are manually copying the war of every module to tomcat. And manually starting the tomcat server. Is…
0
votes
1 answer

IO Error: Connection timed out in spring boot after sometime of deploy JAR file?

i have deployed jar file on my server which is created from spring boot application. so that we have used embedded tomcat. I have been set up the following database configured in 1-java class for this application, import…
Vishal Gajera
  • 4,137
  • 5
  • 28
  • 55
0
votes
0 answers

Why EhCache not caching this query?

Looking at Hibernate metrics, it appears that there is no use of second level cache for specific query: org.hibernate.HibernateException: More than one row with the given identifier was found: 1242, for class:…
J.Olufsen
  • 13,415
  • 44
  • 120
  • 185
0
votes
1 answer

Running two Tomcat servers in the same application fails on MBean registration

I'm trying to run two embedded Tomcat servers within the same application but I keep getting an exception that the "Tomcat" name has already been registered as an MBean. Running two Tomcat servers in two different processes works just fine. It's…
StFS
  • 1,639
  • 2
  • 15
  • 31
0
votes
1 answer

Rollback Integration Test which uses cucumber and tests the application on embedded tomcat via maven

I am trying to set up an integration test framework for my spring project using cucumber framework and selenium for UI automation. What I have done till now is Use tomcat7 plugin for maven and deploy my war file to this embedded tomcat Use the…
0
votes
1 answer

Expose resources using Spring embedded tomcat (.jar)

I am Using spring bootapp to build a rest-like api (which contains endpoint/controllers, services repositories ...) I am running my app using the embedded tomcat approach and a simple .jar file produced using mvn "package". One of the endpoints…
Stavros
  • 264
  • 3
  • 12
0
votes
1 answer

Embedded Tomcat + Spring file-upload: HTTP 404

I can open myApp throw Internet Browser if I start it via Eclipse, but, although I can start the Embedded server throw command line (java -jar myApp.jar) I am getting HTTP Status 404. Probably some issue with context but I can't figure out what is…
Jim C
  • 3,957
  • 25
  • 85
  • 162
0
votes
1 answer

Embedded tomcat jndi definition

I'm using spring with embedded tomcat. I don't want application.properties to be used anymore, since it should be published to a webserver running tomcat and there I'm now using a JNDI dataSource from a context.xml which works very well. Now I want…
Aitch
  • 1,617
  • 13
  • 24
0
votes
1 answer

Tomcats RemoteIPValve not invoked in Spring Boot Application deployed as a WAR file

My Spring Boot 1.3.2 Application is deployed as a WAR file into a standalone tomcat7. I am trying to activate the RemoteIPValve using server.use-forward-headers=true as described in the spring boot docs. But the RemoteIPValve is not properly…
kieste
  • 513
  • 1
  • 4
  • 19
0
votes
1 answer

Embedded Tomcat hangs when starting on deploying app

My embedded tomcat hangs when adding webapp on Linux only. It won't happen during the first time I start it, but from the second boot and beyond. This happened only after upgrading to Tomcat 8. When taking a thread dump I see that it's stuck when…
danieln
  • 4,795
  • 10
  • 42
  • 64
0
votes
1 answer

Hot Code Replace Failed in Eclipse - Delete method not implemented

I'm developing a java web-application with vaadin and spring and I'm using tomcat7-maven-plugin like application server during development. The problem is that when I run my application and I try to change everythings, I'm getting the following…
Skizzo
  • 2,883
  • 8
  • 52
  • 99
0
votes
2 answers

Appscan detected hidden directory for hostname/manager

Appscan called api with url https://10.106.215.110/manager in my application which says 403 access denied. Now I want to change this message to 404. Can anyone guide me. Thanks in advance. PS I have two application running in this hostname. I am…
Ravi Godara
  • 497
  • 6
  • 20
0
votes
1 answer

Restrict ciphers in embedded Tomcat

How can I programmatically restrict the available ciphers in embedded Tomcat? In other words what is the programmatic equivalent of
Axel Fontaine
  • 34,542
  • 16
  • 106
  • 137