Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Slice and Sightly configuration failing to deploy for AEM 6.1

Avatar

Level 2

Hi All, I am following the guideline mentioned in the https://cognifide.atlassian.net/wiki/display/SLICE/Setting+up+-+4.2 documentation. 

I have added the below pom dependencies.....

    
<dependency>
    <groupId>com.cognifide.slice</groupId>
    <artifactId>slice-core-api</artifactId>
    <version>4.2.0</version>
</dependency>
<dependency>
    <groupId>com.cognifide.slice</groupId>
    <artifactId>slice-core</artifactId>
    <version>4.2.0</version>
</dependency>
<dependency>
    <groupId>com.cognifide.slice</groupId>
    <artifactId>slice-mapper</artifactId>
    <version>4.2.0</version>
</dependency>
<dependency>
    <groupId>com.cognifide.slice</groupId>
    <artifactId>slice-mapper-api</artifactId>
    <version>4.2.0</version>
</dependency>

 

<dependency>    <groupId>com.cognifide.slice-addon</groupId>    <artifactId>slice-aem60</artifactId></dependency><dependency>    <groupId>org.apache.felix</groupId>    <artifactId>org.apache.felix.scr.annotations</artifactId></dependency>

I am following the exact instruction given in the above slice documentation, but when I deploy my code in the AEM, the bundle doen't start and failing with the below error in the log file.

OsgiInstallerImpl] org.apache.sling.installer.core.impl.tasks.BundleStartTask Could not start bundle myproject-bundle [495]. Reason: {}. Will retry.
org.osgi.framework.BundleException: Unresolved constraint in bundle myproject-bundle [495]: Unable to resolve 495.2: missing requirement [495.2] osgi.wiring.package; (&(osgi.wiring.package=com.cognifide.slice.cq.module)(version>=1.1.0)(!(version>=2.0.0)))
    at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4095)
    at org.apache.felix.framework.Felix.startBundle(Felix.java:2114)
    at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:977)
    at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:964)
    at org.apache.sling.installer.core.impl.tasks.BundleStartTask.execute(BundleStartTask.java:93)
    at org.apache.sling.installer.core.impl.OsgiInstallerImpl.doExecuteTasks(OsgiInstallerImpl.java:847)
    at org.apache.sling.installer.core.impl.OsgiInstallerImpl.executeTasks(OsgiInstallerImpl.java:689)
    at org.apache.sling.installer.core.impl.OsgiInstallerImpl.run(OsgiInstallerImpl.java:265)
    at java.lang.Thread.run(Thread.java:745)

 

And below error showed in the osgi bundle...

com.cognifide.slice.api.injector,version=[4.2,5) from slice-core-api (487)
com.cognifide.slice.commons,version=[4.1,5) from slice-core (486)
com.cognifide.slice.cq.module,version=[1.1,2) -- Cannot be resolved
com.cognifide.slice.mapper.annotation,version=[4.2,5) from slice-mapper-api (489)
com.google.inject,version=[1.3,2) from com.google.inject (483)
javax.servlet from org.apache.felix.http.servlet-api (40)
org.apache.sling.api,version=[2.1,3) from org.apache.sling.api (66)
org.apache.sling.api.request,version=[2.1,3) from org.apache.sling.api (66)
org.apache.sling.jcr.api,version=[2.1,3) from org.apache.sling.jcr.api (109)
org.osgi.framework,version=[1.5,2) from org.apache.felix.framework (0)
org.slf4j,version=[1.5,2) from slf4j.api (22)

Guys please provide your valuable input resolving this issue with Slice.

thanks, Sandeep

1 Accepted Solution

Avatar

Correct answer by
Level 2

Sandeep Rawat wrote...

Hi All, I am following the guideline mentioned in the https://cognifide.atlassian.net/wiki/display/SLICE/Setting+up+-+4.2 documentation. 

I have added the below pom dependencies.....

    
<dependency>
    <groupId>com.cognifide.slice</groupId>
    <artifactId>slice-core-api</artifactId>
    <version>4.2.0</version>
</dependency>
<dependency>
    <groupId>com.cognifide.slice</groupId>
    <artifactId>slice-core</artifactId>
    <version>4.2.0</version>
</dependency>
<dependency>
    <groupId>com.cognifide.slice</groupId>
    <artifactId>slice-mapper</artifactId>
    <version>4.2.0</version>
</dependency>
<dependency>
    <groupId>com.cognifide.slice</groupId>
    <artifactId>slice-mapper-api</artifactId>
    <version>4.2.0</version>
</dependency>

 

<dependency>    <groupId>com.cognifide.slice-addon</groupId>    <artifactId>slice-aem60</artifactId></dependency><dependency>    <groupId>org.apache.felix</groupId>    <artifactId>org.apache.felix.scr.annotations</artifactId></dependency>

I am following the exact instruction given in the above slice documentation, but when I deploy my code in the AEM, the bundle doen't start and failing with the below error in the log file.

OsgiInstallerImpl] org.apache.sling.installer.core.impl.tasks.BundleStartTask Could not start bundle myproject-bundle [495]. Reason: {}. Will retry.
org.osgi.framework.BundleException: Unresolved constraint in bundle myproject-bundle [495]: Unable to resolve 495.2: missing requirement [495.2] osgi.wiring.package; (&(osgi.wiring.package=com.cognifide.slice.cq.module)(version>=1.1.0)(!(version>=2.0.0)))
    at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4095)
    at org.apache.felix.framework.Felix.startBundle(Felix.java:2114)
    at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:977)
    at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:964)
    at org.apache.sling.installer.core.impl.tasks.BundleStartTask.execute(BundleStartTask.java:93)
    at org.apache.sling.installer.core.impl.OsgiInstallerImpl.doExecuteTasks(OsgiInstallerImpl.java:847)
    at org.apache.sling.installer.core.impl.OsgiInstallerImpl.executeTasks(OsgiInstallerImpl.java:689)
    at org.apache.sling.installer.core.impl.OsgiInstallerImpl.run(OsgiInstallerImpl.java:265)
    at java.lang.Thread.run(Thread.java:745)

 

And below error showed in the osgi bundle...

com.cognifide.slice.api.injector,version=[4.2,5) from slice-core-api (487)
com.cognifide.slice.commons,version=[4.1,5) from slice-core (486)
com.cognifide.slice.cq.module,version=[1.1,2) -- Cannot be resolved
com.cognifide.slice.mapper.annotation,version=[4.2,5) from slice-mapper-api (489)
com.google.inject,version=[1.3,2) from com.google.inject (483)
javax.servlet from org.apache.felix.http.servlet-api (40)
org.apache.sling.api,version=[2.1,3) from org.apache.sling.api (66)
org.apache.sling.api.request,version=[2.1,3) from org.apache.sling.api (66)
org.apache.sling.jcr.api,version=[2.1,3) from org.apache.sling.jcr.api (109)
org.osgi.framework,version=[1.5,2) from org.apache.felix.framework (0)
org.slf4j,version=[1.5,2) from slf4j.api (22)

Guys please provide your valuable input resolving this issue with Slice.

thanks, Sandeep

 

 

Hi All, Found the solution, just checkout the git package for aem60 from https://github.com/Cognifide/Slice-AEM60

After mvn clean install manually deploy the package (slice-aem60-assembly-1.1.1-SNAPSHOT-aem.zip) from the directory through the package manager.

This will fix the issue. thanks All for the help and support

View solution in original post

1 Reply

Avatar

Correct answer by
Level 2

Sandeep Rawat wrote...

Hi All, I am following the guideline mentioned in the https://cognifide.atlassian.net/wiki/display/SLICE/Setting+up+-+4.2 documentation. 

I have added the below pom dependencies.....

    
<dependency>
    <groupId>com.cognifide.slice</groupId>
    <artifactId>slice-core-api</artifactId>
    <version>4.2.0</version>
</dependency>
<dependency>
    <groupId>com.cognifide.slice</groupId>
    <artifactId>slice-core</artifactId>
    <version>4.2.0</version>
</dependency>
<dependency>
    <groupId>com.cognifide.slice</groupId>
    <artifactId>slice-mapper</artifactId>
    <version>4.2.0</version>
</dependency>
<dependency>
    <groupId>com.cognifide.slice</groupId>
    <artifactId>slice-mapper-api</artifactId>
    <version>4.2.0</version>
</dependency>

 

<dependency>    <groupId>com.cognifide.slice-addon</groupId>    <artifactId>slice-aem60</artifactId></dependency><dependency>    <groupId>org.apache.felix</groupId>    <artifactId>org.apache.felix.scr.annotations</artifactId></dependency>

I am following the exact instruction given in the above slice documentation, but when I deploy my code in the AEM, the bundle doen't start and failing with the below error in the log file.

OsgiInstallerImpl] org.apache.sling.installer.core.impl.tasks.BundleStartTask Could not start bundle myproject-bundle [495]. Reason: {}. Will retry.
org.osgi.framework.BundleException: Unresolved constraint in bundle myproject-bundle [495]: Unable to resolve 495.2: missing requirement [495.2] osgi.wiring.package; (&(osgi.wiring.package=com.cognifide.slice.cq.module)(version>=1.1.0)(!(version>=2.0.0)))
    at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4095)
    at org.apache.felix.framework.Felix.startBundle(Felix.java:2114)
    at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:977)
    at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:964)
    at org.apache.sling.installer.core.impl.tasks.BundleStartTask.execute(BundleStartTask.java:93)
    at org.apache.sling.installer.core.impl.OsgiInstallerImpl.doExecuteTasks(OsgiInstallerImpl.java:847)
    at org.apache.sling.installer.core.impl.OsgiInstallerImpl.executeTasks(OsgiInstallerImpl.java:689)
    at org.apache.sling.installer.core.impl.OsgiInstallerImpl.run(OsgiInstallerImpl.java:265)
    at java.lang.Thread.run(Thread.java:745)

 

And below error showed in the osgi bundle...

com.cognifide.slice.api.injector,version=[4.2,5) from slice-core-api (487)
com.cognifide.slice.commons,version=[4.1,5) from slice-core (486)
com.cognifide.slice.cq.module,version=[1.1,2) -- Cannot be resolved
com.cognifide.slice.mapper.annotation,version=[4.2,5) from slice-mapper-api (489)
com.google.inject,version=[1.3,2) from com.google.inject (483)
javax.servlet from org.apache.felix.http.servlet-api (40)
org.apache.sling.api,version=[2.1,3) from org.apache.sling.api (66)
org.apache.sling.api.request,version=[2.1,3) from org.apache.sling.api (66)
org.apache.sling.jcr.api,version=[2.1,3) from org.apache.sling.jcr.api (109)
org.osgi.framework,version=[1.5,2) from org.apache.felix.framework (0)
org.slf4j,version=[1.5,2) from slf4j.api (22)

Guys please provide your valuable input resolving this issue with Slice.

thanks, Sandeep

 

 

Hi All, Found the solution, just checkout the git package for aem60 from https://github.com/Cognifide/Slice-AEM60

After mvn clean install manually deploy the package (slice-aem60-assembly-1.1.1-SNAPSHOT-aem.zip) from the directory through the package manager.

This will fix the issue. thanks All for the help and support