Results 1 to 7 of 7

Thread: Dependency resolution in bundle project

  1. #1
    Join Date
    Jun 2007
    Location
    Nantes, France
    Posts
    44

    Default Dependency resolution in bundle project

    Hi,

    I'm just starting to use Spring IDE 2.2.2 and I have some trouble for resolving bundle dependencies.
    I've have a bundle (let's call it A) configured with Spring dm as the target runtime. bundle A dependencies with bundles in spring-dm are correctly handled, they appear in the bundle dependencies folder when the Import-Package is added in manifest.mf.
    Now bundle A has also imports some package from bundle B, another bundle of my eclipse workspace. The imported package is correctly exported from bundle B and imported in bundle A. But the dependency is not resolved (bundle B doesn't appear in bundle A dependencies), just like if workspace resolution was not working.

    Should this work ? may be it is my mistake ...
    EscapeK - http://www.escapek.org - Open source project for IT ecosystem management

  2. #2
    Join Date
    Jun 2007
    Location
    Nantes, France
    Posts
    44

    Default

    To be more precise:

    Bundle A (domain-orm) has:
    Code:
    Import-Package:  org.escapek.domain;version="[1.0.0.SNAPSHOT,1.0.0.SNAPSHOT]"
    Bundle B (domain) has :
    Code:
    Export-Package: org.escapek.domain;version="1.0.0.SNAPSHOT"
    In eclipse IDE, i have the following error:
    Code:
    Import-Package: org.escapek.domain [1.0.0.SNAPSHOT, 1.0.0.SNAPSHOT] could not be resolved	MANIFEST.MF	domain-orm/src/main/resources/META-INF	line 7	SpringSource Bundle Dependency Problem
    EscapeK - http://www.escapek.org - Open source project for IT ecosystem management

  3. #3
    Join Date
    Feb 2008
    Posts
    16

    Default Same problem

    Hi,

    I have the same problem, which is only witsual, because everything else works.

    I can see packeges with content-assist, but after inserting them in manifest I see the same message.

  4. #4

    Default

    Just put a manifest template at root directory of your project folder.

    A template just needs two mandatory directives:
    --
    Bundle-ManifestVersion: 2
    Bundle-SymbolicName: org.mywork.webappname
    _____________

    his name TEMPLATE.MF

    HTH

  5. #5
    Join Date
    Jun 2007
    Location
    Nantes, France
    Posts
    44

    Default

    This doesn't change the problem.
    template.mf only allows MANIFEST.MF auto update.
    My problem is that when editing the MANIFEST.MF file, in the runtime folder I can add some import which is displayed it the list. But once it is added, it generates the error shown in my first post.
    I guesst this will work at runtime, but in eclipse IDE this generates an error in MANIFEST.MF and also prevents source code from being compiled (error in package import in java classes).

    The only way for now to make it work is to add the project which exports the package as a referenced project into the project which imports it.
    EscapeK - http://www.escapek.org - Open source project for IT ecosystem management

  6. #6
    Join Date
    Aug 2004
    Location
    Duesseldorf, Germany
    Posts
    1,210

    Default

    Nico,

    I think the solution for your problem is described in the following forum post: http://forum.springsource.org/showthread.php?t=61559

    Let me know if that solves the problem for you.

    Christian
    Christian Dupuis
    SpringSource, a division of VMware
    Lead, SpringSource Tools Team
    http://www.springsource.com
    http://twitter.com/cdupuis

  7. #7

    Default compile error

    It was the same for me.

    I put a template at project root, and refresh manifest , and it worked.

    Don't forget to do some refresh on Eclipse projects.

Posting Permissions

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