tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Charles Moulliard (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (OPENEJB-1718) Package conflict with OSGI bundles openejb-core and openejb-client - org.apache.openejb.client
Date Wed, 07 Dec 2011 17:42:45 GMT
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

        

Mime
View raw message