Skip to content
Advertisement

Tag: tomcat

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 font and put in under a folder lookandfeel where my style.css is. Current Folder structure in my style.css I am importing

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 hoteldata.sql file in resource folder. When i am running the project, spring boot log doesn’t show Tomcat is started. I am expecting below log to be displayed while starting the

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: Class AccessFilter.java realizes logging system. Here is code of AccessFilter.java: Code of Log.java: package FamilyTask.lib; Command for compile servlet/filter classes: Command for compile simple classes: Compilation ends without errors, but on

Java Spring app can’t run after deploy on Tomcat7

I just deployed (first time ever) my Java app based on Spring. On localhost everything worked fine, but after deploy I can’t send any request. Applications just not running on the server. Logs: Any sugestions what’s wrong? I’ll be more than grateful for any help. EDIT: If it helps – I’ve downloaded sample web project which I just deployed on

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 global $CATALINA_BASE/conf/web.xml). I searched and read tomcat docs. It seems the only way I can achieve that is by creating /WEB-INF/web.xml inside my war files that needs different

installing tomcat 9 on WSL

After installing tomcat 9 on WSL, it isn’t recognized by system. Since systemctl command doesn’t work on WSL, I used below command: returning I followed 2 ways to install, but the same problem occurred. References are: https://www.digitalocean.com/community/tutorials/install-tomcat-9-ubuntu-1804 https://linuxconfig.org/ubuntu-20-04-tomcat-installation Is there any clue for this problem? Here is my environment: windows 10 version 2004 ubuntu 20.04 (WSL) openjdk version: “1.8.0_265” update:

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 http://localhost:8080/my-app or http://localhost:8080/my-app/ then I redirect him or her to http://localhost:8080/my-app/index.html. I found something here, but unfortunately does not work for me, also

Advertisement