Category "tomcat"

Tomcat installation issue - "Could not find or load main class"

I want to create a 'Dynamic web project' in eclipse. To do so, I want Tomcat to be listed in 'Target runtime' combo. So, I'm trying to install Tomcat. I changed

unable to start embedded Tomcat when running Eureka Server

I am just starting with microservices and I want to creat a simple Eureka Server to do my Serviceregistry. For now I just want to run the server on localhost an

Enable HTTP2 with Tomcat in Spring Boot

Tomcat 8.5, which will be the default in Spring Boot 1.4, supports HTTP/2. How can HTTP/2 be enabled in a Spring Boot application?

resteasy-cdi breaks deployment to Tomcat 7

I am developing a simple REST server using resteasy 3.0.6.Final, which is deployed to tomcat 7.0.50. According to the official doc, there are basically two way

vaadin 23 reporting debug mode when built for production

I've built my vaadin 23 app in production mode via: mvn clean package -Pproduction -DskipTests -U My pom.xml contains the necessary profile: <!-- vaadin pro

Servlet 5.0 JAR throws compile error on javax.servlet.* but Servlet 4.0 JAR does not

I am trying to compile and deploy a simple web app from command line. servlet-api.jar from Apache Tomcat does not compile my java file, but javax.servlet-api-4.

Tomcat Manager - Active Directory Authentication

I want to know how it's possible to use Active directory, for access roles on tomcat manager app? The idea is to make possible accees to http://localhost:8080/m

Spark saveAsTextFile() results in Mkdirs failed to create for half of the directory

I am currently running a Java Spark Application in tomcat and receiving the following exception: Caused by: java.io.IOException: Mkdirs failed to create file:/

Restart Tomcat Service on AWS EC2 instance, on a schedule

I have an instance on Tomcat running on EC2. Based on some resourcing reasons that I don't want to get into, I'd like it to restart each evening at 11:00pm. I

Customize keycloak error page with spring boot

I use keycloak-spring-boot-starter to protect my rest-service from unauthorized access. The authentication works as expected, but if the authentication fails, t

Unknown version of Tomcat was specified with tomcat -9.0.37

I downloaded the windows service installer of version 9.0.37.But at the time of connecting tomcat with eclipse IDE which is of version 2020-06 it is showing er

Tomcat does not start. Where was I wrong?

I did everything according to the instructions, installed all environment variables, but it still does not start. This is what is output in cmd when I try to st

JSTL error javax/servlet/jsp/jstl/core/LoopTag error when using c:forEach tomcat ver7.0 [duplicate]

Hi using eclipse juno, dynamic web project apache Tomcat v7.0 (which has its own jstl-1.2.1.jar) I get this error javax.servlet.ServletExcep

How to set custom environment variables in tomcat?

I have few key- value pair variables in my program which is hard coded now. String pswd = StringUtils.defaultString(System.getProperty("KEY_STORE_PASSWORD"), "

Tomcat Credentials

I want to start a dynamic web project directly from tomcat and I have defined the tomcat-users.xml file for the credentials: <?xml version="1.0" encoding

How do I map Spring MVC controller to a uri with and without trailing slash?

I have a Spring Controller with several RequestMappings for different URIs. My servlet is "ui". The servlet's base URI only works with a trailing slash. I would

Tomcat doesn't start with YAWL engine

I am new to Yawl. I have successfully installed the Yawl and is able to start YAWL engine and YAWL editor. But when I try to access the JSP (http://localhost:80

java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start

When I am trying to run my project it shows this type of error. java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to star

Force log rollover in tomcat log4j2 even if no traffic

Is there an option in tomcat log4j2 to force the logs to roll over after a defined interval even though there is no traffic at the time of rollover. Usual behav

log4j writing to console but not to file (Liferay + Tomcat)

I've recently had issues with my Liferay/Tomcat logs getting clogged up from several portlets logging to the same files, which makes it tough to track down issu