I create Spring Boot application. It works successfully in my localhost. But when I deploy and run jar file in linux centos server index page can not found (I get : There was an unexpected error (type=Not Found, status=404). /WEB-INF/jsp/index.jsp) This is my code structure and application.properties : code s…
Tag: spring
401 SPNEGO SSO with Linux client
I can’t manage to configure my Ubuntu VM to single sign-on on my Spring Security web application under Spnego. Did I do anything wrong or am I missing something? I already got to SSO on a Windows 7 VM, so I believe it’s Linux specific. My configuration is detailed below. Infra I have four machines…
In Java 8, how do I get my hostname without hard-coding it in my environment?
We just upgraded to Java 8 on Amazon Linux. We are using Spring 4.3.8.RELEASE. It used to be that we could get our machine hostname by setting up beans in our application context file like so … But with Java 8, the bean “hostname” now contains the string Before Java 8, it used to contain the…
Containerized spring boot application with oracle database resetting connection
I am having a problem with a containerized spring boot application using oracle database. I successfully build my image but when I run it using docker the application gets stuck on getting a connection pool. The application runs with a connection reset exception and if I try to connect on it I get another con…
Java web application seems to go idle quickly in Tomcat
I’m new to java and tomcat. I’m developing a website in java using spring mvc. It’s deployed to a linux server that’s running Tomcat 8. Everything works fine when I deploy, it connects to the database great. The issue is that the site seems to go idle very quickly. I haven’t been…
How to make path location dynamic in xml
I have a logback.xml configured in a spring MVC + hibernate project, it is working fine on my local machine. the local machine has windows 10 OS installed. I wish to run the code of production machine which has Linux installed. What is want to know, is there a way to make LOG_PATH and LOG_ARCHIVE locations dy…
Stopping an unknown process in linux server
I have this command in my deployment process. But I want this process to stop and then restart while deploying in linux server. I checked and found that this is simply a JAVA process, and I can’t simply kill JAVA as other nimbus and supervisors are running too. So, how can I stop this process? Answer Yo…