Error in configuring tomcat in XXAMP

Dear all,

Am trying to configure tomcat in XXAMP but getting the error below. I tried accessing the path where the port is being used but cannot access it.

Please help. Trying to have DHIS2 live run on my machine.

Problem detected!

10:11:36 AM [Tomcat] Port 8080 in use by ““C:\Program Files (x86)\PostgreSQL\EnterpriseDB-ApachePHP\apache\bin\httpd.exe” -k runservice”!

10:11:36 AM [Tomcat] Tomcat WILL NOT start without the configured ports free!

10:11:36 AM [Tomcat] You need to uninstall/disable/reconfigure the blocking application

10:11:36 AM [Tomcat] or reconfigure Tomcat and the Control Panel to listen on a different port

10:11:36 AM [Tomcat] Java is already running on port 8009!

10:11:36 AM [Tomcat] Is Tomcat already running?

10:11:36 AM [Tomcat] Attempting to start Tomcat app…

···


Avast logo

This email has been checked for viruses by Avast antivirus software.
www.avast.com

Hi

Seems like you have another (non-tomcat) service running at port 8080. I see you have enabled apache+php, is this something you need? maybe its a service you can disable?

···

On Sat, Jun 27, 2015 at 12:26 AM, Bridget Magoba bridgetmagoba@mifumi.org wrote:

Dear all,

Am trying to configure tomcat in XXAMP but getting the error below. I tried accessing the path where the port is being used but cannot access it.

Please help. Trying to have DHIS2 live run on my machine.

Problem detected!

10:11:36 AM [Tomcat] Port 8080 in use by ““C:\Program Files (x86)\PostgreSQL\EnterpriseDB-ApachePHP\apache\bin\httpd.exe” -k runservice”!

10:11:36 AM [Tomcat] Tomcat WILL NOT start without the configured ports free!

10:11:36 AM [Tomcat] You need to uninstall/disable/reconfigure the blocking application

10:11:36 AM [Tomcat] or reconfigure Tomcat and the Control Panel to listen on a different port

10:11:36 AM [Tomcat] Java is already running on port 8009!

10:11:36 AM [Tomcat] Is Tomcat already running?

10:11:36 AM [Tomcat] Attempting to start Tomcat app…



Avast logo

This email has been checked for viruses by Avast antivirus software.
www.avast.com


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


Morten

Thanks Morten, the error went off but Tomcat seems not to be running. It shows that below.

[Tomcat] Attempting to start Tomcat app…

11:16:03 AM [Tomcat] Java is already running on port 8005!

11:16:03 AM [Tomcat] Is Tomcat already running?

11:16:03 AM [Tomcat] Java is already running on port 8009!

11:16:03 AM [Tomcat] Is Tomcat already running?

11:16:03 AM [Tomcat] Attempting to start Tomcat app…

image

···

From: Morten Olav Hansen [mailto:mortenoh@gmail.com]
Sent: Friday, June 26, 2015 12:33 AM
To: Bridget Magoba
Cc: DHIS 2 Users list
Subject: Re: [Dhis2-users] Error in configuring tomcat in XXAMP

Hi

Seems like you have another (non-tomcat) service running at port 8080. I see you have enabled apache+php, is this something you need? maybe its a service you can disable?


Morten

On Sat, Jun 27, 2015 at 12:26 AM, Bridget Magoba bridgetmagoba@mifumi.org wrote:

Dear all,

Am trying to configure tomcat in XXAMP but getting the error below. I tried accessing the path where the port is being used but cannot access it.

Please help. Trying to have DHIS2 live run on my machine.

Problem detected!

10:11:36 AM [Tomcat] Port 8080 in use by ““C:\Program Files (x86)\PostgreSQL\EnterpriseDB-ApachePHP\apache\bin\httpd.exe” -k runservice”!

10:11:36 AM [Tomcat] Tomcat WILL NOT start without the configured ports free!

10:11:36 AM [Tomcat] You need to uninstall/disable/reconfigure the blocking application

10:11:36 AM [Tomcat] or reconfigure Tomcat and the Control Panel to listen on a different port

10:11:36 AM [Tomcat] Java is already running on port 8009!

10:11:36 AM [Tomcat] Is Tomcat already running?

10:11:36 AM [Tomcat] Attempting to start Tomcat app…


Image removed by sender. Avast logo

This email has been checked for viruses by Avast antivirus software.
www.avast.com


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



Avast logo

This email has been checked for viruses by Avast antivirus software.
www.avast.com

Bridget,

I often see this error on systems with skype running. If you have skype open and running, try quitting out of it entirely before starting the tomcat server. Skype defaults its services to a few commonly used ports for webservers. If I recall correctly, skype will gracefully pick a different port if tomcat/apache is using its preferred port.

image

···

On Fri, Jun 26, 2015 at 11:18 AM, Bridget Magoba bridgetmagoba@mifumi.org wrote:

Thanks Morten, the error went off but Tomcat seems not to be running. It shows that below.

[Tomcat] Attempting to start Tomcat app…

11:16:03 AM [Tomcat] Java is already running on port 8005!

11:16:03 AM [Tomcat] Is Tomcat already running?

11:16:03 AM [Tomcat] Java is already running on port 8009!

11:16:03 AM [Tomcat] Is Tomcat already running?

11:16:03 AM [Tomcat] Attempting to start Tomcat app…

From: Morten Olav Hansen [mailto:mortenoh@gmail.com]
Sent: Friday, June 26, 2015 12:33 AM
To: Bridget Magoba
Cc: DHIS 2 Users list
Subject: Re: [Dhis2-users] Error in configuring tomcat in XXAMP

Hi

Seems like you have another (non-tomcat) service running at port 8080. I see you have enabled apache+php, is this something you need? maybe its a service you can disable?


Morten

On Sat, Jun 27, 2015 at 12:26 AM, Bridget Magoba bridgetmagoba@mifumi.org wrote:

Dear all,

Am trying to configure tomcat in XXAMP but getting the error below. I tried accessing the path where the port is being used but cannot access it.

Please help. Trying to have DHIS2 live run on my machine.

Problem detected!

10:11:36 AM [Tomcat] Port 8080 in use by ““C:\Program Files (x86)\PostgreSQL\EnterpriseDB-ApachePHP\apache\bin\httpd.exe” -k runservice”!

10:11:36 AM [Tomcat] Tomcat WILL NOT start without the configured ports free!

10:11:36 AM [Tomcat] You need to uninstall/disable/reconfigure the blocking application

10:11:36 AM [Tomcat] or reconfigure Tomcat and the Control Panel to listen on a different port

10:11:36 AM [Tomcat] Java is already running on port 8009!

10:11:36 AM [Tomcat] Is Tomcat already running?

10:11:36 AM [Tomcat] Attempting to start Tomcat app…


This email has been checked for viruses by Avast antivirus software.
www.avast.com


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



Avast logo

This email has been checked for viruses by Avast antivirus software.
www.avast.com


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

Timothy Harding

RPCV Vanuatu

Skype: hardingt@gmail.com

+1 (541) 632-6623

Hi Bridget,

Was that the entire log? did it also say something about 8080 being bound already? First of all, try and restart your laptop, and see if that fixes it (you might have two processes starting xxampp).

Also, is there a reason for using xamp? You say you are trying to run dhis2 live, and it should run out of the box? (I’m including Knut, out dhis2-live expert)

Dhis2 live is fine if you are doing a bit of initial experimentation, but its not really meant for any kind of actual production system, and even if you just want to install on your local computer, it might be worth the effort to setup postgresql + tomcat properly (it seems you already have postgresql, and adding tomcat is just one more component… you don’t really need xamp)

image

···

On Fri, Jun 26, 2015 at 10:51 PM, Timothy Harding hardingt@gmail.com wrote:

Bridget,

I often see this error on systems with skype running. If you have skype open and running, try quitting out of it entirely before starting the tomcat server. Skype defaults its services to a few commonly used ports for webservers. If I recall correctly, skype will gracefully pick a different port if tomcat/apache is using its preferred port.


Morten

Timothy Harding

RPCV Vanuatu

Skype: hardingt@gmail.com

+1 (541) 632-6623

On Fri, Jun 26, 2015 at 11:18 AM, Bridget Magoba bridgetmagoba@mifumi.org wrote:

Thanks Morten, the error went off but Tomcat seems not to be running. It shows that below.

[Tomcat] Attempting to start Tomcat app…

11:16:03 AM [Tomcat] Java is already running on port 8005!

11:16:03 AM [Tomcat] Is Tomcat already running?

11:16:03 AM [Tomcat] Java is already running on port 8009!

11:16:03 AM [Tomcat] Is Tomcat already running?

11:16:03 AM [Tomcat] Attempting to start Tomcat app…

From: Morten Olav Hansen [mailto:mortenoh@gmail.com]
Sent: Friday, June 26, 2015 12:33 AM
To: Bridget Magoba
Cc: DHIS 2 Users list
Subject: Re: [Dhis2-users] Error in configuring tomcat in XXAMP

Hi

Seems like you have another (non-tomcat) service running at port 8080. I see you have enabled apache+php, is this something you need? maybe its a service you can disable?


Morten

On Sat, Jun 27, 2015 at 12:26 AM, Bridget Magoba bridgetmagoba@mifumi.org wrote:

Dear all,

Am trying to configure tomcat in XXAMP but getting the error below. I tried accessing the path where the port is being used but cannot access it.

Please help. Trying to have DHIS2 live run on my machine.

Problem detected!

10:11:36 AM [Tomcat] Port 8080 in use by ““C:\Program Files (x86)\PostgreSQL\EnterpriseDB-ApachePHP\apache\bin\httpd.exe” -k runservice”!

10:11:36 AM [Tomcat] Tomcat WILL NOT start without the configured ports free!

10:11:36 AM [Tomcat] You need to uninstall/disable/reconfigure the blocking application

10:11:36 AM [Tomcat] or reconfigure Tomcat and the Control Panel to listen on a different port

10:11:36 AM [Tomcat] Java is already running on port 8009!

10:11:36 AM [Tomcat] Is Tomcat already running?

10:11:36 AM [Tomcat] Attempting to start Tomcat app…


This email has been checked for viruses by Avast antivirus software.
www.avast.com


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



Avast logo

This email has been checked for viruses by Avast antivirus software.
www.avast.com


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

Hello,

As Morten says, you don’t really need xampp. It is quite feasible to run Tomcat with Xampp though you probably need to change the default port (or quit Skype as Timothy said).

Still, you might just as well use DHIS2 Live for local use on your laptop - it is very easy to link it to Postgres also. Just change the content of the hibernate.properties file in the conf folder to something like this (use your own database name and user/password):

hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect
hibernate.connection.driver_class = org.postgresql.Driver
hibernate.connection.url = jdbc:postgresql:dhis2
hibernate.connection.username = dhis
hibernate.connection.password = dhis
hibernate.hbm2ddl.auto = update

Knut

image

···

On Fri, Jun 26, 2015 at 6:02 PM, Morten Olav Hansen mortenoh@gmail.com wrote:

Hi Bridget,

Was that the entire log? did it also say something about 8080 being bound already? First of all, try and restart your laptop, and see if that fixes it (you might have two processes starting xxampp).

Also, is there a reason for using xamp? You say you are trying to run dhis2 live, and it should run out of the box? (I’m including Knut, out dhis2-live expert)

Dhis2 live is fine if you are doing a bit of initial experimentation, but its not really meant for any kind of actual production system, and even if you just want to install on your local computer, it might be worth the effort to setup postgresql + tomcat properly (it seems you already have postgresql, and adding tomcat is just one more component… you don’t really need xamp)


Morten

On Fri, Jun 26, 2015 at 10:51 PM, Timothy Harding hardingt@gmail.com wrote:

Bridget,

I often see this error on systems with skype running. If you have skype open and running, try quitting out of it entirely before starting the tomcat server. Skype defaults its services to a few commonly used ports for webservers. If I recall correctly, skype will gracefully pick a different port if tomcat/apache is using its preferred port.

Timothy Harding

RPCV Vanuatu

Skype: hardingt@gmail.com

+1 (541) 632-6623

On Fri, Jun 26, 2015 at 11:18 AM, Bridget Magoba bridgetmagoba@mifumi.org wrote:

Thanks Morten, the error went off but Tomcat seems not to be running. It shows that below.

[Tomcat] Attempting to start Tomcat app…

11:16:03 AM [Tomcat] Java is already running on port 8005!

11:16:03 AM [Tomcat] Is Tomcat already running?

11:16:03 AM [Tomcat] Java is already running on port 8009!

11:16:03 AM [Tomcat] Is Tomcat already running?

11:16:03 AM [Tomcat] Attempting to start Tomcat app…

From: Morten Olav Hansen [mailto:mortenoh@gmail.com]
Sent: Friday, June 26, 2015 12:33 AM
To: Bridget Magoba
Cc: DHIS 2 Users list
Subject: Re: [Dhis2-users] Error in configuring tomcat in XXAMP

Hi

Seems like you have another (non-tomcat) service running at port 8080. I see you have enabled apache+php, is this something you need? maybe its a service you can disable?


Morten

On Sat, Jun 27, 2015 at 12:26 AM, Bridget Magoba bridgetmagoba@mifumi.org wrote:

Dear all,

Am trying to configure tomcat in XXAMP but getting the error below. I tried accessing the path where the port is being used but cannot access it.

Please help. Trying to have DHIS2 live run on my machine.

Problem detected!

10:11:36 AM [Tomcat] Port 8080 in use by ““C:\Program Files (x86)\PostgreSQL\EnterpriseDB-ApachePHP\apache\bin\httpd.exe” -k runservice”!

10:11:36 AM [Tomcat] Tomcat WILL NOT start without the configured ports free!

10:11:36 AM [Tomcat] You need to uninstall/disable/reconfigure the blocking application

10:11:36 AM [Tomcat] or reconfigure Tomcat and the Control Panel to listen on a different port

10:11:36 AM [Tomcat] Java is already running on port 8009!

10:11:36 AM [Tomcat] Is Tomcat already running?

10:11:36 AM [Tomcat] Attempting to start Tomcat app…


This email has been checked for viruses by Avast antivirus software.
www.avast.com


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



Avast logo

This email has been checked for viruses by Avast antivirus software.
www.avast.com


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