Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-2769

Broken sample: post-servlet-extensions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • Launchpad Base 2.5.0
    • None
    • Launchpad, Samples
    • None

    Description

      I'm learning about Sling and I'm trying to build and run the Sling samples within my Launchpad instance. For instance, I'm trying to run "samples/post-servlet-extensions". However, it seems that this sample depends on JCR 1.0, transitively, as I'm getting this error in the Sling Console, after loading the bundle:

      Imported Packages javax.jcr,version=[1.0,2) – Cannot be resolved

      The Launchpad (version 6), however includes JCR 2.0. Is this sample outdated? How can this be fixed? Note:

      • I've tried upgrading the JCR dependency in ../../../parent/pom.xml before building the samples (with mvn clean install) - without success
      • I've tried upgrading the sample's dependencies on org.apache.sling.servlets.post from 2.0.4-incubator to 2.2.0 and on org.apache.sling.jcr.resource from 2.0.6 to 2.2.4 - without success
      • I've tried building Sling from trunk - without success, as many artefacts seem to be missing from the Apache SNAPSHOT repositories.

      I'm not having such issues with the "samples/urlfilter" sample

      Attachments

        Issue Links

          Activity

            People

              bdelacretaz Bertrand Delacretaz
              lukas.eder Lukas Eder
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: