Results 1 to 3 of 3

Thread: Integration testing @Configurable with pax runner

  1. #1

    Default Integration testing @Configurable with pax runner

    Anybody's tried pax runner (or pax exam) to integration test a bundle with @Configurable annotated classes in it ?

    Have been trying hard to get it going, While ltw might work straightaway in Virgo, there does not seem to be an easy way to integration test in it.

    Found this blog from Martin Lippert on how to use a springweaver. Tried it, but ended up getting a
    Code:
    org.springframework.beans.factory.CannotLoadBeanClassException: Error loading cl
    ass [org.eclipse.equinox.weaving.springweaver.EquinoxAspectsLoadTimeWeaver] for
    bean with name 'loadTimeWeaver' defined in null: problem with class file or depe
    ndent class; nested exception is java.lang.NoClassDefFoundError: org/springframe
    work/osgi/context/BundleContextAware
    And further down

    Code:
    Caused by: java.lang.NoClassDefFoundError: org/eclipse/equinox/service/weaving/I
    WeavingServiceFactory
            at org.eclipse.equinox.weaving.springweaver.Activator.start(Activator.ja
    va:47)
    .



    Note that my QA/prod deployment is going to be on Virgo and Ideally i will like to just use
    Code:
    <context:load-time-weaver aspectj-weaving="on"/>

  2. #2

    Default Any example for DmKernelTestRunner

    Or is DmKernelTestRunner the only option ?. The documentation for it is very minimal though and will be of great help if someone can share an example/link

  3. #3

    Default

    I tried Martin lippert's approach with some help from this URL and was not getting anywhere, Kept hitting this
    Code:
    java.lang.ClassNotFoundException: org.aspectj.weaver.loadtime.definition.D
    efinition
    in pax runner. Giving up

Posting Permissions

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