I need to provide a config file path to my Java web application that runs in Apache Tomcat 10.1. The config path must be set outside of the deploymen ...
I need to provide a config file path to my Java web application that runs in Apache Tomcat 10.1. The config path must be set outside of the deploymen ...
I have been tasked at work with fixing some other teams deployment into IBM Websphere They use javax servletcontext to get values out of web.xml I h ...
I have a standard Java 11 Web application, with multiple servlets in it. Some servlets are imported by libraries, others are written within the applic ...
Dears, I have a jersey - spring api deployed on apache tomcat 9.0.46. (Jersey to handle restful services JAX-RS and Spring to handle all my beans{cont ...
My application use spring boot and webflux with tomcat embedded. I use a 3rd library that contains some servlet listeners. A listener property injec ...
My project is using spring boot with webflux, tomcat. I have a internal library class that is a ServletContextListener This internal class throws ...
I am trying to execute a sql statement in Listener's contextInitialized method, but when I run gretty local server, it throws RuntimeException error. ...
I have a Servlet that handles the download of an attached File. I get the attached file's path from the request and try to get the resource as stream ...
In the internals of an ContextListener how can I find out the port the Web App is running on I have a Java Web app project with JSP pages as frontend ...
I have created a job to run every hour as follows But HourlyJob() is executing every 10 minutes instead of hourly. Not sure what wrong I am doing h ...
I have created ServletContextListener in below class. Also I have created static block in another class of the same package. which would run first in ...
I have Spring Boot app running with embedded Tomcat. I'm running it in docker container. When I try to follow this page about spring boot in container ...
At deployment time we can do post-deployment action by overriding the method contextInitialized(ServletContextEvent sce) of the ServletContextListener ...
i am using a Servlet Context Listener for an assignment in college several of the context variables are set from the database. but when i add records ...
Is there a way to stop tomcat's startup if certain conditions don't occur? For example, I'd like the contextInitialized method of a servletContextLis ...
Here is the premise, I am not allowed to use JavaScript or Cookies for this website. However I do not wish to ask the user for their password for eve ...
I have some action I need to perform after the entire spring application has finished loading. The action must happen after all beans are inititlized ...
I use below code to send an Email. Just create an object and call the method of that object. above I create object and call below sendEmail method. ...
i have to count accesses of a page, but when the count is odd i should not print the count and i have to do this from a custom tag. I can't call my fi ...
I have doGet and doPost methods in a servlet and I have Request.getParameter("paramName") in both of them I want to use Request.getParameter("paramNam ...