You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2017/09/03 09:31:02 UTC

[jira] [Commented] (CAMEL-11677) 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

    [ https://issues.apache.org/jira/browse/CAMEL-11677?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16151756#comment-16151756 ] 

Claus Ibsen commented on CAMEL-11677:
-------------------------------------

Also in the TypeConverter file do NOT use package name only, add a line for each FQN class name of the type converter classes. This is how it should be done.

> 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.1, 2.19.2
>            Reporter: Uladzimir Shelhunou
>            Priority: Minor
>             Fix For: 2.19.3
>
>
> 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/classes":
> !https://1.downloader.disk.yandex.ru/preview/ccc9ed4bfc32100f001fcba19eae46a29fa9b8b6edae5da75d44b3408076b902/inf/C-QlJpWF-rBzNn3nJbejokmWGYL0VDNzQA3zBqIjk2tezYr3j1PUmAW-VdrJ_NpZqkfglGtj_3LNU3F6JHSXJg%3D%3D?uid=0&filename=2017-08-18_17-30-45.png&disposition=inline&hash=&limit=0&content_type=image%2Fpng&tknv=v2&size=XXL&crop=0!
> But then in "void doLoadImplementationsInJar(PackageScanFilter test, String parent, List<String> entries, Set<Class<?>> classes)" there is a condition:
>  !https://1.downloader.disk.yandex.ru/preview/b6d67a981d7aea57e508daf15f2c50b212a3a34c6cc34df5efe640cf68334708/inf/C-QlJpWF-rBzNn3nJbejojGWqpbPH2SuVN-N57vCmXMNdvLr-BNHvK5QZTSRHzFp0qFDMsqZtqkVAMtlH9kyNA%3D%3D?uid=0&filename=2017-08-18_17-37-37.png&disposition=inline&hash=&limit=0&content_type=image%2Fpng&tknv=v2&size=XXL&crop=0!
> And because of "BOOT-INF/classes" nothing is added to classes set and exception is thrown.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)