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

Inside a Bundle Project it is not possible to executed an embedded Test with LaunchPad, Cargo and Jetty

    XMLWordPrintableJSON

Details

    Description

      Inside a bundle project I could not start an integration test. Even though I could create a launchpad bundles firing up the embedded Web container (Cargo / Jetty) or even just Jetty fails.

      Steps to reproduce it:
      1) Create a Servlet
      2) Create a Bundle that contains the Servlet
      3) Take the POM from launchpad / /testing and move these maven plugins inside the integration test profile: launchpad and war
      4) Make sure the launchpad plugin is called after the JAR file is created (pre-integration-test)

      Running that with 'mvn -P jcrinstall-tests integration-test' fails because Sling is never launched even though launchpad-bundles is created and the war files seems to be fine.

      Running the same without Cargo and plain Jetty fails because now Sling is deployed inside "${basedir}/sling/_" and also the System Console is not coming up even though the sling home page does.

      Cheers - Andy

      Attachments

        1. pom copy.xml
          33 kB
          Andreas Schaefer

        Activity

          People

            justinedelson Justin Edelson
            andysch Andreas Schaefer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: