[GeoNetwork-users] Geonetwork 3.0 database setting

Dear all,

I downloaded the geonetwork 3.0 development version, it is pretty cool. I
am trying to use a different database (postgresql + postgis), however, I
can not figure out how to set it. In the previous versions, we only need to
set the config.xml, but the new version doesn't have such settings.

Could you please help me?

--

Kai Liu
Ph.D. student
Department of Geography and GeoInformation Science
George Mason University

Hi Kai

You need to update:

* WEB-INF/config-nodessrv.xml (
https://github.com/geonetwork/core-geonetwork/blob/develop/web/src/main/webapp/WEB-INF/config-node/srv.xml)
to enable the configuration for your database and

* WEB-INF/config-db/jdbc.properties (
https://github.com/geonetwork/core-geonetwork/blob/develop/web/src/main/webapp/WEB-INF/config-db/jdbc.properties)
to setup the database connection properties.

Regards,
Jose García

On Mon, Mar 30, 2015 at 9:26 PM, Kai Liu <kliu.gis@anonymised.com> wrote:

Dear all,

I downloaded the geonetwork 3.0 development version, it is pretty cool. I
am trying to use a different database (postgresql + postgis), however, I
can not figure out how to set it. In the previous versions, we only need to
set the config.xml, but the new version doesn't have such settings.

Could you please help me?

--

Kai Liu
Ph.D. student
Department of Geography and GeoInformation Science
George Mason University

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website,
sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for
all
things parallel software development, from weekly thought leadership blogs
to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork

--

*GeoCat Bridge for ArcGIS allows instant publishing of data and metadata on
GeoServer and GeoNetwork. Visit http://geocat.net/&gt; for
details. _________________________Jose GarcíaGeoCat bvVeenderweg 136721 WD
BennekomThe Netherlandshttp://GeoCat.net/>*

Hi Jose,

Thanks. after changing WEB-INF/config-node/srv.xml and
WEB-INF/config-db/jdbc.properties, now I am able to connect to postgres,
but I still have problem connecting to use jndi-postgres-postgis.xml which
is what I intended to use.

I set to use jndi-postgres-postigs and changed the WEB-INF/jetty-env.xml.
However, I still got this error: "javax.naming.NameNotFoundException;
remaining name 'env/'.

Could you please help me out on this issue?

Thanks and best regards,

Kai Liu

On Tue, Mar 31, 2015 at 2:26 AM, Jose Garcia <jose.garcia@anonymised.com> wrote:

Hi Kai

You need to update:

* WEB-INF/config-nodessrv.xml (
https://github.com/geonetwork/core-geonetwork/blob/develop/web/src/main/webapp/WEB-INF/config-node/srv.xml)
to enable the configuration for your database and

* WEB-INF/config-db/jdbc.properties (
https://github.com/geonetwork/core-geonetwork/blob/develop/web/src/main/webapp/WEB-INF/config-db/jdbc.properties)
to setup the database connection properties.

Regards,
Jose García

On Mon, Mar 30, 2015 at 9:26 PM, Kai Liu <kliu.gis@anonymised.com> wrote:

Dear all,

I downloaded the geonetwork 3.0 development version, it is pretty cool. I
am trying to use a different database (postgresql + postgis), however, I
can not figure out how to set it. In the previous versions, we only need
to
set the config.xml, but the new version doesn't have such settings.

Could you please help me?

--

Kai Liu
Ph.D. student
Department of Geography and GeoInformation Science
George Mason University

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website,
sponsored
by Intel and developed in partnership with Slashdot Media, is your hub
for all
things parallel software development, from weekly thought leadership
blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork

--

*GeoCat Bridge for ArcGIS allows instant publishing of data and metadata
on GeoServer and GeoNetwork. Visit http://geocat.net
<http://geocat.net/&gt; for details. _________________________Jose
GarcíaGeoCat bvVeenderweg 136721 WD BennekomThe
Netherlandshttp://GeoCat.net/>*

--

Kai Liu
Ph.D. student
Department of Geography and GeoInformation Science
George Mason University