I suppose I'm confused about how to load my TypeConverter.  I have a Spring
web-app running in tomcat (tried glassfish too), have an annotated class,
and have placed a TypeConverter in several locations, including
/META-INF/services/org/apache/camel, /WEB-INF, and /WEB-INF/classes. 
However, when Camel loads debug shows only the standard TypeConverters being
loaded.  Any thoughts on what I could be doing wrong?  I would think I
should at least see my class being loaded/referenced?

Thanks for any insight!
-J

-----------------------------------------
1) The TypeConverter file has just one line which is the package of my
class, com.me.converters

2) My converter declaration:
@Converter
public final class MyBeanConverter
.
.
@Converter
public static MyEventBean
toMyEventBean(org.apache.camel.component.file.GenericFile genericFile,
Exchange exchange) throws IllegalArgumentExceptions,
invocationTargetException, IllegalAccessException

the debug when I run my app:
.
.
SpringCamelContext - Set the application context classloader to:
WebappClassLoader (delegate=true; repositories=WEB-INF/classes/)
DefaultTypeConverter - Loading type converters ...
AnnotationTypeConverterLoader - Loading file
META-ING/services/org/apache/camel/TypeConverter to retrieve list of
packages, from url:
jar:file:/c:/...../activemq-camel-5.5.0.jar!/META-INF/services/org.../camel/TypeConverter
AnnotationTypeConverterLoader - Loading file
META-ING/services/org/apache/camel/TypeConverter to retrieve list of
packages, from url:
jar:file:/c:/...../camel-context-2.7.2.jar!/META-INF/services/org.../camel/TypeConverter
AnnotationTypeConverterLoader - Loading file
META-ING/services/org/apache/camel/TypeConverter to retrieve list of
packages, from url:
jar:file:/c:/...../camel-core-2.7.2.jar!/META-INF/services/org.../camel/TypeConverter
AnnotationTypeConverterLoader - Loading file
META-ING/services/org/apache/camel/TypeConverter to retrieve list of
packages, from url:
jar:file:/c:/...../drools-camel-5.2.0.Final.jar!/META-INF/services/org.../camel/TypeConverter
DefaultPackageScanClassResolver - Searching for annotations of
org.apache.camel.Converter in packages:[...my package is not listed here..]
DefaultPackageScanClassResolver - Found: [class ....my class not listed
here]
AnnotationTypeConverterLoader - Found 6 packages with 16 @Converter classes
to load
DefaultTypeConverter - Loading type convetrers done
DefaultTypeConverter - Loaded 152 type converters in .719 seconds
.
.
Exception Caused by: No type convetrer available to convert type
org.apache.camel.component.file.GenericFile to the required type:
com.me.MyEventBean with value GenericFile

--
View this message in context: 
http://camel.465427.n5.nabble.com/TypeConverter-not-being-loaded-tp4735055p4735055.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to