[Geoserver-devel] Spring error when running GeoServer in Eclipse using wtp

Hi all,

I'm trying to debug GeoServer in Eclipse using the Web Tools Platform (wtp) and Maven (m2e) plugins. I have succesfully deployed the gs-web-app project, but when starting the server, I get the following error:

19 jun 14:32:28 ERROR [context.ContextLoader] - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'GWCGeoServerRESTConfigurationProvider' defined in URL [jar:file:/D:/workspaces/geo-oss/tomcat7/wtpwebapps/gs-web-app/WEB-INF/lib/gs-gwc-2.6-SNAPSHOT.jar!/geowebcache-geoserver-context.xml]: Cannot resolve reference to bean 'catalog' while setting constructor argument; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'catalog' is defined
     at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:329)
     ...
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'catalog' is defined
     at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:549)

If I build the project on the command-line and deploy the resulting WAR then GeoServer starts without any problems. I'm using Oracle JDK7 (64-bit) on Windows7 using Spring Tool Suite 3.5.1 and Maven 3.2.1.

Any help or direction is much appreciated!

Cheers,

Jan

We have instructions on setting up for eclipse in the developers guide, as far as I know nobody has put time into setting up the project to work with the m2e plugin. We tend to run “mvn eclipse:eclipse -Prelease” on the command line and go from there.

http://docs.geoserver.org/latest/en/developer/maven-guide/index.html#eclipse

···

Jody Garnett

On Thu, Jun 19, 2014 at 10:41 PM, Jan Boonen <jan.boonen@anonymised.com> wrote:

Hi all,

I’m trying to debug GeoServer in Eclipse using the Web Tools Platform
(wtp) and Maven (m2e) plugins. I have succesfully deployed the
gs-web-app project, but when starting the server, I get the following
error:

19 jun 14:32:28 ERROR [context.ContextLoader] - Context initialization
failed
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name ‘GWCGeoServerRESTConfigurationProvider’ defined in URL
[jar:file:/D:/workspaces/geo-oss/tomcat7/wtpwebapps/gs-web-app/WEB-INF/lib/gs-gwc-2.6-SNAPSHOT.jar!/geowebcache-geoserver-context.xml]:
Cannot resolve reference to bean ‘catalog’ while setting constructor
argument; nested exception is
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean
named ‘catalog’ is defined
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:329)

Caused by:
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean
named ‘catalog’ is defined
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:549)

If I build the project on the command-line and deploy the resulting WAR
then GeoServer starts without any problems. I’m using Oracle JDK7
(64-bit) on Windows7 using Spring Tool Suite 3.5.1 and Maven 3.2.1.

Any help or direction is much appreciated!

Cheers,

Jan


HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems


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

Hi Jody,

I've followed these instructions, but the m2e plugin of the latest Eclipse doesn't work correctly with the project files that are generated by the Maven eclipse plugin. I suppose it is currently not possible to use this plugin. Unfortunately, because m2e can speed up development a log.

One final question: in the developer guide I can not find what the "release" profile does. Could you shortly comment on that (or add it to the developer guide)?

Jan

On 19-6-2014 14:54, Jody Garnett wrote:

We have instructions on setting up for eclipse in the developers guide, as far as I know nobody has put time into setting up the project to work with the m2e plugin. We tend to run "mvn eclipse:eclipse -Prelease" on the command line and go from there.

http://docs.geoserver.org/latest/en/developer/maven-guide/index.html#eclipse

Jody Garnett

On Thu, Jun 19, 2014 at 10:41 PM, Jan Boonen <jan.boonen@anonymised.com <mailto:jan.boonen@anonymised.com>> wrote:

    Hi all,

    I'm trying to debug GeoServer in Eclipse using the Web Tools Platform
    (wtp) and Maven (m2e) plugins. I have succesfully deployed the
    gs-web-app project, but when starting the server, I get the following
    error:

    19 jun 14:32:28 ERROR [context.ContextLoader] - Context initialization
    failed
    org.springframework.beans.factory.BeanCreationException: Error
    creating
    bean with name 'GWCGeoServerRESTConfigurationProvider' defined in URL
    [jar:file:/D:/workspaces/geo-oss/tomcat7/wtpwebapps/gs-web-app/WEB-INF/lib/gs-gwc-2.6-SNAPSHOT.jar!/geowebcache-geoserver-context.xml]:
    Cannot resolve reference to bean 'catalog' while setting constructor
    argument; nested exception is
    org.springframework.beans.factory.NoSuchBeanDefinitionException:
    No bean
    named 'catalog' is defined
         at
    org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:329)
         ...
    Caused by:
    org.springframework.beans.factory.NoSuchBeanDefinitionException:
    No bean
    named 'catalog' is defined
         at
    org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:549)

    If I build the project on the command-line and deploy the
    resulting WAR
    then GeoServer starts without any problems. I'm using Oracle JDK7
    (64-bit) on Windows7 using Spring Tool Suite 3.5.1 and Maven 3.2.1.

    Any help or direction is much appreciated!

    Cheers,

    Jan

    ------------------------------------------------------------------------------
    HPCC Systems Open Source Big Data Platform from LexisNexis Risk
    Solutions
    Find What Matters Most in Your Big Data with HPCC Systems
    Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
    Leverages Graph Analysis for Fast Processing & Easy Data Exploration
    http://p.sf.net/sfu/hpccsystems
    _______________________________________________
    Geoserver-devel mailing list
    Geoserver-devel@lists.sourceforge.net
    <mailto:Geoserver-devel@lists.sourceforge.net>
    https://lists.sourceforge.net/lists/listinfo/geoserver-devel

--
----------------------------------------
Geodan
Buitenhaven 27-A
5211 TP 's-Hertogenbosch (NL)

T +31 (0)73 - 692 5151
M +31 (0)6 - 2395 1191
E jan.boonen@anonymised.com
www.geodan.nl | www.geodan.nl/disclaimer
----------------------------------------

On Thu, Jun 19, 2014 at 4:57 PM, Jan Boonen <jan.boonen@anonymised.com> wrote:

Hi Jody,

I've followed these instructions, but the m2e plugin of the latest
Eclipse doesn't work correctly with the project files that are generated
by the Maven eclipse plugin. I suppose it is currently not possible to
use this plugin. Unfortunately, because m2e can speed up development a log.

Last time I tried it (2-3 years ago?) it just made Eclipse unusable
under the weight of the 100+ projects a geotools/geoserver developer
normally has (like, any small action against the IDE
took several seconds) , whilst using mvn eclipse:eclipse normally works
fine.

Have you been using it for large project sets, do you have a feel if
its speed increased by one or more order of magnitude in the last years?
If so, could be interesting to give it a try again.

Cheers
Andrea

--

GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

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