Results 1 to 4 of 4

Thread: Problems running Jetty with Spring and XFire during Context Initialization

  1. #1
    Join Date
    Sep 2006
    Posts
    3

    Default Problems running Jetty with Spring and XFire during Context Initialization

    Hello,

    I implemented a WebService using XFire. The WebService-classes are Beans (see attached Maven-Project).

    When I'm running Jetty an error during the context initilization occures:
    2006-09-14 16:20:54,346 ERROR org.springframework.web.context.ContextLoader - Context initialization failed
    java.lang.NoSuchMethodError: org.springframework.beans.factory.config.Configura bleListableBeanFactory.containsLocalBean(Ljava/lang/StringZ
    at org.springframework.context.support.AbstractApplic ationContext.containsLocalBean(AbstractApplication Context.java:609)
    at org.springframework.context.support.AbstractApplic ationContext.initMessageSource(AbstractApplication Context.java:411)
    at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:301)
    at org.springframework.web.context.support.AbstractRe freshableWebApplicationContext.refresh(AbstractRef reshableWebApplicationContext.java:134)

    In contrast Tomcat starts without problems.

    For tests you can use the attached file. It's a simple Maven-Project (Run "mvn jetty6:run").
    I'll post the error/bug also to XFire and Jetty!

    Thanks for help
    Daniel
    Attached Files Attached Files

  2. #2
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default

    You are using the wrong Spring libraries - it's likely that you are using several spring-XXX.jars which belong to different versions. Check that there are no duplicated inside the classpath and that you are using the same Spring version all over.
    Costin Leau
    SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/costinl
    Please use [ c o d e ] [ / c o d e ] tags

  3. #3
    Join Date
    Sep 2006
    Posts
    3

    Default Using Spring in version 1.2.7

    Hello,

    as you can see in the pom.xml I'm using Spring in version 1.2.7 (all components)!

    <dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-aop</artifactId>
    <version>1.2.7</version>
    </dependency>
    <dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-beans</artifactId>
    <version>1.2.7</version>
    </dependency>
    <dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-context</artifactId>
    <version>1.2.7</version>
    </dependency>
    <dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-core</artifactId>
    <version>1.2.7</version>
    </dependency>
    <dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-dao</artifactId>
    <version>1.2.7</version>
    </dependency>
    <dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-hibernate</artifactId>
    <version>1.2.7</version>
    </dependency>
    <dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-jdbc</artifactId>
    <version>1.2.7</version>
    </dependency>
    <dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-orm</artifactId>
    <version>1.2.7</version>
    </dependency>
    <dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-support</artifactId>
    <version>1.2.7</version>
    </dependency>
    <dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-web</artifactId>
    <version>1.2.7</version>
    </dependency>


    Daniel

  4. #4
    Join Date
    Sep 2006
    Posts
    3

    Default Problem with XFire

    XFire Spring uses Version 1.2.6
    I'm using Version 1.2.7

    That's it!

    Thanks
    Daniel Hakenjos

Posting Permissions

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