Questions tagged [tomcat8]

Version 8.x (August 2013 onwards) of the Apache Tomcat servlet container. Use only if your question is specifically related to features of this version.

Version 8.x (August 2013 onwards) of the Apache Tomcat servlet container.

Apache Tomcat is an open source servlet container developed by the Apache Software Foundation (ASF). It supports the 3.1, 2.3, 3.0, and 1.0 specifications1. Questions here should relate only to Tomcat Version 8.x.

Use only if your question is specifically related to features of this version. Just because you are using this version, doesn't mean you need this tag. Use in addition to or instead of this tag.

See for more information.

2687 questions
11
votes
3 answers

How to change cron expression of spring scheduler from properties file without restarting tomcat server?

I am using spring scheduler.This works fine but when I changed cron.expression value in application.properties every time I need to restart tomcat server.Is there any way that I can make it dynamic like automatically changes will reflect ? I did…
Tejal
  • 764
  • 1
  • 10
  • 39
11
votes
7 answers

Apache Tomcat 8.5 . Error: Service terminated with service specific error incorrect function

i have installed apache tomcat 8.5 one month ago with java 1.8 on Windows Server 2008 and it works ok. now the service is stopped and i'm not able to restart it from apache configuration or Windows Services . It is always stopped. i got the…
improc
  • 415
  • 2
  • 9
  • 17
11
votes
3 answers

log4j2 ERROR Unrecognized format specifier [t]

I have a log4j2 configuration file for a web app running on Tomcat 8 that looks like this
pushNpop
  • 1,954
  • 3
  • 16
  • 17
11
votes
1 answer

Upgrading Spring Boot from 1.3.7 to 1.4.0 causing NullPointerException in AuthenticatorBase.getJaspicProvider

This is somewhat caused by the tomcat-embed-core version 8.5.4 that comes with the spring-boot-starter-jersey. It generates an error shown below on all integration tests. It will only work if I override the pom to use tomcat-embed-core version…
Leo
  • 222
  • 3
  • 12
11
votes
1 answer

Jenkins deploy war file to Tomcat 8

I'm running Jenkins 1.6 (and also tried with Jenkins 2.0) on the same server where I have Tomcat 8. I need to deploy Maven multimodule application to Tomcat webapp. It has two war files from submodules that has to be deployed. Deploy plugin…
zoran jeremic
  • 2,046
  • 4
  • 21
  • 47
11
votes
5 answers

Removing obsolete files from server... Could not clean server of obsolete files: Content is not allowed in prolog

I am creating a project which is in jsp,servlet and tomcat v 8.0.upto last night it works fine but today it didn't work it gives error in publishing tomcat server,please give me any suggestions. I used Eclipse Mars and Tomcat v8.0 …
Meghan Bidwaik
  • 161
  • 1
  • 2
  • 7
11
votes
3 answers

Tomcat8 WebSockets (JSR-356) with Guice 3.0

I am trying to @Inject a Guice service into a @ServerEndpoint. I am using Tomcat 8.0.15 as the JSR-356 implementation. However, the dependency injection isn't working. Is there any additional configuration that needs to be done in order to enable…
Aritra
  • 1,234
  • 12
  • 20
10
votes
1 answer

tomcat docker container stop and exit after stop tomcat server

I am using docker container/image here. After running the docker container, everything is OK. but if I run /usr/local/tomcat/bin# ./catalina.sh stop or /usr/local/tomcat/bin# ./shutdown.sh, the running docker container will stop and exit. Why? How…
BAE
  • 8,550
  • 22
  • 88
  • 171
10
votes
4 answers

Does any function like beforeCrash() or beforeExit() exist in Tomcat or Java

I have tomcat server running. and it crashes suddenly for some reason... however I am trying to find the error. Is there a function in tomcat or java like beforeExit() or ifCrashed() which I can override and write some code there like notifying…
sanjeevprasad
  • 804
  • 1
  • 6
  • 21
10
votes
2 answers

Lambda expressions in JSP files will not compile

I've tried most of the suggestions mentioned on stackoverflow but haven't come across a solution yet. The error I'm being presented with is the following. An error occurred at line: 379 in the jsp file: /application-new-project_process.jsp Lambda…
user5908538
10
votes
1 answer

Severe security constraints while tomcat 8 startup with liferay

I am getting the below severe message while the tomcat 8 comes up with liferay. SEVERE [localhost-startStop-1] org.apache.tomcat.util.descriptor.web.SecurityConstraint.findUncoveredHttpMethods For security constraints with URL pattern…
abhineet
  • 195
  • 1
  • 1
  • 11
10
votes
4 answers

Tomcat8 shutdown randomly with AbstractProtocol.pause

1. the problem I deployed a webapp in Tomcat, and I found that it shutdowns randomly, the time varies from 2 or 3 hours to 2 or 3 days. The log in catalina.out is: 26224 2015-06-10 13:59:04.110 {http-nio-8080-exec-3} INFO …
Michael
  • 1,667
  • 2
  • 17
  • 18
10
votes
5 answers

How to run Apache Tomcat 8 in debug mode?

I am trying to run Apache Tomcat 8.0.21 in debug mode. When I give the command sh catalina.sh jpda start it gives this error. error message ERROR: Cannot load this JVM TI agent twice, check your java command line for duplicate jdwp options.…
10
votes
0 answers

Can WebSocket session be Serialized or specifically persisted to a database?

Context/Background: A client is connected via web-socket. Server stores WebSocket session and few other identifiers in a Map for later use. Server receives some data from a queue which need to be send to client via web-socket. Using session from Map…
Aurvoir
  • 267
  • 3
  • 12
10
votes
2 answers

Is it required to add org.apache.catalina.startup.VersionLoggerListener for tomcat 8 server.xml?

I am upgrading to tomcat 8 from 7. Is it required to add this listener?
user3819236
  • 189
  • 2
  • 10