camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Müller (JIRA) <j...@apache.org>
Subject [jira] [Assigned] (CAMEL-6273) camel-example-etl failed
Date Sun, 14 Apr 2013 21:30:15 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-6273?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Christian Müller reassigned CAMEL-6273:
---------------------------------------

    Assignee: Christian Müller
    
> camel-example-etl failed
> ------------------------
>
>                 Key: CAMEL-6273
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6273
>             Project: Camel
>          Issue Type: Bug
>          Components: examples
>    Affects Versions: 2.11.0
>            Reporter: Christian Müller
>            Assignee: Christian Müller
>             Fix For: 2.11.1, 2.12.0
>
>
> {noformat}
> cmueller$ mvn camel:run
> ...
> [ERROR] *************************************
> [ERROR] Error occurred while running main from: org.apache.camel.spring.Main
> [ERROR]
> java.lang.reflect.InvocationTargetException
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.camel.maven.RunMojo$1.run(RunMojo.java:457)
> 	at java.lang.Thread.run(Thread.java:680)
> Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'entityManagerFactory' defined in file [/Users/cmueller/workspaceRelease/camel/examples/camel-example-etl/target/classes/META-INF/spring/camel-context.xml]:
Cannot resolve reference to bean 'jpaAdapter' while setting bean property 'jpaVendorAdapter';
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'jpaAdapter' defined in file [/Users/cmueller/workspaceRelease/camel/examples/camel-example-etl/target/classes/META-INF/spring/camel-context.xml]:
Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException:
Could not instantiate bean class [org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter]:
Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/hibernate/ejb/HibernatePersistence
> 	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:329)
> 	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:107)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1360)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1118)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
> 	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
> 	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
> 	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
> 	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
> 	at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1105)
> 	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:915)
> 	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:472)
> 	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
> 	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
> 	at org.apache.camel.spring.Main.createDefaultApplicationContext(Main.java:186)
> 	at org.apache.camel.spring.Main.doStart(Main.java:140)
> 	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60)
> 	at org.apache.camel.main.MainSupport.run(MainSupport.java:148)
> 	at org.apache.camel.main.MainSupport.run(MainSupport.java:343)
> 	at org.apache.camel.spring.Main.main(Main.java:73)
> 	... 6 more
> Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'jpaAdapter' defined in file [/Users/cmueller/workspaceRelease/camel/examples/camel-example-etl/target/classes/META-INF/spring/camel-context.xml]:
Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException:
Could not instantiate bean class [org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter]:
Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/hibernate/ejb/HibernatePersistence
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:997)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:943)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
> 	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
> 	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
> 	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
> 	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
> 	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:323)
> 	... 26 more
> Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate
bean class [org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter]: Constructor threw
exception; nested exception is java.lang.NoClassDefFoundError: org/hibernate/ejb/HibernatePersistence
> 	at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:162)
> 	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:990)
> 	... 34 more
> Caused by: java.lang.NoClassDefFoundError: org/hibernate/ejb/HibernatePersistence
> 	at org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter.<init>(HibernateJpaVendorAdapter.java:57)
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
> 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> 	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> 	at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147)
> 	... 36 more
> Caused by: java.lang.ClassNotFoundException: org.hibernate.ejb.HibernatePersistence
> 	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)
> 	... 42 more
> [ERROR] *************************************
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message