Category "tomcat"

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

How to SHUTDOWN Tomcat in Ubuntu?

I tried to shutdown tomcat as shown below, but tomcat still seems to be running (http://localhost:8080/) vandegraff@vandegraff-laptop:~$ /usr/share/tomcat6/bi