9.2 ClassNotFoundError When Creating a Proxy
Prev | 9. Known Issues | Next

## 9.2 `ClassNotFoundError` When Creating a Proxy

When creating proxies at runtime, there are circumstances where `ClassNotFoundErrors` can be generated. These errors happen because the proxy creating bundle does not have visibility into every type on the interface of the proxy. You can either put in import statements for all the relevant types or add use a service (with visibility of all pertinent types) to create the proxy. Please see this blog entry for more details.

Prev | Up | Next
9. Known Issues | Home | 9.3 Creating proxies with CGLIB for Package Protected Types