[ 
https://issues.apache.org/jira/browse/SHIRO-274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13001932#comment-13001932
 ] 

Andreas Pieber commented on SHIRO-274:
--------------------------------------

hey guys,

Since Karaf-2.2 is now finally out; any interest in applying this patch? :)

Kind regards,
Andreas

> Apache Karaf Features File
> --------------------------
>
>                 Key: SHIRO-274
>                 URL: https://issues.apache.org/jira/browse/SHIRO-274
>             Project: Shiro
>          Issue Type: New Feature
>            Reporter: Andreas Pieber
>             Fix For: 1.2.0
>
>         Attachments: karaf-features.patch
>
>
> Apache Karaf is a small OSGi based runtime which provides a lightweight 
> container onto which various components and applications can be deployed.
> The following patch provides a features.xml which can be used in to install 
> Apache Shiro easily in Apache Karaf. To test the patch download apache karaf 
> 2.2.0-SNAPSHOT (because of the used obr resolver not backward-compatible to 
> 2.1.x; but we're going to release karaf-2.2.0 very soon anyway...) here [1] 
> or here [2], unizp/untar; now start Karaf:
> {code}
> pieber@coprime [04:18:58] [~/apache-karaf-2.1.99-SNAPSHOT] 
> -> % ./bin/karaf 
>         __ __                  ____      
>        / //_/____ __________ _/ __/      
>       / ,<  / __ `/ ___/ __ `/ /_        
>      / /| |/ /_/ / /  / /_/ / __/        
>     /_/ |_|\__,_/_/   \__,_/_/         
>   Apache Karaf (2.1.99-SNAPSHOT)
> Hit '<tab>' for a list of available commands
> and '[cmd] --help' for help on a specific command.
> Hit '<ctrl-d>' or 'osgi:shutdown' to shutdown Karaf.
> {code}
> Afterwards add the new shiro features file:
> {code}
> karaf@root> features:addurl 
> mvn:org.apache.shiro/shiro-features/1.2.0-SNAPSHOT/xml/features
> {code}
> Now we can install the features...
> {code}
> karaf@root> features:install shiro-web shiro-ehcache shiro-quartz 
> shiro-spring shiro-aspectj
> {code}
> ... and check if everything was installed correctly
> {code}
> karaf@root> list
> START LEVEL 100 , List Threshold: 50
>    ID   State         Blueprint      Level  Name
> [  42] [Active     ] [            ] [   60] Apache Shiro :: Core 
> (1.2.0.SNAPSHOT)
> [  43] [Active     ] [            ] [   60] geronimo-servlet_2.5_spec (1.1.2)
> [  44] [Active     ] [            ] [   60] Jetty :: Utilities 
> (7.2.2.v20101205)
> [  45] [Active     ] [            ] [   60] Jetty :: IO Utility 
> (7.2.2.v20101205)
> [  46] [Active     ] [            ] [   60] Jetty :: Http Utility 
> (7.2.2.v20101205)
> [  47] [Active     ] [            ] [   60] Jetty :: Continuation 
> (7.2.2.v20101205)
> [  48] [Active     ] [            ] [   60] Jetty :: Server Core 
> (7.2.2.v20101205)
> [  49] [Active     ] [            ] [   60] Jetty :: Security 
> (7.2.2.v20101205)
> [  50] [Active     ] [            ] [   60] Jetty :: Servlet Handling 
> (7.2.2.v20101205)
> [  51] [Active     ] [            ] [   60] Jetty :: XML utilities 
> (7.2.2.v20101205)
> [  52] [Active     ] [            ] [   60] OPS4J Pax Web - API (1.0.1)
> [  53] [Active     ] [            ] [   60] OPS4J Pax Web - Service SPI 
> (1.0.1)
> [  54] [Active     ] [            ] [   60] OPS4J Pax Web - Runtime (1.0.1)
> [  55] [Active     ] [            ] [   60] OPS4J Pax Web - Jetty (1.0.1)
> [  57] [Active     ] [            ] [   60] OPS4J Pax Web - Jsp Support 
> (1.0.1)
> [  58] [Active     ] [            ] [   60] OPS4J Pax Web - Extender - WAR 
> (1.0.1)
> [  59] [Active     ] [            ] [   60] OPS4J Pax Web - Extender - 
> Whiteboard (1.0.1)
> [  60] [Active     ] [            ] [   60] OPS4J Pax Web - FileInstall 
> Deployer (1.0.1)
> [  61] [Active     ] [            ] [   60] OPS4J Pax Url - war:, war-i: 
> (1.2.5)
> [  62] [Active     ] [            ] [   60] Apache Shiro :: Web 
> (1.2.0.SNAPSHOT)
> [  63] [Active     ] [            ] [   60] Apache ServiceMix :: Bundles :: 
> ehcache (2.3.0.1)
> [  64] [Active     ] [            ] [   60] Apache Shiro :: Support :: 
> EHCache (1.2.0.SNAPSHOT)
> [  65] [Active     ] [            ] [   60] Commons Collections (3.2.1)
> [  66] [Active     ] [            ] [   60] Apache ServiceMix Bundles: 
> quartz-1.6.1 (1.6.1.1)
> [  67] [Active     ] [            ] [   60] Apache Shiro :: Support :: Quartz 
> (1.2.0.SNAPSHOT)
> [  68] [Active     ] [            ] [   60] Apache ServiceMix :: Bundles :: 
> aopalliance (1.0.0.4)
> [  69] [Active     ] [            ] [   60] Spring Core (3.0.5.RELEASE)
> [  70] [Active     ] [            ] [   60] Spring ASM (3.0.5.RELEASE)
> [  71] [Active     ] [            ] [   60] Spring Expression Language 
> (3.0.5.RELEASE)
> [  72] [Active     ] [            ] [   60] Spring Beans (3.0.5.RELEASE)
> [  73] [Active     ] [            ] [   60] Spring AOP (3.0.5.RELEASE)
> [  74] [Active     ] [            ] [   60] Spring Context (3.0.5.RELEASE)
> [  75] [Active     ] [            ] [   60] Spring Context Support 
> (3.0.5.RELEASE)
> [  76] [Active     ] [            ] [   60] Apache Shiro :: Support :: Spring 
> (1.2.0.SNAPSHOT)
> [  77] [Active     ] [            ] [   60] Apache ServiceMix :: Bundles :: 
> aspectj (1.6.8.1)
> [  78] [Active     ] [            ] [   60] Apache Shiro :: Support :: 
> AspectJ (1.2.0.SNAPSHOT)
> {code}
> [1] 
> http://repository.apache.org/snapshots/org/apache/karaf/assemblies/apache-karaf/apache-karaf/2.1.99-SNAPSHOT/apache-karaf-2.1.99-SNAPSHOT.tar.gz
> [2] 
> http://repository.apache.org/snapshots/org/apache/karaf/assemblies/apache-karaf/apache-karaf/2.1.99-SNAPSHOT/apache-karaf-2.1.99-SNAPSHOT.zip

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to