← Back to team overview

dhis2-users team mailing list archive

Re: Error in configuring tomcat in XXAMP

 

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

On Fri, Jun 26, 2015 at 6:02 PM, Morten Olav Hansen <mortenoh@xxxxxxxxx>
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@xxxxxxxxx>
> 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@xxxxxxxxx
>> +1 (541) 632-6623
>>
>> On Fri, Jun 26, 2015 at 11:18 AM, Bridget Magoba <
>> bridgetmagoba@xxxxxxxxxx> 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@xxxxxxxxx]
>>> *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@xxxxxxxxxx> 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: Image removed by sender. Avast logo]
>>> <https://www.avast.com/antivirus>
>>>
>>> This email has been checked for viruses by Avast antivirus software.
>>> www.avast.com <https://www.avast.com/antivirus>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Mailing list: https://launchpad.net/~dhis2-users
>>> Post to     : dhis2-users@xxxxxxxxxxxxxxxxxxx
>>> Unsubscribe : https://launchpad.net/~dhis2-users
>>> More help   : https://help.launchpad.net/ListHelp
>>>
>>>
>>>
>>>
>>> ------------------------------
>>>   [image: Avast logo] <https://www.avast.com/antivirus>
>>>
>>> This email has been checked for viruses by Avast antivirus software.
>>> www.avast.com <https://www.avast.com/antivirus>
>>>
>>>
>>> _______________________________________________
>>> Mailing list: https://launchpad.net/~dhis2-users
>>> Post to     : dhis2-users@xxxxxxxxxxxxxxxxxxx
>>> 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

JPEG image


References