Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
-
None
Description
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