I have Tomcat7 installed on a Server 2008 R2 server as a service. When I start the service, there were no failures, but I got a 404 when I navigate to Localhost:8080.
I opened up cmd and tried running Tomcat7.exe, but I receive the following errors:
[warn] the system cannot find the Registry key for service 'tomcat7'
[error] Load configuration failed
[error] The system cannot find the file specified.
[error] Commons Daemon procrun failed with exit value: 2 (Failed to load configuration)
{error] the system cannot find the file specified
I install Tomcat for clients by unzipping a folder that includes apache-tomcat, the JDK and the JRE and then adding the paths to the environment variables. I have verified that this zip will successfully install and run Tomcat on many servers with the same OS.
I tried troubleshooting by copying the MSVCR71.DLL file to the Tomcat\bin folder and the JDK\bin folder, but I still get the same error. Is there another place I should be copying that file? (Note: I copied this MSVCR71.DLL from a windows folder- it was not included in Tomcat.)
This server is a newly created server, which I'm told never had another instance of Tomcat on it.
Any help/ leads in the right direction are appreciated.
run this in your command prompt "service.bat install" pointing to bin and this will install the tomcat7 service.
Now if you run tomcat7.exe, server should be starting fine without errors.
First on env.: name: JAVA_HOME and valuer: C:\Program Files\java\jdk-15.0.1
After that:
And finally:
I have faced the similar issue, this is happening because you might have forgot to add the environmental variables for JRE_HOME or JAVA_HOME
When you tried to click on startup.bat file in bin folder - it closes in a blink of an eye.
Saying like environmental properties are not set.
Hopefully this solve your problem too.