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

Spring Boot wont start Tomcat

I am new in spring boot framework. I tried a simple scratch application but my embedded tomcat wont startup. Also i downloaded source code from spring boot initialize, same application is running smoothly in another system but giving error in my…
Jayanta Rijal
  • 69
  • 1
  • 8
2
votes
0 answers

How to configure embedded tomcat to find @WebServlet in jar

I have a simple hello world application with embedded tomcat v.8.5.28 It works fine when I explicitly add servlet and mapping: public static void main(String[] args) throws Exception { Tomcat server = new Tomcat(); server.setPort(8080); …
Kirill
  • 1,540
  • 4
  • 18
  • 41
2
votes
0 answers

Spring Boot Views are not found when run from a directory containing a space

I'm having an issue where my Spring Boot service with embedded Tomcat will serve jsps properly if run from a directory such as C:\example but the jsp files are not found if I run it from C:\space example. The two jars are the same, just copied to…
cstack
  • 395
  • 1
  • 15
2
votes
0 answers

JMX mBeans structure with Tomcat (Embedded vs Standalone)

I am currently working with Spring Boot (1.5.9) with embedded tomcat (8.5.23.0) and accessing JMX mBean's. When I run 'jconsole' I find that the mBean name is "Tomcat" and the structure inside is: jconsole with Embedded Tomcat But when I launch a…
2
votes
1 answer

Spring Boot tomcat basedir completely empty

In my application.yml I set server: tomcat: basedir: /home/user/TOMCAT when I run the application with mvn spring-boot:run I see that the folder is created and it has this structure /TOMCAT/work/Tomcat/localhost/ROOT and it is completely…
Manza
  • 3,427
  • 4
  • 36
  • 57
2
votes
0 answers

how to deploy war on embedded tomcat

In our project we have Apache tomcat running on 8080 and we have deployed jenkins war file there. As we are on client infra, we cannot have more ports open. We have to deploy the sonarcube also , but sonar cube 5.5 does not support war deployment as…
Akash Jain
  • 145
  • 1
  • 3
  • 8
2
votes
2 answers

Heroku webapp-runner JNDI naming, resource not available

I have this resource declared in my src/main/webapp/META-INF/context.xml When I…
2
votes
2 answers

Spring boot rashes first and then start automatically in Pivotal Cloud Foundry

When I push my spring boot - 1.3.3.RELEASE it crashes for long time and finally starts. But latest event shows crashed, but current status always running. The springboot adds embed-tomcat -8.0.32. Error: 2017-01-16T16:29:12.670-05:00…
Shamseer
  • 682
  • 1
  • 11
  • 24
2
votes
1 answer

spring boot run in java CLI has a strange error that java.io.FileNotFoundException

I build a spring boot project that start parent version is 1.4.2.RELEASE, it run successfully by eclipse, but when I run by java CLI, it occured a strange error, the command is mvn clean package and java -jar target/yishi-service-0.5.0.war the…
vincent ren
  • 89
  • 1
  • 5
2
votes
1 answer

Serving log files from Spring Boot's embedded Tomcat

I'm looking to have my log files available to an admin without needing to ssh to the host. Hopefully something easy as http://myhost:myport/logs/app.log . Is there any way to expose an endpoint using Spring Boot that would serve my log files?
ronif
  • 695
  • 1
  • 6
  • 14
2
votes
0 answers

Embedded tomcat doesn't scan web-fragments

My embedded tomcat class recognizes the web.xml and ServletContainerInitializers, but it doesn't recognize the web-fragments. Very simple code. What flag/config should be turned on for web-fragments to initialized? public static void main(…
Nambi
  • 2,688
  • 8
  • 28
  • 37
2
votes
1 answer

WARNING is issued when using embedded tomcat server

I am using embedded tomcat(v_8.0.33) to run my java application. It is throwing following error in console: INFO: Starting Servlet Engine: Apache Tomcat/8.0.33 Jun 11, 2016 2:53:02 PM org.apache.tomcat.util.digester.Digester endElement WARNING: No…
prayer
  • 71
  • 7
2
votes
1 answer

How to run spring web app (jdk 8) with embedded Tomcat 8

We have a Spring web app (JDK 1.8) and (for development purposes) we're running it on embedded tomcat container, i.e. - we're using tomcat7-maven-plugin. The app is being started with mvn tomcat7:run ... For what I found out on I-net, there is no …
Jimo
  • 143
  • 2
  • 14
2
votes
3 answers

eclipse shutdown button can not shutdown embedded tomcat used fo spring boot

I'm using embedded tomcat in my spring boot application. I tun application with goal below: clean spring-boot:run and it runs with no error. I use eclipse shutdown button to shut it down. second time i try to run it i get this : Failed to…
Hadi Rasouli
  • 1,871
  • 3
  • 27
  • 43
2
votes
0 answers

java.lang.IllegalStateException: Could not find backup for factory javax.faces.context.FacesContextFactory

I have a JSF Web application and since i'm using using an embedded databse, i wanted to use an embedded server, so i went with tomcat. I found a main class with the code i need. I executed the main class using eclipse and everything worked fine so i…