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

Issue while upgrading version 6 to 7

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Launchpad
    • None

    Description

      We are currently using Apache Sling 6 as a war. While trying to upgrade the version from 6 to 7,, changed the attached pom.xml to use "defaultBundleList=7" for the org.apache.sling:maven-launchpad-plugin:2.3.4 (upgraded from 2.0.10 to 2.3.4).

      Updated the dependency for org.apache.sling:org.apache.sling.launchpad.base (from 2.3.0 to 2.5.0).
      In addition to the default bundles, we are explicitly packaging additional bundles using the attached list.xml. 

      The war builds successfully after making the above changes.

      But when, the war with the apache sling 7 is deployed to JBOSS EAP 7.4.0, the war fails to deploy and exceptions related to bundle dependencies are seen. Please see the attached server.log file for the errors.

      2023-02-20 10:26:05,271 ERROR [io.undertow.servlet] (FelixStartLevel) ERROR: Error starting slinginstall:E:\cover-all\cms\sling\startup\0\org.apache.sling.engine-2.3.6.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle org.apache.sling.engine [39]: Unable to resolve 39.0: missing requirement [39.0] osgi.wiring.package; (&(osgi.wiring.package=javax.servlet)(version>=2.3.0)(!(version>=4.0.0)))): org.osgi.framework.BundleException: Unresolved constraint in bundle org.apache.sling.engine [39]: Unable to resolve 39.0: missing requirement [39.0] osgi.wiring.package; (&(osgi.wiring.package=javax.servlet)(version>=2.3.0)(!(version>=4.0.0)))
          at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4002)
          at org.apache.felix.framework.Felix.startBundle(Felix.java:2045)
          at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1299)
          at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
          at java.lang.Thread.run(Thread.java:748) 

      The war for apache sling 6 is successfully deployed on the same JBOSS EAP 7.4.0 server.

       

      We tried explicitly adding the javax.servlet bundle to the list.xml at level=0, but it also didn't work. Not sure what is missing.

      Note: We are upgrading the sling version, in order to update the Jackrabbit version. We are seeing some Jackrabbit & database connection leak related issues, and thus trying to upgrade the jackrabbit version to the latest. Let us know, if Jackrabbit can be directly upgraded instead. It will be really helpful  

      Attachments

        1. pom.xml
          6 kB
          Prasad Shembekar
        2. list.xml
          2 kB
          Prasad Shembekar
        3. server.log
          17 kB
          Prasad Shembekar
        4. web.xml
          3 kB
          Prasad Shembekar

        Activity

          People

            Unassigned Unassigned
            prasad907109 Prasad Shembekar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: