8.3 Creating proxies with CGLIB for Package Protected Types
Prev | 8. Known Issues | Next

## 8.3 Creating proxies with CGLIB for Package Protected Types

In traditional Java EE applications user types are loaded by the same `ClassLoader` as CGLIB. This allows CGLIB to proxy package-protected types. In OSGi environments, user types and CGLIB will most likely be packaged in separate bundles. This results in the user types and CGLIB being loaded by different `ClassLoaders`. This prevents CGLIB from proxying any package-protected types.

The workaround for this issue is to make all types that require proxying public.

Prev | Up | Next
8.2 ClassNotFoundError When Creating a Proxy | Home | 8.4 Virgo Jetty Server Restrictions