Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-2228

Exceptions occurred when deploying "camel-example-spring-javaconfig" into FUSE ESB Server.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.1.0
    • examples
    • None
    • Patch Available

    Description

      1. Installed apache-camel 2.0.0-psc-01-00M2.
      2. Applied the attached patch on the samples.
      3. Compile the sample (camel-example-spring-javaconfig) using "mvn compile" command
      4. Install the camel sample into repository using "mvn install" command
      5. Started the servicemix server
      6. Installed below bundles into servicemix
      osgi:install mvn:org.apache.activemq/activemq-camel/5.3.1.0M1-fuse
      features:install camel-spring-javaconfig
      osgi:install mvn:org.apache.camel/camel-example-spring-javaconfig/2.0.0-psc-01-00M2
      7. Start the bundles and observed that below exception is shown in the karaf console.

      Stack Trace
      16:52:55,593 | INFO | l Console Thread | ultOsgiApplicationContextCreator | ultOsgiApplicationContextCreator 67 | Discovered configurations

      {osgibundle:/META-INF/spring/*.xml}

      in bundle [camel-example-spring-javaconfig (org.apache.camel.camel-example-spring-javaconfig)]
      16:52:55,593 | INFO | xtenderThread-59 | OsgiBundleXmlApplicationContext | pport.AbstractApplicationContext 411 | Refreshing org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext@40b187: display name [OsgiBundleXmlApplicationContext(bundle=org.apache.camel.camel-example-spring-javaconfig, config=osgibundle:/META-INF/spring/*.xml)]; startup date [Wed Nov 25 16:52:55 IST 2009]; root of context hierarchy
      16:52:55,593 | INFO | xtenderThread-59 | OsgiBundleXmlApplicationContext | ractOsgiBundleApplicationContext 359 | Unpublishing application context OSGi service for bundle camel-example-spring-javaconfig (org.apache.camel.camel-example-spring-javaconfig)
      16:52:55,593 | INFO | xtenderThread-59 | XmlBeanDefinitionReader | tory.xml.XmlBeanDefinitionReader 323 | Loading XML bean definitions from URL [bundleentry://192.fwk19147537/META-INF/spring/camel-context.xml]
      16:52:55,593 | INFO | xtenderThread-59 | OsgiBundleXmlApplicationContext | pport.AbstractApplicationContext 426 | Bean factory for application context [org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext@40b187]: org.springframework.beans.factory.support.DefaultListableBeanFactory@1262c96
      16:52:55,608 | ERROR | xtenderThread-59 | ContextLoaderListener | BundleApplicationContextListener 50 | Application context refresh failed (OsgiBundleXmlApplicationContext(bundle=org.apache.camel.camel-example-spring-javaconfig, config=osgibundle:/META-INF/spring/*.xml))
      java.lang.RuntimeException: java.io.FileNotFoundException: Class file [org/springframework/config/java/support/ConfigurationSupport.class] not found
      at org.springframework.config.java.Util.getClassAsStream(Util.java:158)
      at org.springframework.config.java.internal.parsing.asm.AsmUtils.newClassReader(AsmUtils.java:97)
      at org.springframework.config.java.internal.parsing.asm.ConfigurationClassVisitor.visitSuperType(ConfigurationClassVisitor.java:98)
      at org.springframework.config.java.internal.parsing.asm.ConfigurationClassVisitor.visit(ConfigurationClassVisitor.java:81)
      at org.springframework.asm.ClassReader.accept(Unknown Source)
      at org.springframework.asm.ClassReader.accept(Unknown Source)
      at org.springframework.config.java.internal.parsing.asm.ConfigurationClassVisitor.visitSuperType(ConfigurationClassVisitor.java:99)
      at org.springframework.config.java.internal.parsing.asm.ConfigurationClassVisitor.visit(ConfigurationClassVisitor.java:81)
      at org.springframework.asm.ClassReader.accept(Unknown Source)
      at org.springframework.asm.ClassReader.accept(Unknown Source)
      at org.springframework.config.java.internal.parsing.asm.ConfigurationClassVisitor.visitSuperType(ConfigurationClassVisitor.java:99)
      at org.springframework.config.java.internal.parsing.asm.ConfigurationClassVisitor.visit(ConfigurationClassVisitor.java:81)
      at org.springframework.asm.ClassReader.accept(Unknown Source)
      at org.springframework.asm.ClassReader.accept(Unknown Source)
      at org.springframework.config.java.internal.parsing.asm.AsmConfigurationParser.parse(AsmConfigurationParser.java:84)
      at org.springframework.config.java.internal.parsing.asm.AsmConfigurationParser.parse(AsmConfigurationParser.java:77)
      at org.springframework.config.java.internal.factory.support.AsmJavaConfigBeanDefinitionReader.loadBeanDefinitions(AsmJavaConfigBeanDefinitionReader.java:73)
      at org.springframework.config.java.internal.process.InternalConfigurationPostProcessor.parseAnyConfigurationClasses(InternalConfigurationPostProcessor.java:86)
      at org.springframework.config.java.internal.process.InternalConfigurationPostProcessor.postProcessBeanFactory(InternalConfigurationPostProcessor.java:64)
      at org.springframework.config.java.process.ConfigurationPostProcessor.postProcessBeanFactory(ConfigurationPostProcessor.java:50)
      at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.invokeBeanFactoryPostProcessors(AbstractDelegatedExecutionApplicationContext.java:479)
      at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.invokeBeanFactoryPostProcessors(AbstractDelegatedExecutionApplicationContext.java:459)
      at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.invokeBeanFactoryPostProcessors(AbstractDelegatedExecutionApplicationContext.java:395)
      at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$3.run(AbstractDelegatedExecutionApplicationContext.java:281)
      at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
      at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.startRefresh(AbstractDelegatedExecutionApplicationContext.java:247)
      at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:222)
      at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:175)
      at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175)
      at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:718)
      at java.lang.Thread.run(Thread.java:619)

      Attachments

        1. MRsamples.patch
          215 kB
          Sailaja

        Activity

          People

            njiang Willem Jiang
            spindipr Sailaja
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: