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.
Related
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.
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.
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?
Thanks in advance. When I try to run a simple application with two jsps, 2 java classes and one servlet I get the next message:
"build-impl.xml:1051: The module has not been deployed.
See the server log for details."
I am using Oracle WebLogic Server, and I've lately been having a problem...when I try to stop it by right-clicking on its name(Services tab and then Servers tab on NetBeans) and clicking on the stop button, I get a warning telling me the Oracle WebLogic Server couldn't be stopped.
I'm not sure if both problems are related.
I spent days looking for a solution, but didn't find one.
I made a password manager as java web application (Tapestry to be precise) and idea is as follows, when you click on button next to password label, the matching password should be copied to system clipboard. It works perfectly when I start tomcat the standard way (run startup.bat), but that's not what I need. I need my tomcat to start as Windows service at startup, but in this case, everything in my application works perfectly except coping to clipboard. No error occurs, nor I get anything wrong in the log, text just doesn't copy.
Can someone tell me why is this the case, and what can cause such behavior? Can it be that service doesn't have right to mess with clipboard and if so, can I make it work?
Any help is welcome
When tomcat runs as a service, it does not run was a user linked to the main windows GUI, so all the awt functionalities are disabled. The only way to get some of them back is to add
-Djava.awt.headless=true
to the tomcat startup parameters - see http://support.sas.com/kb/12/599.html
However, this may be not enough as each user has his own console, so tomcat will copy into its own user console - you should run tomcat with the same user as the local logged in user, making the "run as a .bat" the easiest option.