assets folder is not accessible in java class Tomcat Web Project Built in Maven

I have tried to make assets folder in different locations in the project and I have MS Access DB file in it. I want to access it using ucanaccess driver. but it gives file not found exception. DB …

Unable to include font folder in java application

I am facing a weird problem and I am stuck at the moment. I have a java application running in tomcat on my local machine. Recent requirement was to include a new font for the app. I downloaded the …

spring boot Tomcat

I have created one simple spring boot application and have added 2 dependencies using spring initializers, H2 and JPA. I have added H2 configuration in application.properties file and then added …

Tomcat. ClassNotFoundException on importing class

I am writing my training project on Tomcat based java servlets and jsp’s using Visual Studio Code. Now I am working on logging. My project structure looks like this: webapps |—-ROOT |—-public …

AWS Elastic Beanstalk Application Logging with Logback

EDIT: Added Image (The problem looks like log files are not written) I am running an spring mvc (NOT springboot) WAR file on AWS Elastic Beanstalk on a ‘Tomcat 8.5 with Corretto 11 running on 64bit …

How to modify tomcat web.xml location per webapplication

I’ve multiple spring boot applications deployed in my tomcat server (as war files). My problem is I want to customize tomcat’s default session-timeout for some of the webapps (ie. without editing the …

How to add rewrite rule to spring boot 2.3.1

I have a Spring Boot application based on this example. Now the question is how can I add rewrite rules to my application that add /index.html when user visit the root URL. I mean when user visit …

Java servlets on Tomcat take to 404 error but it works fine on localhost

I have design a webApp with NetBeans IDE. It works fine on localhost, but when I deploy it on my host, trying to access the servlets give me a 404 error. My servlet dos include the URLpattern and the …

Deploy WAR to Tomcat (Spring Boot + Angular)

I am trying to deploy the Spring Boot Application with WAR packaging to Tomcat 10. The application gets deployed successfully, however, when I try to access the endpoints it results in 404 Not Found. …

Using Spring Boot without Maven

I am trying to write a simple Java program that displays Hello World as a microservice. I am using Spring Boot, but due to security reasons at my company, I am unable to use Maven. Therefore, I have …