You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Jim Newsham (JIRA)" <ji...@apache.org> on 2011/05/28 21:52:47 UTC

[jira] [Commented] (CAMEL-4026) Camel does not work out of the box in Java webstart, due classpath scanning is not possible

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

Jim Newsham commented on CAMEL-4026:
------------------------------------

I guess whether or not it's a regression is a matter of perspective.  From my perspective, the camel context throws an exception when starting up in 2.7.1, whereas it started up fine with no exception in 2.5.0, and I would call that a regression.  Regardless of what you call it, Camel can't start up in webstart, and that's a problem for us. 

> Camel does not work out of the box in Java webstart, due classpath scanning is not possible
> -------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-4026
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4026
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.7.1
>         Environment: Windows 7
>            Reporter: Jim Newsham
>            Priority: Minor
>              Labels: webstart
>
> This is a regression.  Worked fine for us in Camel 2.5.0, fails in Camel 2.7.1.  
> Easy to reproduce.  Run the following code in a webstart-deployed application:
> CamelContext context = new DefaultCamelContext();
> context.getTypeConverterRegistry(); 
> Which produces the following exception:
> 2011-05-26 16:52:57,550 [javawsApplicationMain] ERROR test.TestCamelContext - Failed
> org.apache.camel.RuntimeCamelException: org.apache.camel.TypeConverterLoaderException: Failed to load type converters because of: Cannot find any type converter classes from the following packages: [org.apache.camel.component.file, org.apache.camel.component.bean, org.apache.camel.converter]
>     at org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1139)
>     at org.apache.camel.impl.DefaultCamelContext.getTypeConverter(DefaultCamelContext.java:986)
>     at org.apache.camel.impl.DefaultCamelContext.getTypeConverterRegistry(DefaultCamelContext.java:1001)
>     at test.TestCamelContext.test(TestCamelContext.java:54)
>     at test.TestCamelContext.main(TestCamelContext.java:48)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>     at java.lang.reflect.Method.invoke(Unknown Source)
>     at com.sun.javaws.Launcher.executeApplication(Unknown Source)
>     at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
>     at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
>     at com.sun.javaws.Launcher.run(Unknown Source)
>     at java.lang.Thread.run(Unknown Source)
> Caused by: org.apache.camel.TypeConverterLoaderException: Failed to load type converters because of: Cannot find any type converter classes from the following packages: [org.apache.camel.component.file, org.apache.camel.component.bean, org.apache.camel.converter]
>     at org.apache.camel.impl.converter.AnnotationTypeConverterLoader.load(AnnotationTypeConverterLoader.java:79)
>     at org.apache.camel.impl.converter.BaseTypeConverterRegistry.loadTypeConverters(BaseTypeConverterRegistry.java:395)
>     at org.apache.camel.impl.converter.DefaultTypeConverter.doStart(DefaultTypeConverter.java:41)
>     at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:67)
>     at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:54)
>     at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:60)
>     at org.apache.camel.impl.DefaultCamelContext.startServices(DefaultCamelContext.java:1613)
>     at org.apache.camel.impl.DefaultCamelContext.addService(DefaultCamelContext.java:899)
>     at org.apache.camel.impl.DefaultCamelContext.getTypeConverter(DefaultCamelContext.java:984)
>     ... 12 more

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira