Uploaded image for project: 'Fuse Tooling'
  1. Fuse Tooling
  2. FUSETOOLS-356

Blueprint project - Run as local CamelContext fails

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Minor Minor
    • 2.1.0
    • 2.0
    • Camel Editor
    • None

      To reproduce

      1. New project
      2. Fuse project
      3. Select the camel-blueprint archetype
      4. Create the project
      5. Right click the camel-context.xml file
      6. Run as Local CamelContext

      It fails

      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      Error occurred while running main from: org.apache.camel.spring.Main
      java.lang.ClassNotFoundException: org.apache.camel.spring.Main
      	at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
      	at org.apache.camel.maven.RunMojo$1.run(RunMojo.java:409)
      	at java.lang.Thread.run(Thread.java:680)
      *************************************
      

      We cannot run OSGi blueprint project using the maven camel:run plugin. We should probably disable that menu item in the right click menu.
      Or add some dialog box which explains this is not supported to run, if the end user click it.

            lheinema@redhat.com Lars Heinemann
            cibsen@redhat.com Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: