You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwebbeans.apache.org by "Udo Schnurpfeil (JIRA)" <ji...@apache.org> on 2011/06/08 10:11:58 UTC

[jira] [Created] (OWB-582) Support for Java 1.5 (needed for WebSphere 6.1)

Support for Java 1.5 (needed for WebSphere 6.1)
-----------------------------------------------

                 Key: OWB-582
                 URL: https://issues.apache.org/jira/browse/OWB-582
             Project: OpenWebBeans
          Issue Type: Improvement
          Components: Core
    Affects Versions: 1.1.0
            Reporter: Udo Schnurpfeil
            Assignee: Gurkan Erdogdu


I would be nice, if OWB supports Java 1.5, e. g. to run with WebSphere 6.1.
It can be implemented with low effort.

There is one basic dependency to Java 1.6: java.util.ServiceLoader
To solve this problem, I've added a utility class in my local copy and delegate calls to ServiceLoader to this utility.

The utility class itself calls ServiceLoader, if the class is available (Java 1.6) or uses com.googlecode.bspi.ServiceLoader (Java 1.5).
So the application needs one new dependency (only in the case of Java 1.5).

I've also changed the maven-compiler-plugin to generate Java 1.5 compatible byte code.


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (OWB-582) Support for Java 1.5 (needed for WebSphere 6.1)

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

Gerhard Petracek updated OWB-582:
---------------------------------

    Attachment: OWB-582_pluggable_service_loader_and_java5_support.patch

> Support for Java 1.5 (needed for WebSphere 6.1)
> -----------------------------------------------
>
>                 Key: OWB-582
>                 URL: https://issues.apache.org/jira/browse/OWB-582
>             Project: OpenWebBeans
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 1.1.0
>            Reporter: Udo Schnurpfeil
>            Assignee: Gerhard Petracek
>         Attachments: OWB-582.patch, OWB-582_pluggable_service_loader_and_java5_support.patch
>
>
> I would be nice, if OWB supports Java 1.5, e. g. to run with WebSphere 6.1.
> It can be implemented with low effort.
> There is one basic dependency to Java 1.6: java.util.ServiceLoader
> To solve this problem, I've added a utility class in my local copy and delegate calls to ServiceLoader to this utility.
> The utility class itself calls ServiceLoader, if the class is available (Java 1.6) or uses com.googlecode.bspi.ServiceLoader (Java 1.5).
> So the application needs one new dependency (only in the case of Java 1.5).
> I've also changed the maven-compiler-plugin to generate Java 1.5 compatible byte code.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (OWB-582) Support for Java 1.5 (needed for WebSphere 6.1)

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

Gerhard Petracek updated OWB-582:
---------------------------------

    Attachment: OWB-582_maven_config.patch

> Support for Java 1.5 (needed for WebSphere 6.1)
> -----------------------------------------------
>
>                 Key: OWB-582
>                 URL: https://issues.apache.org/jira/browse/OWB-582
>             Project: OpenWebBeans
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 1.1.0
>            Reporter: Udo Schnurpfeil
>            Assignee: Gerhard Petracek
>         Attachments: OWB-582.patch, OWB-582_maven_config.patch, OWB-582_pluggable_service_loader_and_java5_support.patch
>
>
> I would be nice, if OWB supports Java 1.5, e. g. to run with WebSphere 6.1.
> It can be implemented with low effort.
> There is one basic dependency to Java 1.6: java.util.ServiceLoader
> To solve this problem, I've added a utility class in my local copy and delegate calls to ServiceLoader to this utility.
> The utility class itself calls ServiceLoader, if the class is available (Java 1.6) or uses com.googlecode.bspi.ServiceLoader (Java 1.5).
> So the application needs one new dependency (only in the case of Java 1.5).
> I've also changed the maven-compiler-plugin to generate Java 1.5 compatible byte code.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (OWB-582) Support for Java 1.5 (needed for WebSphere 6.1)

Posted by "Mark Struberg (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OWB-582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13079269#comment-13079269 ] 

Mark Struberg commented on OWB-582:
-----------------------------------

Geronimo cannot use the default config mechanism because the properties files from the core don't get exported via OSGi. Thus Geronimo injects the configuration from 'outside'.

> Support for Java 1.5 (needed for WebSphere 6.1)
> -----------------------------------------------
>
>                 Key: OWB-582
>                 URL: https://issues.apache.org/jira/browse/OWB-582
>             Project: OpenWebBeans
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 1.1.0
>            Reporter: Udo Schnurpfeil
>            Assignee: Gerhard Petracek
>             Fix For: 1.1.1
>
>         Attachments: OWB-582.patch, OWB-582_maven_config.patch, OWB-582_pluggable_service_loader_and_java5_support.patch
>
>
> I would be nice, if OWB supports Java 1.5, e. g. to run with WebSphere 6.1.
> It can be implemented with low effort.
> There is one basic dependency to Java 1.6: java.util.ServiceLoader
> To solve this problem, I've added a utility class in my local copy and delegate calls to ServiceLoader to this utility.
> The utility class itself calls ServiceLoader, if the class is available (Java 1.6) or uses com.googlecode.bspi.ServiceLoader (Java 1.5).
> So the application needs one new dependency (only in the case of Java 1.5).
> I've also changed the maven-compiler-plugin to generate Java 1.5 compatible byte code.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (OWB-582) Support for Java 1.5 (needed for WebSphere 6.1)

Posted by "David Jencks (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OWB-582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13079218#comment-13079218 ] 

David Jencks commented on OWB-582:
----------------------------------

This breaks the geronimo integration and requires users to configure the ImplementationLoaderService.  In rev 1153739 I changed this to use the default service if none is configured.  In rev 1153741 I changed this to  only try to create one if there is none in the initial services.

> Support for Java 1.5 (needed for WebSphere 6.1)
> -----------------------------------------------
>
>                 Key: OWB-582
>                 URL: https://issues.apache.org/jira/browse/OWB-582
>             Project: OpenWebBeans
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 1.1.0
>            Reporter: Udo Schnurpfeil
>            Assignee: Gerhard Petracek
>             Fix For: 1.1.1
>
>         Attachments: OWB-582.patch, OWB-582_maven_config.patch, OWB-582_pluggable_service_loader_and_java5_support.patch
>
>
> I would be nice, if OWB supports Java 1.5, e. g. to run with WebSphere 6.1.
> It can be implemented with low effort.
> There is one basic dependency to Java 1.6: java.util.ServiceLoader
> To solve this problem, I've added a utility class in my local copy and delegate calls to ServiceLoader to this utility.
> The utility class itself calls ServiceLoader, if the class is available (Java 1.6) or uses com.googlecode.bspi.ServiceLoader (Java 1.5).
> So the application needs one new dependency (only in the case of Java 1.5).
> I've also changed the maven-compiler-plugin to generate Java 1.5 compatible byte code.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (OWB-582) Support for Java 1.5 (needed for WebSphere 6.1)

Posted by "Gerhard Petracek (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OWB-582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13079235#comment-13079235 ] 

Gerhard Petracek commented on OWB-582:
--------------------------------------

thx david for checking it with geronimo.
i'm basically ok with the workaround. however, i'm wondering a bit about the fix because DefaultImplementationLoaderService is configured in the default owb config. that would mean that the config approach of owb doesn't work in geronimo.

> Support for Java 1.5 (needed for WebSphere 6.1)
> -----------------------------------------------
>
>                 Key: OWB-582
>                 URL: https://issues.apache.org/jira/browse/OWB-582
>             Project: OpenWebBeans
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 1.1.0
>            Reporter: Udo Schnurpfeil
>            Assignee: Gerhard Petracek
>             Fix For: 1.1.1
>
>         Attachments: OWB-582.patch, OWB-582_maven_config.patch, OWB-582_pluggable_service_loader_and_java5_support.patch
>
>
> I would be nice, if OWB supports Java 1.5, e. g. to run with WebSphere 6.1.
> It can be implemented with low effort.
> There is one basic dependency to Java 1.6: java.util.ServiceLoader
> To solve this problem, I've added a utility class in my local copy and delegate calls to ServiceLoader to this utility.
> The utility class itself calls ServiceLoader, if the class is available (Java 1.6) or uses com.googlecode.bspi.ServiceLoader (Java 1.5).
> So the application needs one new dependency (only in the case of Java 1.5).
> I've also changed the maven-compiler-plugin to generate Java 1.5 compatible byte code.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (OWB-582) Support for Java 1.5 (needed for WebSphere 6.1)

Posted by "Udo Schnurpfeil (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OWB-582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13076204#comment-13076204 ] 

Udo Schnurpfeil commented on OWB-582:
-------------------------------------

looks good

> Support for Java 1.5 (needed for WebSphere 6.1)
> -----------------------------------------------
>
>                 Key: OWB-582
>                 URL: https://issues.apache.org/jira/browse/OWB-582
>             Project: OpenWebBeans
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 1.1.0
>            Reporter: Udo Schnurpfeil
>            Assignee: Gerhard Petracek
>         Attachments: OWB-582.patch, OWB-582_maven_config.patch, OWB-582_pluggable_service_loader_and_java5_support.patch
>
>
> I would be nice, if OWB supports Java 1.5, e. g. to run with WebSphere 6.1.
> It can be implemented with low effort.
> There is one basic dependency to Java 1.6: java.util.ServiceLoader
> To solve this problem, I've added a utility class in my local copy and delegate calls to ServiceLoader to this utility.
> The utility class itself calls ServiceLoader, if the class is available (Java 1.6) or uses com.googlecode.bspi.ServiceLoader (Java 1.5).
> So the application needs one new dependency (only in the case of Java 1.5).
> I've also changed the maven-compiler-plugin to generate Java 1.5 compatible byte code.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (OWB-582) Support for Java 1.5 (needed for WebSphere 6.1)

Posted by "Gerhard Petracek (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OWB-582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13070090#comment-13070090 ] 

Gerhard Petracek commented on OWB-582:
--------------------------------------

hi udo,

thx - i used some parts of you patch to create this one. furthermore, this patch implements a simple serviceloader as fallback for java 1.5 (it's based on the implementation available in myfaces codi). since it's pluggable, you could also provide an adapter to use any custom implementation. e.g. to use the implementation provided by myfaces codi:

public class ServiceLoaderAdapter implements ImplementationLoaderService
{
    public <T> List<T> load(Class<T> serviceType)
    {
        return ServiceProvider.loadServices(serviceType);
    }
}

to use this service-loader as replacement for the owb service-loader, you have to configure it in the openwebbeans.properties via:
configuration.ordinal=11
org.apache.webbeans.spi.ImplementationLoaderService=custom.ServiceLoaderAdapter

this patch doesn't support CdiTestContainerLoader because there is no dependency to owb-impl.

> Support for Java 1.5 (needed for WebSphere 6.1)
> -----------------------------------------------
>
>                 Key: OWB-582
>                 URL: https://issues.apache.org/jira/browse/OWB-582
>             Project: OpenWebBeans
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 1.1.0
>            Reporter: Udo Schnurpfeil
>            Assignee: Gerhard Petracek
>         Attachments: OWB-582.patch, OWB-582_pluggable_service_loader_and_java5_support.patch
>
>
> I would be nice, if OWB supports Java 1.5, e. g. to run with WebSphere 6.1.
> It can be implemented with low effort.
> There is one basic dependency to Java 1.6: java.util.ServiceLoader
> To solve this problem, I've added a utility class in my local copy and delegate calls to ServiceLoader to this utility.
> The utility class itself calls ServiceLoader, if the class is available (Java 1.6) or uses com.googlecode.bspi.ServiceLoader (Java 1.5).
> So the application needs one new dependency (only in the case of Java 1.5).
> I've also changed the maven-compiler-plugin to generate Java 1.5 compatible byte code.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (OWB-582) Support for Java 1.5 (needed for WebSphere 6.1)

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

Udo Schnurpfeil updated OWB-582:
--------------------------------

    Attachment: OWB-582.patch

> Support for Java 1.5 (needed for WebSphere 6.1)
> -----------------------------------------------
>
>                 Key: OWB-582
>                 URL: https://issues.apache.org/jira/browse/OWB-582
>             Project: OpenWebBeans
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 1.1.0
>            Reporter: Udo Schnurpfeil
>            Assignee: Gurkan Erdogdu
>         Attachments: OWB-582.patch
>
>
> I would be nice, if OWB supports Java 1.5, e. g. to run with WebSphere 6.1.
> It can be implemented with low effort.
> There is one basic dependency to Java 1.6: java.util.ServiceLoader
> To solve this problem, I've added a utility class in my local copy and delegate calls to ServiceLoader to this utility.
> The utility class itself calls ServiceLoader, if the class is available (Java 1.6) or uses com.googlecode.bspi.ServiceLoader (Java 1.5).
> So the application needs one new dependency (only in the case of Java 1.5).
> I've also changed the maven-compiler-plugin to generate Java 1.5 compatible byte code.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Assigned] (OWB-582) Support for Java 1.5 (needed for WebSphere 6.1)

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

Gerhard Petracek reassigned OWB-582:
------------------------------------

    Assignee: Gerhard Petracek  (was: Gurkan Erdogdu)

> Support for Java 1.5 (needed for WebSphere 6.1)
> -----------------------------------------------
>
>                 Key: OWB-582
>                 URL: https://issues.apache.org/jira/browse/OWB-582
>             Project: OpenWebBeans
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 1.1.0
>            Reporter: Udo Schnurpfeil
>            Assignee: Gerhard Petracek
>         Attachments: OWB-582.patch
>
>
> I would be nice, if OWB supports Java 1.5, e. g. to run with WebSphere 6.1.
> It can be implemented with low effort.
> There is one basic dependency to Java 1.6: java.util.ServiceLoader
> To solve this problem, I've added a utility class in my local copy and delegate calls to ServiceLoader to this utility.
> The utility class itself calls ServiceLoader, if the class is available (Java 1.6) or uses com.googlecode.bspi.ServiceLoader (Java 1.5).
> So the application needs one new dependency (only in the case of Java 1.5).
> I've also changed the maven-compiler-plugin to generate Java 1.5 compatible byte code.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (OWB-582) Support for Java 1.5 (needed for WebSphere 6.1)

Posted by "Gerhard Petracek (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OWB-582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13079292#comment-13079292 ] 

Gerhard Petracek commented on OWB-582:
--------------------------------------

sounds like it should be fixed in geronimo

> Support for Java 1.5 (needed for WebSphere 6.1)
> -----------------------------------------------
>
>                 Key: OWB-582
>                 URL: https://issues.apache.org/jira/browse/OWB-582
>             Project: OpenWebBeans
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 1.1.0
>            Reporter: Udo Schnurpfeil
>            Assignee: Gerhard Petracek
>             Fix For: 1.1.1
>
>         Attachments: OWB-582.patch, OWB-582_maven_config.patch, OWB-582_pluggable_service_loader_and_java5_support.patch
>
>
> I would be nice, if OWB supports Java 1.5, e. g. to run with WebSphere 6.1.
> It can be implemented with low effort.
> There is one basic dependency to Java 1.6: java.util.ServiceLoader
> To solve this problem, I've added a utility class in my local copy and delegate calls to ServiceLoader to this utility.
> The utility class itself calls ServiceLoader, if the class is available (Java 1.6) or uses com.googlecode.bspi.ServiceLoader (Java 1.5).
> So the application needs one new dependency (only in the case of Java 1.5).
> I've also changed the maven-compiler-plugin to generate Java 1.5 compatible byte code.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (OWB-582) Support for Java 1.5 (needed for WebSphere 6.1)

Posted by "Gerhard Petracek (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OWB-582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13079295#comment-13079295 ] 

Gerhard Petracek commented on OWB-582:
--------------------------------------

sounds like it should get fixed in geronimo 

> Support for Java 1.5 (needed for WebSphere 6.1)
> -----------------------------------------------
>
>                 Key: OWB-582
>                 URL: https://issues.apache.org/jira/browse/OWB-582
>             Project: OpenWebBeans
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 1.1.0
>            Reporter: Udo Schnurpfeil
>            Assignee: Gerhard Petracek
>             Fix For: 1.1.1
>
>         Attachments: OWB-582.patch, OWB-582_maven_config.patch, OWB-582_pluggable_service_loader_and_java5_support.patch
>
>
> I would be nice, if OWB supports Java 1.5, e. g. to run with WebSphere 6.1.
> It can be implemented with low effort.
> There is one basic dependency to Java 1.6: java.util.ServiceLoader
> To solve this problem, I've added a utility class in my local copy and delegate calls to ServiceLoader to this utility.
> The utility class itself calls ServiceLoader, if the class is available (Java 1.6) or uses com.googlecode.bspi.ServiceLoader (Java 1.5).
> So the application needs one new dependency (only in the case of Java 1.5).
> I've also changed the maven-compiler-plugin to generate Java 1.5 compatible byte code.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (OWB-582) Support for Java 1.5 (needed for WebSphere 6.1)

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

Gerhard Petracek updated OWB-582:
---------------------------------

    Comment: was deleted

(was: sounds like it should be fixed in geronimo)

> Support for Java 1.5 (needed for WebSphere 6.1)
> -----------------------------------------------
>
>                 Key: OWB-582
>                 URL: https://issues.apache.org/jira/browse/OWB-582
>             Project: OpenWebBeans
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 1.1.0
>            Reporter: Udo Schnurpfeil
>            Assignee: Gerhard Petracek
>             Fix For: 1.1.1
>
>         Attachments: OWB-582.patch, OWB-582_maven_config.patch, OWB-582_pluggable_service_loader_and_java5_support.patch
>
>
> I would be nice, if OWB supports Java 1.5, e. g. to run with WebSphere 6.1.
> It can be implemented with low effort.
> There is one basic dependency to Java 1.6: java.util.ServiceLoader
> To solve this problem, I've added a utility class in my local copy and delegate calls to ServiceLoader to this utility.
> The utility class itself calls ServiceLoader, if the class is available (Java 1.6) or uses com.googlecode.bspi.ServiceLoader (Java 1.5).
> So the application needs one new dependency (only in the case of Java 1.5).
> I've also changed the maven-compiler-plugin to generate Java 1.5 compatible byte code.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (OWB-582) Support for Java 1.5 (needed for WebSphere 6.1)

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

Gerhard Petracek resolved OWB-582.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.1.1

> Support for Java 1.5 (needed for WebSphere 6.1)
> -----------------------------------------------
>
>                 Key: OWB-582
>                 URL: https://issues.apache.org/jira/browse/OWB-582
>             Project: OpenWebBeans
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 1.1.0
>            Reporter: Udo Schnurpfeil
>            Assignee: Gerhard Petracek
>             Fix For: 1.1.1
>
>         Attachments: OWB-582.patch, OWB-582_maven_config.patch, OWB-582_pluggable_service_loader_and_java5_support.patch
>
>
> I would be nice, if OWB supports Java 1.5, e. g. to run with WebSphere 6.1.
> It can be implemented with low effort.
> There is one basic dependency to Java 1.6: java.util.ServiceLoader
> To solve this problem, I've added a utility class in my local copy and delegate calls to ServiceLoader to this utility.
> The utility class itself calls ServiceLoader, if the class is available (Java 1.6) or uses com.googlecode.bspi.ServiceLoader (Java 1.5).
> So the application needs one new dependency (only in the case of Java 1.5).
> I've also changed the maven-compiler-plugin to generate Java 1.5 compatible byte code.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira