Jahia in English > Error when trying...

0 (0 Good)
0 (0 Bad)

Error when trying to declare EntityManagerFactory in spring in an Jahia OSGI module

by  rujan »  2015/09/11 17:44

I working on an Jahia OSGI bundle (Digital Factory 7.1)

I have a database to interact with, and for this purpose I use Spring Data JPA. So when I declare my EntityManagerFactory in my Spring applicationContext.xml file, il have the following error at start of the Jahia webapp :

    2015-09-04 19:28:55,664: ERROR [JahiaOsgiBundleApplicationContextListener] - Application context refresh failed for bundle XXXX (XXXX) org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in URL [bundle://129.38:0/META-INF/spring/applicationContext.xml]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: Unable to resolve persistence unit root URL
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1514)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:191)
        at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1119)
        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:924)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
        at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.access$301(AbstractDelegatedExecutionApplicationContext.java:60)
        at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext$1.run(AbstractDelegatedExecutionApplicationContext.java:168)
        at org.eclipse.gemini.blueprint.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
        at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.normalRefresh(AbstractDelegatedExecutionApplicationContext.java:164)
        at org.jahia.bundles.blueprint.extender.config.JahiaOsgiBundleXmlApplicationContext$JahiaOsgiApplicationContextExecutor.refresh(JahiaOsgiBundleXmlApplicationContext.java:110)
        at org.jahia.bundles.blueprint.extender.config.JahiaOsgiBundleXmlApplicationContext.refresh(JahiaOsgiBundleXmlApplicationContext.java:99)
        at org.eclipse.gemini.blueprint.extender.internal.activator.LifecycleManager$1.run(LifecycleManager.java:211)
        at org.jahia.bundles.blueprint.extender.config.SynchronousExecutor.execute(SynchronousExecutor.java:82)
        at org.eclipse.gemini.blueprint.extender.internal.activator.LifecycleManager.maybeCreateApplicationContextFor(LifecycleManager.java:270)
        at org.eclipse.gemini.blueprint.extender.internal.activator.ContextLoaderListener$ContextBundleListener.handleEvent(ContextLoaderListener.java:223)
        at org.eclipse.gemini.blueprint.extender.internal.activator.ContextLoaderListener$BaseListener.bundleChanged(ContextLoaderListener.java:137)
        at org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:913)
        at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:834)
        at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:516)
        at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4531)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:2169)
        at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1368)
        at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
        at java.lang.Thread.run(Thread.java:745) 

Caused by: javax.persistence.PersistenceException: Unable to resolve persistence unit root URL
        at org.springframework.orm.jpa.persistenceunit.DefaultPersistenceUnitManager.determineDefaultPersistenceUnitRootUrl(DefaultPersistenceUnitManager.java:508)
        at org.springframework.orm.jpa.persistenceunit.DefaultPersistenceUnitManager.preparePersistenceUnitInfos(DefaultPersistenceUnitManager.java:371)
        at org.springframework.orm.jpa.persistenceunit.DefaultPersistenceUnitManager.afterPropertiesSet(DefaultPersistenceUnitManager.java:352)
        at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:258)
        at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:310)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1573)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1511)
        ... 28 more 

Caused by: java.io.FileNotFoundException: OSGi resource[classpath:|bnd.id=129|bnd.sym=XXXX] cannot be resolved to URL because it does not exist
        at org.eclipse.gemini.blueprint.io.OsgiBundleResource.getURL(OsgiBundleResource.java:229)
        at org.springframework.orm.jpa.persistenceunit.DefaultPersistenceUnitManager.determineDefaultPersistenceUnitRootUrl(DefaultPersistenceUnitManager.java:505)
        ... 34 more

Here's my applicationContext.xml file :

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
    xmlns:jpa="http://www.springframework.org/schema/data/jpa" xmlns:tx="http://www.springframework.org/schema/tx"
    xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
                        http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
                        http://www.springframework.org/schema/data/jpa http://www.springframework.org/schema/data/jpa/spring-jpa-1.0.xsd
                        http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd">


    <!-- Configure the data source bean -->
    <bean id="dataSource"
        class="org.springframework.jdbc.datasource.DriverManagerDataSource">
        <property name="driverClassName" value="com.mysql.jdbc.Driver" />
        <property name="url" value="jdbc:mysql://localhost:3306/test_db" />
        <property name="username" value="root" />
        <property name="password" value="root" />
    </bean>


    <!-- Configure the entity manager factory bean -->
    <bean id="entityManagerFactory"
        class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
        <property name="dataSource" ref="dataSource" />
        <property name="jpaVendorAdapter">
            <bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter" />
        </property>
        <property name="jpaProperties">
            <props>
                <prop key="hibernate.dialect">org.hibernate.dialect.MySQL5InnoDBDialect</prop>
            </props>
        </property>
        <property name="packagesToScan" value="com.myapp.entity" />
        <property name="loadTimeWeaver">
            <bean
                class="org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver" />
        </property>
    </bean>

    <!-- Configure the transaction manager bean -->
    <bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager">
        <property name="entityManagerFactory" ref="entityManagerFactory" />
    </bean>

    <!-- Enable annotation driven transaction management -->
    <tx:annotation-driven />

    <!-- Configure Spring Data JPA and set the base package of the repository 
        interfaces -->
    <jpa:repositories base-package="com.myapp.repository" />
</beans>

I don't use a persistence.xml since I declare my EntityManagerFactory as LocalContainerEntityManagerFactoryBean, but all examples I found online with OSGI were with persistence.xml

 

Thanks in advance for your help.

Rudy

 

Edit :

I heard that OSGI with JPA only works with persistence.xml, so I adapted my code to that :

I declared a jndi resource on the /jahia/tomcat/webapps/ROOT/META-INF/context.xml next to the jdbc/jahia one

Then add the persistence.xml in the META-INF folder of my module :

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<persistence version="2.0"
    xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
                                 http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/persistence">

    <persistence-unit name="myPersistenceUnit"
        transaction-type="RESOURCE_LOCAL">
        <provider>org.hibernate.ejb.HibernatePersistence</provider>
        <non-jta-data-source>java:comp/env/jdbc/myJndiResource</non-jta-data-source>
        <class>com.myapp.entity.MyEntity</class>
        <exclude-unlisted-classes>true</exclude-unlisted-classes>
    </persistence-unit>

</persistence>

Then I changed my EntityManagerFactory that way :

    <bean id="myDataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
        <property name="jndiName" value="java:comp/env/jdbc/myJndiResource" />
    </bean>

    <!-- Configure the entity manager factory bean -->
    <bean id="entityManagerFactory"
        class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
        <property name="dataSource" ref="myDataSource" />
        <property name="persistenceUnitName" value="myPersistenceUnit" />
        <property name="persistenceXmlLocation" value="classpath:META-INF/persistence.xml" />
        <property name="jpaDialect">
            <bean class="org.springframework.orm.jpa.vendor.HibernateJpaDialect" />
        </property>
        <property name="jpaPropertyMap">
            <map>
                <entry key="hibernate.dialect" value="org.hibernate.dialect.MySQL5InnoDBDialect" />
                <entry key="hibernate.hbm2ddl.auto" value="" />
                <entry key="hibernate.show_sql" value="false" />
            </map>
        </property>
    </bean>

And finally I updated my pom.xml to add several manifest entries to the maven bundle plugin :

<Import-Package>javax.persistence;version="1.1.0";jpa="2.0",*</Import-Package>

<Meta-Persistence>META-INF/persistence.xml</Meta-Persistence>

I still have an error, but quite different :

2015-09-25 11:25:59,913: ERROR [JahiaOsgiBundleApplicationContextListener] - Application context refresh failed for bundle XXXX (XXXX)
org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from OSGi resource[classpath:org/jahia/defaults/config/spring/modules-applicationcontext-registry.xml|bnd.id
=129|bnd.sym=XXXX]; nested exception is java.io.FileNotFoundException: OSGi resource[classpath:org/jahia/defaults/config/spring/modules-applicationcontext-registry.xml|bnd.id=129|bnd.sym
=XXXX] cannot be resolved to URL because it does not exist
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:174)
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:209)
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180)
        at org.eclipse.gemini.blueprint.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:170)
        at org.eclipse.gemini.blueprint.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:140)
        at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)
        at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:539)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:451)
        at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.access$301(AbstractDelegatedExecutionApplicationContext.java:60)
        at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext$1.run(AbstractDelegatedExecutionApplicationContext.java:168)
        at org.eclipse.gemini.blueprint.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
        at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.normalRefresh(AbstractDelegatedExecutionApplicationContext.java:164)
        at org.jahia.bundles.blueprint.extender.config.JahiaOsgiBundleXmlApplicationContext$JahiaOsgiApplicationContextExecutor.refresh(JahiaOsgiBundleXmlApplicationContext.java:110)
        at org.jahia.bundles.blueprint.extender.config.JahiaOsgiBundleXmlApplicationContext.refresh(JahiaOsgiBundleXmlApplicationContext.java:99)
        at org.eclipse.gemini.blueprint.extender.internal.activator.LifecycleManager$1.run(LifecycleManager.java:211)
        at org.jahia.bundles.blueprint.extender.config.SynchronousExecutor.execute(SynchronousExecutor.java:82)
        at org.eclipse.gemini.blueprint.extender.internal.activator.LifecycleManager.maybeCreateApplicationContextFor(LifecycleManager.java:270)
        at org.eclipse.gemini.blueprint.extender.internal.activator.ContextLoaderListener$ContextBundleListener.handleEvent(ContextLoaderListener.java:223)
        at org.eclipse.gemini.blueprint.extender.internal.activator.ContextLoaderListener$BaseListener.bundleChanged(ContextLoaderListener.java:137)
        at org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:913)
        at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:834)
        at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:516)
        at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4531)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:2169)
        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:977)
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.restartBundlesAfterUpdate(DirectoryWatcher.java:1193)
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:513)
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:294)
Caused by: java.io.FileNotFoundException: OSGi resource[classpath:org/jahia/defaults/config/spring/modules-applicationcontext-registry.xml|bnd.id=129|bnd.sym=XXXX] cannot be resolved to
URL because it does not exist
        at org.eclipse.gemini.blueprint.io.OsgiBundleResource.getURL(OsgiBundleResource.java:229)
        at org.eclipse.gemini.blueprint.io.OsgiBundleResource.getInputStream(OsgiBundleResource.java:181)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:329)
        ... 29 more
2015-09-25 11:25:59,929: ERROR [JahiaOsgiBundleApplicationContextListener] - Cannot start spring context for bundle XXXX (XXXX)
2015-09-25 11:25:59,929: WARN  [ContextLoaderListener$ContextBundleListener] - Got exception while handling event org.osgi.framework.BundleEvent[source=XXXX [129]]
org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from OSGi resource[classpath:org/jahia/defaults/config/spring/modules-applicationcontext-registry.xml|bnd.id
=129|bnd.sym=XXXX]; nested exception is java.io.FileNotFoundException: OSGi resource[classpath:org/jahia/defaults/config/spring/modules-applicationcontext-registry.xml|bnd.id=129|bnd.sym
=XXXX] cannot be resolved to URL because it does not exist
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:174)
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:209)
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180)
        at org.eclipse.gemini.blueprint.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:170)
        at org.eclipse.gemini.blueprint.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:140)
        at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)
        at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:539)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:451)
        at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.access$301(AbstractDelegatedExecutionApplicationContext.java:60)
        at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext$1.run(AbstractDelegatedExecutionApplicationContext.java:168)
        at org.eclipse.gemini.blueprint.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
        at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.normalRefresh(AbstractDelegatedExecutionApplicationContext.java:164)
        at org.jahia.bundles.blueprint.extender.config.JahiaOsgiBundleXmlApplicationContext$JahiaOsgiApplicationContextExecutor.refresh(JahiaOsgiBundleXmlApplicationContext.java:110)
        at org.jahia.bundles.blueprint.extender.config.JahiaOsgiBundleXmlApplicationContext.refresh(JahiaOsgiBundleXmlApplicationContext.java:99)
        at org.eclipse.gemini.blueprint.extender.internal.activator.LifecycleManager$1.run(LifecycleManager.java:211)
        at org.jahia.bundles.blueprint.extender.config.SynchronousExecutor.execute(SynchronousExecutor.java:82)
        at org.eclipse.gemini.blueprint.extender.internal.activator.LifecycleManager.maybeCreateApplicationContextFor(LifecycleManager.java:270)
        at org.eclipse.gemini.blueprint.extender.internal.activator.ContextLoaderListener$ContextBundleListener.handleEvent(ContextLoaderListener.java:223)
        at org.eclipse.gemini.blueprint.extender.internal.activator.ContextLoaderListener$BaseListener.bundleChanged(ContextLoaderListener.java:137)
        at org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:913)
        at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:834)
        at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:516)
        at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4531)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:2169)
        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:977)
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.restartBundlesAfterUpdate(DirectoryWatcher.java:1193)
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:513)
        at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:294)
Caused by: java.io.FileNotFoundException: OSGi resource[classpath:org/jahia/defaults/config/spring/modules-applicationcontext-registry.xml|bnd.id=129|bnd.sym=XXXX] cannot be resolved to
URL because it does not exist
        at org.eclipse.gemini.blueprint.io.OsgiBundleResource.getURL(OsgiBundleResource.java:229)
        at org.eclipse.gemini.blueprint.io.OsgiBundleResource.getInputStream(OsgiBundleResource.java:181)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:329)
        ... 29 more

 

Re-Edit:

I finally got rid of this error messages adding the correctf dependency and import packages in the felix plugin. It seems that the only problem left is to load the mysql-connector-driver into my module.

I added the following maven dependency :

<dependency>
     <groupId>mysql</groupId>
     <artifactId>mysql-connector-java</artifactId>
     <version>5.1.35</version>
</dependency>

wich is an OSGI compliant bundle that exports the com.mysql.jdbc package.

I added the following import package in the manifest entries :

com.mysql.jdbc;version="5.1.35"

But I still have an error where the Driver is not found on the bundle deployment in Jahia :

2015-09-25 17:50:48,435: WARN  [InputStreamZippedJarVisitor] - HHH015010: Unable to find file (ignored): bundle://129.107:1
java.io.IOException: Resource does not exist: bundle://129.107:1
        at org.apache.felix.framework.URLHandlersBundleURLConnection.<init>(URLHandlersBundleURLConnection.java:60)
        at org.apache.felix.framework.URLHandlersBundleStreamHandler.openConnection(URLHandlersBundleStreamHandler.java:64)
        at java.net.URL.openConnection(URL.java:972)
        at java.net.URL.openStream(URL.java:1038)
        at org.hibernate.ejb.packaging.InputStreamZippedJarVisitor.doProcessElements(InputStreamZippedJarVisitor.java:62)
        at org.hibernate.ejb.packaging.AbstractJarVisitor.getMatchingEntries(AbstractJarVisitor.java:149)
        at org.hibernate.ejb.packaging.NativeScanner.getFilesInJar(NativeScanner.java:192)
        at org.hibernate.ejb.Ejb3Configuration.addScannedEntries(Ejb3Configuration.java:506)
        at org.hibernate.ejb.Ejb3Configuration.scanForClasses(Ejb3Configuration.java:861)
        at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:606)
        at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:75)
        at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:290)
        at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:310)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1573)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1511)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:191)
        at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1119)
        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:924)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
        at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.access$301(AbstractDelegatedExecutionApplicationContext.java:60)
        at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext$1.run(AbstractDelegatedExecutionApplicationContext.java:168)
        at org.eclipse.gemini.blueprint.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
        at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.normalRefresh(AbstractDelegatedExecutionApplicationContext.java:164)
        at org.jahia.bundles.blueprint.extender.config.JahiaOsgiBundleXmlApplicationContext$JahiaOsgiApplicationContextExecutor.refresh(JahiaOsgiBundleXmlApplicationContext.java:110)
        at org.jahia.bundles.blueprint.extender.config.JahiaOsgiBundleXmlApplicationContext.refresh(JahiaOsgiBundleXmlApplicationContext.java:99)
        at org.eclipse.gemini.blueprint.extender.internal.activator.LifecycleManager$1.run(LifecycleManager.java:211)
        at org.jahia.bundles.blueprint.extender.config.SynchronousExecutor.execute(SynchronousExecutor.java:82)
        at org.eclipse.gemini.blueprint.extender.internal.activator.LifecycleManager.maybeCreateApplicationContextFor(LifecycleManager.java:270)
        at org.eclipse.gemini.blueprint.extender.internal.activator.ContextLoaderListener$ContextBundleListener.handleEvent(ContextLoaderListener.java:223)
        at org.eclipse.gemini.blueprint.extender.internal.activator.ContextLoaderListener$BaseListener.bundleChanged(ContextLoaderListener.java:137)
        at org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:913)
        at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:834)
        at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:516)
        at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4531)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:2169)
        at org.apache.felix.framework.Felix$RefreshHelper.restart(Felix.java:5051)
        at org.apache.felix.framework.Felix.refreshPackages(Felix.java:4243)
        at org.apache.felix.framework.FrameworkWiringImpl.run(FrameworkWiringImpl.java:188)
        at java.lang.Thread.run(Thread.java:745)
2015-09-25 17:50:48,474: WARN  [JdbcServicesImpl] - HHH000342: Could not obtain connection to query metadata : No suitable driver found for jdbc:mysql://localhost:3306/test_db

Is it another way to include mysql jdbc drivers ? Thanks in advance for your help.

Regards,

Rudy

  • Error when trying to declare EntityManagerFactory in spring in an Jahia OSGI module
    2015/09/25 16:06

    rujan <p>I working on an Jahia OSGI bundle (Digital Factory 7.1)</p> <p>I have a database to interact with, and for this purpose I use Spring Data JPA. So when I declare my EntityManagerFactory in my Spring applicationContext.xml file, il have the following error at start of the Jahia webapp :</p> <pre class="lang-java prettyprint prettyprinted" style=""> <code><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="lit"><span class="lit"><span class="lit">2015</span></span></span><span class="pun"><span class="pun"><span class="pun">-</span></span></span><span class="lit"><span class="lit"><span class="lit">09</span></span></span><span class="pun"><span class="pun"><span class="pun">-</span></span></span><span class="lit"><span class="lit"><span class="lit">04</span></span></span><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="lit"><span class="lit"><span class="lit">19</span></span></span><span class="pun"><span class="pun"><span class="pun">:</span></span></span><span class="lit"><span class="lit"><span class="lit">28</span></span></span><span class="pun"><span class="pun"><span class="pun">:</span></span></span><span class="lit"><span class="lit"><span class="lit">55</span></span></span><span class="pun"><span class="pun"><span class="pun">,</span></span></span><span class="lit"><span class="lit"><span class="lit">664</span></span></span><span class="pun"><span class="pun"><span class="pun">:</span></span></span><span class="pln"><span class="pln"><span class="pln"> ERROR </span></span></span><span class="pun"><span class="pun"><span class="pun">[</span></span></span><span class="typ"><span class="typ"><span class="typ">JahiaOsgiBundleApplicationContextListener</span></span></span><span class="pun"><span class="pun"><span class="pun">]</span></span></span><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="pun"><span class="pun"><span class="pun">-</span></span></span><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="typ"><span class="typ"><span class="typ">Application</span></span></span><span class="pln"><span class="pln"><span class="pln"> context refresh failed </span></span></span><span class="kwd"><span class="kwd"><span class="kwd">for</span></span></span><span class="pln"><span class="pln"><span class="pln"> bundle XXXX </span></span></span><span class="pun"><span class="pun"><span class="pun">(</span></span></span><span class="pln"><span class="pln"><span class="pln">XXXX</span></span></span><span class="pun"><span class="pun"><span class="pun">)</span></span></span><span class="pln"><span class="pln"><span class="pln"> org</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">springframework</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">beans</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">factory</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="typ"><span class="typ"><span class="typ">BeanCreationException</span></span></span><span class="pun"><span class="pun"><span class="pun">:</span></span></span><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="typ"><span class="typ"><span class="typ">Error</span></span></span><span class="pln"><span class="pln"><span class="pln"> creating bean with name </span></span></span><span class="str"><span class="str"><span class="str">&#39;entityManagerFactory&#39;</span></span></span><span class="pln"><span class="pln"><span class="pln"> defined in URL </span></span></span><span class="pun"><span class="pun"><span class="pun">[</span></span></span><span class="pln"><span class="pln"><span class="pln">bundle</span></span></span><span class="pun"><span class="pun"><span class="pun">:</span></span></span><span class="com"><span class="com"><span class="com">//129.38:0/META-INF/spring/applicationContext.xml]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: Unable to resolve persistence unit root URL</span></span></span><span class="pln"><span class="pln"><span class="pln"> at org</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">springframework</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">beans</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">factory</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">support</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="typ"><span class="typ"><span class="typ">AbstractAutowireCapableBeanFactory</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">initializeBean</span></span></span><span class="pun"><span class="pun"><span class="pun">(</span></span></span><span class="typ"><span class="typ"><span class="typ">AbstractAutowireCapableBeanFactory</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">java</span></span></span><span class="pun"><span class="pun"><span class="pun">:</span></span></span><span class="lit"><span class="lit"><span class="lit">1514</span></span></span><span class="pun"><span class="pun"><span class="pun">)</span></span></span><span class="pln"><span class="pln"><span class="pln"> at org</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">springframework</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">beans</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">factory</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">support</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="typ"><span class="typ"><span class="typ">AbstractAutowireCapableBeanFactory</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">doCreateBean</span></span></span><span class="pun"><span class="pun"><span class="pun">(</span></span></span><span class="typ"><span class="typ"><span class="typ">AbstractAutowireCapableBeanFactory</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">java</span></span></span><span class="pun"><span class="pun"><span class="pun">:</span></span></span><span class="lit"><span class="lit"><span class="lit">521</span></span></span><span class="pun"><span class="pun"><span class="pun">)</span></span></span><span class="pln"><span class="pln"><span class="pln"> at org</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">springframework</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">beans</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">factory</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">support</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="typ"><span class="typ"><span class="typ">AbstractAutowireCapableBeanFactory</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">createBean</span></span></span><span class="pun"><span class="pun"><span class="pun">(</span></span></span><span class="typ"><span class="typ"><span class="typ">AbstractAutowireCapableBeanFactory</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">java</span></span></span><span class="pun"><span class="pun"><span class="pun">:</span></span></span><span class="lit"><span class="lit"><span class="lit">458</span></span></span><span class="pun"><span class="pun"><span class="pun">)</span></span></span><span class="pln"><span class="pln"><span class="pln"> at org</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">springframework</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">beans</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">factory</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">support</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="typ"><span class="typ"><span class="typ">AbstractBeanFactory$1</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">getObject</span></span></span><span class="pun"><span class="pun"><span class="pun">(</span></span></span><span class="typ"><span class="typ"><span class="typ">AbstractBeanFactory</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">java</span></span></span><span class="pun"><span class="pun"><span class="pun">:</span></span></span><span class="lit"><span class="lit"><span class="lit">293</span></span></span><span class="pun"><span class="pun"><span class="pun">)</span></span></span><span class="pln"><span class="pln"><span class="pln"> at org</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">springframework</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">beans</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">factory</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">support</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="typ"><span class="typ"><span class="typ">DefaultSingletonBeanRegistry</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">getSingleton</span></span></span><span class="pun"><span class="pun"><span class="pun">(</span></span></span><span class="typ"><span class="typ"><span class="typ">DefaultSingletonBeanRegistry</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">java</span></span></span><span class="pun"><span class="pun"><span class="pun">:</span></span></span><span class="lit"><span class="lit"><span class="lit">223</span></span></span><span class="pun"><span class="pun"><span class="pun">)</span></span></span><span class="pln"><span class="pln"><span class="pln"> at org</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">springframework</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">beans</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">factory</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">support</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="typ"><span class="typ"><span class="typ">AbstractBeanFactory</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">doGetBean</span></span></span><span class="pun"><span class="pun"><span class="pun">(</span></span></span><span class="typ"><span class="typ"><span class="typ">AbstractBeanFactory</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">java</span></span></span><span class="pun"><span class="pun"><span class="pun">:</span></span></span><span class="lit"><span class="lit"><span class="lit">290</span></span></span><span class="pun"><span class="pun"><span class="pun">)</span></span></span><span class="pln"><span class="pln"><span class="pln"> at org</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">springframework</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">beans</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">factory</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">support</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="typ"><span class="typ"><span class="typ">AbstractBeanFactory</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">getBean</span></span></span><span class="pun"><span class="pun"><span class="pun">(</span></span></span><span class="typ"><span class="typ"><span class="typ">AbstractBeanFactory</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">java</span></span></span><span class="pun"><span class="pun"><span class="pun">:</span></span></span><span class="lit"><span class="lit"><span class="lit">191</span></span></span><span class="pun"><span class="pun"><span class="pun">)</span></span></span><span class="pln"><span class="pln"><span class="pln"> at org</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">springframework</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">context</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">support</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="typ"><span class="typ"><span class="typ">AbstractApplicationContext</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">getBean</span></span></span><span class="pun"><span class="pun"><span class="pun">(</span></span></span><span class="typ"><span class="typ"><span class="typ">AbstractApplicationContext</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">java</span></span></span><span class="pun"><span class="pun"><span class="pun">:</span></span></span><span class="lit"><span class="lit"><span class="lit">1119</span></span></span><span class="pun"><span class="pun"><span class="pun">)</span></span></span><span class="pln"><span class="pln"><span class="pln"> at org</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">springframework</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">context</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">support</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="typ"><span class="typ"><span class="typ">AbstractApplicationContext</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">finishBeanFactoryInitialization</span></span></span><span class="pun"><span class="pun"><span class="pun">(</span></span></span><span class="typ"><span class="typ"><span class="typ">AbstractApplicationContext</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">java</span></span></span><span class="pun"><span class="pun"><span class="pun">:</span></span></span><span class="lit"><span class="lit"><span class="lit">924</span></span></span><span class="pun"><span class="pun"><span class="pun">)</span></span></span><span class="pln"><span class="pln"><span class="pln"> at org</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">springframework</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">context</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">support</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="typ"><span class="typ"><span class="typ">AbstractApplicationContext</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">refresh</span></span></span><span class="pun"><span class="pun"><span class="pun">(</span></span></span><span class="typ"><span class="typ"><span class="typ">AbstractApplicationContext</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">java</span></span></span><span class="pun"><span class="pun"><span class="pun">:</span></span></span><span class="lit"><span class="lit"><span class="lit">479</span></span></span><span class="pun"><span class="pun"><span class="pun">)</span></span></span><span class="pln"><span class="pln"><span class="pln"> at org</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">eclipse</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">gemini</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">blueprint</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">context</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">support</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="typ"><span class="typ"><span class="typ">AbstractDelegatedExecutionApplicationContext</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">access$301</span></span></span><span class="pun"><span class="pun"><span class="pun">(</span></span></span><span class="typ"><span class="typ"><span class="typ">AbstractDelegatedExecutionApplicationContext</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">java</span></span></span><span class="pun"><span class="pun"><span class="pun">:</span></span></span><span class="lit"><span class="lit"><span class="lit">60</span></span></span><span class="pun"><span class="pun"><span class="pun">)</span></span></span><span class="pln"><span class="pln"><span class="pln"> at org</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">eclipse</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">gemini</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">blueprint</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">context</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">support</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="typ"><span class="typ"><span class="typ">AbstractDelegatedExecutionApplicationContext$1</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">run</span></span></span><span class="pun"><span class="pun"><span class="pun">(</span></span></span><span class="typ"><span class="typ"><span class="typ">AbstractDelegatedExecutionApplicationContext</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">java</span></span></span><span class="pun"><span class="pun"><span class="pun">:</span></span></span><span class="lit"><span class="lit"><span class="lit">168</span></span></span><span class="pun"><span class="pun"><span class="pun">)</span></span></span><span class="pln"><span class="pln"><span class="pln"> at org</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">eclipse</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">gemini</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">blueprint</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">util</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">internal</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="typ"><span class="typ"><span class="typ">PrivilegedUtils</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">executeWithCustomTCCL</span></span></span><span class="pun"><span class="pun"><span class="pun">(</span></span></span><span class="typ"><span class="typ"><span class="typ">PrivilegedUtils</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">java</span></span></span><span class="pun"><span class="pun"><span class="pun">:</span></span></span><span class="lit"><span class="lit"><span class="lit">85</span></span></span><span class="pun"><span class="pun"><span class="pun">)</span></span></span><span class="pln"><span class="pln"><span class="pln"> at org</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">eclipse</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">gemini</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">blueprint</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">context</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">support</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="typ"><span class="typ"><span class="typ">AbstractDelegatedExecutionApplicationContext</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">normalRefresh</span></span></span><span class="pun"><span class="pun"><span class="pun">(</span></span></span><span class="typ"><span class="typ"><span class="typ">AbstractDelegatedExecutionApplicationContext</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">java</span></span></span><span class="pun"><span class="pun"><span class="pun">:</span></span></span><span class="lit"><span class="lit"><span class="lit">164</span></span></span><span class="pun"><span class="pun"><span class="pun">)</span></span></span><span class="pln"><span class="pln"><span class="pln"> at org</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">jahia</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">bundles</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">blueprint</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">extender</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">config</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="typ"><span class="typ"><span class="typ">JahiaOsgiBundleXmlApplicationContext$JahiaOsgiApplicationContextExecutor</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">refresh</span></span></span><span class="pun"><span class="pun"><span class="pun">(</span></span></span><span class="typ"><span class="typ"><span class="typ">JahiaOsgiBundleXmlApplicationContext</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">java</span></span></span><span class="pun"><span class="pun"><span class="pun">:</span></span></span><span class="lit"><span class="lit"><span class="lit">110</span></span></span><span class="pun"><span class="pun"><span class="pun">)</span></span></span><span class="pln"><span class="pln"><span class="pln"> at org</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">jahia</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">bundles</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">blueprint</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">extender</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">config</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="typ"><span class="typ"><span class="typ">JahiaOsgiBundleXmlApplicationContext</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">refresh</span></span></span><span class="pun"><span class="pun"><span class="pun">(</span></span></span><span class="typ"><span class="typ"><span class="typ">JahiaOsgiBundleXmlApplicationContext</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">java</span></span></span><span class="pun"><span class="pun"><span class="pun">:</span></span></span><span class="lit"><span class="lit"><span class="lit">99</span></span></span><span class="pun"><span class="pun"><span class="pun">)</span></span></span><span class="pln"><span class="pln"><span class="pln"> at org</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">eclipse</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">gemini</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">blueprint</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">extender</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">internal</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">activator</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="typ"><span class="typ"><span class="typ">LifecycleManager$1</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">run</span></span></span><span class="pun"><span class="pun"><span class="pun">(</span></span></span><span class="typ"><span class="typ"><span class="typ">LifecycleManager</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">java</span></span></span><span class="pun"><span class="pun"><span class="pun">:</span></span></span><span class="lit"><span class="lit"><span class="lit">211</span></span></span><span class="pun"><span class="pun"><span class="pun">)</span></span></span><span class="pln"><span class="pln"><span class="pln"> at org</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">jahia</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">bundles</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">blueprint</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">extender</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">config</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="typ"><span class="typ"><span class="typ">SynchronousExecutor</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">execute</span></span></span><span class="pun"><span class="pun"><span class="pun">(</span></span></span><span class="typ"><span class="typ"><span class="typ">SynchronousExecutor</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">java</span></span></span><span class="pun"><span class="pun"><span class="pun">:</span></span></span><span class="lit"><span class="lit"><span class="lit">82</span></span></span><span class="pun"><span class="pun"><span class="pun">)</span></span></span><span class="pln"><span class="pln"><span class="pln"> at org</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">eclipse</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">gemini</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">blueprint</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">extender</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">internal</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">activator</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="typ"><span class="typ"><span class="typ">LifecycleManager</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">maybeCreateApplicationContextFor</span></span></span><span class="pun"><span class="pun"><span class="pun">(</span></span></span><span class="typ"><span class="typ"><span class="typ">LifecycleManager</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">java</span></span></span><span class="pun"><span class="pun"><span class="pun">:</span></span></span><span class="lit"><span class="lit"><span class="lit">270</span></span></span><span class="pun"><span class="pun"><span class="pun">)</span></span></span><span class="pln"><span class="pln"><span class="pln"> at org</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">eclipse</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">gemini</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">blueprint</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">extender</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">internal</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">activator</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="typ"><span class="typ"><span class="typ">ContextLoaderListener$ContextBundleListener</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">handleEvent</span></span></span><span class="pun"><span class="pun"><span class="pun">(</span></span></span><span class="typ"><span class="typ"><span class="typ">ContextLoaderListener</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">java</span></span></span><span class="pun"><span class="pun"><span class="pun">:</span></span></span><span class="lit"><span class="lit"><span class="lit">223</span></span></span><span class="pun"><span class="pun"><span class="pun">)</span></span></span><span class="pln"><span class="pln"><span class="pln"> at org</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">eclipse</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">gemini</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">blueprint</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">extender</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">internal</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">activator</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="typ"><span class="typ"><span class="typ">ContextLoaderListener$BaseListener</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">bundleChanged</span></span></span><span class="pun"><span class="pun"><span class="pun">(</span></span></span><span class="typ"><span class="typ"><span class="typ">ContextLoaderListener</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">java</span></span></span><span class="pun"><span class="pun"><span class="pun">:</span></span></span><span class="lit"><span class="lit"><span class="lit">137</span></span></span><span class="pun"><span class="pun"><span class="pun">)</span></span></span><span class="pln"><span class="pln"><span class="pln"> at org</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">apache</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">felix</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">framework</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">util</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="typ"><span class="typ"><span class="typ">EventDispatcher</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">invokeBundleListenerCallback</span></span></span><span class="pun"><span class="pun"><span class="pun">(</span></span></span><span class="typ"><span class="typ"><span class="typ">EventDispatcher</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">java</span></span></span><span class="pun"><span class="pun"><span class="pun">:</span></span></span><span class="lit"><span class="lit"><span class="lit">913</span></span></span><span class="pun"><span class="pun"><span class="pun">)</span></span></span><span class="pln"><span class="pln"><span class="pln"> at org</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">apache</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">felix</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">framework</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">util</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="typ"><span class="typ"><span class="typ">EventDispatcher</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">fireEventImmediately</span></span></span><span class="pun"><span class="pun"><span class="pun">(</span></span></span><span class="typ"><span class="typ"><span class="typ">EventDispatcher</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">java</span></span></span><span class="pun"><span class="pun"><span class="pun">:</span></span></span><span class="lit"><span class="lit"><span class="lit">834</span></span></span><span class="pun"><span class="pun"><span class="pun">)</span></span></span><span class="pln"><span class="pln"><span class="pln"> at org</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">apache</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">felix</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">framework</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">util</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="typ"><span class="typ"><span class="typ">EventDispatcher</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">fireBundleEvent</span></span></span><span class="pun"><span class="pun"><span class="pun">(</span></span></span><span class="typ"><span class="typ"><span class="typ">EventDispatcher</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">java</span></span></span><span class="pun"><span class="pun"><span class="pun">:</span></span></span><span class="lit"><span class="lit"><span class="lit">516</span></span></span><span class="pun"><span class="pun"><span class="pun">)</span></span></span><span class="pln"><span class="pln"><span class="pln"> at org</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">apache</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">felix</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">framework</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="typ"><span class="typ"><span class="typ">Felix</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">fireBundleEvent</span></span></span><span class="pun"><span class="pun"><span class="pun">(</span></span></span><span class="typ"><span class="typ"><span class="typ">Felix</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">java</span></span></span><span class="pun"><span class="pun"><span class="pun">:</span></span></span><span class="lit"><span class="lit"><span class="lit">4531</span></span></span><span class="pun"><span class="pun"><span class="pun">)</span></span></span><span class="pln"><span class="pln"><span class="pln"> at org</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">apache</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">felix</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">framework</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="typ"><span class="typ"><span class="typ">Felix</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">startBundle</span></span></span><span class="pun"><span class="pun"><span class="pun">(</span></span></span><span class="typ"><span class="typ"><span class="typ">Felix</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">java</span></span></span><span class="pun"><span class="pun"><span class="pun">:</span></span></span><span class="lit"><span class="lit"><span class="lit">2169</span></span></span><span class="pun"><span class="pun"><span class="pun">)</span></span></span><span class="pln"><span class="pln"><span class="pln"> at org</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">apache</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">felix</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">framework</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="typ"><span class="typ"><span class="typ">Felix</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">setActiveStartLevel</span></span></span><span class="pun"><span class="pun"><span class="pun">(</span></span></span><span class="typ"><span class="typ"><span class="typ">Felix</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">java</span></span></span><span class="pun"><span class="pun"><span class="pun">:</span></span></span><span class="lit"><span class="lit"><span class="lit">1368</span></span></span><span class="pun"><span class="pun"><span class="pun">)</span></span></span><span class="pln"><span class="pln"><span class="pln"> at org</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">apache</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">felix</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">framework</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="typ"><span class="typ"><span class="typ">FrameworkStartLevelImpl</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">run</span></span></span><span class="pun"><span class="pun"><span class="pun">(</span></span></span><span class="typ"><span class="typ"><span class="typ">FrameworkStartLevelImpl</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">java</span></span></span><span class="pun"><span class="pun"><span class="pun">:</span></span></span><span class="lit"><span class="lit"><span class="lit">308</span></span></span><span class="pun"><span class="pun"><span class="pun">)</span></span></span><span class="pln"><span class="pln"><span class="pln"> at java</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">lang</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="typ"><span class="typ"><span class="typ">Thread</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">run</span></span></span><span class="pun"><span class="pun"><span class="pun">(</span></span></span><span class="typ"><span class="typ"><span class="typ">Thread</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">java</span></span></span><span class="pun"><span class="pun"><span class="pun">:</span></span></span><span class="lit"><span class="lit"><span class="lit">745</span></span></span><span class="pun"><span class="pun"><span class="pun">)</span></span></span><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="typ"><span class="typ"><span class="typ">Caused</span></span></span><span class="pln"><span class="pln"><span class="pln"> by</span></span></span><span class="pun"><span class="pun"><span class="pun">:</span></span></span><span class="pln"><span class="pln"><span class="pln"> javax</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">persistence</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="typ"><span class="typ"><span class="typ">PersistenceException</span></span></span><span class="pun"><span class="pun"><span class="pun">:</span></span></span><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="typ"><span class="typ"><span class="typ">Unable</span></span></span><span class="pln"><span class="pln"><span class="pln"> to resolve persistence unit root URL at org</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">springframework</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">orm</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">jpa</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">persistenceunit</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="typ"><span class="typ"><span class="typ">DefaultPersistenceUnitManager</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">determineDefaultPersistenceUnitRootUrl</span></span></span><span class="pun"><span class="pun"><span class="pun">(</span></span></span><span class="typ"><span class="typ"><span class="typ">DefaultPersistenceUnitManager</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">java</span></span></span><span class="pun"><span class="pun"><span class="pun">:</span></span></span><span class="lit"><span class="lit"><span class="lit">508</span></span></span><span class="pun"><span class="pun"><span class="pun">)</span></span></span><span class="pln"><span class="pln"><span class="pln"> at org</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">springframework</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">orm</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">jpa</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">persistenceunit</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="typ"><span class="typ"><span class="typ">DefaultPersistenceUnitManager</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">preparePersistenceUnitInfos</span></span></span><span class="pun"><span class="pun"><span class="pun">(</span></span></span><span class="typ"><span class="typ"><span class="typ">DefaultPersistenceUnitManager</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">java</span></span></span><span class="pun"><span class="pun"><span class="pun">:</span></span></span><span class="lit"><span class="lit"><span class="lit">371</span></span></span><span class="pun"><span class="pun"><span class="pun">)</span></span></span><span class="pln"><span class="pln"><span class="pln"> at org</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">springframework</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">orm</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">jpa</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">persistenceunit</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="typ"><span class="typ"><span class="typ">DefaultPersistenceUnitManager</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">afterPropertiesSet</span></span></span><span class="pun"><span class="pun"><span class="pun">(</span></span></span><span class="typ"><span class="typ"><span class="typ">DefaultPersistenceUnitManager</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">java</span></span></span><span class="pun"><span class="pun"><span class="pun">:</span></span></span><span class="lit"><span class="lit"><span class="lit">352</span></span></span><span class="pun"><span class="pun"><span class="pun">)</span></span></span><span class="pln"><span class="pln"><span class="pln"> at org</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">springframework</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">orm</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">jpa</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="typ"><span class="typ"><span class="typ">LocalContainerEntityManagerFactoryBean</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">createNativeEntityManagerFactory</span></span></span><span class="pun"><span class="pun"><span class="pun">(</span></span></span><span class="typ"><span class="typ"><span class="typ">LocalContainerEntityManagerFactoryBean</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">java</span></span></span><span class="pun"><span class="pun"><span class="pun">:</span></span></span><span class="lit"><span class="lit"><span class="lit">258</span></span></span><span class="pun"><span class="pun"><span class="pun">)</span></span></span><span class="pln"><span class="pln"><span class="pln"> at org</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">springframework</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">orm</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">jpa</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="typ"><span class="typ"><span class="typ">AbstractEntityManagerFactoryBean</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">afterPropertiesSet</span></span></span><span class="pun"><span class="pun"><span class="pun">(</span></span></span><span class="typ"><span class="typ"><span class="typ">AbstractEntityManagerFactoryBean</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">java</span></span></span><span class="pun"><span class="pun"><span class="pun">:</span></span></span><span class="lit"><span class="lit"><span class="lit">310</span></span></span><span class="pun"><span class="pun"><span class="pun">)</span></span></span><span class="pln"><span class="pln"><span class="pln"> at org</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">springframework</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">beans</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">factory</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">support</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="typ"><span class="typ"><span class="typ">AbstractAutowireCapableBeanFactory</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">invokeInitMethods</span></span></span><span class="pun"><span class="pun"><span class="pun">(</span></span></span><span class="typ"><span class="typ"><span class="typ">AbstractAutowireCapableBeanFactory</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">java</span></span></span><span class="pun"><span class="pun"><span class="pun">:</span></span></span><span class="lit"><span class="lit"><span class="lit">1573</span></span></span><span class="pun"><span class="pun"><span class="pun">)</span></span></span><span class="pln"><span class="pln"><span class="pln"> at org</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">springframework</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">beans</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">factory</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">support</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="typ"><span class="typ"><span class="typ">AbstractAutowireCapableBeanFactory</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">initializeBean</span></span></span><span class="pun"><span class="pun"><span class="pun">(</span></span></span><span class="typ"><span class="typ"><span class="typ">AbstractAutowireCapableBeanFactory</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">java</span></span></span><span class="pun"><span class="pun"><span class="pun">:</span></span></span><span class="lit"><span class="lit"><span class="lit">1511</span></span></span><span class="pun"><span class="pun"><span class="pun">)</span></span></span><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="pun"><span class="pun"><span class="pun">...</span></span></span><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="lit"><span class="lit"><span class="lit">28</span></span></span><span class="pln"><span class="pln"><span class="pln"> more </span></span></span><span class="typ"><span class="typ"><span class="typ">Caused</span></span></span><span class="pln"><span class="pln"><span class="pln"> by</span></span></span><span class="pun"><span class="pun"><span class="pun">:</span></span></span><span class="pln"><span class="pln"><span class="pln"> java</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">io</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="typ"><span class="typ"><span class="typ">FileNotFoundException</span></span></span><span class="pun"><span class="pun"><span class="pun">:</span></span></span><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="typ"><span class="typ"><span class="typ">OSGi</span></span></span><span class="pln"><span class="pln"><span class="pln"> resource</span></span></span><span class="pun"><span class="pun"><span class="pun">[</span></span></span><span class="pln"><span class="pln"><span class="pln">classpath</span></span></span><span class="pun"><span class="pun"><span class="pun">:|</span></span></span><span class="pln"><span class="pln"><span class="pln">bnd</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">id</span></span></span><span class="pun"><span class="pun"><span class="pun">=</span></span></span><span class="lit"><span class="lit"><span class="lit">129</span></span></span><span class="pun"><span class="pun"><span class="pun">|</span></span></span><span class="pln"><span class="pln"><span class="pln">bnd</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">sym</span></span></span><span class="pun"><span class="pun"><span class="pun">=</span></span></span><span class="pln"><span class="pln"><span class="pln">XXXX</span></span></span><span class="pun"><span class="pun"><span class="pun">]</span></span></span><span class="pln"><span class="pln"><span class="pln"> cannot be resolved to URL because it does not exist at org</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">eclipse</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">gemini</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">blueprint</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">io</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="typ"><span class="typ"><span class="typ">OsgiBundleResource</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">getURL</span></span></span><span class="pun"><span class="pun"><span class="pun">(</span></span></span><span class="typ"><span class="typ"><span class="typ">OsgiBundleResource</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">java</span></span></span><span class="pun"><span class="pun"><span class="pun">:</span></span></span><span class="lit"><span class="lit"><span class="lit">229</span></span></span><span class="pun"><span class="pun"><span class="pun">)</span></span></span><span class="pln"><span class="pln"><span class="pln"> at org</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">springframework</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">orm</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">jpa</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">persistenceunit</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="typ"><span class="typ"><span class="typ">DefaultPersistenceUnitManager</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">determineDefaultPersistenceUnitRootUrl</span></span></span><span class="pun"><span class="pun"><span class="pun">(</span></span></span><span class="typ"><span class="typ"><span class="typ">DefaultPersistenceUnitManager</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">java</span></span></span><span class="pun"><span class="pun"><span class="pun">:</span></span></span><span class="lit"><span class="lit"><span class="lit">505</span></span></span><span class="pun"><span class="pun"><span class="pun">)</span></span></span><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="pun"><span class="pun"><span class="pun">...</span></span></span><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="lit"><span class="lit"><span class="lit">34</span></span></span><span class="pln"><span class="pln"><span class="pln"> more</span></span></span></code></pre> <p>Here&#39;s my applicationContext.xml file :</p> <pre class="lang-java prettyprint prettyprinted" style=""> <code><span class="pun"><span class="pun"><span class="pun">&lt;?</span></span></span><span class="pln"><span class="pln"><span class="pln">xml version</span></span></span><span class="pun"><span class="pun"><span class="pun">=</span></span></span><span class="str"><span class="str"><span class="str">&quot;1.0&quot;</span></span></span><span class="pln"><span class="pln"><span class="pln"> encoding</span></span></span><span class="pun"><span class="pun"><span class="pun">=</span></span></span><span class="str"><span class="str"><span class="str">&quot;UTF-8&quot;</span></span></span><span class="pun"><span class="pun"><span class="pun">?&gt;</span></span></span><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="pun"><span class="pun"><span class="pun">&lt;</span></span></span><span class="pln"><span class="pln"><span class="pln">beans xmlns</span></span></span><span class="pun"><span class="pun"><span class="pun">=</span></span></span><span class="str"><span class="str"><span class="str">&quot;http://www.springframework.org/schema/beans&quot;</span></span></span><span class="pln"><span class="pln"><span class="pln"> xmlns</span></span></span><span class="pun"><span class="pun"><span class="pun">:</span></span></span><span class="pln"><span class="pln"><span class="pln">xsi</span></span></span><span class="pun"><span class="pun"><span class="pun">=</span></span></span><span class="str"><span class="str"><span class="str">&quot;http://www.w3.org/2001/XMLSchema-instance&quot;</span></span></span><span class="pln"><span class="pln"><span class="pln"> xmlns</span></span></span><span class="pun"><span class="pun"><span class="pun">:</span></span></span><span class="pln"><span class="pln"><span class="pln">context</span></span></span><span class="pun"><span class="pun"><span class="pun">=</span></span></span><span class="str"><span class="str"><span class="str">&quot;http://www.springframework.org/schema/context&quot;</span></span></span><span class="pln"><span class="pln"><span class="pln"> xmlns</span></span></span><span class="pun"><span class="pun"><span class="pun">:</span></span></span><span class="pln"><span class="pln"><span class="pln">jpa</span></span></span><span class="pun"><span class="pun"><span class="pun">=</span></span></span><span class="str"><span class="str"><span class="str">&quot;http://www.springframework.org/schema/data/jpa&quot;</span></span></span><span class="pln"><span class="pln"><span class="pln"> xmlns</span></span></span><span class="pun"><span class="pun"><span class="pun">:</span></span></span><span class="pln"><span class="pln"><span class="pln">tx</span></span></span><span class="pun"><span class="pun"><span class="pun">=</span></span></span><span class="str"><span class="str"><span class="str">&quot;http://www.springframework.org/schema/tx&quot;</span></span></span><span class="pln"><span class="pln"><span class="pln"> xsi</span></span></span><span class="pun"><span class="pun"><span class="pun">:</span></span></span><span class="pln"><span class="pln"><span class="pln">schemaLocation</span></span></span><span class="pun"><span class="pun"><span class="pun">=</span></span></span><span class="str"><span class="str"><span class="str">&quot;</span></span></span><span class="pln"><span class="pln"><span class="pln">http</span></span></span><span class="pun"><span class="pun"><span class="pun">:</span></span></span><span class="com"><span class="com"><span class="com">//www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd</span></span></span><span class="pln"><span class="pln"><span class="pln"> http</span></span></span><span class="pun"><span class="pun"><span class="pun">:</span></span></span><span class="com"><span class="com"><span class="com">//www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd</span></span></span><span class="pln"><span class="pln"><span class="pln"> http</span></span></span><span class="pun"><span class="pun"><span class="pun">:</span></span></span><span class="com"><span class="com"><span class="com">//www.springframework.org/schema/data/jpa http://www.springframework.org/schema/data/jpa/spring-jpa-1.0.xsd</span></span></span><span class="pln"><span class="pln"><span class="pln"> http</span></span></span><span class="pun"><span class="pun"><span class="pun">:</span></span></span><span class="com"><span class="com"><span class="com">//www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd&quot;&gt;</span></span></span><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="pun"><span class="pun"><span class="pun">&lt;!--</span></span></span><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="typ"><span class="typ"><span class="typ">Configure</span></span></span><span class="pln"><span class="pln"><span class="pln"> the data source bean </span></span></span><span class="pun"><span class="pun"><span class="pun">--&gt;</span></span></span><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="pun"><span class="pun"><span class="pun">&lt;</span></span></span><span class="pln"><span class="pln"><span class="pln">bean id</span></span></span><span class="pun"><span class="pun"><span class="pun">=</span></span></span><span class="str"><span class="str"><span class="str">&quot;dataSource&quot;</span></span></span><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="kwd"><span class="kwd"><span class="kwd">class</span></span></span><span class="pun"><span class="pun"><span class="pun">=</span></span></span><span class="str"><span class="str"><span class="str">&quot;org.springframework.jdbc.datasource.DriverManagerDataSource&quot;</span></span></span><span class="pun"><span class="pun"><span class="pun">&gt;</span></span></span><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="pun"><span class="pun"><span class="pun">&lt;</span></span></span><span class="pln"><span class="pln"><span class="pln">property name</span></span></span><span class="pun"><span class="pun"><span class="pun">=</span></span></span><span class="str"><span class="str"><span class="str">&quot;driverClassName&quot;</span></span></span><span class="pln"><span class="pln"><span class="pln"> value</span></span></span><span class="pun"><span class="pun"><span class="pun">=</span></span></span><span class="str"><span class="str"><span class="str">&quot;com.mysql.jdbc.Driver&quot;</span></span></span><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="pun"><span class="pun"><span class="pun">/&gt;</span></span></span><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="pun"><span class="pun"><span class="pun">&lt;</span></span></span><span class="pln"><span class="pln"><span class="pln">property name</span></span></span><span class="pun"><span class="pun"><span class="pun">=</span></span></span><span class="str"><span class="str"><span class="str">&quot;url&quot;</span></span></span><span class="pln"><span class="pln"><span class="pln"> value</span></span></span><span class="pun"><span class="pun"><span class="pun">=</span></span></span><span class="str"><span class="str"><span class="str">&quot;jdbc:mysql://localhost:3306/test_db&quot;</span></span></span><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="pun"><span class="pun"><span class="pun">/&gt;</span></span></span><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="pun"><span class="pun"><span class="pun">&lt;</span></span></span><span class="pln"><span class="pln"><span class="pln">property name</span></span></span><span class="pun"><span class="pun"><span class="pun">=</span></span></span><span class="str"><span class="str"><span class="str">&quot;username&quot;</span></span></span><span class="pln"><span class="pln"><span class="pln"> value</span></span></span><span class="pun"><span class="pun"><span class="pun">=</span></span></span><span class="str"><span class="str"><span class="str">&quot;root&quot;</span></span></span><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="pun"><span class="pun"><span class="pun">/&gt;</span></span></span><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="pun"><span class="pun"><span class="pun">&lt;</span></span></span><span class="pln"><span class="pln"><span class="pln">property name</span></span></span><span class="pun"><span class="pun"><span class="pun">=</span></span></span><span class="str"><span class="str"><span class="str">&quot;password&quot;</span></span></span><span class="pln"><span class="pln"><span class="pln"> value</span></span></span><span class="pun"><span class="pun"><span class="pun">=</span></span></span><span class="str"><span class="str"><span class="str">&quot;root&quot;</span></span></span><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="pun"><span class="pun"><span class="pun">/&gt;</span></span></span><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="pun"><span class="pun"><span class="pun">&lt;/</span></span></span><span class="pln"><span class="pln"><span class="pln">bean</span></span></span><span class="pun"><span class="pun"><span class="pun">&gt;</span></span></span><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="pun"><span class="pun"><span class="pun">&lt;!--</span></span></span><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="typ"><span class="typ"><span class="typ">Configure</span></span></span><span class="pln"><span class="pln"><span class="pln"> the entity manager factory bean </span></span></span><span class="pun"><span class="pun"><span class="pun">--&gt;</span></span></span><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="pun"><span class="pun"><span class="pun">&lt;</span></span></span><span class="pln"><span class="pln"><span class="pln">bean id</span></span></span><span class="pun"><span class="pun"><span class="pun">=</span></span></span><span class="str"><span class="str"><span class="str">&quot;entityManagerFactory&quot;</span></span></span><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="kwd"><span class="kwd"><span class="kwd">class</span></span></span><span class="pun"><span class="pun"><span class="pun">=</span></span></span><span class="str"><span class="str"><span class="str">&quot;org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean&quot;</span></span></span><span class="pun"><span class="pun"><span class="pun">&gt;</span></span></span><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="pun"><span class="pun"><span class="pun">&lt;</span></span></span><span class="pln"><span class="pln"><span class="pln">property name</span></span></span><span class="pun"><span class="pun"><span class="pun">=</span></span></span><span class="str"><span class="str"><span class="str">&quot;dataSource&quot;</span></span></span><span class="pln"><span class="pln"><span class="pln"> ref</span></span></span><span class="pun"><span class="pun"><span class="pun">=</span></span></span><span class="str"><span class="str"><span class="str">&quot;dataSource&quot;</span></span></span><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="pun"><span class="pun"><span class="pun">/&gt;</span></span></span><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="pun"><span class="pun"><span class="pun">&lt;</span></span></span><span class="pln"><span class="pln"><span class="pln">property name</span></span></span><span class="pun"><span class="pun"><span class="pun">=</span></span></span><span class="str"><span class="str"><span class="str">&quot;jpaVendorAdapter&quot;</span></span></span><span class="pun"><span class="pun"><span class="pun">&gt;</span></span></span><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="pun"><span class="pun"><span class="pun">&lt;</span></span></span><span class="pln"><span class="pln"><span class="pln">bean </span></span></span><span class="kwd"><span class="kwd"><span class="kwd">class</span></span></span><span class="pun"><span class="pun"><span class="pun">=</span></span></span><span class="str"><span class="str"><span class="str">&quot;org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter&quot;</span></span></span><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="pun"><span class="pun"><span class="pun">/&gt;</span></span></span><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="pun"><span class="pun"><span class="pun">&lt;/</span></span></span><span class="pln"><span class="pln"><span class="pln">property</span></span></span><span class="pun"><span class="pun"><span class="pun">&gt;</span></span></span><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="pun"><span class="pun"><span class="pun">&lt;</span></span></span><span class="pln"><span class="pln"><span class="pln">property name</span></span></span><span class="pun"><span class="pun"><span class="pun">=</span></span></span><span class="str"><span class="str"><span class="str">&quot;jpaProperties&quot;</span></span></span><span class="pun"><span class="pun"><span class="pun">&gt;</span></span></span><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="pun"><span class="pun"><span class="pun">&lt;</span></span></span><span class="pln"><span class="pln"><span class="pln">props</span></span></span><span class="pun"><span class="pun"><span class="pun">&gt;</span></span></span><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="pun"><span class="pun"><span class="pun">&lt;</span></span></span><span class="pln"><span class="pln"><span class="pln">prop key</span></span></span><span class="pun"><span class="pun"><span class="pun">=</span></span></span><span class="str"><span class="str"><span class="str">&quot;hibernate.dialect&quot;</span></span></span><span class="pun"><span class="pun"><span class="pun">&gt;</span></span></span><span class="pln"><span class="pln"><span class="pln">org</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">hibernate</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="pln"><span class="pln"><span class="pln">dialect</span></span></span><span class="pun"><span class="pun"><span class="pun">.</span></span></span><span class="typ"><span class="typ"><span class="typ">MySQL5InnoDBDialect</span></span></span><span class="pun"><span class="pun"><span class="pun">&lt;/</span></span></span><span class="pln"><span class="pln"><span class="pln">prop</span></span></span><span class="pun"><span class="pun"><span class="pun">&gt;</span></span></span><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="pun"><span class="pun"><span class="pun">&lt;/</span></span></span><span class="pln"><span class="pln"><span class="pln">props</span></span></span><span class="pun"><span class="pun"><span class="pun">&gt;</span></span></span><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="pun"><span class="pun"><span class="pun">&lt;/</span></span></span><span class="pln"><span class="pln"><span class="pln">property</span></span></span><span class="pun"><span class="pun"><span class="pun">&gt;</span></span></span><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="pun"><span class="pun"><span class="pun">&lt;</span></span></span><span class="pln"><span class="pln"><span class="pln">property name</span></span></span><span class="pun"><span class="pun"><span class="pun">=</span></span></span><span class="str"><span class="str"><span class="str">&quot;packagesToScan&quot;</span></span></span><span class="pln"><span class="pln"><span class="pln"> value</span></span></span><span class="pun"><span class="pun"><span class="pun">=</span></span></span><span class="str"><span class="str"><span class="str">&quot;com.myapp.entity&quot;</span></span></span><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="pun"><span class="pun"><span class="pun">/&gt;</span></span></span><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="pun"><span class="pun"><span class="pun">&lt;</span></span></span><span class="pln"><span class="pln"><span class="pln">property name</span></span></span><span class="pun"><span class="pun"><span class="pun">=</span></span></span><span class="str"><span class="str"><span class="str">&quot;loadTimeWeaver&quot;</span></span></span><span class="pun"><span class="pun"><span class="pun">&gt;</span></span></span><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="pun"><span class="pun"><span class="pun">&lt;</span></span></span><span class="pln"><span class="pln"><span class="pln">bean </span></span></span><span class="kwd"><span class="kwd"><span class="kwd">class</span></span></span><span class="pun"><span class="pun"><span class="pun">=</span></span></span><span class="str"><span class="str"><span class="str">&quot;org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver&quot;</span></span></span><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="pun"><span class="pun"><span class="pun">/&gt;</span></span></span><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="pun"><span class="pun"><span class="pun">&lt;/</span></span></span><span class="pln"><span class="pln"><span class="pln">property</span></span></span><span class="pun"><span class="pun"><span class="pun">&gt;</span></span></span><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="pun"><span class="pun"><span class="pun">&lt;/</span></span></span><span class="pln"><span class="pln"><span class="pln">bean</span></span></span><span class="pun"><span class="pun"><span class="pun">&gt;</span></span></span><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="pun"><span class="pun"><span class="pun">&lt;!--</span></span></span><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="typ"><span class="typ"><span class="typ">Configure</span></span></span><span class="pln"><span class="pln"><span class="pln"> the transaction manager bean </span></span></span><span class="pun"><span class="pun"><span class="pun">--&gt;</span></span></span><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="pun"><span class="pun"><span class="pun">&lt;</span></span></span><span class="pln"><span class="pln"><span class="pln">bean id</span></span></span><span class="pun"><span class="pun"><span class="pun">=</span></span></span><span class="str"><span class="str"><span class="str">&quot;transactionManager&quot;</span></span></span><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="kwd"><span class="kwd"><span class="kwd">class</span></span></span><span class="pun"><span class="pun"><span class="pun">=</span></span></span><span class="str"><span class="str"><span class="str">&quot;org.springframework.orm.jpa.JpaTransactionManager&quot;</span></span></span><span class="pun"><span class="pun"><span class="pun">&gt;</span></span></span><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="pun"><span class="pun"><span class="pun">&lt;</span></span></span><span class="pln"><span class="pln"><span class="pln">property name</span></span></span><span class="pun"><span class="pun"><span class="pun">=</span></span></span><span class="str"><span class="str"><span class="str">&quot;entityManagerFactory&quot;</span></span></span><span class="pln"><span class="pln"><span class="pln"> ref</span></span></span><span class="pun"><span class="pun"><span class="pun">=</span></span></span><span class="str"><span class="str"><span class="str">&quot;entityManagerFactory&quot;</span></span></span><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="pun"><span class="pun"><span class="pun">/&gt;</span></span></span><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="pun"><span class="pun"><span class="pun">&lt;/</span></span></span><span class="pln"><span class="pln"><span class="pln">bean</span></span></span><span class="pun"><span class="pun"><span class="pun">&gt;</span></span></span><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="pun"><span class="pun"><span class="pun">&lt;!--</span></span></span><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="typ"><span class="typ"><span class="typ">Enable</span></span></span><span class="pln"><span class="pln"><span class="pln"> annotation driven transaction management </span></span></span><span class="pun"><span class="pun"><span class="pun">--&gt;</span></span></span><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="pun"><span class="pun"><span class="pun">&lt;</span></span></span><span class="pln"><span class="pln"><span class="pln">tx</span></span></span><span class="pun"><span class="pun"><span class="pun">:</span></span></span><span class="pln"><span class="pln"><span class="pln">annotation</span></span></span><span class="pun"><span class="pun"><span class="pun">-</span></span></span><span class="pln"><span class="pln"><span class="pln">driven </span></span></span><span class="pun"><span class="pun"><span class="pun">/&gt;</span></span></span><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="pun"><span class="pun"><span class="pun">&lt;!--</span></span></span><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="typ"><span class="typ"><span class="typ">Configure</span></span></span><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="typ"><span class="typ"><span class="typ">Spring</span></span></span><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="typ"><span class="typ"><span class="typ">Data</span></span></span><span class="pln"><span class="pln"><span class="pln"> JPA and set the base </span></span></span><span class="kwd"><span class="kwd"><span class="kwd">package</span></span></span><span class="pln"><span class="pln"><span class="pln"> of the repository interfaces </span></span></span><span class="pun"><span class="pun"><span class="pun">--&gt;</span></span></span><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="pun"><span class="pun"><span class="pun">&lt;</span></span></span><span class="pln"><span class="pln"><span class="pln">jpa</span></span></span><span class="pun"><span class="pun"><span class="pun">:</span></span></span><span class="pln"><span class="pln"><span class="pln">repositories base</span></span></span><span class="pun"><span class="pun"><span class="pun">-</span></span></span><span class="kwd"><span class="kwd"><span class="kwd">package</span></span></span><span class="pun"><span class="pun"><span class="pun">=</span></span></span><span class="str"><span class="str"><span class="str">&quot;com.myapp.repository&quot;</span></span></span><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="pun"><span class="pun"><span class="pun">/&gt;</span></span></span><span class="pln"><span class="pln"><span class="pln"> </span></span></span><span class="pun"><span class="pun"><span class="pun">&lt;/</span></span></span><span class="pln"><span class="pln"><span class="pln">beans</span></span></span><span class="pun"><span class="pun"><span class="pun">&gt;</span></span></span></code></pre> <p>I don&#39;t use a persistence.xml since I declare my EntityManagerFactory as LocalContainerEntityManagerFactoryBean, but all examples I found online with OSGI were with persistence.xml</p> <p>&nbsp;</p> <p>Thanks in advance for your help.</p> <p>Rudy</p> <p>&nbsp;</p> <p>Edit :</p> <p>I heard that OSGI with JPA only works with persistence.xml, so I adapted my code to that :</p> <p>I declared a jndi resource on the /jahia/tomcat/webapps/ROOT/META-INF/context.xml next to the jdbc/jahia one</p> <p>Then add the persistence.xml in the META-INF folder of my module :</p> <p>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?&gt;<br /> &lt;persistence version=&quot;2.0&quot;<br /> &nbsp;&nbsp;&nbsp; xsi:schemaLocation=&quot;http://java.sun.com/xml/ns/persistence<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd&quot;<br /> &nbsp;&nbsp;&nbsp; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xmlns=&quot;http://java.sun.com/xml/ns/persistence&quot;&gt;</p> <p>&nbsp;&nbsp;&nbsp; &lt;persistence-unit name=&quot;myPersistenceUnit&quot;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; transaction-type=&quot;RESOURCE_LOCAL&quot;&gt;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;provider&gt;org.hibernate.ejb.HibernatePersistence&lt;/provider&gt;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;non-jta-data-source&gt;java:comp/env/jdbc/myJndiResource&lt;/non-jta-data-source&gt;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;class&gt;com.myapp.entity.MyEntity&lt;/class&gt;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;exclude-unlisted-classes&gt;true&lt;/exclude-unlisted-classes&gt;<br /> &nbsp;&nbsp;&nbsp; &lt;/persistence-unit&gt;</p> <p>&lt;/persistence&gt;</p> <p>Then I changed my EntityManagerFactory that way :</p> <p>&nbsp;&nbsp;&nbsp; &lt;bean id=&quot;myDataSource&quot; class=&quot;org.springframework.jndi.JndiObjectFactoryBean&quot;&gt;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;property name=&quot;jndiName&quot; value=&quot;java:comp/env/jdbc/myJndiResource&quot; /&gt;<br /> &nbsp;&nbsp;&nbsp; &lt;/bean&gt;</p> <p>&nbsp;&nbsp;&nbsp; &lt;!-- Configure the entity manager factory bean --&gt;<br /> &nbsp;&nbsp;&nbsp; &lt;bean id=&quot;entityManagerFactory&quot;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; class=&quot;org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean&quot;&gt;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;property name=&quot;dataSource&quot; ref=&quot;myDataSource&quot; /&gt;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;property name=&quot;persistenceUnitName&quot; value=&quot;myPersistenceUnit&quot; /&gt;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;property name=&quot;persistenceXmlLocation&quot; value=&quot;classpath:META-INF/persistence.xml&quot; /&gt;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;property name=&quot;jpaDialect&quot;&gt;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;bean class=&quot;org.springframework.orm.jpa.vendor.HibernateJpaDialect&quot; /&gt;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/property&gt;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;property name=&quot;jpaPropertyMap&quot;&gt;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;map&gt;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;entry key=&quot;hibernate.dialect&quot; value=&quot;org.hibernate.dialect.MySQL5InnoDBDialect&quot; /&gt;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;entry key=&quot;hibernate.hbm2ddl.auto&quot; value=&quot;&quot; /&gt;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;entry key=&quot;hibernate.show_sql&quot; value=&quot;false&quot; /&gt;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/map&gt;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/property&gt;<br /> &nbsp;&nbsp;&nbsp; &lt;/bean&gt;</p> <p>And finally I updated my pom.xml to add several manifest entries to the maven bundle plugin :</p> <p>&lt;Import-Package&gt;javax.persistence;version=&quot;1.1.0&quot;;jpa=&quot;2.0&quot;,*&lt;/Import-Package&gt;</p> <p>&lt;Meta-Persistence&gt;META-INF/persistence.xml&lt;/Meta-Persistence&gt;</p> <p>I still have an error, but quite different :</p> <p>2015-09-25 11:25:59,913: ERROR [JahiaOsgiBundleApplicationContextListener] - Application context refresh failed for bundle XXXX (XXXX)<br /> org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from OSGi resource[classpath:org/jahia/defaults/config/spring/modules-applicationcontext-registry.xml|bnd.id<br /> =129|bnd.sym=XXXX]; nested exception is java.io.FileNotFoundException: OSGi resource[classpath:org/jahia/defaults/config/spring/modules-applicationcontext-registry.xml|bnd.id=129|bnd.sym<br /> =XXXX] cannot be resolved to URL because it does not exist<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:174)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:209)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.eclipse.gemini.blueprint.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:170)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.eclipse.gemini.blueprint.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:140)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:539)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:451)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.access$301(AbstractDelegatedExecutionApplicationContext.java:60)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext$1.run(AbstractDelegatedExecutionApplicationContext.java:168)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.eclipse.gemini.blueprint.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.normalRefresh(AbstractDelegatedExecutionApplicationContext.java:164)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.jahia.bundles.blueprint.extender.config.JahiaOsgiBundleXmlApplicationContext$JahiaOsgiApplicationContextExecutor.refresh(JahiaOsgiBundleXmlApplicationContext.java:110)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.jahia.bundles.blueprint.extender.config.JahiaOsgiBundleXmlApplicationContext.refresh(JahiaOsgiBundleXmlApplicationContext.java:99)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.eclipse.gemini.blueprint.extender.internal.activator.LifecycleManager$1.run(LifecycleManager.java:211)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.jahia.bundles.blueprint.extender.config.SynchronousExecutor.execute(SynchronousExecutor.java:82)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.eclipse.gemini.blueprint.extender.internal.activator.LifecycleManager.maybeCreateApplicationContextFor(LifecycleManager.java:270)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.eclipse.gemini.blueprint.extender.internal.activator.ContextLoaderListener$ContextBundleListener.handleEvent(ContextLoaderListener.java:223)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.eclipse.gemini.blueprint.extender.internal.activator.ContextLoaderListener$BaseListener.bundleChanged(ContextLoaderListener.java:137)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:913)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:834)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:516)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4531)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.felix.framework.Felix.startBundle(Felix.java:2169)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:977)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.felix.fileinstall.internal.DirectoryWatcher.restartBundlesAfterUpdate(DirectoryWatcher.java:1193)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:513)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:294)<br /> Caused by: java.io.FileNotFoundException: OSGi resource[classpath:org/jahia/defaults/config/spring/modules-applicationcontext-registry.xml|bnd.id=129|bnd.sym=XXXX] cannot be resolved to<br /> URL because it does not exist<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.eclipse.gemini.blueprint.io.OsgiBundleResource.getURL(OsgiBundleResource.java:229)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.eclipse.gemini.blueprint.io.OsgiBundleResource.getInputStream(OsgiBundleResource.java:181)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:329)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ... 29 more<br /> 2015-09-25 11:25:59,929: ERROR [JahiaOsgiBundleApplicationContextListener] - Cannot start spring context for bundle XXXX (XXXX)<br /> 2015-09-25 11:25:59,929: WARN&nbsp; [ContextLoaderListener$ContextBundleListener] - Got exception while handling event org.osgi.framework.BundleEvent[source=XXXX [129]]<br /> org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from OSGi resource[classpath:org/jahia/defaults/config/spring/modules-applicationcontext-registry.xml|bnd.id<br /> =129|bnd.sym=XXXX]; nested exception is java.io.FileNotFoundException: OSGi resource[classpath:org/jahia/defaults/config/spring/modules-applicationcontext-registry.xml|bnd.id=129|bnd.sym<br /> =XXXX] cannot be resolved to URL because it does not exist<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:174)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:209)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.eclipse.gemini.blueprint.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:170)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.eclipse.gemini.blueprint.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:140)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:539)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:451)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.access$301(AbstractDelegatedExecutionApplicationContext.java:60)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext$1.run(AbstractDelegatedExecutionApplicationContext.java:168)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.eclipse.gemini.blueprint.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.normalRefresh(AbstractDelegatedExecutionApplicationContext.java:164)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.jahia.bundles.blueprint.extender.config.JahiaOsgiBundleXmlApplicationContext$JahiaOsgiApplicationContextExecutor.refresh(JahiaOsgiBundleXmlApplicationContext.java:110)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.jahia.bundles.blueprint.extender.config.JahiaOsgiBundleXmlApplicationContext.refresh(JahiaOsgiBundleXmlApplicationContext.java:99)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.eclipse.gemini.blueprint.extender.internal.activator.LifecycleManager$1.run(LifecycleManager.java:211)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.jahia.bundles.blueprint.extender.config.SynchronousExecutor.execute(SynchronousExecutor.java:82)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.eclipse.gemini.blueprint.extender.internal.activator.LifecycleManager.maybeCreateApplicationContextFor(LifecycleManager.java:270)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.eclipse.gemini.blueprint.extender.internal.activator.ContextLoaderListener$ContextBundleListener.handleEvent(ContextLoaderListener.java:223)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.eclipse.gemini.blueprint.extender.internal.activator.ContextLoaderListener$BaseListener.bundleChanged(ContextLoaderListener.java:137)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:913)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:834)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:516)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4531)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.felix.framework.Felix.startBundle(Felix.java:2169)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:977)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.felix.fileinstall.internal.DirectoryWatcher.restartBundlesAfterUpdate(DirectoryWatcher.java:1193)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:513)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:294)<br /> Caused by: java.io.FileNotFoundException: OSGi resource[classpath:org/jahia/defaults/config/spring/modules-applicationcontext-registry.xml|bnd.id=129|bnd.sym=XXXX] cannot be resolved to<br /> URL because it does not exist<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.eclipse.gemini.blueprint.io.OsgiBundleResource.getURL(OsgiBundleResource.java:229)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.eclipse.gemini.blueprint.io.OsgiBundleResource.getInputStream(OsgiBundleResource.java:181)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:329)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ... 29 more</p> <p>&nbsp;</p> <p>Re-Edit:</p> <p>I finally got rid of this error messages adding the correctf dependency and import packages in the felix plugin. It seems that the only problem left is to load the mysql-connector-driver into my module.</p> <p>I added the following maven dependency :</p> <pre class="lang-java prettyprint prettyprinted" style=""> &lt;dependency&gt; &lt;groupId&gt;mysql&lt;/groupId&gt; &lt;artifactId&gt;mysql-connector-java&lt;/artifactId&gt; &lt;version&gt;5.1.35&lt;/version&gt; &lt;/dependency&gt;</pre> <p>wich is an OSGI compliant bundle that exports the com.mysql.jdbc package.</p> <p>I added the following import package in the manifest entries :</p> <p>com.mysql.jdbc;version=&quot;5.1.35&quot;</p> <p>But I still have an error where the Driver is not found on the bundle deployment in Jahia :</p> <p>2015-09-25 17:50:48,435: WARN&nbsp; [InputStreamZippedJarVisitor] - HHH015010: Unable to find file (ignored): bundle://129.107:1<br /> java.io.IOException: Resource does not exist: bundle://129.107:1<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.felix.framework.URLHandlersBundleURLConnection.&lt;init&gt;(URLHandlersBundleURLConnection.java:60)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.felix.framework.URLHandlersBundleStreamHandler.openConnection(URLHandlersBundleStreamHandler.java:64)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at java.net.URL.openConnection(URL.java:972)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at java.net.URL.openStream(URL.java:1038)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.hibernate.ejb.packaging.InputStreamZippedJarVisitor.doProcessElements(InputStreamZippedJarVisitor.java:62)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.hibernate.ejb.packaging.AbstractJarVisitor.getMatchingEntries(AbstractJarVisitor.java:149)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.hibernate.ejb.packaging.NativeScanner.getFilesInJar(NativeScanner.java:192)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.hibernate.ejb.Ejb3Configuration.addScannedEntries(Ejb3Configuration.java:506)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.hibernate.ejb.Ejb3Configuration.scanForClasses(Ejb3Configuration.java:861)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:606)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:75)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:290)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:310)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1573)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1511)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:191)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1119)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:924)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.access$301(AbstractDelegatedExecutionApplicationContext.java:60)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext$1.run(AbstractDelegatedExecutionApplicationContext.java:168)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.eclipse.gemini.blueprint.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.normalRefresh(AbstractDelegatedExecutionApplicationContext.java:164)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.jahia.bundles.blueprint.extender.config.JahiaOsgiBundleXmlApplicationContext$JahiaOsgiApplicationContextExecutor.refresh(JahiaOsgiBundleXmlApplicationContext.java:110)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.jahia.bundles.blueprint.extender.config.JahiaOsgiBundleXmlApplicationContext.refresh(JahiaOsgiBundleXmlApplicationContext.java:99)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.eclipse.gemini.blueprint.extender.internal.activator.LifecycleManager$1.run(LifecycleManager.java:211)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.jahia.bundles.blueprint.extender.config.SynchronousExecutor.execute(SynchronousExecutor.java:82)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.eclipse.gemini.blueprint.extender.internal.activator.LifecycleManager.maybeCreateApplicationContextFor(LifecycleManager.java:270)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.eclipse.gemini.blueprint.extender.internal.activator.ContextLoaderListener$ContextBundleListener.handleEvent(ContextLoaderListener.java:223)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.eclipse.gemini.blueprint.extender.internal.activator.ContextLoaderListener$BaseListener.bundleChanged(ContextLoaderListener.java:137)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:913)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:834)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:516)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4531)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.felix.framework.Felix.startBundle(Felix.java:2169)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.felix.framework.Felix$RefreshHelper.restart(Felix.java:5051)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.felix.framework.Felix.refreshPackages(Felix.java:4243)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.felix.framework.FrameworkWiringImpl.run(FrameworkWiringImpl.java:188)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at java.lang.Thread.run(Thread.java:745)<br /> 2015-09-25 17:50:48,474: WARN&nbsp; [JdbcServicesImpl] - HHH000342: Could not obtain connection to query metadata : No suitable driver found for jdbc:mysql://localhost:3306/test_db</p> <p>Is it another way to include mysql jdbc drivers ? Thanks in advance for your help.</p> <p>Regards,</p> <p>Rudy</p>

  • Number of messages  3
    Registration date Sep 11, 2015
    0 (0 Good)
    0 (0 Bad)

    Re: Error when trying to declare EntityManagerFactory in spring in an Jahia OSGI module

    by  claprun »  2015/09/28 09:26

    Hi Rudy,

    How do you build your module? Also, can you check if you have the mysql JDBC driver jar in the lib directory of your Tomcat installation?

    Best,

    Chris

  • Re: Error when trying to declare EntityManagerFactory in spring in an Jahia OSGI module
    2015/09/28 09:26

    claprun <p>Hi Rudy,</p> <p>How do you build your module? Also, can you check if you have the mysql JDBC driver jar in the lib directory of your Tomcat installation?</p> <p>Best,</p> <p>Chris</p>

  • Number of messages  5
    Registration date Sep 28, 2015
    0 (0 Good)
    0 (0 Bad)

    Re: Re: Error when trying to declare EntityManagerFactory in spring in an Jahia OSGI module

    by  rujan »  2015/11/17 11:03

    Hi Chris,

     

    thank you for your answer.

    My errors have changed now, and I created a new topic here with my current problem :

    https://www.jahia.com/home/resources/forum/general/jahia-in-english/cannot-connect-to-mysql-with-jpa.html

    If you can still help me !

    For information the module is build via the jahia:deploy maven task. And the mysql driver lib is packed in my OSGI module.

     

    Regards,

    Rudy

  • Re: Re: Error when trying to declare EntityManagerFactory in spring in an Jahia OSGI module
    2015/11/17 11:03

    rujan <p>Hi Chris,</p> <p>&nbsp;</p> <p>thank you for your answer.</p> <p>My errors have changed now, and I created a new topic here with my current problem :</p> <p>https://www.jahia.com/home/resources/forum/general/jahia-in-english/cannot-connect-to-mysql-with-jpa.html</p> <p>If you can still help me !</p> <p>For information the module is build via the jahia:deploy maven task. And the mysql driver lib is packed in my OSGI module.</p> <p>&nbsp;</p> <p>Regards,</p> <p>Rudy</p>

  • Number of messages  3
    Registration date Nov 17, 2015
    Contact
    Share
    Feedback

    Get in touch

    Whether you are a current user or if you are just evaluating Jahia, we are here to help.

    Contact us

    Share this page