You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Felix Meschberger (JIRA)" <ji...@apache.org> on 2008/01/24 12:33:35 UTC

[jira] Created: (SLING-190) The Sling class of the launcher should verify minimum JDK requirement and fail properly

The Sling class of the launcher should verify minimum JDK requirement and fail properly
---------------------------------------------------------------------------------------

                 Key: SLING-190
                 URL: https://issues.apache.org/jira/browse/SLING-190
             Project: Sling
          Issue Type: Improvement
          Components: Launcher
            Reporter: Felix Meschberger
            Assignee: Felix Meschberger
             Fix For: 2.0.0


Currently, there is no check for the minimum Java Runtime environment required by Sling so, Sling will just fail with nasty exceptions if the requirement is not met. The Sling launcher (standalone app and web app) should be modified to fail gently in such cases:

   * The launcher is built agains JDK 1.4
   * The launcher checks for the required runtime version
   * If the runtime version is not correct, Sling should be terminated:
          -> standalone should just write the message to stderr and terminate the VM
          -> web app should log a message to the servlet container and throw a permanent UnavailableException

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


[jira] Commented: (SLING-190) The Sling class of the launcher should verify minimum JDK requirement and fail properly

Posted by "Carsten Ziegeler (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-190?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12592830#action_12592830 ] 

Carsten Ziegeler commented on SLING-190:
----------------------------------------

I'm not 100% sure, but as the launcher uses some other Sling modules which are built against 1.5 it might not be possible to load the launcher even if we are able to built just the launcher for 1.4.
I agree that the error you get when trying to run a 1.5 app with 1.4 is not very intuitiv, but I think this is out of our scope. It would be great if we could add a manifest entry to the jar, indicating that this only runs on 1.5+

> The Sling class of the launcher should verify minimum JDK requirement and fail properly
> ---------------------------------------------------------------------------------------
>
>                 Key: SLING-190
>                 URL: https://issues.apache.org/jira/browse/SLING-190
>             Project: Sling
>          Issue Type: Improvement
>          Components: Launcher
>            Reporter: Felix Meschberger
>            Assignee: Felix Meschberger
>             Fix For: 2.0.0
>
>
> Currently, there is no check for the minimum Java Runtime environment required by Sling so, Sling will just fail with nasty exceptions if the requirement is not met. The Sling launcher (standalone app and web app) should be modified to fail gently in such cases:
>    * The launcher is built agains JDK 1.4
>    * The launcher checks for the required runtime version
>    * If the runtime version is not correct, Sling should be terminated:
>           -> standalone should just write the message to stderr and terminate the VM
>           -> web app should log a message to the servlet container and throw a permanent UnavailableException

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


[jira] Commented: (SLING-190) The Sling class of the launcher should verify minimum JDK requirement and fail properly

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-190?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12592880#action_12592880 ] 

Felix Meschberger commented on SLING-190:
-----------------------------------------

The launcher is self-contained with respect to other Sling modules. It just uses "itself", the Felix framework as well as the OSGi API modules. The Felix framework and the OSGi API modules are built as JDK 1.3 class files.

The Sling launcher would be built as 1.4 class files without any use of JDK 5 features. I once had a prototype, but somehow lost it along the ways :-(

I suggest we simply deschedule this issue from the initial release leaving it to be implemented later.

> The Sling class of the launcher should verify minimum JDK requirement and fail properly
> ---------------------------------------------------------------------------------------
>
>                 Key: SLING-190
>                 URL: https://issues.apache.org/jira/browse/SLING-190
>             Project: Sling
>          Issue Type: Improvement
>          Components: Launcher
>            Reporter: Felix Meschberger
>            Assignee: Felix Meschberger
>             Fix For: 2.0.0
>
>
> Currently, there is no check for the minimum Java Runtime environment required by Sling so, Sling will just fail with nasty exceptions if the requirement is not met. The Sling launcher (standalone app and web app) should be modified to fail gently in such cases:
>    * The launcher is built agains JDK 1.4
>    * The launcher checks for the required runtime version
>    * If the runtime version is not correct, Sling should be terminated:
>           -> standalone should just write the message to stderr and terminate the VM
>           -> web app should log a message to the servlet container and throw a permanent UnavailableException

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


[jira] Updated: (SLING-190) The Sling class of the launcher should verify minimum JDK requirement and fail properly

Posted by "Carsten Ziegeler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-190?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carsten Ziegeler updated SLING-190:
-----------------------------------

    Fix Version/s:     (was: 2.0.1)

> The Sling class of the launcher should verify minimum JDK requirement and fail properly
> ---------------------------------------------------------------------------------------
>
>                 Key: SLING-190
>                 URL: https://issues.apache.org/jira/browse/SLING-190
>             Project: Sling
>          Issue Type: Improvement
>          Components: Launcher
>    Affects Versions: 2.0.0
>            Reporter: Felix Meschberger
>            Assignee: Felix Meschberger
>
> Currently, there is no check for the minimum Java Runtime environment required by Sling so, Sling will just fail with nasty exceptions if the requirement is not met. The Sling launcher (standalone app and web app) should be modified to fail gently in such cases:
>    * The launcher is built agains JDK 1.4
>    * The launcher checks for the required runtime version
>    * If the runtime version is not correct, Sling should be terminated:
>           -> standalone should just write the message to stderr and terminate the VM
>           -> web app should log a message to the servlet container and throw a permanent UnavailableException

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


[jira] Updated: (SLING-190) The Sling class of the launcher should verify minimum JDK requirement and fail properly

Posted by "Carsten Ziegeler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-190?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carsten Ziegeler updated SLING-190:
-----------------------------------

    Affects Version/s: 2.0.0
        Fix Version/s:     (was: 2.0.0)
                       2.0.1

> The Sling class of the launcher should verify minimum JDK requirement and fail properly
> ---------------------------------------------------------------------------------------
>
>                 Key: SLING-190
>                 URL: https://issues.apache.org/jira/browse/SLING-190
>             Project: Sling
>          Issue Type: Improvement
>          Components: Launcher
>    Affects Versions: 2.0.0
>            Reporter: Felix Meschberger
>            Assignee: Felix Meschberger
>             Fix For: 2.0.1
>
>
> Currently, there is no check for the minimum Java Runtime environment required by Sling so, Sling will just fail with nasty exceptions if the requirement is not met. The Sling launcher (standalone app and web app) should be modified to fail gently in such cases:
>    * The launcher is built agains JDK 1.4
>    * The launcher checks for the required runtime version
>    * If the runtime version is not correct, Sling should be terminated:
>           -> standalone should just write the message to stderr and terminate the VM
>           -> web app should log a message to the servlet container and throw a permanent UnavailableException

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