Uladzimir Shelhunou created CAMEL-11677:
-------------------------------------------
Summary: TypeConverterLoaderException: Cannot find any type
converter classes from the following packages:
com.abc.storage.service.converter if application is packaged using
spring-boot-maven-plugin
Key: CAMEL-11677
URL: https://issues.apache.org/jira/browse/CAMEL-11677
Project: Camel
Issue Type: Bug
Components: camel-core
Affects Versions: 2.19.2
Reporter: Uladzimir Shelhunou
Hi,
I am trying to migrate my Camel + Spring application to Camel + Spring Boot.
But my application does not start because of TypeConverterLoaderException.
I tried to debug DefaultPackageScanClassResolver and saw that classes that are
loaded from the package that I specified in
META-INF/services/org/apache/camel/TypeConverter have prefix BOOT-INF:
!https://yadi.sk/i/RfE5uC-J3M8ahd!
But then in "void doLoadImplementationsInJar(PackageScanFilter test, String
parent, List<String> entries, Set<Class<?>> classes)" there is a condition:
!https://yadi.sk/i/bQ-kbMgy3M8b6h!
And because of "BOOT-INF" nothing is added to classes set and exception is
thrown.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)