You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Bertrand Delacretaz (JIRA)" <ji...@apache.org> on 2010/03/04 12:08:31 UTC

[jira] Resolved: (SLING-1424) "Resource does not adapt to a SlingScript" error with JDK 1.5, works with JDK 1.6

     [ https://issues.apache.org/jira/browse/SLING-1424?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bertrand Delacretaz resolved SLING-1424.
----------------------------------------

       Resolution: Fixed
    Fix Version/s: Launchpad Testing 6

Fixed in revision 918930 - I had mistakenly used a server-side script with a .js extension, but our Rhino javascript engine is only registered for .ecma and .esp extensions.

My JDK 1.6 supplies the com.sun.script.javascript.RhinoScriptEngine for the .js extension, so the test passed with 1.6 but not with 1.5 which doesn't have that engine.

> "Resource does not adapt to a SlingScript" error with JDK 1.5, works with JDK 1.6
> ---------------------------------------------------------------------------------
>
>                 Key: SLING-1424
>                 URL: https://issues.apache.org/jira/browse/SLING-1424
>             Project: Sling
>          Issue Type: Bug
>          Components: Scripting
>            Reporter: Bertrand Delacretaz
>            Assignee: Bertrand Delacretaz
>             Fix For: Launchpad Testing 6
>
>
> The StandaloneScriptExecutionServlet created for SLING-1423 fails with "Resource does not adapt to a SlingScript" under JDK 1.5, and works fine under 1.6.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.