Hi Roy,

It seems Thymeleaf is not handling the HTML scripts, they get processed by
Sightly instead. You could check the configured service ranking of
Thymeleaf, as suggested in
https://sling.apache.org/documentation/bundles/scripting/scripting-thymeleaf.html

Best,
Vlad

On Saturday, 30 April 2016, Roy Teeuwen <r...@teeuwen.be> wrote:

> Hello all,
>
> 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)
>
> 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.getSourceCodeForScript(UnitLoader.java:135)
>         at
> org.apache.sling.scripting.sightly.impl.engine.UnitLoader.createUnit(UnitLoader.java:100)
>         at
> org.apache.sling.scripting.sightly.impl.engine.SightlyScriptEngine.evaluateScript(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



-- 
Sent from mobile

Reply via email to