spring-boot application command line running issue - java

I am running a spring boot application jar on a windows command prompt.
2.1.3.RELEASE is parent dependency for the application.
My application does not show any logs printing on command prompt after some time. Kind of becoming unresponsive and giving effect as the application is paused/not functioning. If I hit 'Ctrl + C' then it starts working again.
Does anyone experience this? please help

Can you try performing the following :
Check netstat -ano to see if the springboot application has an open
connection (check port as specified).If you don't find the port
being exposed then your application is not up.
If you have included springboot actuator as dependency use
'/health' endpoint to check the health of the application.
Use postman or any rest client and try hitting the application rest
endpoints (if anu) manually to see if logs are getting printed in
console.
Check and verify the springboot autologging configurations to see if
console output is disabled or not.

This is probably late. I have the same issue. If I use "mvn spring-boot:run" to start my app, it would run normally, and after a while, the logs stop and the endpoints are not working anymore. I need to press "Enter key" in the console to continue running again. In my case, I have solved the issue by removing all "System.out.println" in the endpoint code.

Related

No webpage was found for the web address: http://localhost:8080 in spring

I have my apps running on java spring.
After i start the tomcat in eclipse, it runs well
But after certain minutes +- 30 minutes. It shows "This localhost page can’t be found
No webpage was found for the web address: http://localhost:8080/testadmin/Dashboard"
if i try http://localhost:8080/testadmin (it calls index.jsp), it shows the web. But function inside of index.jsp that call another controller function show 404 in the network console.
If i restart eclipse tomcat. The web runs well again. Is there any missing things on it ?
That type of problem I mostly found in eclipse so you can only clean the eclipse cache then it's gonna work fine but now I switched to IntelliJ now it's fine.

Azure, default "Hey, Java developers!" welcome page after successfully deployment

After succesfully deployment via Github repo of my Spring boot Application in Azure's App Service i have still "Hey java developers!" page, i tried do this via Github and Github Actions, Github and Kudu, FTP, but result is allways the same. I'm out of ideas.
UPDATE
Today, I try again. I disconnect connection. And try to reconnect, I saw build area like below.
After Action completed, it works.
So I suggest you disconnect and reconnect to solve the problem.
PRIVIOUS
According to your description, I personally tested one side and your problem reappeared.
My troubleshooting steps:
First create a default page for webapp. (Under windows, it fails, indicating that this is not).
Deploy the webapp under linux and find that everything is normal.
From the Action on github, it was found that there should be a problem with the build in the deployment under windows.
In conclusion:
It is recommended to use linux to deploy webapp. As for the deployment failure under windows, it is recommended to raise a support ticket for help.
My test result.
Under Linux, after build action, we can see app.jar file under wwwroot folder.
I also move it to windows webapp, it doesn't work.

Windows could not start service, Error 1053: The service did not respond to the start or control request in a timely fashion

I have created a Java program then I need to install it as windows service.
First I run the jar directly from console and it ran as I wish, then I compile the jar to exe and I ran it as Admin ran OK.
But when I run it from windows service I got following error,
Error 1053: The service did not respond to the start or control request in a timely fashion
I also tried to set Account and password on Log On Tab, but not resolved yet.
It's not possible to resolve the actual problem with the information given by you, so I will provide you the steps necessary to debug the problem.
Use logging in your application to see what causes the error: Apache Log4j
You can use the Windows Event Viewer to see what happens when you start your Windows Service. This is very useful if the problem happens before the start of the application itself.
Click on Start / Windows symbol, type Event Viewer and press Enter. In the left hand tree-menu, click Windows Logs and then Application.

Netbeans Tomcat Output Window has no console input

I'm starting Tomcat in Netbeans via the Services tab and see the output window as usual.
The problem is, I have a web application which needs a password to be typed in at runtime to be sent via console to the application.
I found this bug report (a bit old): https://netbeans.org/bugzilla/show_bug.cgi?id=47708&x=17&y=7 but i can't figure out whether it should be solved now or what to configure to get it run.
Any suggestions?

Get complete logs in tomcat console in catalina.out

I have scenario where I develop my liferay portlets through eclipse deploy them on tomcat server integrated in eclipse. Whenever I get an exception, I am able to trace it through console as the complete stacktrace is displyed there.
But, when i deploy the same portlets on to my stage and production server I am not able to see any exception in the command prompt / terminal / putty where catalina.out is displayed live.
Please tell me a way to achieve that or a workaround that. If possible, please state the merits and demerits for the same.

Categories