Unable to create a camel-jpa route inside Servicemix
----------------------------------------------------

                 Key: SM-1876
                 URL: https://issues.apache.org/activemq/browse/SM-1876
             Project: ServiceMix
          Issue Type: Bug
          Components: servicemix-camel
         Environment: OS: Mac OS X 10.5.7 (9J3050)
Java: java version "1.6.0_13"
         Java(TM) SE Runtime Environment (build 1.6.0_13-b03-211)
         Java HotSpot(TM) 64-Bit Server VM (build 11.3-b02-83, mixed mode)
ServiceMix Version: FUSE ESB 4.1.0.2
            Reporter: Christian Mueller


It looks like, that it's not possible at the moment to deploy a camel-jpa route 
into ServiceMix and get it working. In the fuse forum, we discussed this 
problem for one month, but without a working solution: 

http://fusesource.com/forums/thread.jspa?messageID=3212&#3212


Today, I tried the new version of FUSE ESB 4.1.0.2, but without luck. I receive 
a "java.lang.NoClassDefFoundError: javax/persistence/EntityManagerFactory", 
even though the "geronimo-jpa_3.0_spec (1.1.1)" bundle is active and my bundle 
imports the "javax.persistence" package:

s...@root:osgi> Exception in thread "SpringOsgiExtenderThread-42" 
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'entityManagerFactory' defined in URL 
[bundle://120.0:0/META-INF/spring/bundle-context.xml]: Initialization of bean 
failed; nested exception is java.lang.NoClassDefFoundError: 
javax/persistence/EntityManagerFactory
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
        at java.security.AccessController.doPrivileged(Native Method)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
        at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)
        at 
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
        at 
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:68)
        at 
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:343)
        at 
org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
        at 
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:308)
        at 
org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:138)
        at java.lang.Thread.run(Thread.java:613)
Caused by: java.lang.NoClassDefFoundError: 
javax/persistence/EntityManagerFactory
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Class.java:2395)
        at java.lang.Class.getDeclaredMethods(Class.java:1763)
        at java.beans.Introspector$1.run(Introspector.java:1265)
        at java.security.AccessController.doPrivileged(Native Method)
        at 
java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:1263)
        at java.beans.Introspector.getTargetMethodInfo(Introspector.java:1129)
        at java.beans.Introspector.getBeanInfo(Introspector.java:387)
        at java.beans.Introspector.getBeanInfo(Introspector.java:159)
        at java.beans.Introspector.getBeanInfo(Introspector.java:220)
        at java.beans.Introspector.<init>(Introspector.java:368)
        at java.beans.Introspector.getBeanInfo(Introspector.java:159)
        at 
org.springframework.beans.CachedIntrospectionResults.<init>(CachedIntrospectionResults.java:220)
        at 
org.springframework.beans.CachedIntrospectionResults.forClass(CachedIntrospectionResults.java:144)
        at 
org.springframework.beans.BeanWrapperImpl.getCachedIntrospectionResults(BeanWrapperImpl.java:252)
        at 
org.springframework.beans.BeanWrapperImpl.getPropertyDescriptorInternal(BeanWrapperImpl.java:282)
        at 
org.springframework.beans.BeanWrapperImpl.isWritableProperty(BeanWrapperImpl.java:333)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1247)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
        ... 16 more

Christian

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to