2 Replies Latest reply on Nov 10, 2009 7:33 AM by Eugene Kravchenko

    esb 4 <- spring-orm <- jpa

    Eugene Kravchenko Newbie

      Hello, Friends.

       

      Could you please point me to how that stuff make work.

       

      Ive tried to:

      pax-create-bundle

      import org.springframework.orm and jpa specs.

       

      In servicemix(fuse) 4 installed feature: camel-jpa which installed open-jpa and jpa specs(geronimo).

       

      In a single file in META-INF/spring/context.xml

       

       

      Result:

      Exception in thread "SpringOsgiExtenderThread-72" org.springframework.beans.factory.BeanCreationException:

      Error creating bean with name 'jpaVendorAdapter' defined in URL bundle://171.0:0/META-INF/spring/context.xml:

      Instantiation of bean failed;

      nested exception is java.lang.NoClassDefFoundError:

      javax/persistence/spi/PersistenceProvider

              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowire

      CapableBeanFactory.java:883)