Changing base path on server

32 views
Skip to first unread message

solo...@londonhydro.com

unread,
Mar 3, 2014, 3:04:46 PM3/3/14
to energy...@googlegroups.com
I've been trying to change the base path on the server. In /home/bitnami/springsource/vfabric-tc-server-developer-2.9.3.RELEASE/base-instance/webapps/DataCustodian/WEB-INF/classes/spring/ there a files called oauth-config.xml that sets a baseURL value to http://localhost:8080/DataCustodian. I've tried changing this to https://apps.londonhydro.com/gbdev/DataCustodian but it does not seem to fix the problem. Not of the style sheets are imported and the "Login" link goes to London Hydro's home page. Does anyone know where I have to go to change the base path?



This correspondence may contain personal or confidential information. If you are not the intended recipient, please delete the e-mail and any attachments and notify London Hydro immediately.

Marty Burns

unread,
Mar 3, 2014, 3:09:31 PM3/3/14
to energy...@googlegroups.com

Dan,

 

I believe the base path is set in the profile in the DataCustodian pom file. You want to create a new profile for LondonHydro. Here is before and after:

Before:

        <profile>

            <id>devmysql</id>

            <properties>

                <datacustodian.base.url>http://localhost:8080/DataCustodian</datacustodian.base.url>

                <profile>devmysql</profile>

                <database>mysql</database>

                <hbm2ddl_auto>none</hbm2ddl_auto>

            </properties>

        </profile>

 

After:

        <profile>

            <id>devmysql</id>

            <properties>

                <datacustodian.base.url>http://localhost:8080/DataCustodian</datacustodian.base.url>

                <profile>devmysql</profile>

                <database>mysql</database>

                <hbm2ddl_auto>none</hbm2ddl_auto>

            </properties>

        </profile>

        <profile>

            <id>devLH</id>

            <properties>

                <datacustodian.base.url>https://apps.londonhydro.com/gbdev/DataCustodian</datacustodian.base.url>

                <profile>devLH</profile>

                <database>mysql</database>

                <hbm2ddl_auto>none</hbm2ddl_auto>

            </properties>

        </profile>

 

 

Then when you build you have to set the profile to devLH. You have to do this for all three projects, I believe. Try that and see if it works for you.

 

Cheers,

Marty

 

 

 

--
--
You received this message because you are subscribed to the "energyos_espi" group.
To post to this group, send email to energy...@googlegroups.com
To unsubscribe from this group, send email to: energyos_esp...@googlegroups.com
 
http://www.energyos.org/espi/
 
---
You received this message because you are subscribed to the Google Groups "energyos_espi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to energyos_esp...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Teeter, John

unread,
Mar 3, 2014, 3:14:02 PM3/3/14
to energy...@googlegroups.com
I did a quick search of the sources for "localhost:8080" I noticed two places in the data custodian pom.xml file that may be the problem. Other than that, I think you may want to make a new profile that is similar to the "greenbuttondata" profile (also in the pom.xml file) and then make new (db) configuration files in common/etc that accommodate your configuration needs. 

If you search the sources for the string "greenbuttondata" you wll see the files you need to change. 

HTH,

John

From: "solo...@londonhydro.com" <solo...@londonhydro.com>
Reply-To: "energy...@googlegroups.com" <energy...@googlegroups.com>
Date: Monday, March 3, 2014 3:04 PM
To: "energy...@googlegroups.com" <energy...@googlegroups.com>
Subject: [ESPI] Changing base path on server

--

solo...@londonhydro.com

unread,
Mar 3, 2014, 4:36:09 PM3/3/14
to energy...@googlegroups.com
I tried adding that to the pom file and I made it the default activated profile, but it fails when I try to build the project. It gives a BindException because the address is already in use, which I don't understand. 
Reply all
Reply to author
Forward
0 new messages