Luigi De Masi created CAMEL-23186:
-------------------------------------
Summary: [camel-jbang-mcp] CatalogLoader.loadCatalog() fails with
NoClassDefFoundError for versioned catalogs
Key: CAMEL-23186
URL: https://issues.apache.org/jira/browse/CAMEL-23186
Project: Camel
Issue Type: Bug
Components: camel-jbang
Reporter: Luigi De Masi
Assignee: Luigi De Masi
Calling any catalog MCP tool with a camelVersion different from the built-in
version
fails with:
{code}
NoClassDefFoundError:
org/apache/camel/catalog/impl/AbstractCachingCamelCatalog
{code}
This happens because CatalogLoader.loadCatalog() downloads
camel-catalog-<version>.jar but NOT camel-core-catalog-<version>.jar.
DefaultCamelCatalog (in camel-catalog) extends AbstractCachingCamelCatalog (in
camel-core-catalog). The classloader has null parent, so it cannot resolve the
parent class from anywhere.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)