Announcement Announcement Module
Collapse

Spring Dynamic Modules forum decommissioned in favor of Eclipse Gemini Blueprint

With the official first release of Eclipse Gemini Blueprint shipped, the migration of the Spring Dynamic Modules code base to the Eclipse Foundation, as part of the Gemini project, has been completed.

As such, this forum has been decommissioned in favour of the Eclipse Gemini forums.
See more
See less
Integration testing @Configurable with pax runner Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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

    Comment


    • #3
      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

      Comment

      Working...
      X