How to prevent tomcat automatic shutdown? - java

I am using tomcat 7.0.8 in windows server 2008 remote machine(using it a server machine). Where I have hosted my java webapp running on port 80.
I start the tomcat server by running the startup.batch file. The issue is that the tomcat server shutdowns automatically whenever logoff from remote machine and not using the application for sometime like 30-40mins. I even disabled the tomcat shutdown 8005 but still the problem persists.
Please help me to solve this.
Thank you.

Related

Wildfly force redeploy NOT working / HTTP Connector port is already in use [duplicate]

This question already has answers here:
Netbeans does not know that Wildfly already started
(2 answers)
Closed 1 year ago.
I am using NetBeans and when I run the server for the FIRST time (even if I restart my computer) it gives me an error: "WildFly Application Server Start Failed. HTTP Connector port 8080 is already in use.". When I run my project, the server should restart and my web app should redeploy to it, but that does not happen. Instead the mentioned error occurs.
Q: What is on the port 8080?
A: It's the Wildfly Application Server
Q: How do I know it's is the Wildfly on the port 8080?
A: I can access the admin wildfly console on the port 9990 and when I kill the process (through the terminal) that is listening on the 8080 port I can not access the admin wildfly console anymore.
Q: Did you configure wildfly as a service so it boots as soon as your computer boots?
A: No, I did not configure it that way. I even check in the services (it runs manually, not on boot)
People with the same problem:
LINK1 , LINK2
I managed to fix it by deleting the wildfly server from my file system and downloading the same version from the Wildfly website. My guess is that some configuration file has become messed up for some reason. If anyone has a better solution please suggest it.

Oracle Weblogic 12c Shutdown not working for two ports

I have recently turned on SSL port 7003 for my managed server on Weblogic, earlier it was running on non-ssl port 7002. I have disabled non-ssl port by unchecking listen port enabled. Now the Managed Server is only working on SSL port 7003. This is when it gets strange..... I turn off managedserver and I could still see 7003 running (I can access the server on browser). Now I turned off Weblogic (stopWeblogic.sh) and still I can access 7003 port. Can someone explain why on earth is this happening? I went on to a lot of sites and no help.
Thank you so much
Most likely the server didn't stop. Check with netstat -tanp and see what process is using the port. If it is java, there you are. If you dare (test or production?) do a kill -9 pid to get rid of it. I assume you are running on Linux, otherwise there are similar commands for Windows (netstat, task manager or pskill).

Set Up New Tomcat Server

I am kind of a newbie on server, environment stuff, so I need help on setting up a new Tomcat server.
Actually I have installed one instance and it is running already on my dedicated server, but I can't access it's main page, so it is made possible to deploy my apps.
These are the internet proccess in the server. Tomcat is running on port 8080. I tried to access it by IP:8080 and it doesn't work
So is there some extra configuration on a dedicated server to be made? Some security stuff?

Unable to access java web application with windows server static ip

I was unable to access java web application with static ip(public ip) of Windows Server it was getting that site cant be reached,
but it was working with local IP.
This is the first time i am deploying my java web application in windows server, I exported the WAR from eclipse and deployed in Apache tomcat server of Windows Server.
Please help me how to deploy in live windows server. and what is the process to deploy in live windows server.
Thanks
I found the solution for this question, the issue is that, the port i have given in tomcat, the same port is running on some other application, so i have change the port then it works fine.

Can't connect to tomcat webservice

So I've been doing a java webservice in Eclipse in which I have launched on a localhost tomcat from Eclipse. This has worked very good as long as I've been connecting to the tomcat started from Eclipse.
However now I want to try deploy it on my tomcat separated from Eclipse but still on localhost. So I exported my web project to a .war file and deployed it with the tomcat manager app. However now I cant reach it from my client any longer. I'm running the tomcat on port 8080, just as my Eclipse tomcat did. BUT I can go to a reasource URL from my web browser and receive proper information, so the service is running(which the manager app is saying as well).
The client is a android device connected to the same network. The service fetches information from a MySQL database on the same machine. This connection worked fine before exporting it to war on my other tomcat
What am I doing wrong here? Just ask if you need any further information!
Ok so after testing I found it strange that I got connection time-outs and not something else. It also took at least 10 seconds before any feedback occurred. Sooo it felt like a firewall problem which indeed it was.
First I needed to portforward the tomcat port in my router to the machine ip that was hosting it. Then I remembered I had Windows firewall on that very machine which was also blocking conenctions on that port. So I allowed connections on tomcat port and BAM! It worked.
Thanks for all your comments, of course I should have thought about opening my ports before coming here.

Categories