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
36
votes
9 answers

Invalid character found in the request target in spring boot

My application is started with java -jar with version 1.5.6.RELEASE of spring boot. The content of one of my request has the character "{".When it is sended to server the following exception is raised: java.lang.IllegalArgumentException: Invalid…
reza ramezani matin
  • 1,384
  • 2
  • 18
  • 41
35
votes
10 answers

The temporary upload location [/tmp/tomcat.4296537502689403143.5000/work/Tomcat/localhost/ROOT] is not valid

I am using Spring Boot 1.5.13 version. I got the exception message like below. Could not parse multipart servlet request; nested exception is java.io.IOException: The temporary upload location…
Sooyoung Park
  • 395
  • 1
  • 4
  • 8
20
votes
3 answers

How to add context.xml file to embedded tomcat server

I'm trying to run my application in an embedded tomcat server using Spring-boot. I'm having my JNDI Resources and Environments configured in an XML file, placed under src/main/webapp/META-INF/context.xml in my application. When I deploy this…
SanjaySSN
  • 229
  • 1
  • 3
  • 6
18
votes
5 answers

Spring boot embedded tomcat logs

i'm using spring boot embedded tomcat with spring boot 1.5.9 , im also using Log4j2. recently i exerience problems during load, so i want to understand better the tomcat logs [Not the access Logs] , i tried (in application.properties) :…
Robocide
  • 6,353
  • 4
  • 37
  • 41
16
votes
3 answers

Spring Boot does not honor @WebServlet

I created a Servlet (extending from HttpServlet) and annotated as per 3.0 specs with @WebServlet(name="DelegateServiceExporter", urlPatterns={"/remoting/DelegateService"}) My @Configuration class in Spring Boot scans this servlet's package.…
Jason
  • 2,006
  • 3
  • 21
  • 36
15
votes
4 answers

How to change embedded tomcat's version in existing spring boot app?

I'm currently running spring-boot version 1.4.0.RELEASE application with embedded tomcat. Included Tomcat's version is 8.5.4 There's a need to update the tomcat version to 9.x. When I looked at mvnrepository here, I found that there's an update…
shankulk
  • 534
  • 1
  • 4
  • 23
14
votes
5 answers

Spring boot - Rest Call client without embedded tomcat

I have been trying to figure out an issue with spring boot and as i am new to spring I thought of getting some help here. I have a spring boot based java application which runs as a daemon and makes some GET request to a remote server. (Acts only as…
14
votes
1 answer

Code works with Embedded Apache Tomcat 8 but not with 9. What's changed?

Embedding Apache Tomcat into an eclipse web app project. The code works when I'm using the latest Tomcat 8 (8.0.5 Embedded) jars as dependencies, and this server responds at http://localhost:8080, however, it fails to start the same way and does not…
Benjq
  • 143
  • 1
  • 8
14
votes
2 answers

Tomcat 8, Spring Boot, @Configurable LoadTimeWeaving without -javaagent?

I'm trying to setup a @Configurable domain object(not managed by the spring container). I've got this working by adding the -javaagent:path/to/spring-instrument.jar as a JVM argument but it's not 100% clear to me whether or not this -javaagent MUST…
mjj1409
  • 3,075
  • 6
  • 28
  • 28
14
votes
1 answer

Can not post form with many (over 256) values

I am using Spring Boot 1.2.2 with Thymeleaf. My Problem is I try to post a long list of Items (some labels, one checkbox) in a form, which cant be perform so many items of my list. (I tested small lists and it worked.) First I used jetty but got an…
svenhornberg
  • 14,376
  • 9
  • 40
  • 56
14
votes
5 answers

@WebServlet annotation doesn't work with Tomcat 8

I want to use the @WebServlet annotation in a Java EE webapp which runs on Tomcat 8. I have read that I need to declare Servlet Version 3.1 in my web.xml and that my Servlet needs to extend HttpServlet. I did all that but still the @WebServlet…
Benny Code
  • 51,456
  • 28
  • 233
  • 198
13
votes
1 answer

Spring MVC (Boot) does not send MIME type for certain files (WOFF, etc)

I am writing a spring boot based application and noticed a few warnings in chrome. It complains that for example web fonts (extension woff) are send as plain/text instead of their correct mime type. I am using the regular mechanism for static files…
12
votes
2 answers

Embedded tomcat java application is running, but server cannot be reached

I am trying to set up a basic embedded Tomcat server and am unable to get the Tomcat server to run. public class Main { public static void main(String[] args) throws LifecycleException { Tomcat tomcat = new Tomcat(); …
Matt
  • 902
  • 7
  • 20
12
votes
1 answer

Embedded Tomcat using log4j for logging

I'm using embedded Tomcat 8.5.4, i.e., org.apache.tomcat.embed tomcat-embed-core 8.5.4 The implementation is working perfectly (Tomcat works like…
Philipp
  • 1,289
  • 1
  • 16
  • 37
11
votes
1 answer

Microservices : Embedded tomcat vs standalone tomcat : Difference

Can embedded tomcat or any such embedded server be used for microservices in production environment? How, embedded server is different wrt the normal standalone full fledged server (performance . reliability wise)? Is the embedded server light…
Tanya
  • 203
  • 3
  • 7
1
2 3
14 15