Uploaded image for project: 'Spring Data Neo4j'
  1. Spring Data Neo4j
  2. DATAGRAPH-88

org.springframework.data.neo4j bundle imports *.impl.* packages from org.neo4j

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Complete
    • Affects Version/s: 1.0
    • Fix Version/s: None
    • Component/s: CORE
    • Labels:
    • Environment:
      Virgo 3.0.0.M04

      Description

      I'm trying to get SDG up and running in an OSGi environment on Virgo 3.0.0.M04.
      The bundle org.springframework.data.neo4j imports not exported packages from the org.neo4j bundle, i.e. "org.neo4j.index.impl.lucene". This gives the following error on virgo:

      [2011-05-12 15:12:48.436]  TCP Connection(2)-127.0.0.1 <DE0500E> Unable to install application from URI 'file:/C:/virgo-tomcat-server-3.0.0.M04/stage/neo4j.domain.jar'. Cannot satisfy constraints for bundle 'com.example.neo4j.domain' version '0.0.1.BUILD-SNAPSHOT'. Cannot resolve: com.example.neo4j.domain
          Resolver report:
              An Import-Package could not be resolved. Caused by missing constraint in bundle <com.example.neo4j.domain_0.0.1.BUILD-SNAPSHOT>
                   constraint: <Import-Package: org.springframework.data.graph.annotation; version="[1.0.0,1.1.0)">
              An Import-Package could not be resolved. Caused by missing constraint in bundle <org.springframework.data.neo4j_1.0.0.RELEASE>
                   constraint: <Import-Package: org.neo4j.index.impl.lucene; version="0.0.0">

      template.mf of the org.springframework.data.neo4j bundle should probably contain something like:

      Excluded-Imports: 
       org.neo4j.*.impl.*
      

      Other imported "implementation" packages that catched my eye:

      • org.neo4j.kernel.impl.core;version=0,
      • org.neo4j.kernel.impl.nioneo.store;version=0,
      • org.neo4j.kernel.impl.persistence;version=0,
      • org.neo4j.kernel.impl.transaction;version=0

      And BTW: There is no version number for the neo4j libs in template.mf, which sooner or later will cause a problem.

        Attachments

          Activity

            People

            • Assignee:
              mhunger Michael Hunger
              Reporter:
              ractive Jean-Pierre Bergamin
              Last updater:
              Trevor Marshall
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: