Category "tomcat"

Set different timezone for each deployable in tomcat

I have a web project which creates 2 separate deployables(.war files). I deployed both in single tomcat, and when I change the JVM timezone in a beanFactoryPost

Jenkins deployment to Tomcat failed

I'm currently learning and implementing Jenkin's Pipeline for automated integration for java web application. My plan is that once developers successfully comm

Tomcat catalina logging

I am using SpringMVC framework and Java 8 for development. In the Tomcat catalina.out file, the date timestamp and threadid are not added along with my applicat

Problem with Obsolete file handle running Java Webapp with Log4j2 in Tomcat server farm

We have a Java Spring web application with Log4j2 configured with RollingFile active running on a Tomcat server farm with NFS storage configured. Catalina out l

How to truncate Tomcat Catalina.out log to 3 months back

My company wants us to save logs from the past 3 months. Catalina.out is getting too large on the linux server (Red hat). How can I remove everything in the log

Remote Debugging of Tomcat/Wildfly server in docker container in VSCode/Intellij

I want to remote debug a Java application in Wildfly/Tomcat embedded in a Docker container. I want to debug the application in VsCode; I also tried to remote de

java.lang.ClassNotFoundException: com.mysql.jdbc.Driver even after using the mySql Maven Dependency on Intellij

I am using Intellij for a servlet project and using maven <dependency> <groupId>mysql</groupId> <artifactId>mysql-conn

java.lang.ClassNotFoundException: com.mysql.jdbc.Driver even after using the mySql Maven Dependency on Intellij

I am using Intellij for a servlet project and using maven <dependency> <groupId>mysql</groupId> <artifactId>mysql-conn

Application logout Cannot call sendRedirect() after the response has been committed

After login to the application and while trying to perform any activity the page keeps loading for some time and logged out of the application. I checked t

Inconsistencies between Apache Velocity output from production (ubuntu) and local (windows)

I am using apache velocity to generate rtf output from a tomcat web application using user defined templates. The webapp's dependencies are managed by maven, wi

spring boot ssl client cert fails with PKIX path building failed error

I am writing a rest client in spring boot that call secure server API over ssl. Here is my code: @Value("${secret: not configured}") private String secret

How to prevent exception logs of malformed requests in Spring Boot Application

Spring Boot 2.6.x May 11 14:08:41 ubuntu java[1831]: 2022-05-11 14:08:41.239 INFO 1831 --- [nio-2023-exec-7] o.apache.coyote.http11.Http11Processor : Error p

Unable to create tempDir, java.io.tmpdir is set to C:\Windows\

I'm using Spring Boot with embedded tomcat, everything worked fine and suddenly I got the error : Caused by: org.springframework.boot.context.embedded.Embedded

Whitelist for redirect URLs in spring boot

We have a security issue in our project. An attacker can intercept a login request and modify a 'Host' header in it. The server would respond with a redirect (3

Form based Authentication in Tomcat

I performed login using form based authentication in tomcat(using j_security_check). I have added jdbc realm code in server.xml and also security constrains in

Using Docker to launch web app, can't connect to Postgresql DB?

I received the following error when trying to write session data using Tomcat's PersistentManager to a Postgres DB running on my local machine: SEVERE: A SQL

Deploying Spring Boot war in AWS ec2 instance

I am trying to deploy a spring boot application as war file in Apache Tomcat/8.5.29 on aws ec2 instance. Same war file working fine if i paste it in local machi

Generating and accessing WSDL on Tomcat with Maven

I have a JAX-WS server that I package with Maven and deploy on Tomcat. The pom.xml generates the WSDL file automatically with the trick from Use Maven to trigge

Change tomcats default URL

I have 2 runnings tomcats (version 8). 1 is reachable via http://localhost:8080/ . All other apps of this tomcat are reachable as expected on: http://localhost

How to implement Auto scale on Memory based metric in EKS cluster

I have a EKS cluster with min 3 and max 6 nodes, Created auto scaling group for this setup, How can i implement auto scale of nodes when spike up/down on Memory