You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Charles Moulliard (Created) (JIRA)" <ji...@apache.org> on 2011/12/07 18:42:45 UTC

[jira] [Created] (OPENEJB-1718) Package conflict with OSGI bundles openejb-core and openejb-client - org.apache.openejb.client

Package conflict with OSGI bundles openejb-core and openejb-client - org.apache.openejb.client
----------------------------------------------------------------------------------------------

                 Key: OPENEJB-1718
                 URL: https://issues.apache.org/jira/browse/OPENEJB-1718
             Project: OpenEJB
          Issue Type: Bug
            Reporter: Charles Moulliard


The bundles openejb-core and openejb-client exports the same package org.apache.openejb.client. When a third party (using Dynamic-Import) tries to find the package it loads it from openejb-core and not from openejb-client

Error :

2011-12-07 18:19:05,888 | ERROR | ejb              | TimerConsumer                    | ache.camel.processor.CamelLogger  232 | 188 - org.apache.camel.camel-core - 2.8.3 | Error processing exchange. Exchange[Message: OpenEJB-Remote]. Caused by: [java.lang.IllegalArgumentException - interface org.apache.openejb.client.EJBObjectProxy is not visible from class loader]
java.lang.IllegalArgumentException: interface org.apache.openejb.client.EJBObjectProxy is not visible from class loader

We can solve temporarily the problem by adding this in the camel test route 

            org.apache.openejb.client;bundle-version="[4.0,5.0)",
            org.apache.openejb.core;bundle-version="[4.0,5.0)"

and add DynamicImport-Package in camel-core

but that creates dependencies with camel projects

Solution : Rename the package org.apache.openejb.client in openejb-core

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (OPENEJB-1718) Package conflict with OSGI bundles openejb-core and openejb-client - org.apache.openejb.client

Posted by "Romain Manni-Bucau (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENEJB-1718?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13174713#comment-13174713 ] 

Romain Manni-Bucau commented on OPENEJB-1718:
---------------------------------------------

rev1222119: using openejb-core-legacy-client to keep compatibility with old code
                
> Package conflict with OSGI bundles openejb-core and openejb-client - org.apache.openejb.client
> ----------------------------------------------------------------------------------------------
>
>                 Key: OPENEJB-1718
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1718
>             Project: OpenEJB
>          Issue Type: Bug
>            Reporter: Charles Moulliard
>
> The bundles openejb-core and openejb-client exports the same package org.apache.openejb.client. When a third party (using Dynamic-Import) tries to find the package it loads it from openejb-core and not from openejb-client
> Error :
> 2011-12-07 18:19:05,888 | ERROR | ejb              | TimerConsumer                    | ache.camel.processor.CamelLogger  232 | 188 - org.apache.camel.camel-core - 2.8.3 | Error processing exchange. Exchange[Message: OpenEJB-Remote]. Caused by: [java.lang.IllegalArgumentException - interface org.apache.openejb.client.EJBObjectProxy is not visible from class loader]
> java.lang.IllegalArgumentException: interface org.apache.openejb.client.EJBObjectProxy is not visible from class loader
> We can solve temporarily the problem by adding this in the camel test route 
>             org.apache.openejb.client;bundle-version="[4.0,5.0)",
>             org.apache.openejb.core;bundle-version="[4.0,5.0)"
> and add DynamicImport-Package in camel-core
> but that creates dependencies with camel projects
> Solution : Rename the package org.apache.openejb.client in openejb-core

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira