Results 1 to 2 of 2

Thread: Spring Batch Admin Sample war overlay - tomcat error

  1. #1
    Join Date
    Oct 2010
    Posts
    4

    Default Spring Batch Admin Sample war overlay - tomcat error

    I decided to try the approach of creating a maven war project using spring-batch-admin-sample as a war dependency, in other words making my project a thin war-overlay. The pom has the following:
    Code:
        <dependency>
          <artifactId>spring-batch-admin-sample</artifactId>
          <groupId>org.springframework.batch</groupId>
          <version>1.0.0.RELEASE</version>
          <type>war</type>
        </dependency>
    This builds OK, but when I try to start the war in tomcat, I see the following in catalina.out:

    org.springframework.beans.factory.parsing.BeanDefi nitionParsingException: Configuration problem: Failed to import bean definitions from URL location [classpath*:/META-INF/spring/batch/bootstrap/**/*.xml]
    Offending resource: URL [jar:file:/home/jtroxel/apache-tomcat-6.0.29/webapps/feedjobsadmin-webapp2-1.0.0-SNAPSHOT/WEB-INF/lib/spring-batch-admin-resources-1.0.0.RELEASE.jar!/org/springframework/batch/admin/web/resources/webapp-config.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionSt oreException: Unexpected exception parsing XML document from URL [jar:file:/home/jtroxel/apache-tomcat-6.0.29/webapps/feedjobsadmin-webapp2-1.0.0-SNAPSHOT/WEB-INF/lib/spring-batch-admin-manager-1.0.0.RELEASE.jar!/META-INF/spring/batch/bootstrap/manager/execution-context.xml]; nested exception is java.lang.NoSuchMethodError: org.springframework.beans.factory.support.RootBean Definition.<init>(Ljava/lang/StringV

  2. #2
    Join Date
    Jun 2005
    Posts
    4,241

    Default

    NoSuchMethodError usually comes from having the wrong version of the class on the classpath. I don't know much about war overlays, but it sounds like you could build a war with two versions or the wrong version of Spring quite easily.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •