Hi Oliver 
Lietz<https://issues.apache.org/jira/secure/ViewProfile.jspa?name=olli> ,
I have checked out latest code http://svn.apache.org/repos/asf/sling/trunk
$$ > cd karaf
$$> mvn clean install -DskipTests
Giving compilation errors because of unresolved dependencies

  1.  Caused by: 
shaded.org.eclipse.aether.resolution.ArtifactResolutionException: Error 
resolving artifact org.apache.sling:org.apache.sling.jcr.davex:jar:1.3.8
  2.  Caused by: 
shaded.org.eclipse.aether.resolution.ArtifactResolutionException: Error 
resolving artifact org.apache.sling:org.apache.sling.jcr.webdav:jar:2.3.8
  3.  Caused by: 
shaded.org.eclipse.aether.resolution.ArtifactResolutionException: Error 
resolving artifact 
org.apache.sling:org.apache.sling.commons.classloader:jar:1.3.8
In the bundles versions dependencies as follows

  1.  org.apache.sling:org.apache.sling.jcr.davex:jar: 1.3.9-SNAPSHOT
  2.  org.apache.sling:org.apache.sling.jcr.webdav:jar: 2.3.9-SNAPSHOT
  3.  org.apache.sling:org.apache.sling.commons.classloader:jar: 1.3.9-SNAPSHOT
These compilation errors need to be resolved. In order to resolve compilation 
error, I have set corresponding davex, webdav and classloader versions in 
karaf. This is giving  SLING-6505 mentioned problem. Compilation issue is not 
resolved.
Thanks

Ravi


________________________________
From: Oliver Lietz (JIRA) <[email protected]>
Sent: Friday, February 3, 2017 6:46 AM
To: [email protected]
Subject: [jira] [Resolved] (SLING-6505) Apache Sling Sample fling is not 
registering(not active) with karaf


     [ 
https://issues.apache.org/jira/browse/SLING-6505?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Oliver Lietz resolved SLING-6505.
---------------------------------
    Resolution: Not A Problem

[~singareddy], you screwed your features up. The currently used version of 
{{org.apache.sling.jcr.oak.server}} is {{1.1.3-SNAPSHOT}}.

> 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)

Reply via email to