Category "tomcat"

Enable ssl on tomcat service

I have wanted to make my tomcat service connection as secure. So I’ve generated the CSR and got a sign-in from my originations. While generating the CSR,

Force Tomcat a JSON response of BadRequest error: Invalid character found in the request target

I have this spring boot (v2.2.8) app for REST-full service, and I want all responses and errors to be only in JSON. Almost every error works with @ExceptionHand

java.lang.NoSuchMethodException error in Spring-boot web-application when deploying on tomcat

I am deploying a Spring-boot web-application on 'tomcat 9' and I faced a NoSuchMethodException. I compile and run this code in localhost, successfully; but when

Rest Api SSL on tomcat server

Setup: I have setup a front-end(Next.js) and backend kotlin-api. I use Cloudflare with SSL turned full on. I have setup SSL using certbot on both of these. This

jsp encoding display issue

I am finding a issue where the data is encoded properly in the controller and compiled jsp, but is not displaying properly within an alert statement (or on the

How to add Google Cloud MySQL libs to Tomcat 8.5

We want to deploy our Applications (.war-Files) via Tomcat 8.5 into a k8s-infrastructure, having the depending Database on Google Cloud SQL (MySQL). Google offe

java.lang.ClassNotFoundException: org.apache.logging.log4j.Logger after updating log4j 1.2.17 to 2.13.0

I am running Tomcat v9.0 server on a Java Eclipse project. Each time I run my application on the server I get this Problem Occured message: Server Tomcat v

AbstractMethodError: org.jboss.resteasy.specimpl.ResponseBuilderImpl misses 'javax.ws.rs.core.Response$ResponseBuilder status(int, java.lang.String)'

I was trying to deploy Okapi Longhorn on Tomcat when I got this error: FATAL [http-nio-8080-exec-1] org.apache.catalina.core.StandardWrapperValve.invoke Servlet

Tomcat war file deployment fails

When I am deploying my web app in tomcat by going to webapps it is being deployed and status is also showing true but when I am deploying same app by creating w

JasperReports Server 8.0.0 Deployed on Tomcat CORS Errors

When calling any of the REST web services from my Angular front-end application (or via cURL), I receive a CORS error in the console window. Access to XMLHttpRe

RELIABLE way of starting and stoping xampp (Mysql, Apache, Tomcat) from a batch file without crashing mysql databases

THE ENVIRONMENT: I am using Xampp (Mysql, Apache, Tomcat) for writing Java applications in Windows 11. THE PROBLEM: Everytime i forget to close xampp, and resta

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