[
https://issues.apache.org/jira/browse/SHIRO-274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13002431#comment-13002431
]
Andreas Pieber commented on SHIRO-274:
--------------------------------------
Hey Les,
@Hardcoding the latest commons.collection version: this is fine for me
@Quartz and aspectj: I'm terrible sorry, it seams that I really forgot to add
them to the patch:
{code}
<!-- Compile 3rd party dependencies: -->
- <aspectj.version>1.6.9</aspectj.version>
+ <aspectj.version>1.6.8</aspectj.version>
+ <aspectj.bundle.version>1.6.8_1</aspectj.bundle.version>
<crowd.version>1.5.2</crowd.version>
- <ehcache.version>2.2.0</ehcache.version>
+ <ehcache.version>2.3.0</ehcache.version>
+ <ehcache.bundle.version>2.3.0_1</ehcache.bundle.version>
<groovy.version>1.7.8</groovy.version>
<hsqldb.version>1.8.0.7</hsqldb.version>
<jdk.version>1.5</jdk.version>
<jetty.version>6.1.21</jetty.version>
<openid4j.version>0.9.5</openid4j.version>
<quartz.version>1.6.1</quartz.version>
+ <commons.collections.version>3.2.1</commons.collections.version>
+ <quartz.bundle.version>1.6.1_1</quartz.bundle.version>
<slf4j.version>1.6.1</slf4j.version>
<spring.version>3.0.5.RELEASE</spring.version>
{code}
The two different versions where required because the "default" version is not
osginized. Using your quartz and aspectj versions alone does not work that way
with karaf :( It would be great if the bundle versions could be used of
aspectj, ehcache and quartz (for the karaf impl).
Thank you very much again for your effort and 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