Error: SEVERE: Failed to initialize end point associated with ProtocolHandler ["http-bio-8080"]

Dear dhis2 users,

I am trying to run a dhis war file that was done, in dhis version 212 in a local instance running, dhis version 2.23. I am get the error below in the catalina.out file.

Kindly any advice on how to fix this:

Jul 29, 2016 10:53:58 AM org.apache.catalina.startup.ClassLoaderFactory validateFile

WARNING: Problem with directory [/usr/share/tomcat7/common/classes], exists: [false], isDirectory: [false], canRead: [false]

Jul 29, 2016 10:53:58 AM org.apache.catalina.startup.ClassLoaderFactory validateFile

WARNING: Problem with directory [/usr/share/tomcat7/common], exists: [false], isDirectory: [false], canRead: [false]

Jul 29, 2016 10:53:58 AM org.apache.catalina.startup.ClassLoaderFactory validateFile

WARNING: Problem with directory [/usr/share/tomcat7/server/classes], exists: [false], isDirectory: [false], canRead: [false]

Jul 29, 2016 10:53:58 AM org.apache.catalina.startup.ClassLoaderFactory validateFile

WARNING: Problem with directory [/usr/share/tomcat7/server], exists: [false], isDirectory: [false], canRead: [false]

Jul 29, 2016 10:53:58 AM org.apache.catalina.startup.ClassLoaderFactory validateFile

WARNING: Problem with directory [/usr/share/tomcat7/shared/classes], exists: [false], isDirectory: [false], canRead: [false]

Jul 29, 2016 10:53:58 AM org.apache.catalina.startup.ClassLoaderFactory validateFile

WARNING: Problem with directory [/usr/share/tomcat7/shared], exists: [false], isDirectory: [false], canRead: [false]

Jul 29, 2016 10:53:59 AM org.apache.coyote.AbstractProtocol init

INFO: Initializing ProtocolHandler [“http-bio-8080”]

Jul 29, 2016 10:53:59 AM org.apache.coyote.AbstractProtocol init

SEVERE: Failed to initialize end point associated with ProtocolHandler [“http-bio-8080”]

java.net.BindException: Address already in use :8080

at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:410)

at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:640)

at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:434)

at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119)

at org.apache.catalina.connector.Connector.initInternal(Connector.java:978)

at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)

at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559)

at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)

at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:813)

at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)

at org.apache.catalina.startup.Catalina.load(Catalina.java:638)

at org.apache.catalina.startup.Catalina.load(Catalina.java:663)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:280)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:454)

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

at java.net.PlainSocketImpl.socketBind(Native Method)

at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387)

at java.net.ServerSocket.bind(ServerSocket.java:375)

at java.net.ServerSocket.<init>(ServerSocket.java:237)

at java.net.ServerSocket.<init>(ServerSocket.java:181)

at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:49)

at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:397)

... 17 more

Collins

You are trying to run two instances on the same port. In other words, DHIS2 is already running, and you are trying to start it again.

···

On Fri, Jul 29, 2016 at 2:51 PM, Collins McAdoyo collins.adoyo@gmail.com wrote:

Dear dhis2 users,

I am trying to run a dhis war file that was done, in dhis version 212 in a local instance running, dhis version 2.23. I am get the error below in the catalina.out file.

Kindly any advice on how to fix this:

Jul 29, 2016 10:53:58 AM org.apache.catalina.startup.ClassLoaderFactory validateFile

WARNING: Problem with directory [/usr/share/tomcat7/common/classes], exists: [false], isDirectory: [false], canRead: [false]

Jul 29, 2016 10:53:58 AM org.apache.catalina.startup.ClassLoaderFactory validateFile

WARNING: Problem with directory [/usr/share/tomcat7/common], exists: [false], isDirectory: [false], canRead: [false]

Jul 29, 2016 10:53:58 AM org.apache.catalina.startup.ClassLoaderFactory validateFile

WARNING: Problem with directory [/usr/share/tomcat7/server/classes], exists: [false], isDirectory: [false], canRead: [false]

Jul 29, 2016 10:53:58 AM org.apache.catalina.startup.ClassLoaderFactory validateFile

WARNING: Problem with directory [/usr/share/tomcat7/server], exists: [false], isDirectory: [false], canRead: [false]

Jul 29, 2016 10:53:58 AM org.apache.catalina.startup.ClassLoaderFactory validateFile

WARNING: Problem with directory [/usr/share/tomcat7/shared/classes], exists: [false], isDirectory: [false], canRead: [false]

Jul 29, 2016 10:53:58 AM org.apache.catalina.startup.ClassLoaderFactory validateFile

WARNING: Problem with directory [/usr/share/tomcat7/shared], exists: [false], isDirectory: [false], canRead: [false]

Jul 29, 2016 10:53:59 AM org.apache.coyote.AbstractProtocol init

INFO: Initializing ProtocolHandler [“http-bio-8080”]

Jul 29, 2016 10:53:59 AM org.apache.coyote.AbstractProtocol init

SEVERE: Failed to initialize end point associated with ProtocolHandler [“http-bio-8080”]

java.net.BindException: Address already in use :8080

at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:410)

at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:640)

at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:434)

at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119)

at org.apache.catalina.connector.Connector.initInternal(Connector.java:978)

at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)

at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559)

at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)

at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:813)

at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)

at org.apache.catalina.startup.Catalina.load(Catalina.java:638)

at org.apache.catalina.startup.Catalina.load(Catalina.java:663)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:280)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:454)

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

at java.net.PlainSocketImpl.socketBind(Native Method)

at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387)

at java.net.ServerSocket.bind(ServerSocket.java:375)

at java.net.ServerSocket.(ServerSocket.java:237)

at java.net.ServerSocket.(ServerSocket.java:181)

at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:49)

at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:397)

… 17 more

Collins


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

You can just try and change the name of one of the dhis folders.

But it seems strange if those are names of folders, rather than (zipped) files. I assume this is on your laptop?

How have you set things up? If you use DHIS2 Live, you can set the port number in a file inside the /conf folder.

I just run multiple instances of DHIS Live on different ports in parallel. Just start them in the terminal with ./startup.sh

···

On Fri, Jul 29, 2016 at 3:25 PM, Knut Staring knutst@gmail.com wrote:

You can just try and change the name of one of the dhis folders.

But it seems strange if those are names of folders, rather than (zipped) files. I assume this is on your laptop?

How have you set things up? If you use DHIS2 Live, you can set the port number in a file inside the /conf folder.

Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

Are you using Java 8? You need to provide more RAM for Java, I think this is already there in DHIS Live.

Download and extract it. After extracting the download, go to the dhis-live/webapps/dhis folder and delete everything. If you need to run more than one instance in parallel, just copy the folder to another name. Set different port numbers.

Then put your own .war file in the dhis-live/webapps/dhis folder and unzip it. Then cd …/… and ./startup.sh

···

On Fri, Jul 29, 2016 at 3:37 PM, Collins McAdoyo collins.adoyo@gmail.com wrote:

Dear Knut,

I am using the DHIS2 downloads, stable version .

The problem started after i started experiencing java memory errors and so i logged into the webapps and deleted all the files there and copied back the dhis.war files then I started tomcat.

Could this be wrong?

How do i fix the problem once again with and have it running? Sorry I am a newbie in DHIS.

collins

On Fri, Jul 29, 2016 at 11:55 AM, Knut Staring knutst@gmail.com wrote:

You can just try and change the name of one of the dhis folders.

But it seems strange if those are names of folders, rather than (zipped) files. I assume this is on your laptop?

How have you set things up? If you use DHIS2 Live, you can set the port number in a file inside the /conf folder.

Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org