Sae1962
Sae1962

Reputation: 1226

Apache Tomcat 6.0.53 is starting, but access to http://localhost:8080/ is not possible

In an acquired RESTful Spring Boot Web application with some restrictions that runs properly with IntelliJ IDEA v2022.02.05, I am asked to start the project without it. So, I started it in the command prompt under Windows 11 Pro.

Apache Tomcat 6.0.53 (with a CATALINA_BASE directory of Apache Tomcat 6.0.37!) works flowlessly. This is at least what I see in the logs. But it seems to be impossible to make the standard test of opening http://localhost:8080/ (→ HTTP ERROR 404). The command prompt shell where Apache Tomcat 6.0.53 was started, the Tomcat window, and the Microsoft Edge browser that gives an HTTP ERROR 404.

What I tried till now?

It seems that currently, only Apache Tomcat is "listening" to the port (ABHÖREN = LISTEN).

When Apache Tomcat 6.0.53 opens from the command prompt, the following is displayed in the Tomcat window:

31.01.2025 08:14:01 org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.2.12 using APR version 1.5.2.
31.01.2025 08:14:01 org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
31.01.2025 08:14:01 org.apache.catalina.core.AprLifecycleListener initializeSSL
INFO: OpenSSL successfully initialized with version OpenSSL 1.0.2k  26 Jan 2017
31.01.2025 08:14:02 org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
31.01.2025 08:14:02 org.apache.coyote.ajp.AjpAprProtocol init
INFO: Initializing Coyote AJP/1.3 on ajp-8009
31.01.2025 08:14:02 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1030 ms
31.01.2025 08:14:02 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
31.01.2025 08:14:02 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.53
31.01.2025 08:14:02 org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
31.01.2025 08:14:02 org.apache.coyote.ajp.AjpAprProtocol start
INFO: Starting Coyote AJP/1.3 on ajp-8009
31.01.2025 08:14:02 org.apache.catalina.startup.Catalina start
INFO: Server startup in 53 ms

Do you have an idea what could be the cause of the problem when starting Apache Tomcat directly from the command prompt?

What site should I have checked to solve this problem?

Edit 1:

With the same changes on my company notebook, I get the following warning: The message reads "The Windows Firewall has blocked some functions of Java(TM) Platform SE binary in all public and private networks." And below, it read "(i) This setting is managed by your organization."

The message reads "The Windows Firewall has blocked some functions of Java(TM) Platform SE binary in all public and private networks." And below, it read "(i) This setting is managed by your organization."

I think this may be a Firewall issue, but I am not sure. I will inform you whenever I know more about it.

Edit 2:

I am working in home office an talked to our firewall expert. Although he set the JVM on the list, it is still not running here over the VPN connection. But on my notebook, it is running and localhost:8080 shows the index.html in the ROOT directory.

Upvotes: -4

Views: 144

Answers (1)

Chirag Dhial
Chirag Dhial

Reputation: 11

You can try and define the localhost in host file (C:\Windows\System32\drivers\etc):

xxx.x.x.x(ip address)       localhost

Upvotes: 1

Related Questions