[ https://issues.apache.org/jira/browse/SLING-6505?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Oliver Lietz updated SLING-6505: -------------------------------- Affects Version/s: (was: Samples Fling 0.0.2) > Apache Sling Sample fling is not registering(not active) with karaf > ------------------------------------------------------------------- > > Key: SLING-6505 > URL: https://issues.apache.org/jira/browse/SLING-6505 > Project: Sling > Issue Type: Bug > Components: Samples > Environment: Windows, java 1.8 > Reporter: Ravi Singareddy > > Compiled and installed Fling sample using > >mvn clean install -P karaf@localhost > Not able to open web page > http://localhost:8181/fling.html > open installed Apache Sling Fling Sample in > http://localhost:8181/system/console/install > showing following errors in Imported Packages: > Imported Packages javax.annotation from org.apache.felix.framework (0) > javax.jcr,version=[2.0,3) -- Cannot be resolved > javax.mail,version=[1.4,2) from javax.mail (9) > javax.mail.internet,version=[1.4,2) from javax.mail (9) > javax.net from org.apache.felix.framework (0) > javax.net.ssl from org.apache.felix.framework (0) > javax.servlet,version=[3.1,4) from javax.servlet-api (10) > org.apache.jackrabbit.api.security.user,version=[2.4,3) -- Cannot be resolved > org.apache.sling.api,version=[2.3,3) -- Cannot be resolved > org.apache.sling.api.request,version=[2.4,3) -- Cannot be resolved > org.apache.sling.api.resource,version=[2.9,3) -- Cannot be resolved > org.apache.sling.api.servlets,version=[2.1,3) -- Cannot be resolved > org.apache.sling.api.wrappers,version=[2.5,3) -- Cannot be resolved > org.apache.sling.commons.messaging,version=[1.0,2) -- Cannot be resolved > org.apache.sling.jcr.base.util,version=[2.1,3) -- Cannot be resolved > org.apache.sling.models.annotations,version=[1.2,2) -- Cannot be resolved > org.apache.sling.models.annotations.injectorspecific,version=[1.1,2) -- > Cannot be resolved > org.apache.sling.query,version=[3.0,4) -- Cannot be resolved > org.apache.sling.samples.fling from org.apache.sling.samples.fling (92) > org.apache.sling.samples.fling.form from org.apache.sling.samples.fling (92) > org.apache.sling.scripting.thymeleaf,version=[1.0,2) -- Cannot be resolved > org.apache.sling.validation,version=[1.0,2) -- Cannot be resolved > org.apache.sling.validation.model,version=[1.0,2) -- Cannot be resolved > org.apache.sling.validation.spi,version=[1.0,2) -- Cannot be resolved > org.osgi.framework,version=[1.8,2) from org.apache.felix.framework (0) > org.slf4j,version=[1.7,2) from org.ops4j.pax.logging.pax-logging-api (3) > org.thymeleaf,version=[3.0,4) -- Cannot be resolved > org.thymeleaf.context,version=[3.0,4) -- Cannot be resolved > I have also tried installing following items in karaf > karaf@root()> feature:repo-add > mvn:org.apache.sling/org.apache.sling.launchpad.karaf-features/0.1.1-SNAPSHOT/xml/features > Successful > karaf@root()> feature:install sling-launchpad-oak-tar > giving following error: > Error executing command: Unable to resolve root: missing requirement [root] > osgi.identity; osgi.identity=sling-launchpad-oak-tar; type=karaf.feature; > version="[0.1.1.SNAPSHOT,0.1.1.SNAPSHOT]"; > filter:="(&(osgi.identity=sling-launchpad-oak-tar)(type=karaf.feature)(version>=0.1.1.SNAPSHOT)(version<=0.1.1.SNAPSHOT))" > [caused by: Unable to resolve sling-launchpad-oak-tar/0.1.1.SNAPSHOT: > missing requirement [sling-launchpad-oak-tar/0.1.1.SNAPSHOT] osgi.identity; > osgi.identity=sling-launchpad-oak; type=karaf.feature; > version="[0.1.1.SNAPSHOT,0.1.1.SNAPSHOT]" [caused by: Unable to resolve > sling-launchpad-oak/0.1.1.SNAPSHOT: missing requirement > [sling-launchpad-oak/0.1.1.SNAPSHOT] osgi.identity; > osgi.identity=sling-jcr-oak; type=karaf.feature; > version="[0.1.1.SNAPSHOT,0.1.1.SNAPSHOT]" [caused by: Unable to resolve > sling-jcr-oak/0.1.1.SNAPSHOT: missing requirement > [sling-jcr-oak/0.1.1.SNAPSHOT] osgi.identity; > osgi.identity=org.apache.sling.jcr.oak.server; type=osgi.bundle; > version="[1.0.1.SNAPSHOT,1.0.1.SNAPSHOT]"; resolution:=mandatory [caused by: > Unable to resolve org.apache.sling.jcr.oak.server/1.0.1.SNAPSHOT: missing > requirement [org.apache.sling.jcr.oak.server/1.0.1.SNAPSHOT] > osgi.wiring.package; > filter:="(&(osgi.wiring.package=org.apache.jackrabbit.commons.jackrabbit.authorization)(version>=2.12.0)(!(version>=3.0.0)))"]]]] > I have made following changes to features.xml in karaf features for building > karaf - > sling_code\karaf\org.apache.sling.karaf-features\src\main\feature\feature.xml > > <bundle>mvn:org.apache.sling/org.apache.sling.commons.classloader/1.3.9-SNAPSHOT</bundle> > > > <bundle>mvn:org.apache.sling/org.apache.sling.jcr.davex/1.3.9-SNAPSHOT</bundle> > > > <bundle>mvn:org.apache.sling/org.apache.sling.jcr.webdav/2.3.9-SNAPSHOT</bundle> > -- This message was sent by Atlassian JIRA (v6.3.15#6346)