1 Reply Latest reply on Feb 16, 2012 11:10 AM by dako ak

    Unable to install EclipseLink 2.3.x

    dako ak Newbie

      Hi all,

       

      has somebody already installed EclipseLink 2.3.x on FuseESB 4.4.1?

      Which eclipseLink bundles must be installed? A feature.xml would be nice.

       

      best regards

       

      Edited by: akunze on Feb 13, 2012 12:17 PM

        • 1. Re: Unable to install EclipseLink 2.3.x
          dako ak Newbie

          Hi all,

           

          for eclipseLink 2.3 I have to install the following bundles (eclipselink and spring).

          One of the seldom existing maven repos for eclipseLink: http://linorg.usp.br/eclipse/rt/eclipselink/maven.repo

           

          osgi:install -s mvn:org.eclipse.persistence/javax.persistence/2.0.3

          osgi:install -s mvn:org.eclipse.persistence/org.eclipse.persistence.core/2.3.0

          osgi:install -s mvn:org.eclipse.persistence/org.eclipse.persistence.asm/2.3.0

          osgi:install -s mvn:org.eclipse.persistence/org.eclipse.persistence.antlr/2.3.0

          osgi:install -s mvn:org.eclipse.persistence/org.eclipse.persistence.jpa/2.3.0

          osgi:install -s mvn:org.eclipse.persistence/org.eclipse.persistence.osgi/2.3.0

           

          osgi:install -s mvn:org.springframework/spring-jdbc/3.0.5.RELEASE

          osgi:install -s mvn:org.springframework/spring-orm/3.0.5.RELEASE

          osgi:install -s mvn:org.springframework/spring-tx/3.0.5.RELEASE

           

          Unfortunately I get the following error log if I try to create the EntityManager:

           

          Caused by: java.lang.NoClassDefFoundError: Could not initialize class $Proxy96

               at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)[:1.6.0_12]

               at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)[:1.6.0_12]

               at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)[:1.6.0_12]

               at java.lang.reflect.Constructor.newInstance(Constructor.java:513)[:1.6.0_12]

               at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:588)[:1.6.0_12]

               at org.springframework.orm.jpa.ExtendedEntityManagerCreator.createProxy(ExtendedEntityManagerCreator.java:264)[242:org.springframework.orm:3.0.5.RELEASE]

               at org.springframework.orm.jpa.ExtendedEntityManagerCreator.createProxy(ExtendedEntityManagerCreator.java:229)[242:org.springframework.orm:3.0.5.RELEASE]

               at org.springframework.orm.jpa.ExtendedEntityManagerCreator.createApplicationManagedEntityManager(ExtendedEntityManagerCreator.java:110)[242:org.springframework.orm:3.0.5.RELEASE]

               at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.invokeProxyMethod(AbstractEntityManagerFactoryBean.java:426)[242:org.springframework.orm:3.0.5.RELEASE]

               at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean$ManagedEntityManagerFactoryInvocationHandler.invoke(AbstractEntityManagerFactoryBean.java:485)[242:org.springframework.orm:3.0.5.RELEASE]

               at $Proxy95.createEntityManager(Unknown Source)

               at de.dakosy.pcs.ehge.edi.prototype.persist.PersistService.saveErrorResponseToDB(PersistService.java:35)[266:business-object-persist:1.0.0]

               at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.6.0_12]

               at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[:1.6.0_12]

               at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_12]

               at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_12]

               at org.apache.camel.component.bean.MethodInfo.invoke(MethodInfo.java:329)

               at org.apache.camel.component.bean.MethodInfo$1.proceed(MethodInfo.java:231)

               at org.apache.camel.component.bean.BeanProcessor.process(BeanProcessor.java:169)

           

          Edited by: akunze on Feb 16, 2012 4:10 PM