On Saturday 30 April 2016 19:17:34 Roy Teeuwen wrote:
> Hello all,
Hello Roy,
> When navigating to fling.html after installing the fling samples I get
> following exception, any thought on what is going wrong? Parsing error in
> template /apps/fling/page/simple/html.html at line 20: extraneous input '('
> expecting {'}', '.', '&&', '||', '[', '@'} for expression
> page=${request.adaptTo(@org.apache.sling.samples.fling.page.Page@class)}
> (500)
until SLING-4430 is implemented you can run one script engine per extension
only (service ranking is not honored by Sling's script engine manager, no need
to try). https://issues.apache.org/jira/browse/SLING-4330
For running the Fling sample you have to deinstall Sightly.
I suggest to use the latest Scripting Thymeleaf snapshot which brings
Thymeleaf 3.0.0.BETA03 (latest release).
The easiest way to get your dependencies right is to look at Launchpad Karaf
Features:
https://github.com/apache/sling/blob/trunk/contrib/launchpad/karaf/org.apache.sling.launchpad.karaf-features/src/main/feature/feature.xml
But you don't have to fiddle around with dependencies at all when using
Launchpad Karaf Features or Distribution – just install sling-launchpad-oak-
tar and sling-samples-fling.
Regards,
O.
> The requested URL /fling.html resulted in an error in
> /apps/fling/page/simple/html.html.
>
> Exception:
>
> org.apache.sling.scripting.sightly.SightlyException: Parsing error in
> template /apps/fling/page/simple/html.html at line 20: extraneous input '('
> expecting {'}', '.', '&&', '||', '[', '@'} for expression
> page=${request.adaptTo(@org.apache.sling.samples.fling.page.Page@class)} at
> org.apache.sling.scripting.sightly.impl.engine.UnitLoader.getSourceCodeForS
> cript(UnitLoader.java:135) at
> org.apache.sling.scripting.sightly.impl.engine.UnitLoader.createUnit(UnitLo
> ader.java:100) at
> org.apache.sling.scripting.sightly.impl.engine.SightlyScriptEngine.evaluate
> Script(SightlyScriptEngine.java:91)
>
> The installed bundles that I am using to get the sample active on the
> current Sling 9-SNAPSHOT launchpad are the following:
>
> <dependency>
> <groupId>org.apache.sling.samples</groupId>
> <artifactId>org.apache.sling.samples.fling</artifactId>
> <version>0.0.1-SNAPSHOT</version>
> </dependency>
> <!-- Query -->
> <dependency>
> <groupId>org.apache.sling</groupId>
> <artifactId>org.apache.sling.query</artifactId>
> <version>3.0.0</version>
> </dependency>
> <!-- Auth -->
> <dependency>
> <groupId>org.apache.sling</groupId>
>
> <artifactId>org.apache.sling.jcr.jackrabbit.usermanager</artifactId>
> <version>2.2.4</version>
> </dependency>
> <!-- Thymeleaf -->
> <dependency>
> <groupId>org.apache.sling</groupId>
> <artifactId>org.apache.sling.scripting.thymeleaf</artifactId>
> <version>0.0.6</version>
> </dependency>
> <dependency>
> <groupId>org.thymeleaf</groupId>
> <artifactId>thymeleaf</artifactId>
> <version>3.0.0.BETA02</version>
> </dependency>
> <dependency>
> <groupId>org.apache.sling</groupId>
> <artifactId>org.apache.sling.i18n</artifactId>
> <version>2.2.10</version>
> </dependency>
> <dependency>
> <groupId>org.javassist</groupId>
> <artifactId>javassist</artifactId>
> <version>3.18.2-GA</version>
> </dependency>
> <dependency>
> <groupId>commons-io</groupId>
> <artifactId>commons-io</artifactId>
> <version>2.4</version>
> </dependency>
> <dependency>
> <groupId>org.apache.servicemix.bundles</groupId>
> <artifactId>org.apache.servicemix.bundles.xerces</artifactId>
> <version>2.11.0_1</version>
> </dependency>
> <dependency>
> <groupId>org.apache.servicemix.bundles</groupId>
>
> <artifactId>org.apache.servicemix.bundles.xmlresolver</artifactId>
> <version>1.2_5</version>
> </dependency>
> <!-- Validation -->
> <dependency>
> <groupId>org.apache.sling</groupId>
> <artifactId>org.apache.sling.validation.api</artifactId>
> <version>1.0.0-SNAPSHOT</version>
> </dependency>
> <dependency>
> <groupId>org.apache.sling</groupId>
> <artifactId>org.apache.sling.validation.core</artifactId>
> <version>1.0.0-SNAPSHOT</version>
> </dependency>
> <!-- Messaging -->
> <dependency>
> <groupId>org.apache.sling</groupId>
> <artifactId>org.apache.sling.commons.messaging</artifactId>
> <version>0.0.1-SNAPSHOT</version>
> </dependency>
>
> Greetings,
> Roy