Results 1 to 5 of 5

Thread: NoClassDefFoundError: ConversionService

  1. #1
    Join Date
    Aug 2005
    Location
    Tübingen
    Posts
    2

    Default NoClassDefFoundError: ConversionService

    Hello,

    I am making my first steps here and try to run the sample app posted here by sergey_wba. When I try to run the app I get a NCDFE: org/springframework/binding/convert/ConversionService

    I cannot find the class in any library. Does it need to be checked in?

    God bless you,
    Stefan

  2. #2
    Join Date
    Aug 2005
    Location
    Austin, TX
    Posts
    425

    Default

    ConversionService is part of the spring framework (as opposed to part of Spring RCP) and it should be in the spring-binding.jar. Make sure that jar file is in your classpath.

    HTH,
    Larry.

  3. #3
    Join Date
    Aug 2005
    Location
    Tübingen
    Posts
    2

    Default The class is still not there

    Neither the file spring-binding.jar nor the class org/springframework/binding/convert/ConversionService is part of the current Spring distributions. I looked in the versions 1.2.3 and 1.2.4. Can I get this jar somewhere else?

    Thanks,
    Stefan

  4. #4
    Join Date
    Aug 2005
    Location
    Austin, TX
    Posts
    425

    Default

    When I checked Spring RCP out of CVS that jar was present in the lib/spring directory.

    I don't know why you don't have it.

    Sorry.

  5. #5
    Join Date
    Sep 2005
    Location
    Pittsburgh, Pennsylvania, USA
    Posts
    7

    Default fix necessary in the build.xml...

    The 'spring-binding.jar' file is in the lib/ directory, but the problem is that is not referenced in the JAR's MANIFEST. So you need to modify the build.xml in the samples/petclinic to include the jar reference -- on line 95 add 'lib/spring-binding.jar' to the list of other JARs and it builds (and runs) properly -- at least it did when I checked it out from CVS yesterday.

Posting Permissions

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