Relative Content

Tag Archive for javatomcatstartup

I can run startup.bat in CMD, but when I checked the service-install.log, it shows that ‘Failed to install service.’

I am using jdk-11 and Tomcat 21. I can run startup.bat in CMD and got no error, but when I checked the service-install.log in C:Program FilesApache Software FoundationTomcat 11.0logs, it showed that ‘Failed to install service.’. When I typed ‘localhost:8080’ in my Chrome browser, it showed up error message as ‘This site can’t be reached. localhost refused to connect.’. I have checked the JAVA_HOME and CATALINA_HOME environment variables and their corresponding PATHs. They all are correct. No other program is using localhost:8080. No firewall. Please help me to Tomcat successfully. Thank you!