Cannot resolve reference to bean 'PIPELINE_SAVE_OR_UPDATE_ONE_CACHED' issue

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Cannot resolve reference to bean 'PIPELINE_SAVE_OR_UPDATE_ONE_CACHED' issue

Matthieu Volat
Hi Geomajas community,

I inherited a research project using geomajas 1.14 that I am trying to
update to newer releases begining by 1.16.

I have issues related to the cached pipeline plugin beans when
deploying the application on a tomcat 7 server:


  INFO: Deploying web application
  archive /home/mvolat/apache-tomcat-7.0.85/webapps/MarsSI.war Apr 18,
  2018 12:53:08 PM org.apache.catalina.startup.TldConfig execute INFO:
  At least one JAR was scanned for TLDs yet contained no TLDs. Enable
  debug logging for this logger for a complete list of JARs that were
  scanned but no TLDs were found in them. Skipping unneeded JARs during
  scanning can improve startup time and JSP compilation time.
  12:53:08,278 |-INFO in
  ch.qos.logback.core.joran.action.AppenderAction - About to
  instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
  12:53:08,282 |-INFO in
  ch.qos.logback.core.joran.action.AppenderAction - Naming appender as
  [CONSOLE] 12:53:08,339 |-INFO in
  ch.qos.logback.classic.joran.action.LoggerAction - Setting level of
  logger [org.geomajas] to DEBUG 12:53:08,339 |-INFO in
  ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level
  of ROOT logger to WARN 12:53:08,339 |-INFO in
  ch.qos.logback.core.joran.action.AppenderRefAction - Attaching
  appender named [CONSOLE] to Logger[ROOT] 12:53:08,340 |-INFO in
  ch.qos.logback.classic.joran.action.ConfigurationAction - End of
  configuration.

  12:53:11.570 [http-bio-8080-exec-17] ERROR
  o.s.web.context.ContextLoader - Context initialization failed
  org.springframework.beans.factory.BeanCreationException: Error
  creating bean with name
  'org.geomajas.service.pipeline.PipelineInfo#0' defined in class path
  resource [org/geomajas/plugin/caching/DefaultCachedPipelines.xml]:
  Cannot resolve reference to bean 'PIPELINE_SAVE_OR_UPDATE_ONE_CACHED'
  while setting bean property 'delegatePipeline'; nested exception is
  org.springframework.beans.factory.NoSuchBeanDefinitionException: No
  bean named 'PIPELINE_SAVE_OR_UPDATE_ONE_CACHED' is defined at
  org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
  ~[spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE] [...] at
  java.lang.Thread.run(Thread.java:748) [na:1.7.0_161] Caused by:
  org.springframework.beans.factory.NoSuchBeanDefinitionException: No
  bean named 'PIPELINE_SAVE_OR_UPDATE_ONE_CACHED' is defined at
  org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:527)
  ~[spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE] [...] ... 63 common
  frames omitted Apr 18, 2018 12:53:11 PM
  org.apache.catalina.core.StandardContext startInternal SEVERE: One or
  more listeners failed to start. Full details will be found in the
  appropriate container log file



The project pom.xml was written using the example quickstart
application at
https://github.com/geomajas/geomajas-gwt-quickstart-application as a
template, her's an abbridged version with dependencies:

<?xml version="1.0" encoding="UTF-8"?>

<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion> [...}

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.geomajas.project</groupId>
                <artifactId>geomajas-project-client-gwt</artifactId>
                <version>${geomajas-client-gwt-version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>

    </dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>javax.validation</groupId>
            <artifactId>validation-api</artifactId>
        </dependency>
        <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-core</artifactId>
            <version>4.3.8.Final</version>
        </dependency>
        <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-entitymanager</artifactId>
            <version>4.3.8.Final</version>
        </dependency>
        <dependency>
            <groupId>postgresql</groupId>
            <artifactId>postgresql</artifactId>
        </dependency>

        <!-- Geomajas dependencies -->
        <dependency>
            <groupId>org.geomajas</groupId>
            <artifactId>geomajas-gwt-client</artifactId>
        </dependency>
        <dependency>
            <groupId>org.geomajas.plugin</groupId>
            <artifactId>geomajas-plugin-cache</artifactId>
        </dependency>
        <dependency>
            <groupId>org.geomajas.plugin</groupId>
            <artifactId>geomajas-plugin-rasterizing</artifactId>
        </dependency>

        <!-- layers -->
        <!--<dependency>
            <groupId>org.geomajas.plugin</groupId>
            <artifactId>geomajas-layer-openstreetmap</artifactId>
        </dependency>
        <dependency>
            <groupId>org.geomajas.plugin</groupId>
            <artifactId>geomajas-layer-googlemaps</artifactId>
        </dependency>-->
        <dependency>
            <groupId>org.geomajas.plugin</groupId>
            <artifactId>geomajas-layer-geotools</artifactId>
        </dependency>
        <dependency>
            <groupId>org.geomajas.plugin</groupId>
            <artifactId>geomajas-layer-wms</artifactId>
        </dependency>
        <dependency>
            <groupId>org.geomajas.plugin</groupId>
            <artifactId>geomajas-layer-tms</artifactId>
        </dependency>
        <dependency>
            <groupId>org.geomajas.plugin</groupId>
            <artifactId>geomajas-client-gwt2-plugin-tilebasedlayer</artifactId>
        </dependency>

        <dependency>
            <groupId>org.geomajas</groupId>
            <artifactId>geomajas-testdata</artifactId>
        </dependency>
        <!-- widgets -->
        <dependency>
            <groupId>org.geomajas.widget</groupId>
            <artifactId>geomajas-widget-utility-gwt</artifactId>
        </dependency>
        <dependency>
            <groupId>org.geomajas.widget</groupId>
            <artifactId>geomajas-widget-layer-gwt</artifactId>
        </dependency>
        <dependency>
            <groupId>org.geomajas.plugin</groupId>
            <artifactId>geomajas-plugin-editing-gwt</artifactId>
        </dependency>
        <dependency>
            <groupId>org.geomajas.plugin</groupId>
            <artifactId>geomajas-plugin-print-gwt</artifactId>
            <exclusions>
                <exclusion>        <!-- extra functionality -->
        <dependency>
            <groupId>org.geomajas.widget</groupId>
            <artifactId>geomajas-widget-advancedviews</artifactId>
        </dependency>
        <dependency>
            <groupId>org.geomajas.widget</groupId>
            <artifactId>geomajas-widget-advancedviews-gwt</artifactId>
        </dependency>
        <dependency>
            <groupId>org.geomajas.widget</groupId>
            <artifactId>geomajas-widget-featureinfo</artifactId>
        </dependency>
        <dependency>
            <groupId>org.geomajas.widget</groupId>
            <artifactId>geomajas-widget-featureinfo-gwt</artifactId>
        </dependency>
        <dependency>
            <groupId>org.geomajas.widget</groupId>
            <artifactId>geomajas-widget-searchandfilter</artifactId>
        </dependency>
        <dependency>
            <groupId>org.geomajas.widget</groupId>
            <artifactId>geomajas-widget-searchandfilter-gwt</artifactId>
        </dependency>

        <!-- extra geotools dependency -->
        <dependency>
            <groupId>org.geotools</groupId>
            <artifactId>gt-wfs</artifactId>
            <version>${geotools-version}</version>
        </dependency>
                    <groupId>org.geomajas.plugin</groupId>
                    <artifactId>geomajas-layer-hibernate</artifactId>
                </exclusion>
                <exclusion>
                    <artifactId>jai_core</artifactId>
                    <groupId>javax.media</groupId>
                </exclusion>
            </exclusions>
        </dependency>

        <!-- plugins -->
        <dependency>
            <groupId>org.geomajas.plugin</groupId>
            <artifactId>geomajas-plugin-staticsecurity-gwt</artifactId>
        </dependency>

        <!-- Google dependencies -->
        <dependency>
            <groupId>com.google.gwt</groupId>
            <artifactId>gwt-user</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.google.gwt</groupId>
            <artifactId>gwt-servlet</artifactId>
            <scope>runtime</scope>
        </dependency>

        <!-- logging dependencies, delegate all to slf4j and use
        logback --> <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>jcl-over-slf4j</artifactId>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>log4j-over-slf4j</artifactId>
        </dependency>
        <dependency>
            <groupId>ch.qos.logback</groupId>
            <artifactId>logback-classic</artifactId>
        </dependency>
    </dependencies>

    [...]

    <properties>
        <!-- Geomajas dependencies -->
        <geomajas-client-gwt-version>1.16.0</geomajas-client-gwt-version>
        <geomajas-build-tools-version>2.5.0</geomajas-build-tools-version>
        <!-- GWT properties -->
        <gwt-version>2.7.0</gwt-version>
        <gwt.compiler.skip>false</gwt.compiler.skip>
        <!-- Other properties -->
        <geotools-version>13.0</geotools-version>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>

</project>src/main/webapp/WEB-INF/web.xml


Context is loaded from src/main/webapp/WEB-INF/web.xml:

<web-app
    version="2.5"
    xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="
        http://java.sun.com/xml/ns/javaee
        http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
    <display-name>Geomajas application</display-name>
    <context-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>
            <!-- framework context -->
            classpath:org/geomajas/spring/geomajasContext*.xml
            classpath:org/geomajas/plugin/rasterizing/DefaultCachedAndRasterizedPipelines.xml

            <!-- cache location -->
            classpath:fr/univ-lyon1/marssi/spring/cacheLocation.xml
[...]


Can anybody give me a hint of what is going wrong? I have relatively
good java language knowledge, but basic skills in the context of
servlets packaging, maven and geomajas.

More detailed files can be sent, I prefered to keep things as short as
possible to keep them readable.

Thanks a lot for your time and tools!

--
Matthieu Volat <[hidden email]>
Engineer, Lyon University
_______________________________________________
Majas-dev mailing list
[hidden email]
http://lists.geomajas.org/mailman/listinfo/majas-dev