Thanks Oliver.

With regards to Sling Karaf, we’ve had to resort to forking the configs and
features’ repos in order to have frozen releases to work with. Is there a
plan to do a proper release of these (plus the karaf-distribution one) to
bring more stability to anyone relying on them?

On Thu, Dec 3, 2020 at 6:32 PM Oliver Lietz <[email protected]> wrote:

> On Thursday, December 3, 2020 6:07:33 PM CET Carlos Munoz wrote:
> > I got it working. Interestingly enough when I installed the groovy-all
> > bundle from the karaf console it didn't work, but if I installed it
> > directly as part of the distribution it's successful.
>
> Nice, I can see the exception below when Groovy is not installed.
>
> The latest Sling Karaf works fine for me (5 test failures in
> org.apache.sling.karaf-launchpad-oak-tar-integration-tests):
>
> karaf@root()> feature:install sling-configs
> karaf@root()> feature:install felix-http
> karaf@root()> feature:install sling-quickstart-oak-tar
> karaf@root()> feature:install sling-starter-content
> karaf@root()> feature:install sling-scripting-groovy
>
> Running a Groovy script works like described by Dan¹.
>
> Please let me know your issues with current Sling Karaf.
>
> Thanks,
> O.
>
> [1]
> https://blogs.perficient.com/2020/05/12/4-useful-features-of-composum-browser/
>
>
> > On Thu, Dec 3, 2020 at 8:06 AM Carlos Munoz <[email protected]> wrote:
> > > Thanks Oliver.
> > >
> > > Here's the information. Keep in mind this is a karaf distribution with
> the
> > > features and configs from a few months ago. I tried building on the
> latest
> > > karaf builds but sling wont even install correctly.
> > >
> > > Here's the exception trace from the composum window:
> > >
> > > java.util.concurrent.ExecutionException:
> java.lang.NoClassDefFoundError:
> > > groovy/lang/MissingPropertyException
> > > at java.util.concurrent.FutureTask.report(FutureTask.java:122)
> > > at java.util.concurrent.FutureTask.get(FutureTask.java:192)
> > > at
> > >
> com.composum.sling.core.concurrent.AbstractJobExecutor.process(AbstractJob
> > > Executor.java:200) at
> > >
> org.apache.sling.event.impl.jobs.queues.JobQueueImpl.startJob(JobQueueImpl
> > > .java:293) at
> > >
> org.apache.sling.event.impl.jobs.queues.JobQueueImpl.access$100(JobQueueIm
> > > pl.java:60) at
> > >
> org.apache.sling.event.impl.jobs.queues.JobQueueImpl$1.run(JobQueueImpl.ja
> > > va:229) at
> > >
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:
> > > 1149) at
> > >
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java
> > > :624) at java.lang.Thread.run(Thread.java:748)
> > > Caused by: java.lang.NoClassDefFoundError:
> > > groovy/lang/MissingPropertyException
> > > at
> > >
> com.composum.sling.core.script.GroovyJobExecutor$GroovyRunnerCallable.call
> > > (GroovyJobExecutor.java:160) at
> > > java.util.concurrent.FutureTask.run(FutureTask.java:266)
> > > ... 3 more
> > > Caused by: java.lang.ClassNotFoundException:
> > > groovy.lang.MissingPropertyException not found by
> > > com.composum.core.commons
> > > [12]
> > > at
> > >
> org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegatio
> > > n(BundleWiringImpl.java:1639) at
> > >
> org.apache.felix.framework.BundleWiringImpl.access$200(BundleWiringImpl.ja
> > > va:80) at
> > >
> org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(Bu
> > > ndleWiringImpl.java:2053) at
> > > java.lang.ClassLoader.loadClass(ClassLoader.java:351)
> > > ... 5 more
> > > Script finished with 'Error': java.lang.NoClassDefFoundError:
> > > groovy/lang/MissingPropertyException
> > >
> > > The script is nothing but a simple println "Hello World" (I'm just
> > > prototyping here).
> > >
> > > The list of bundles directly from Karaf:
> > >  ID │ State   │ Lvl │ Version        │ Name
> > >
> > >
> ────┼─────────┼─────┼────────────────┼────────────────────────────────────
> > > ─────────────────────────────────────────>
> > >  12 │ Active  │  80 │ 1.12.1         │ Composum Core Sling API
> > >  13 │ Active  │  80 │ 1.12.1         │ Composum Core Configuration
> > >  14 │ Active  │  80 │ 1.12.1         │ Composum Core Console
> > >  15 │ Active  │  80 │ 1.12.1         │ Composum Core JS Libraries
> > >  16 │ Active  │  80 │ 1.12.1         │ Composum Package Manager
> > >  17 │ Active  │  80 │ 1.12.1         │ Composum User Managmenent
> > >  18 │ Active  │  80 │ 2.9.9          │ Jackson-annotations
> > >  19 │ Active  │  80 │ 2.9.9          │ Jackson-core
> > >  20 │ Active  │  80 │ 2.9.9          │ jackson-databind
> > >  21 │ Active  │  80 │ 15.0.0         │ Guava: Google Core Libraries for
> > >
> > > Java
> > >
> > >  22 │ Active  │  80 │ 1.4.200        │ H2 MVStore
> > >  23 │ Active  │  80 │ 1.0.0.SNAPSHOT │ pantheon-bundle
> > >  24 │ Active  │  80 │ 3.2.6          │ Metrics Core
> > >  27 │ Active  │  80 │ 2.0            │ Content Repository for JavaTM
> > >
> > > Technology API
> > >
> > >  30 │ Active  │  80 │ 4.8.0.1        │ ANTLR 4 Runtime
> > >  36 │ Active  │  80 │ 3.2.2          │ Apache Commons Collections
> > >  37 │ Active  │  80 │ 1.14.0         │ Apache Commons Codec
> > >  38 │ Active  │  80 │ 4.4.0          │ Apache Commons Collections
> > >  39 │ Active  │  80 │ 1.4.0          │ Apache Commons FileUpload
> > >  40 │ Active  │  80 │ 2.6.0          │ Apache Commons IO
> > >  41 │ Active  │  80 │ 3.10.0         │ Apache Commons Lang
> > >  42 │ Active  │  80 │ 1.0.12         │ Apache Felix Converter
> > >  43 │ Active  │  80 │ 2.0.2          │ Apache Felix Health Check API
> > >  44 │ Active  │  80 │ 2.0.6          │ Apache Felix Health Check Core
> > >  45 │ Active  │  80 │ 2.0.4          │ Apache Felix Health Check
> General
> > >
> > > Checks
> > >
> > >  46 │ Active  │  80 │ 2.0.0          │ Apache Felix Health Check
> > >
> > > Webconsole Plugin
> > >
> > >  48 │ Active  │  80 │ 1.0.2          │ Apache Felix JAAS Support
> > >  49 │ Active  │  80 │ 1.1.0          │ Apache Felix Preferences Service
> > >  53 │ Active  │  80 │ 1.0.10         │ Apache Felix Web Console Memory
> > >
> > > Usage Plugin
> > >
> > >  54 │ Active  │  80 │ 1.0.4          │ Apache Felix Web Console Package
> > >
> > > Admin Service Plugin
> > >
> > >  55 │ Active  │  80 │ 1.1.0          │ Apache Geronimo JSR-330 Spec 1.0
> > >  56 │ Active  │  80 │ 1.1.0          │ Apache Geronimo Expression
> Language
> > >
> > > Spec 2.2
> > >
> > >  59 │ Active  │  80 │ 4.5.12         │ Apache Apache HttpClient OSGi
> > >  bundle
> > >  60 │ Active  │  80 │ 4.4.13         │ Apache Apache HttpCore OSGi
> bundle
> > >  61 │ Active  │  80 │ 2.20.0         │ Jackrabbit Data
> > >  62 │ Active  │  80 │ 2.20.0         │ Jackrabbit JCR Commons
> > >  63 │ Active  │  80 │ 2.20.0         │ Jackrabbit JCR-RMI
> > >  64 │ Active  │  80 │ 2.20.0         │ Jackrabbit SPI
> > >  65 │ Active  │  80 │ 2.20.0         │ Jackrabbit SPI Commons
> > >  66 │ Active  │  80 │ 2.20.0         │ Jackrabbit WebDAV Library
> > >  67 │ Active  │  80 │ 1.26.0         │ Oak API
> > >  68 │ Active  │  80 │ 1.26.0         │ Oak Blob Store
> > >  69 │ Waiting │  80 │ 1.26.0         │ Oak Blob Plugins
> > >  70 │ Active  │  80 │ 1.26.0         │ Oak Commons
> > >  71 │ Active  │  80 │ 1.26.0         │ Oak Core
> > >  72 │ Active  │  80 │ 1.26.0         │ Oak Core SPI
> > >  73 │ Active  │  80 │ 1.26.0         │ Jackrabbit API
> > >  74 │ Active  │  80 │ 1.26.0         │ Oak JCR Binding
> > >  75 │ Active  │  80 │ 1.26.0         │ Oak Lucene
> > >  76 │ Active  │  80 │ 1.26.0         │ Oak Query SPI
> > >  77 │ Active  │  80 │ 1.26.0         │ Oak Security SPI
> > >  78 │ Active  │  80 │ 1.26.0         │ Oak Composite Store
> > >  79 │ Waiting │  80 │ 1.26.0         │ Oak DocumentNodeStore
> > >  80 │ Active  │  80 │ 1.26.0         │ Oak NodeStore and Commit SPI
> > >  81 │ Active  │  80 │ 3.4.0          │ Apache Jackrabbit FileVault Core
> > >
> > > Bundle
> > >
> > >  88 │ Active  │  80 │ 4.2.8          │ Apache Karaf :: OSGi Services ::
> > > Event
> > > 111 │ Active  │  80 │ 2.0.19         │ Apache PDFBox
> > > 112 │ Active  │  80 │ 2.0.19         │ Apache FontBox
> > > 113 │ Active  │  80 │ 1.8.16         │ Apache JempBox
> > > 115 │ Active  │  80 │ 1.7.12.1       │ Apache ServiceMix :: Bundles ::
> > > rhino
> > > 116 │ Active  │  80 │ 2.1.10         │ Apache Sling Adapter Manager
> > > Implementation
> > > 117 │ Active  │  80 │ 2.22.0         │ Apache Sling API
> > > 118 │ Active  │  80 │ 1.4.4          │ Apache Sling Authentication
> Service
> > > 119 │ Active  │  80 │ 1.0.16         │ Apache Sling Form Based
> > > Authentication Handler
> > > 120 │ Active  │  80 │ 2.3.2          │ Apache Sling Bundle Resource
> > > Provider
> > > 121 │ Active  │  80 │ 1.2.0          │ Apache Sling Context-Aware
> > > Configuration API
> > > 122 │ Active  │  80 │ 1.5.0          │ Apache Sling Context-Aware
> > > Configuration Implementation
> > > 123 │ Active  │  80 │ 1.3.4          │ Apache Sling Context-Aware
> > > Configuration SPI
> > > 124 │ Active  │  80 │ 1.4.4          │ Apache Sling Dynamic Class
> Loader
> > > Support
> > > 125 │ Active  │  80 │ 2.3.6          │ Apache Sling Commons Java
> Compiler
> > > 126 │ Active  │  80 │ 1.0.12         │ Apache Sling Commons FileSystem
> > > ClassLoader
> > > 127 │ Active  │  80 │ 1.2.0          │ Apache Sling Commons Johnzon
> > > Wrapper Library
> > > 128 │ Active  │  80 │ 5.1.10         │ Apache Sling Commons Log
> > > 129 │ Active  │  80 │ 1.2.8          │ Apache Sling Commons Metrics
> > > 130 │ Active  │  80 │ 2.2.2          │ Apache Sling Commons MIME
> > > 131 │ Active  │  80 │ 2.4.0          │ Apache Sling Commons OSGi
> support
> > > 132 │ Active  │  80 │ 2.7.6          │ Apache Sling Commons Scheduler
> > > Support
> > > 133 │ Active  │  80 │ 3.2.20         │ Apache Sling Commons Threads
> > > 134 │ Active  │  80 │ 1.0.4          │ Apache Sling Discovery API
> > > 135 │ Active  │  80 │ 2.0.8          │ Apache Sling Discovery Base
> > > 136 │ Active  │  80 │ 1.0.20         │ Apache Sling Discovery Commons
> > > 137 │ Active  │  80 │ 1.2.28         │ Apache Sling Oak-Based Discovery
> > > Service
> > > 138 │ Active  │  80 │ 1.0.2          │ Apache Sling Discovery
> Standalone
> > > Implementation
> > > 139 │ Active  │  80 │ 1.0.4          │ Apache Sling Discovery Support
> > > Bundle
> > > 140 │ Active  │  80 │ 2.6.20         │ Apache Sling Engine
> Implementation
> > > 141 │ Active  │  80 │ 4.2.12         │ Apache Sling Event Support
> > > 142 │ Active  │  80 │ 1.1.4          │ Apache Sling Distributed Event
> > > Admin
> > > 143 │ Active  │  80 │ 1.0.4          │ Apache Sling Health Check API
> > > 144 │ Active  │  80 │ 1.0.6          │ Apache Sling Health Check
> Support
> > > Components
> > > 145 │ Active  │  80 │ 2.5.14         │ Apache Sling I18N Support
> > > 146 │ Active  │  80 │ 2.4.0          │ Apache Sling Repository API
> Bundle
> > > 147 │ Active  │  80 │ 3.1.0          │ Apache Sling JCR Base Bundle
> > > 148 │ Active  │  80 │ 2.3.0          │ Apache Sling Initial Content
> Loader
> > > 149 │ Active  │  80 │ 1.3.10         │ Apache Sling JCR DavEx
> > > 150 │ Active  │  80 │ 3.0.4          │ Apache Sling Jackrabbit JSR-283
> > > Access Control Manager Support
> > > 151 │ Active  │  80 │ 2.2.8          │ Apache Sling Jackrabbit
> UserManager
> > > Support
> > > 152 │ Active  │  80 │ 1.2.4          │ Apache Sling JCR Oak Server
> > > 153 │ Active  │  80 │ 1.1.24         │ Apache Sling Repoinit JCR
> > > 154 │ Active  │  80 │ 3.0.20         │ Apache Sling JCR Resource
> Resolver
> > > 155 │ Active  │  80 │ 1.0.2          │ Apache Sling JCR WebConsole
> Bundle
> > > 156 │ Active  │  80 │ 2.3.8          │ Apache Sling Simple WebDAV
> Access
> > > to repositories
> > > 157 │ Active  │  80 │ 1.3.8          │ Apache Sling Models API
> > > 158 │ Active  │  80 │ 1.4.12         │ Apache Sling Models
> Implementation
> > > 159 │ Active  │  80 │ 1.0.8          │ Apache Sling Models Model
> Exporter
> > > - Jackson
> > > 160 │ Active  │  80 │ 1.8.4          │ Apache Sling Provisioning Model
> > > 161 │ Active  │  80 │ 1.6.2          │ Apache Sling Repoinit Parser
> > > 162 │ Waiting │  80 │ 1.6.16         │ Apache Sling Resource Resolver
> > > 163 │ Active  │  80 │ 2.2.0          │ Apache Sling Scripting
> > > Implementation API
> > > 164 │ Active  │  80 │ 2.2.0          │ Apache Sling Scripting Core
> > > 165 │ Active  │  80 │ 3.1.2          │ Apache Sling Scripting
> JavaScript
> > > 166 │ Active  │  80 │ 2.4.2          │ Apache Sling Scripting JSP
> > > 167 │ Active  │  80 │ 2.4.0          │ Apache Sling Scripting JSP Tag
> > > Library
> > > 168 │ Active  │  80 │ 1.3.2.0        │ Apache Sling Scripting HTL
> Engine
> > > 169 │ Active  │  80 │ 1.2.4.0        │ Apache Sling Scripting HTL
> Compiler
> > > 170 │ Active  │  80 │ 1.1.4.0        │ Apache Sling Scripting HTL Java
> > > Compiler
> > > 171 │ Active  │  80 │ 1.1.0          │ Apache Sling Scripting HTL JS
> Use
> > > Provider
> > > 172 │ Active  │  80 │ 1.0.10         │ Apache Sling Scripting HTL Sling
> > > Models Use Provider
> > > 173 │ Active  │  80 │ 1.2.0.0        │ Apache Sling Scripting HTL
> Runtime
> > > 174 │ Active  │  80 │ 1.4.6          │ Apache Sling Service User Mapper
> > > 175 │ Active  │  80 │ 2.1.40         │ Apache Sling Default GET
> Servlets
> > > 176 │ Active  │  80 │ 2.3.36         │ Apache Sling Default POST
> Servlets
> > > 177 │ Active  │  80 │ 2.6.4          │ Apache Sling Servlets Resolver
> > > 178 │ Active  │  80 │ 1.3.10         │ Apache Sling Settings
> > > 179 │ Active  │  80 │ 1.0.8          │ Apache Sling Starter Content
> > > 180 │ Active  │  80 │ 2.2.2          │ Apache Sling XSS Protection API
> > > 182 │ Active  │  80 │ 1.24.0         │ Apache Tika core
> > > 183 │ Active  │  80 │ 1.24.0         │ Apache Tika parsers
> > > 184 │ Active  │  80 │ 4.14.0         │ Apache XBean OSGI Bundle
> Utilities
> > > 185 │ Active  │  80 │ 4.14.0         │ Apache XBean :: Classpath
> Resource
> > > Finder
> > > 218 │ Active  │  80 │ 3.8.2          │ mongo-java-driver
> > > 219 │ Active  │  80 │ 7.2.0          │ org.objectweb.asm
> > > 220 │ Active  │  80 │ 7.2.0          │ org.objectweb.asm.commons
> > > 221 │ Active  │  80 │ 7.2.0          │ org.objectweb.asm.tree
> > > 231 │ Active  │  80 │ 2.4.19         │ Groovy Runtime
> > >
> > > On Thu, Dec 3, 2020 at 11:18 AM Oliver Lietz <[email protected]>
> > >
> > > wrote:
> > >> On Wednesday, December 2, 2020 11:33:59 PM CET Carlos Munoz wrote:
> > >> > Hi all,
> > >>
> > >> Hi Carlos,
> > >>
> > >> > I am trying to run a groovy script directly from the resource
> browser
> > >> > in
> > >> > composum, and getting a ClassNotFoundExfeption for one of the groovy
> > >>
> > >> base
> > >>
> > >> > classes, even when groovy is deployed on the sling instance. Has
> anyone
> > >>
> > >> run
> > >>
> > >> > into this problem?
> > >>
> > >> Can you provide a list of installed bundles, an error message and a
> > >> script for
> > >> testing?
> > >>
> > >> Regards,
> > >> O.
> > >>
> > >> > Regards,
> > >> >
> > >> > Carlos
>
>
>
>
> --

Carlos A. Muñoz

Senior Manager, Software Engineering - Digital Experience Platforms

Red Hat <https://www.redhat.com>
<https://red.ht/sig>

Reply via email to