You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@sling.apache.org by Mike Hummel <mi...@mhus.de> on 2016/09/06 07:32:17 UTC
Sling in Karaf not working well
Hello,
I try to run sling in karaf but have an issue with the Authentication Support. I have installed the bundles
karaf@root()> list
START LEVEL 100 , List Threshold: 50
ID | State | Lvl | Version | Name
---------------------------------------------------------------------------------------
53 | Active | 80 | 2.0 | Content Repository for JavaTM Technology API
58 | Active | 80 | 3.2.2 | Apache Commons Collections
59 | Active | 80 | 1.3.1 | Apache Commons FileUpload
60 | Active | 80 | 2.4.0 | Commons IO
61 | Active | 80 | 2.6 | Commons Lang
69 | Active | 80 | 2.9.0 | Apache Sling API
70 | Active | 80 | 1.3.12 | Apache Sling Authentication Service
71 | Active | 80 | 1.3.2 | Apache Sling Dynamic Class Loader Support
72 | Active | 80 | 2.2.0 | Apache Sling Commons Java Compiler
73 | Active | 80 | 2.0.16 | Apache Sling JSON Library
74 | Active | 80 | 2.1.8 | Apache Sling MIME type mapping support
75 | Active | 80 | 2.3.0 | Apache Sling Commons OSGi support
76 | Active | 80 | 2.4.10 | Apache Sling Scheduler Support
77 | Active | 80 | 3.2.2 | Apache Sling Thread Support
78 | Active | 80 | 2.4.4 | Apache Sling Engine Implementation
79 | Active | 80 | 3.0.0 | Apache Sling Query
80 | Active | 80 | 1.2.6 | Apache Sling Resource Resolver
81 | Active | 80 | 1.2.2 | Apache Sling Service User Mapper
82 | Active | 80 | 1.3.7.SNAPSHOT | Apache Sling Settings
117 | Active | 80 | 1.0.8 | Apache Sling Form Based Authentication Handler
A web-request brings the following error:
AuthenticationSupport service missing. Cannot authenticate request.
Looks like I need an additional bundle? Already tried around and "Apache Sling Form Based Authentication Handler" should do the job?
Thx for help.
Mike
Re: Sling in Karaf not working well
Posted by Mike Hummel <mi...@mhus.de>.
Thank you for the hints ...
I tried to use the description from
https://sling.apache.org/documentation/bundles/scripting/scripting-thymeleaf.html
In you documentation at https://github.com/apache/sling/tree/trunk/karaf
you should add to compile the karaf launcher locally, because the snapshot is not available from central repo (?).
svn co http://svn.apache.org/repos/asf/sling/trunk sling
cd sling/karaf
mvn install -fae
did it for me.
Sling is installed and I'm ready to play around now :)
Thx,
Mike
---- On Tue, 06 Sep 2016 14:14:32 +0200 Oliver Lietz <apache@oliverlietz.de>wrote ----
On Tuesday 06 September 2016 09:32:17 Mike Hummel wrote:
> Hello,
Hello Mike,
Sling on Karaf is close to perfection and works very well in production.
When you have no or little experience with Sling or Karaf you should follow
the *Getting Started* section (I already pointed you to
https://github.com/apache/sling/tree/trunk/karaf).
You can run Sling with different resource providers (repositories/backends)
and four are available as features on Karaf:
* sling-launchpad-oak-tar
* sling-launchpad-oak-mongo
* sling-launchpad-nosql-couchbase
* sling-launchpad-nosql-mongodb
Just install the feature sling-launchpad-oak-tar and everything else required
gets pulled in. The other three features require setting up a database before.
> I try to run sling in karaf but have an issue with the Authentication
> Support. I have installed the bundles
Check the logs, a repository is missing.
Regards,
O.
> karaf@root()&gt; list
>
> START LEVEL 100 , List Threshold: 50
>
> ID | State | Lvl | Version | Name
>
> ----------------------------------------------------------------------------
> -----------
>
> 53 | Active | 80 | 2.0 | Content Repository for JavaTM
> Technology API
>
> 58 | Active | 80 | 3.2.2 | Apache Commons Collections
>
> 59 | Active | 80 | 1.3.1 | Apache Commons FileUpload
>
> 60 | Active | 80 | 2.4.0 | Commons IO
>
> 61 | Active | 80 | 2.6 | Commons Lang
>
> 69 | Active | 80 | 2.9.0 | Apache Sling API
>
> 70 | Active | 80 | 1.3.12 | Apache Sling Authentication Service
>
> 71 | Active | 80 | 1.3.2 | Apache Sling Dynamic Class Loader
> Support
>
> 72 | Active | 80 | 2.2.0 | Apache Sling Commons Java Compiler
>
> 73 | Active | 80 | 2.0.16 | Apache Sling JSON Library
>
> 74 | Active | 80 | 2.1.8 | Apache Sling MIME type mapping
> support
>
> 75 | Active | 80 | 2.3.0 | Apache Sling Commons OSGi support
>
> 76 | Active | 80 | 2.4.10 | Apache Sling Scheduler Support
>
> 77 | Active | 80 | 3.2.2 | Apache Sling Thread Support
>
> 78 | Active | 80 | 2.4.4 | Apache Sling Engine Implementation
>
> 79 | Active | 80 | 3.0.0 | Apache Sling Query
>
> 80 | Active | 80 | 1.2.6 | Apache Sling Resource Resolver
>
> 81 | Active | 80 | 1.2.2 | Apache Sling Service User Mapper
>
> 82 | Active | 80 | 1.3.7.SNAPSHOT | Apache Sling Settings
>
> 117 | Active | 80 | 1.0.8 | Apache Sling Form Based
> Authentication Handler
>
> A web-request brings the following error:
>
>
> AuthenticationSupport service missing. Cannot authenticate request.
>
>
>
>
>
> Looks like I need an additional bundle? Already tried around and "Apache
> Sling Form Based Authentication Handler" should do the job?
>
>
>
>
>
> Thx for help.
>
>
>
> Mike
Re: Sling in Karaf not working well
Posted by Oliver Lietz <ap...@oliverlietz.de>.
On Tuesday 06 September 2016 09:32:17 Mike Hummel wrote:
> Hello,
Hello Mike,
Sling on Karaf is close to perfection and works very well in production.
When you have no or little experience with Sling or Karaf you should follow
the *Getting Started* section (I already pointed you to
https://github.com/apache/sling/tree/trunk/karaf).
You can run Sling with different resource providers (repositories/backends)
and four are available as features on Karaf:
* sling-launchpad-oak-tar
* sling-launchpad-oak-mongo
* sling-launchpad-nosql-couchbase
* sling-launchpad-nosql-mongodb
Just install the feature sling-launchpad-oak-tar and everything else required
gets pulled in. The other three features require setting up a database before.
> I try to run sling in karaf but have an issue with the Authentication
> Support. I have installed the bundles
Check the logs, a repository is missing.
Regards,
O.
> karaf@root()> list
>
> START LEVEL 100 , List Threshold: 50
>
> ID | State | Lvl | Version | Name
>
> ----------------------------------------------------------------------------
> -----------
>
> 53 | Active | 80 | 2.0 | Content Repository for JavaTM
> Technology API
>
> 58 | Active | 80 | 3.2.2 | Apache Commons Collections
>
> 59 | Active | 80 | 1.3.1 | Apache Commons FileUpload
>
> 60 | Active | 80 | 2.4.0 | Commons IO
>
> 61 | Active | 80 | 2.6 | Commons Lang
>
> 69 | Active | 80 | 2.9.0 | Apache Sling API
>
> 70 | Active | 80 | 1.3.12 | Apache Sling Authentication Service
>
> 71 | Active | 80 | 1.3.2 | Apache Sling Dynamic Class Loader
> Support
>
> 72 | Active | 80 | 2.2.0 | Apache Sling Commons Java Compiler
>
> 73 | Active | 80 | 2.0.16 | Apache Sling JSON Library
>
> 74 | Active | 80 | 2.1.8 | Apache Sling MIME type mapping
> support
>
> 75 | Active | 80 | 2.3.0 | Apache Sling Commons OSGi support
>
> 76 | Active | 80 | 2.4.10 | Apache Sling Scheduler Support
>
> 77 | Active | 80 | 3.2.2 | Apache Sling Thread Support
>
> 78 | Active | 80 | 2.4.4 | Apache Sling Engine Implementation
>
> 79 | Active | 80 | 3.0.0 | Apache Sling Query
>
> 80 | Active | 80 | 1.2.6 | Apache Sling Resource Resolver
>
> 81 | Active | 80 | 1.2.2 | Apache Sling Service User Mapper
>
> 82 | Active | 80 | 1.3.7.SNAPSHOT | Apache Sling Settings
>
> 117 | Active | 80 | 1.0.8 | Apache Sling Form Based
> Authentication Handler
>
> A web-request brings the following error:
>
>
> AuthenticationSupport service missing. Cannot authenticate request.
>
>
>
>
>
> Looks like I need an additional bundle? Already tried around and "Apache
> Sling Form Based Authentication Handler" should do the job?
>
>
>
>
>
> Thx for help.
>
>
>
> Mike
Re: Sling in Karaf not working well
Posted by Bertrand Delacretaz <bd...@apache.org>.
Hi,
On Tue, Sep 6, 2016 at 9:32 AM, Mike Hummel <mi...@mhus.de> wrote:
> ...I try to run sling in karaf but have an issue with the Authentication Support....
Did you use the Karaf features provided under
https://svn.apache.org/repos/asf/sling/trunk/karaf/ ?
I don't think they are released yet but AFAIK they are tested and
should provide the right combinations of bundles.
(I'm not familiar with them, Oliver Lietz will probably add more precise info)
-Bertrand