HTTP Status 404 – Not Found after deploy dhis.war file

Hi all,

I deployed dhis.war file to webapps folder. The dhis app already in the Tomcat Web Application Manager list but unable to start http://localhost:8080/dhis/, error 404 - not found.

Click here to see Catalina error log:

catalina.log below:

17-Dec-2021 10:40:50.686 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version name: Apache Tomcat/10.0.14
17-Dec-2021 10:40:50.704 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Dec 2 2021 22:01:36 UTC
17-Dec-2021 10:40:50.705 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version number: 10.0.14.0
17-Dec-2021 10:40:50.705 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Windows 10
17-Dec-2021 10:40:50.705 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 10.0
17-Dec-2021 10:40:50.705 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64
17-Dec-2021 10:40:50.705 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: C:\Program Files\OpenJDK\jre-11.0.8.10-hotspot
17-Dec-2021 10:40:50.705 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 11.0.8-internal+0-adhoc…jdk11u
17-Dec-2021 10:40:50.705 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation
17-Dec-2021 10:40:50.705 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: C:\Program Files\Apache Software Foundation\Tomcat 10.0
17-Dec-2021 10:40:50.706 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: C:\Program Files\Apache Software Foundation\Tomcat 10.0
17-Dec-2021 10:40:50.717 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 10.0
17-Dec-2021 10:40:50.717 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=C:\Program Files\Apache Software Foundation\Tomcat 10.0
17-Dec-2021 10:40:50.717 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=C:\Program Files\Apache Software Foundation\Tomcat 10.0\temp
17-Dec-2021 10:40:50.717 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
17-Dec-2021 10:40:50.717 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=C:\Program Files\Apache Software Foundation\Tomcat 10.0\conf\logging.properties
17-Dec-2021 10:40:50.717 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.lang=ALL-UNNAMED
17-Dec-2021 10:40:50.717 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.io=ALL-UNNAMED
17-Dec-2021 10:40:50.717 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
17-Dec-2021 10:40:50.717 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: exit
17-Dec-2021 10:40:50.717 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: abort
17-Dec-2021 10:40:50.717 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xms128m
17-Dec-2021 10:40:50.717 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xmx256m
17-Dec-2021 10:40:50.721 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded Apache Tomcat Native library [1.2.31] using APR version [1.7.0].
17-Dec-2021 10:40:50.721 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true], UDS [true].
17-Dec-2021 10:40:50.724 INFO [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized [OpenSSL 1.1.1l 24 Aug 2021]
17-Dec-2021 10:40:51.000 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler [“http-nio-8080”]
17-Dec-2021 10:40:51.014 SEVERE [main] org.apache.catalina.util.LifecycleBase.handleSubClassException Failed to initialize component [Connector[HTTP/1.1-8080]]
org.apache.catalina.LifecycleException: Protocol handler initialization failed
at org.apache.catalina.connector.Connector.initInternal(Connector.java:1055)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
at org.apache.catalina.core.StandardService.initInternal(StandardService.java:556)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:1042)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)
at org.apache.catalina.startup.Catalina.load(Catalina.java:747)
at org.apache.catalina.startup.Catalina.load(Catalina.java:769)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:305)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:475)
Caused by: java.net.BindException: Address already in use: bind
at java.base/sun.nio.ch.Net.bind0(Native Method)
at java.base/sun.nio.ch.Net.bind(Unknown Source)
at java.base/sun.nio.ch.Net.bind(Unknown Source)
at java.base/sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
at org.apache.tomcat.util.net.NioEndpoint.initServerSocket(NioEndpoint.java:244)
at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:199)
at org.apache.tomcat.util.net.AbstractEndpoint.bindWithCleanup(AbstractEndpoint.java:1184)
at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:1197)
at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:580)
at org.apache.coyote.http11.AbstractHttp11Protocol.init(AbstractHttp11Protocol.java:82)
at org.apache.catalina.connector.Connector.initInternal(Connector.java:1052)
… 13 more
17-Dec-2021 10:40:51.015 INFO [main] org.apache.catalina.startup.Catalina.load Server initialization in [447] milliseconds
17-Dec-2021 10:40:51.051 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
17-Dec-2021 10:40:51.052 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.0.14]
17-Dec-2021 10:40:51.074 INFO [main] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [C:\Program Files\Apache Software Foundation\Tomcat 10.0\webapps\dhis.war]
17-Dec-2021 10:41:03.296 INFO [main] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
17-Dec-2021 10:41:03.520 WARNING [main] org.apache.catalina.util.SessionIdGeneratorBase.createSecureRandom Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [204] milliseconds.
17-Dec-2021 10:41:03.544 INFO [main] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [C:\Program Files\Apache Software Foundation\Tomcat 10.0\webapps\dhis.war] has finished in [12,470] ms
17-Dec-2021 10:41:03.545 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [C:\Program Files\Apache Software Foundation\Tomcat 10.0\webapps\docs]
17-Dec-2021 10:41:03.561 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [C:\Program Files\Apache Software Foundation\Tomcat 10.0\webapps\docs] has finished in [15] ms
17-Dec-2021 10:41:03.561 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [C:\Program Files\Apache Software Foundation\Tomcat 10.0\webapps\examples]
17-Dec-2021 10:41:03.765 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [C:\Program Files\Apache Software Foundation\Tomcat 10.0\webapps\examples] has finished in [204] ms
17-Dec-2021 10:41:03.765 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [C:\Program Files\Apache Software Foundation\Tomcat 10.0\webapps\host-manager]
17-Dec-2021 10:41:03.789 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [C:\Program Files\Apache Software Foundation\Tomcat 10.0\webapps\host-manager] has finished in [24] ms
17-Dec-2021 10:41:03.789 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [C:\Program Files\Apache Software Foundation\Tomcat 10.0\webapps\manager]
17-Dec-2021 10:41:03.807 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [C:\Program Files\Apache Software Foundation\Tomcat 10.0\webapps\manager] has finished in [18] ms
17-Dec-2021 10:41:03.807 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [C:\Program Files\Apache Software Foundation\Tomcat 10.0\webapps\ROOT]
17-Dec-2021 10:41:03.823 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [C:\Program Files\Apache Software Foundation\Tomcat 10.0\webapps\ROOT] has finished in [16] ms
17-Dec-2021 10:41:03.843 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in [12827] milliseconds

Caused by: java.net.BindException: Address already in use: bind

The port is already in use. You have some other app already running at port 8080.

2 Likes

Most likely you have already one tomcat running. Stop that tomcat or use a different port (eg: 8081) in conf/server.xml

1 Like

Thank you @Daler & @jthomas! And welcome to the community @nuttapol! :tada::tada::tada:

@nuttapol please let us now if you were able to solve the issue by changing the port number (it should work)?

Hi all,

I changed port to 8081 still error HTTP status 404 - Not found :thinking:

server.xml

Browse http://localhost:8081/dhis with error
Type: Status Report
Message: The requested resource [/dhis] is not available
Description: The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.

Can you once again share the new catalina log.

Hi @jthomas,

War file copied from https://releases.dhis2.org/dev/dhis.war
Default tomcat page is loaded successfully localhost:8081 but localhost:8081/dhis is not working.

Catalina.log as below. Thank you very much in advance.

Click here to see error log:

19-Dec-2021 12:45:39.289 INFO [Thread-3] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler [“http-nio-8081”]
19-Dec-2021 12:45:39.289 INFO [Thread-3] org.apache.catalina.core.StandardService.stopInternal Stopping service [Catalina]
19-Dec-2021 12:45:39.289 INFO [Thread-3] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler [“http-nio-8081”]
19-Dec-2021 12:45:39.289 INFO [Thread-3] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler [“http-nio-8081”]
19-Dec-2021 12:45:58.364 INFO [Thread-3] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler [“http-nio-8081”]
19-Dec-2021 12:45:58.541 INFO [Thread-3] org.apache.catalina.core.StandardService.stopInternal Stopping service [Catalina]
19-Dec-2021 12:45:58.558 INFO [Thread-3] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler [“http-nio-8081”]
19-Dec-2021 12:45:58.576 INFO [Thread-3] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler [“http-nio-8081”]
19-Dec-2021 12:46:46.429 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version name: Apache Tomcat/10.0.14
19-Dec-2021 12:46:46.445 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Dec 2 2021 22:01:36 UTC
19-Dec-2021 12:46:46.445 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version number: 10.0.14.0
19-Dec-2021 12:46:46.445 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Windows 10
19-Dec-2021 12:46:46.445 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 10.0
19-Dec-2021 12:46:46.445 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64
19-Dec-2021 12:46:46.445 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: C:\Program Files\OpenJDK\jre-11.0.8.10-hotspot
19-Dec-2021 12:46:46.445 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 11.0.8-internal+0-adhoc…jdk11u
19-Dec-2021 12:46:46.445 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation
19-Dec-2021 12:46:46.445 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: C:\Program Files\Apache Software Foundation\Tomcat 10.0
19-Dec-2021 12:46:46.445 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: C:\Program Files\Apache Software Foundation\Tomcat 10.0
19-Dec-2021 12:46:46.445 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 10.0
19-Dec-2021 12:46:46.445 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=C:\Program Files\Apache Software Foundation\Tomcat 10.0
19-Dec-2021 12:46:46.445 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=C:\Program Files\Apache Software Foundation\Tomcat 10.0\temp
19-Dec-2021 12:46:46.445 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
19-Dec-2021 12:46:46.445 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=C:\Program Files\Apache Software Foundation\Tomcat 10.0\conf\logging.properties
19-Dec-2021 12:46:46.445 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.lang=ALL-UNNAMED
19-Dec-2021 12:46:46.445 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.io=ALL-UNNAMED
19-Dec-2021 12:46:46.445 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
19-Dec-2021 12:46:46.445 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: exit
19-Dec-2021 12:46:46.445 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: abort
19-Dec-2021 12:46:46.445 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xms128m
19-Dec-2021 12:46:46.445 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xmx256m
19-Dec-2021 12:46:46.445 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded Apache Tomcat Native library [1.2.31] using APR version [1.7.0].
19-Dec-2021 12:46:46.445 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true], UDS [true].
19-Dec-2021 12:46:46.466 INFO [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized [OpenSSL 1.1.1l 24 Aug 2021]
19-Dec-2021 12:46:46.666 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler [“http-nio-8081”]
19-Dec-2021 12:46:46.700 INFO [main] org.apache.catalina.startup.Catalina.load Server initialization in [380] milliseconds
19-Dec-2021 12:46:46.744 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
19-Dec-2021 12:46:46.746 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.0.14]
19-Dec-2021 12:46:46.782 INFO [main] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [C:\Program Files\Apache Software Foundation\Tomcat 10.0\webapps\dhis.war]
19-Dec-2021 12:47:20.259 INFO [main] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
19-Dec-2021 12:47:20.455 WARNING [main] org.apache.catalina.util.SessionIdGeneratorBase.createSecureRandom Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [174] milliseconds.
19-Dec-2021 12:47:20.473 INFO [main] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [C:\Program Files\Apache Software Foundation\Tomcat 10.0\webapps\dhis.war] has finished in [33,691] ms
19-Dec-2021 12:47:20.473 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [C:\Program Files\Apache Software Foundation\Tomcat 10.0\webapps\docs]
19-Dec-2021 12:47:20.489 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [C:\Program Files\Apache Software Foundation\Tomcat 10.0\webapps\docs] has finished in [16] ms
19-Dec-2021 12:47:20.489 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [C:\Program Files\Apache Software Foundation\Tomcat 10.0\webapps\examples]
19-Dec-2021 12:47:20.699 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [C:\Program Files\Apache Software Foundation\Tomcat 10.0\webapps\examples] has finished in [210] ms
19-Dec-2021 12:47:20.699 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [C:\Program Files\Apache Software Foundation\Tomcat 10.0\webapps\host-manager]
19-Dec-2021 12:47:20.743 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [C:\Program Files\Apache Software Foundation\Tomcat 10.0\webapps\host-manager] has finished in [43] ms
19-Dec-2021 12:47:20.743 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [C:\Program Files\Apache Software Foundation\Tomcat 10.0\webapps\manager]
19-Dec-2021 12:47:20.760 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [C:\Program Files\Apache Software Foundation\Tomcat 10.0\webapps\manager] has finished in [17] ms
19-Dec-2021 12:47:20.760 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [C:\Program Files\Apache Software Foundation\Tomcat 10.0\webapps\ROOT]
19-Dec-2021 12:47:20.789 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [C:\Program Files\Apache Software Foundation\Tomcat 10.0\webapps\ROOT] has finished in [29] ms
19-Dec-2021 12:47:20.798 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler [“http-nio-8081”]
19-Dec-2021 12:47:20.974 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in [34281] milliseconds
19-Dec-2021 12:47:36.048 INFO [Thread-3] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler [“http-nio-8081”]
19-Dec-2021 12:47:36.211 INFO [Thread-3] org.apache.catalina.core.StandardService.stopInternal Stopping service [Catalina]
19-Dec-2021 12:47:36.250 INFO [Thread-3] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler [“http-nio-8081”]
19-Dec-2021 12:47:36.265 INFO [Thread-3] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler [“http-nio-8081”]

  1. Is the other tomcat at 8080 still running? Can you shutdown that tomcat once and see all tomcats are stopped using task manager.

  2. Not sure about the authenticity of the link you shared. can you use this latest build DHIS2 2.37.2

  3. Can you rename war file to ROOT.war (it doesn’t matter but still can you do it)

  4. Is tomcat logs complete? i couldn’t see any potential errors

Hi @jthomas,

I try again per your suggests below, still get the error 404.

  1. I have only one tomcat 8081 installed.
  2. I use latest build as you suggested.
  3. I rename to ROOT.war and installed.
  4. Please find log below, I couldn’t see any errors too.

I don’t have experience with Tomcat before. I’m using OpenJDK (\OpenJDK\jdk-11.0.8.10-hotspot & \OpenJDK\jre-11.0.8.10-hotspot), is that could be an issue?

I would like to test with small .war file, what do you think?

Click here to see error log

– log file —
20-Dec-2021 11:42:30.390 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version name: Apache Tomcat/10.0.14
20-Dec-2021 11:42:30.405 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Dec 2 2021 22:01:36 UTC
20-Dec-2021 11:42:30.405 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version number: 10.0.14.0
20-Dec-2021 11:42:30.405 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Windows 10
20-Dec-2021 11:42:30.405 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 10.0
20-Dec-2021 11:42:30.405 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64
20-Dec-2021 11:42:30.405 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: C:\Program Files\OpenJDK\jre-11.0.8.10-hotspot
20-Dec-2021 11:42:30.405 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 11.0.8-internal+0-adhoc…jdk11u
20-Dec-2021 11:42:30.405 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation
20-Dec-2021 11:42:30.405 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: C:\Program Files\Apache Software Foundation\Tomcat 10.0
20-Dec-2021 11:42:30.405 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: C:\Program Files\Apache Software Foundation\Tomcat 10.0
20-Dec-2021 11:42:30.405 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 10.0
20-Dec-2021 11:42:30.405 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=C:\Program Files\Apache Software Foundation\Tomcat 10.0
20-Dec-2021 11:42:30.405 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=C:\Program Files\Apache Software Foundation\Tomcat 10.0\temp
20-Dec-2021 11:42:30.405 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
20-Dec-2021 11:42:30.405 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=C:\Program Files\Apache Software Foundation\Tomcat 10.0\conf\logging.properties
20-Dec-2021 11:42:30.405 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.lang=ALL-UNNAMED
20-Dec-2021 11:42:30.405 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.io=ALL-UNNAMED
20-Dec-2021 11:42:30.405 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
20-Dec-2021 11:42:30.405 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: exit
20-Dec-2021 11:42:30.405 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: abort
20-Dec-2021 11:42:30.405 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xms128m
20-Dec-2021 11:42:30.405 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xmx256m
20-Dec-2021 11:42:30.421 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded Apache Tomcat Native library [1.2.31] using APR version [1.7.0].
20-Dec-2021 11:42:30.421 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true], UDS [true].
20-Dec-2021 11:42:30.421 INFO [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized [OpenSSL 1.1.1l 24 Aug 2021]
20-Dec-2021 11:42:30.609 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler [“http-nio-8081”]
20-Dec-2021 11:42:30.624 INFO [main] org.apache.catalina.startup.Catalina.load Server initialization in [356] milliseconds
20-Dec-2021 11:42:30.672 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
20-Dec-2021 11:42:30.672 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.0.14]
20-Dec-2021 11:42:30.703 INFO [main] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [C:\Program Files\Apache Software Foundation\Tomcat 10.0\webapps\ROOT.war]
20-Dec-2021 11:42:43.531 INFO [main] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
20-Dec-2021 11:42:43.746 WARNING [main] org.apache.catalina.util.SessionIdGeneratorBase.createSecureRandom Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [182] milliseconds.
20-Dec-2021 11:42:43.782 INFO [main] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [C:\Program Files\Apache Software Foundation\Tomcat 10.0\webapps\ROOT.war] has finished in [13,078] ms
20-Dec-2021 11:42:43.782 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [C:\Program Files\Apache Software Foundation\Tomcat 10.0\webapps\dhis]
20-Dec-2021 11:42:55.444 INFO [main] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
20-Dec-2021 11:42:55.461 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [C:\Program Files\Apache Software Foundation\Tomcat 10.0\webapps\dhis] has finished in [11,679] ms
20-Dec-2021 11:42:55.461 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [C:\Program Files\Apache Software Foundation\Tomcat 10.0\webapps\docs]
20-Dec-2021 11:42:55.492 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [C:\Program Files\Apache Software Foundation\Tomcat 10.0\webapps\docs] has finished in [31] ms
20-Dec-2021 11:42:55.492 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [C:\Program Files\Apache Software Foundation\Tomcat 10.0\webapps\examples]
20-Dec-2021 11:42:55.680 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [C:\Program Files\Apache Software Foundation\Tomcat 10.0\webapps\examples] has finished in [188] ms
20-Dec-2021 11:42:55.681 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [C:\Program Files\Apache Software Foundation\Tomcat 10.0\webapps\host-manager]
20-Dec-2021 11:42:55.709 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [C:\Program Files\Apache Software Foundation\Tomcat 10.0\webapps\host-manager] has finished in [29] ms
20-Dec-2021 11:42:55.709 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [C:\Program Files\Apache Software Foundation\Tomcat 10.0\webapps\manager]
20-Dec-2021 11:42:55.728 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [C:\Program Files\Apache Software Foundation\Tomcat 10.0\webapps\manager] has finished in [19] ms
20-Dec-2021 11:42:55.728 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [C:\Program Files\Apache Software Foundation\Tomcat 10.0\webapps\ROOT-bak]
20-Dec-2021 11:42:55.743 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [C:\Program Files\Apache Software Foundation\Tomcat 10.0\webapps\ROOT-bak] has finished in [15] ms
20-Dec-2021 11:42:55.749 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler [“http-nio-8081”]
20-Dec-2021 11:42:55.911 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in [25287] milliseconds

@nuttapol, thanks for your attempts! My first impressions now are two things:

First, please ensure that you are using an administrator terminal (CMD or PowerShell).

Second, it might be that your heap setting (memory) is not sufficient, maybe increase it to -Xmx768m

Please, @nuttapol which guide/docs/instructions are you following to perform the installation? Thank you!

1 Like

Hi @Gassim,

I have follow this instruction DHIS2: District Health Information System: DHIS2 Installation Guide for Microsoft Windows 10.

The JAVA_OPTS value is ‘-Xms512m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=768m’

Thank you very much for your help in advance.

Thanks @nuttapol! The post you are using doesn’t seem up to date as it was written in 2019 and now it’ll soon be 2022. Are you installing this as a production instance? If not and it’s for development or testing reasons then you could instead follow this guide: Getting started with DHIS2 | DHIS2 Developer Portal

It seems different than what you mention. What Java version are you using? Would you try uninstalling it and install (or reinstall) Java 11?

Thanks!

Hi @Gassim

I can installed DHIS2 and start using it.

Thank you for your help and support.

1 Like

Hi @nuttapol,
Thanks! That’s really great! Are you using it on Docker as suggested or did you find another solution? :relaxed: :+1:

Hi @Gassim

I did try docker but I cannot accomplish because of my small experience.

I follow this link DHIS2: District Health Information System: DHIS2 Installation Guide for Microsoft Windows 10 and it works :slight_smile:

Thank you.

1 Like

Glad that it’s still working! :+1::+1:

You followed it the first time and it didn’t work so I’m guessing you tried all over again. I usually do this too! :sweat_smile::laughing:

Okay, thanks for sharing!

Yes, exactly :slight_smile:

1 Like