[Geoserver-devel] Hibernate based catalog

Hello,

thank you for the facilitation of saving the file-based catalog into a
database. That's sounds very nice.

Today I have tried to implement the hibernate based catalog in GeoServer 2.0
(trunk) without success.

mvn -DskipTests -Phibernate clean install
produces the following mistake. The class ImplementationMapper is missing.

[INFO] Compiling 46 source files to
/home/schrader/eclipse_workspace/geoserver2/trunk/community/hibernate/target/classes
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Compilation failure

/home/worker/eclipse_workspace/geoserver2/trunk/community/hibernate/src/main/java/org/geoserver/hibernate/HibImplementationMapper.java:[57,32]
cannot find
symbol
symbol : class ImplementationMapper
location: package org.geoserver.config.util

/home/worker/eclipse_workspace/geoserver2/trunk/community/hibernate/src/main/java/org/geoserver/hibernate/HibImplementationMapper.java:[66,48]
cannot find
symbol
symbol: class ImplementationMapper
public class HibImplementationMapper implements ImplementationMapper {

I'm a newbie in using the community modules of geoserver. So I've got two
questions.
How can I create a jar file from the community hibernate source code? Is
this possible with maven?
Where I have to active the hibernate extension? I think there must be a
configuration parameter which says GeoServer if he should use a database or
the file system for saving the configuration data.

Thank you for your answers.

Greetings, Lars Schrader

--
View this message in context: http://www.nabble.com/Hibernate-based-catalog-tp25856990p25856990.html
Sent from the GeoServer - Dev mailing list archive at Nabble.com.

Don’t know exactly why you are facing this kind of problem, we will investigate as soon as possible on it.

One think I suggest to do is to apply the patch as for http://jira.codehaus.org/browse/GEOS-3569 this may be of some help.

Let us know if this solve the issue.

Regards,
Alessio.


Eng. Alessio Fabiani
Founder / CTO GeoSolutions S.A.S.
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584 980933
fax: +39 0584 983027
mob: +39 349 8227000

http://www.geo-solutions.it
http://geo-solutions.blogspot.com

On Tue, Oct 13, 2009 at 9:38 AM, Lars Schrader <lars.schrader@anonymised.com> wrote:

Hello,

thank you for the facilitation of saving the file-based catalog into a
database. That’s sounds very nice.

Today I have tried to implement the hibernate based catalog in GeoServer 2.0
(trunk) without success.

mvn -DskipTests -Phibernate clean install
produces the following mistake. The class ImplementationMapper is missing.

[INFO] Compiling 46 source files to
/home/schrader/eclipse_workspace/geoserver2/trunk/community/hibernate/target/classes
[INFO]

[ERROR] BUILD FAILURE
[INFO]

[INFO] Compilation failure

/home/worker/eclipse_workspace/geoserver2/trunk/community/hibernate/src/main/java/org/geoserver/hibernate/HibImplementationMapper.java:[57,32]
cannot find
symbol
symbol : class ImplementationMapper
location: package org.geoserver.config.util

/home/worker/eclipse_workspace/geoserver2/trunk/community/hibernate/src/main/java/org/geoserver/hibernate/HibImplementationMapper.java:[66,48]
cannot find
symbol
symbol: class ImplementationMapper
public class HibImplementationMapper implements ImplementationMapper {

I’m a newbie in using the community modules of geoserver. So I’ve got two
questions.
How can I create a jar file from the community hibernate source code? Is
this possible with maven?
Where I have to active the hibernate extension? I think there must be a
configuration parameter which says GeoServer if he should use a database or
the file system for saving the configuration data.

Thank you for your answers.

Greetings, Lars Schrader


View this message in context: http://www.nabble.com/Hibernate-based-catalog-tp25856990p25856990.html
Sent from the GeoServer - Dev mailing list archive at Nabble.com.


Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference


Geoserver-devel mailing list
Geoserver-devel@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Lars,
as Alessio pointed out you need to apply those patched in order to get
the Hibernate based catalog working.

Simone.
-------------------------------------------------------
Ing. Simone Giannecchini
GeoSolutions S.A.S.
Founder - Software Engineer
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax: +39 0584983027
mob: +39 333 8128928

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://simboss.blogspot.com/
http://www.linkedin.com/in/simonegiannecchini

-------------------------------------------------------

On Tue, Oct 13, 2009 at 9:44 AM, Alessio Fabiani
<alessio.fabiani@anonymised.com> wrote:

Don't know exactly why you are facing this kind of problem, we will
investigate as soon as possible on it.
One think I suggest to do is to apply the patch as
for http://jira.codehaus.org/browse/GEOS-3569 this may be of some help.
Let us know if this solve the issue.
Regards,
Alessio.

-------------------------------------------------------
Eng. Alessio Fabiani
Founder / CTO GeoSolutions S.A.S.
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584 980933
fax: +39 0584 983027
mob: +39 349 8227000

http://www.geo-solutions.it
http://geo-solutions.blogspot.com
-------------------------------------------------------

On Tue, Oct 13, 2009 at 9:38 AM, Lars Schrader <lars.schrader@anonymised.com>
wrote:

Hello,

thank you for the facilitation of saving the file-based catalog into a
database. That's sounds very nice.

Today I have tried to implement the hibernate based catalog in GeoServer
2.0
(trunk) without success.

mvn -DskipTests -Phibernate clean install
produces the following mistake. The class ImplementationMapper is missing.

[INFO] Compiling 46 source files to

/home/schrader/eclipse_workspace/geoserver2/trunk/community/hibernate/target/classes
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Compilation failure

/home/worker/eclipse_workspace/geoserver2/trunk/community/hibernate/src/main/java/org/geoserver/hibernate/HibImplementationMapper.java:[57,32]
cannot find
symbol
symbol : class ImplementationMapper
location: package org.geoserver.config.util

/home/worker/eclipse_workspace/geoserver2/trunk/community/hibernate/src/main/java/org/geoserver/hibernate/HibImplementationMapper.java:[66,48]
cannot find
symbol
symbol: class ImplementationMapper
public class HibImplementationMapper implements ImplementationMapper {

I'm a newbie in using the community modules of geoserver. So I've got two
questions.
How can I create a jar file from the community hibernate source code? Is
this possible with maven?
Where I have to active the hibernate extension? I think there must be a
configuration parameter which says GeoServer if he should use a database
or
the file system for saving the configuration data.

Thank you for your answers.

Greetings, Lars Schrader

--
View this message in context:
http://www.nabble.com/Hibernate-based-catalog-tp25856990p25856990.html
Sent from the GeoServer - Dev mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Hello Alessio, hello Simone,

thank you for your help. Now it works. Is it correct that the RC2 canidate
will include the Hibernate based catalog automatically?

I have one further question. In GeoServer 1.7.x it was necessary to reload
the catalog manually if you change the configuration files by hand. Is this
also necessary in GeoServer 2.x? Means if I change the database entries of
the hibernate based catalog do I have to reload the catalog?

I have read the following:
Aside from the persistence layer itself, we do not want the full
configuration to be cached in memory: all of the dynamic data should be
handled - and cached - at DB level.
[http://geoserver.org/display/GEOS/Hibernate+based+catalog\]

That sounds that I have to do nothing after changing the database entries.
That's right?

It's a very helpfully feature.

Greetings, Lars Schrader

--
View this message in context: http://www.nabble.com/Hibernate-based-catalog-tp25856990p25886955.html
Sent from the GeoServer - Dev mailing list archive at Nabble.com.