Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] EclipseLink OSGi bundles deployment in Tomcat (with Eclipse ServletBridge) errors.

Dear Tom,
 
Thanks for the replies. It must be reachable as the 'Bundle-ClassPath' is specified as having '.', likewise the following;
 

Manifest-Version

: 1.0

Bundle-ManifestVersion

: 2

Bundle-Name

: JPA Plug-in for Profile

Bundle-SymbolicName

: my.mimos.mcpc.server.jpa.profile

Bundle-Version

: 1.0.0

Bundle-Activator

: my.mimos.mcpc.server.jpa.profile.JPAPlugin

Bundle-Localization

: plugin

Import-Package

: javax.persistence,

org.apache.log4j,

org.osgi.framework;

version="1.4.0"

Export-Package

: my.mimos.mcpc.server.jpa.profile.osgi.services;version="1.0.0"

Bundle-ClassPath

: lib/mysql-connector-java-5.1.6-bin.jar,

.

Bundle-Vendor

: Azrinsyah Mirza Asfian for MIMOS Berhad

Require-Bundle

: my.mimos.mcpc.profile.domain;bundle-version="[1.0.0,1.1.0)",

org.eclipse.persistence.jpa

JPA-PersistenceUnits

: entityManager

I have tried to make use of the new stable version, unfortunately I have the following exceptions when running inside Eclipse IDE;


2008-07-22 11:24:37,398 DEBUG my.mimos.mcpc.server.manager.application.SiteUpdateServiceImpl - The applicationPersistenceService is not [null]

org.osgi.framework.BundleException

: Exception in my.mimos.mcpc.server.manager.application.test.TestApplicationManagerPlugin.start() of bundle my.mimos.mcpc.server.manager.application.test.

at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(

BundleContextImpl.java:1018)

at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(

BundleContextImpl.java:974)

at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(

BundleHost.java:346)

at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(

AbstractBundle.java:260)

at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(

AbstractBundle.java:252)

at org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(

FrameworkCommandProvider.java:260)

at sun.reflect.NativeMethodAccessorImpl.invoke0(

Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(

FrameworkCommandInterpreter.java:150)

at org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(

FrameworkConsole.java:300)

at org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(

FrameworkConsole.java:285)

at org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(

FrameworkConsole.java:221)

at java.lang.Thread.run(Unknown Source)

Caused by: Exception [EclipseLink-30005] (Eclipse Persistence Services - 1.0 (Build 1.0 - 20080707)):

org.eclipse.persistence.exceptions.PersistenceUnitLoadingException

Exception Description: An exception was thrown while searching for persistence archives with ClassLoader: org.eclipse.persistence.internal.jpa.deployment.osgi.BundleProxyClassLoader@739f3f

Internal Exception: Exception [EclipseLink-28027] (Eclipse Persistence Services - 1.0 (Build 1.0 - 20080707)):

org.eclipse.persistence.exceptions.EntityManagerSetupException

Exception Description: An attempt has been made to use PersistenceUnit [bundleresource://160/applicationEntityManager], but no bundle is available that defines that persistence unit.

at org.eclipse.persistence.exceptions.PersistenceUnitLoadingException.exceptionSearchingForPersistenceResources(

PersistenceUnitLoadingException.java:121)

at org.eclipse.persistence.jpa.PersistenceProvider.createEntityManagerFactory(

PersistenceProvider.java:117)

at org.eclipse.persistence.jpa.PersistenceProvider.createEntityManagerFactory(

PersistenceProvider.java:64)

at javax.persistence.Persistence.createEntityManagerFactory(

Persistence.java:123)

at javax.persistence.Persistence.createEntityManagerFactory(

Persistence.java:99)

at my.mimos.mcpc.server.jpa.application.beans.GroupServiceBean.getGroup(

GroupServiceBean.java:64)

at my.mimos.mcpc.server.jpa.application.ApplicationPersistenceServiceImpl.getApplicationsByGroupId(

ApplicationPersistenceServiceImpl.java:45)

at my.mimos.mcpc.server.manager.application.SiteUpdateServiceImpl.updateSiteBasedOnProfile(

SiteUpdateServiceImpl.java:74)

at my.mimos.mcpc.server.manager.application.test.SiteUpdateServiceTracker.invokeService(

SiteUpdateServiceTracker.java:108)

at my.mimos.mcpc.server.manager.application.test.SiteUpdateServiceTracker.addingService(

SiteUpdateServiceTracker.java:35)

at org.osgi.util.tracker.ServiceTracker$Tracked.trackAdding(

ServiceTracker.java:1064)

at org.osgi.util.tracker.ServiceTracker$Tracked.trackInitialServices(

ServiceTracker.java:926)

at org.osgi.util.tracker.ServiceTracker.open(

ServiceTracker.java:330)

at org.osgi.util.tracker.ServiceTracker.open(

ServiceTracker.java:274)

at my.mimos.mcpc.server.manager.application.test.TestApplicationManagerPlugin.start(

TestApplicationManagerPlugin.java:46)

at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(

BundleContextImpl.java:999)

at java.security.AccessController.doPrivileged(

Native Method)

at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(

BundleContextImpl.java:993)

... 14 more

Caused by: Exception [EclipseLink-28027] (Eclipse Persistence Services - 1.0 (Build 1.0 - 20080707)):

org.eclipse.persistence.exceptions.EntityManagerSetupException

Exception Description: An attempt has been made to use PersistenceUnit [bundleresource://160/applicationEntityManager], but no bundle is available that defines that persistence unit.

at org.eclipse.persistence.exceptions.EntityManagerSetupException.couldNotFindPersistenceUnitBundle(

EntityManagerSetupException.java:298)

at org.eclipse.persistence.internal.jpa.deployment.osgi.OSGiPersistenceInitializationHelper.getClassLoader(

OSGiPersistenceInitializationHelper.java:97)

at org.eclipse.persistence.internal.jpa.deployment.JPAInitializer.callPredeploy(

JPAInitializer.java:98)

at org.eclipse.persistence.internal.jpa.deployment.JPAInitializer.initPersistenceUnits(

JPAInitializer.java:149)

at org.eclipse.persistence.internal.jpa.deployment.JPAInitializer.initialize(

JPAInitializer.java:135)

at org.eclipse.persistence.jpa.PersistenceProvider.createEntityManagerFactory(

PersistenceProvider.java:104)

... 30 more

Nested Exception:

Local Exception Stack:

Exception [EclipseLink-30005] (Eclipse Persistence Services - 1.0 (Build 1.0 - 20080707)):

org.eclipse.persistence.exceptions.PersistenceUnitLoadingException

Exception Description: An exception was thrown while searching for persistence archives with ClassLoader: org.eclipse.persistence.internal.jpa.deployment.osgi.BundleProxyClassLoader@739f3f

Internal Exception: Exception [EclipseLink-28027] (Eclipse Persistence Services - 1.0 (Build 1.0 - 20080707)):

org.eclipse.persistence.exceptions.EntityManagerSetupException

Exception Description: An attempt has been made to use PersistenceUnit [bundleresource://160/applicationEntityManager], but no bundle is available that defines that persistence unit.

at org.eclipse.persistence.exceptions.PersistenceUnitLoadingException.exceptionSearchingForPersistenceResources(

PersistenceUnitLoadingException.java:121)

at org.eclipse.persistence.jpa.PersistenceProvider.createEntityManagerFactory(

PersistenceProvider.java:117)

at org.eclipse.persistence.jpa.PersistenceProvider.createEntityManagerFactory(

PersistenceProvider.java:64)

at javax.persistence.Persistence.createEntityManagerFactory(

Persistence.java:123)

at javax.persistence.Persistence.createEntityManagerFactory(

Persistence.java:99)

at my.mimos.mcpc.server.jpa.application.beans.GroupServiceBean.getGroup(

GroupServiceBean.java:64)

at my.mimos.mcpc.server.jpa.application.ApplicationPersistenceServiceImpl.getApplicationsByGroupId(

ApplicationPersistenceServiceImpl.java:45)

at my.mimos.mcpc.server.manager.application.SiteUpdateServiceImpl.updateSiteBasedOnProfile(

SiteUpdateServiceImpl.java:74)

at my.mimos.mcpc.server.manager.application.test.SiteUpdateServiceTracker.invokeService(

SiteUpdateServiceTracker.java:108)

at my.mimos.mcpc.server.manager.application.test.SiteUpdateServiceTracker.addingService(

SiteUpdateServiceTracker.java:35)

at org.osgi.util.tracker.ServiceTracker$Tracked.trackAdding(

ServiceTracker.java:1064)

at org.osgi.util.tracker.ServiceTracker$Tracked.trackInitialServices(

ServiceTracker.java:926)

at org.osgi.util.tracker.ServiceTracker.open(

ServiceTracker.java:330)

at org.osgi.util.tracker.ServiceTracker.open(

ServiceTracker.java:274)

at my.mimos.mcpc.server.manager.application.test.TestApplicationManagerPlugin.start(

TestApplicationManagerPlugin.java:46)

at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(

BundleContextImpl.java:999)

at java.security.AccessController.doPrivileged(

Native Method)

at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(

BundleContextImpl.java:993)

at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(

BundleContextImpl.java:974)

at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(

BundleHost.java:346)

at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(

AbstractBundle.java:260)

at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(

AbstractBundle.java:252)

at org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(

FrameworkCommandProvider.java:260)

at sun.reflect.NativeMethodAccessorImpl.invoke0(

Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(

FrameworkCommandInterpreter.java:150)

at org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(

FrameworkConsole.java:300)

at org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(

FrameworkConsole.java:285)

at org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(

FrameworkConsole.java:221)

at java.lang.Thread.run(Unknown Source)

Caused by: Exception [EclipseLink-28027] (Eclipse Persistence Services - 1.0 (Build 1.0 - 20080707)):

org.eclipse.persistence.exceptions.EntityManagerSetupException

Exception Description: An attempt has been made to use PersistenceUnit [bundleresource://160/applicationEntityManager], but no bundle is available that defines that persistence unit.

at org.eclipse.persistence.exceptions.EntityManagerSetupException.couldNotFindPersistenceUnitBundle(

EntityManagerSetupException.java:298)

at org.eclipse.persistence.internal.jpa.deployment.osgi.OSGiPersistenceInitializationHelper.getClassLoader(

OSGiPersistenceInitializationHelper.java:97)

at org.eclipse.persistence.internal.jpa.deployment.JPAInitializer.callPredeploy(

JPAInitializer.java:98)

at org.eclipse.persistence.internal.jpa.deployment.JPAInitializer.initPersistenceUnits(

JPAInitializer.java:149)

at org.eclipse.persistence.internal.jpa.deployment.JPAInitializer.initialize(

JPAInitializer.java:135)

at org.eclipse.persistence.jpa.PersistenceProvider.createEntityManagerFactory(

PersistenceProvider.java:104)

... 30 more

Nested Exception:

Local Exception Stack:

Exception [EclipseLink-28027] (Eclipse Persistence Services - 1.0 (Build 1.0 - 20080707)):

org.eclipse.persistence.exceptions.EntityManagerSetupException

Exception Description: An attempt has been made to use PersistenceUnit [bundleresource://160/applicationEntityManager], but no bundle is available that defines that persistence unit.

at org.eclipse.persistence.exceptions.EntityManagerSetupException.couldNotFindPersistenceUnitBundle(

EntityManagerSetupException.java:298)

at org.eclipse.persistence.internal.jpa.deployment.osgi.OSGiPersistenceInitializationHelper.getClassLoader(

OSGiPersistenceInitializationHelper.java:97)

at org.eclipse.persistence.internal.jpa.deployment.JPAInitializer.callPredeploy(

JPAInitializer.java:98)

at org.eclipse.persistence.internal.jpa.deployment.JPAInitializer.initPersistenceUnits(

JPAInitializer.java:149)

at org.eclipse.persistence.internal.jpa.deployment.JPAInitializer.initialize(

JPAInitializer.java:135)

at org.eclipse.persistence.jpa.PersistenceProvider.createEntityManagerFactory(

PersistenceProvider.java:104)

at org.eclipse.persistence.jpa.PersistenceProvider.createEntityManagerFactory(

PersistenceProvider.java:64)

at javax.persistence.Persistence.createEntityManagerFactory(

Persistence.java:123)

at javax.persistence.Persistence.createEntityManagerFactory(

Persistence.java:99)

at my.mimos.mcpc.server.jpa.application.beans.GroupServiceBean.getGroup(

GroupServiceBean.java:64)

at my.mimos.mcpc.server.jpa.application.ApplicationPersistenceServiceImpl.getApplicationsByGroupId(

ApplicationPersistenceServiceImpl.java:45)

at my.mimos.mcpc.server.manager.application.SiteUpdateServiceImpl.updateSiteBasedOnProfile(

SiteUpdateServiceImpl.java:74)

at my.mimos.mcpc.server.manager.application.test.SiteUpdateServiceTracker.invokeService(

SiteUpdateServiceTracker.java:108)

at my.mimos.mcpc.server.manager.application.test.SiteUpdateServiceTracker.addingService(

SiteUpdateServiceTracker.java:35)

at org.osgi.util.tracker.ServiceTracker$Tracked.trackAdding(

ServiceTracker.java:1064)

at org.osgi.util.tracker.ServiceTracker$Tracked.trackInitialServices(

ServiceTracker.java:926)

at org.osgi.util.tracker.ServiceTracker.open(

ServiceTracker.java:330)

at org.osgi.util.tracker.ServiceTracker.open(

ServiceTracker.java:274)

at my.mimos.mcpc.server.manager.application.test.TestApplicationManagerPlugin.start(

TestApplicationManagerPlugin.java:46)

at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(

BundleContextImpl.java:999)

at java.security.AccessController.doPrivileged(

Native Method)

at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(

BundleContextImpl.java:993)

at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(

BundleContextImpl.java:974)

at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(

BundleHost.java:346)

at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(

AbstractBundle.java:260)

at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(

AbstractBundle.java:252)

at org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(

FrameworkCommandProvider.java:260)

at sun.reflect.NativeMethodAccessorImpl.invoke0(

Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(

FrameworkCommandInterpreter.java:150)

at org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(

FrameworkConsole.java:300)

at org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(

FrameworkConsole.java:285)

at org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(

FrameworkConsole.java:221)

at java.lang.Thread.run(Unknown Source)

Nested Exception:

Local Exception Stack:

Exception [EclipseLink-28027] (Eclipse Persistence Services - 1.0 (Build 1.0 - 20080707)):

org.eclipse.persistence.exceptions.EntityManagerSetupException

Exception Description: An attempt has been made to use PersistenceUnit [bundleresource://160/applicationEntityManager], but no bundle is available that defines that persistence unit.

at org.eclipse.persistence.exceptions.EntityManagerSetupException.couldNotFindPersistenceUnitBundle(

EntityManagerSetupException.java:298)

at org.eclipse.persistence.internal.jpa.deployment.osgi.OSGiPersistenceInitializationHelper.getClassLoader(

OSGiPersistenceInitializationHelper.java:97)

at org.eclipse.persistence.internal.jpa.deployment.JPAInitializer.callPredeploy(

JPAInitializer.java:98)

at org.eclipse.persistence.internal.jpa.deployment.JPAInitializer.initPersistenceUnits(

JPAInitializer.java:149)

at org.eclipse.persistence.internal.jpa.deployment.JPAInitializer.initialize(

JPAInitializer.java:135)

at org.eclipse.persistence.jpa.PersistenceProvider.createEntityManagerFactory(

PersistenceProvider.java:104)

at org.eclipse.persistence.jpa.PersistenceProvider.createEntityManagerFactory(

PersistenceProvider.java:64)

at javax.persistence.Persistence.createEntityManagerFactory(

Persistence.java:123)

at javax.persistence.Persistence.createEntityManagerFactory(

Persistence.java:99)

at my.mimos.mcpc.server.jpa.application.beans.GroupServiceBean.getGroup(

GroupServiceBean.java:64)

at my.mimos.mcpc.server.jpa.application.ApplicationPersistenceServiceImpl.getApplicationsByGroupId(

ApplicationPersistenceServiceImpl.java:45)

at my.mimos.mcpc.server.manager.application.SiteUpdateServiceImpl.updateSiteBasedOnProfile(

SiteUpdateServiceImpl.java:74)

at my.mimos.mcpc.server.manager.application.test.SiteUpdateServiceTracker.invokeService(

SiteUpdateServiceTracker.java:108)

at my.mimos.mcpc.server.manager.application.test.SiteUpdateServiceTracker.addingService(

SiteUpdateServiceTracker.java:35)

at org.osgi.util.tracker.ServiceTracker$Tracked.trackAdding(

ServiceTracker.java:1064)

at org.osgi.util.tracker.ServiceTracker$Tracked.trackInitialServices(

ServiceTracker.java:926)

at org.osgi.util.tracker.ServiceTracker.open(

ServiceTracker.java:330)

at org.osgi.util.tracker.ServiceTracker.open(

ServiceTracker.java:274)

at my.mimos.mcpc.server.manager.application.test.TestApplicationManagerPlugin.start(

TestApplicationManagerPlugin.java:46)

at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(

BundleContextImpl.java:999)

at java.security.AccessController.doPrivileged(

Native Method)

at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(

BundleContextImpl.java:993)

at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(

BundleContextImpl.java:974)

at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(

BundleHost.java:346)

at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(

AbstractBundle.java:260)

at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(

AbstractBundle.java:252)

at org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(

FrameworkCommandProvider.java:260)

at sun.reflect.NativeMethodAccessorImpl.invoke0(

Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(

FrameworkCommandInterpreter.java:150)

at org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(

FrameworkConsole.java:300)

at org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(

FrameworkConsole.java:285)

at org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(

FrameworkConsole.java:221)

at java.lang.Thread.run(Unknown Source)

Nested Exception:

Local Exception Stack:

Exception [EclipseLink-30005] (Eclipse Persistence Services - 1.0 (Build 1.0 - 20080707)):

org.eclipse.persistence.exceptions.PersistenceUnitLoadingException

Exception Description: An exception was thrown while searching for persistence archives with ClassLoader: org.eclipse.persistence.internal.jpa.deployment.osgi.BundleProxyClassLoader@739f3f

Internal Exception: Exception [EclipseLink-28027] (Eclipse Persistence Services - 1.0 (Build 1.0 - 20080707)):

org.eclipse.persistence.exceptions.EntityManagerSetupException

Exception Description: An attempt has been made to use PersistenceUnit [bundleresource://160/applicationEntityManager], but no bundle is available that defines that persistence unit.

at org.eclipse.persistence.exceptions.PersistenceUnitLoadingException.exceptionSearchingForPersistenceResources(

PersistenceUnitLoadingException.java:121)

at org.eclipse.persistence.jpa.PersistenceProvider.createEntityManagerFactory(

PersistenceProvider.java:117)

at org.eclipse.persistence.jpa.PersistenceProvider.createEntityManagerFactory(

PersistenceProvider.java:64)

at javax.persistence.Persistence.createEntityManagerFactory(

Persistence.java:123)

at javax.persistence.Persistence.createEntityManagerFactory(

Persistence.java:99)

at my.mimos.mcpc.server.jpa.application.beans.GroupServiceBean.getGroup(

GroupServiceBean.java:64)

at my.mimos.mcpc.server.jpa.application.ApplicationPersistenceServiceImpl.getApplicationsByGroupId(

ApplicationPersistenceServiceImpl.java:45)

at my.mimos.mcpc.server.manager.application.SiteUpdateServiceImpl.updateSiteBasedOnProfile(

SiteUpdateServiceImpl.java:74)

at my.mimos.mcpc.server.manager.application.test.SiteUpdateServiceTracker.invokeService(

SiteUpdateServiceTracker.java:108)

at my.mimos.mcpc.server.manager.application.test.SiteUpdateServiceTracker.addingService(

SiteUpdateServiceTracker.java:35)

at org.osgi.util.tracker.ServiceTracker$Tracked.trackAdding(

ServiceTracker.java:1064)

at org.osgi.util.tracker.ServiceTracker$Tracked.trackInitialServices(

ServiceTracker.java:926)

at org.osgi.util.tracker.ServiceTracker.open(

ServiceTracker.java:330)

at org.osgi.util.tracker.ServiceTracker.open(

ServiceTracker.java:274)

at my.mimos.mcpc.server.manager.application.test.TestApplicationManagerPlugin.start(

TestApplicationManagerPlugin.java:46)

at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(

BundleContextImpl.java:999)

at java.security.AccessController.doPrivileged(

Native Method)

at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(

BundleContextImpl.java:993)

at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(

BundleContextImpl.java:974)

at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(

BundleHost.java:346)

at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(

AbstractBundle.java:260)

at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(

AbstractBundle.java:252)

at org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(

FrameworkCommandProvider.java:260)

at sun.reflect.NativeMethodAccessorImpl.invoke0(

Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(

FrameworkCommandInterpreter.java:150)

at org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(

FrameworkConsole.java:300)

at org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(

FrameworkConsole.java:285)

at org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(

FrameworkConsole.java:221)

at java.lang.Thread.run(Unknown Source)

Caused by: Exception [EclipseLink-28027] (Eclipse Persistence Services - 1.0 (Build 1.0 - 20080707)):

org.eclipse.persistence.exceptions.EntityManagerSetupException

Exception Description: An attempt has been made to use PersistenceUnit [bundleresource://160/applicationEntityManager], but no bundle is available that defines that persistence unit.

at org.eclipse.persistence.exceptions.EntityManagerSetupException.couldNotFindPersistenceUnitBundle(

EntityManagerSetupException.java:298)

at org.eclipse.persistence.internal.jpa.deployment.osgi.OSGiPersistenceInitializationHelper.getClassLoader(

OSGiPersistenceInitializationHelper.java:97)

at org.eclipse.persistence.internal.jpa.deployment.JPAInitializer.callPredeploy(

JPAInitializer.java:98)

at org.eclipse.persistence.internal.jpa.deployment.JPAInitializer.initPersistenceUnits(

JPAInitializer.java:149)

at org.eclipse.persistence.internal.jpa.deployment.JPAInitializer.initialize(

JPAInitializer.java:135)

at org.eclipse.persistence.jpa.PersistenceProvider.createEntityManagerFactory(

PersistenceProvider.java:104)

... 30 more

Nested Exception:

Local Exception Stack:

Exception [EclipseLink-28027] (Eclipse Persistence Services - 1.0 (Build 1.0 - 20080707)):

org.eclipse.persistence.exceptions.EntityManagerSetupException

Exception Description: An attempt has been made to use PersistenceUnit [bundleresource://160/applicationEntityManager], but no bundle is available that defines that persistence unit.

at org.eclipse.persistence.exceptions.EntityManagerSetupException.couldNotFindPersistenceUnitBundle(

EntityManagerSetupException.java:298)

at org.eclipse.persistence.internal.jpa.deployment.osgi.OSGiPersistenceInitializationHelper.getClassLoader(

OSGiPersistenceInitializationHelper.java:97)

at org.eclipse.persistence.internal.jpa.deployment.JPAInitializer.callPredeploy(

JPAInitializer.java:98)

at org.eclipse.persistence.internal.jpa.deployment.JPAInitializer.initPersistenceUnits(

JPAInitializer.java:149)

at org.eclipse.persistence.internal.jpa.deployment.JPAInitializer.initialize(

JPAInitializer.java:135)

at org.eclipse.persistence.jpa.PersistenceProvider.createEntityManagerFactory(

PersistenceProvider.java:104)

at org.eclipse.persistence.jpa.PersistenceProvider.createEntityManagerFactory(

PersistenceProvider.java:64)

at javax.persistence.Persistence.createEntityManagerFactory(

Persistence.java:123)

at javax.persistence.Persistence.createEntityManagerFactory(

Persistence.java:99)

at my.mimos.mcpc.server.jpa.application.beans.GroupServiceBean.getGroup(

GroupServiceBean.java:64)

at my.mimos.mcpc.server.jpa.application.ApplicationPersistenceServiceImpl.getApplicationsByGroupId(

ApplicationPersistenceServiceImpl.java:45)

at my.mimos.mcpc.server.manager.application.SiteUpdateServiceImpl.updateSiteBasedOnProfile(

SiteUpdateServiceImpl.java:74)

at my.mimos.mcpc.server.manager.application.test.SiteUpdateServiceTracker.invokeService(

SiteUpdateServiceTracker.java:108)

at my.mimos.mcpc.server.manager.application.test.SiteUpdateServiceTracker.addingService(

SiteUpdateServiceTracker.java:35)

at org.osgi.util.tracker.ServiceTracker$Tracked.trackAdding(

ServiceTracker.java:1064)

at org.osgi.util.tracker.ServiceTracker$Tracked.trackInitialServices(

ServiceTracker.java:926)

at org.osgi.util.tracker.ServiceTracker.open(

ServiceTracker.java:330)

at org.osgi.util.tracker.ServiceTracker.open(

ServiceTracker.java:274)

at my.mimos.mcpc.server.manager.application.test.TestApplicationManagerPlugin.start(

TestApplicationManagerPlugin.java:46)

at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(

BundleContextImpl.java:999)

at java.security.AccessController.doPrivileged(

Native Method)

at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(

BundleContextImpl.java:993)

at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(

BundleContextImpl.java:974)

at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(

BundleHost.java:346)

at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(

AbstractBundle.java:260)

at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(

AbstractBundle.java:252)

at org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(

FrameworkCommandProvider.java:260)

at sun.reflect.NativeMethodAccessorImpl.invoke0(

Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(

FrameworkCommandInterpreter.java:150)

at org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(

FrameworkConsole.java:300)

at org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(

FrameworkConsole.java:285)

at org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(

FrameworkConsole.java:221)

at java.lang.Thread.run(Unknown Source)

Nested Exception:

Local Exception Stack:

Exception [EclipseLink-28027] (Eclipse Persistence Services - 1.0 (Build 1.0 - 20080707)):

org.eclipse.persistence.exceptions.EntityManagerSetupException

Exception Description: An attempt has been made to use PersistenceUnit [bundleresource://160/applicationEntityManager], but no bundle is available that defines that persistence unit.

at org.eclipse.persistence.exceptions.EntityManagerSetupException.couldNotFindPersistenceUnitBundle(

EntityManagerSetupException.java:298)

at org.eclipse.persistence.internal.jpa.deployment.osgi.OSGiPersistenceInitializationHelper.getClassLoader(

OSGiPersistenceInitializationHelper.java:97)

at org.eclipse.persistence.internal.jpa.deployment.JPAInitializer.callPredeploy(

JPAInitializer.java:98)

at org.eclipse.persistence.internal.jpa.deployment.JPAInitializer.initPersistenceUnits(

JPAInitializer.java:149)

at org.eclipse.persistence.internal.jpa.deployment.JPAInitializer.initialize(

JPAInitializer.java:135)

at org.eclipse.persistence.jpa.PersistenceProvider.createEntityManagerFactory(

PersistenceProvider.java:104)

at org.eclipse.persistence.jpa.PersistenceProvider.createEntityManagerFactory(

PersistenceProvider.java:64)

at javax.persistence.Persistence.createEntityManagerFactory(

Persistence.java:123)

at javax.persistence.Persistence.createEntityManagerFactory(

Persistence.java:99)

at my.mimos.mcpc.server.jpa.application.beans.GroupServiceBean.getGroup(

GroupServiceBean.java:64)

at my.mimos.mcpc.server.jpa.application.ApplicationPersistenceServiceImpl.getApplicationsByGroupId(

ApplicationPersistenceServiceImpl.java:45)

at my.mimos.mcpc.server.manager.application.SiteUpdateServiceImpl.updateSiteBasedOnProfile(

SiteUpdateServiceImpl.java:74)

at my.mimos.mcpc.server.manager.application.test.SiteUpdateServiceTracker.invokeService(

SiteUpdateServiceTracker.java:108)

at my.mimos.mcpc.server.manager.application.test.SiteUpdateServiceTracker.addingService(

SiteUpdateServiceTracker.java:35)

at org.osgi.util.tracker.ServiceTracker$Tracked.trackAdding(

ServiceTracker.java:1064)

at org.osgi.util.tracker.ServiceTracker$Tracked.trackInitialServices(

ServiceTracker.java:926)

at org.osgi.util.tracker.ServiceTracker.open(

ServiceTracker.java:330)

at org.osgi.util.tracker.ServiceTracker.open(

ServiceTracker.java:274)

at my.mimos.mcpc.server.manager.application.test.TestApplicationManagerPlugin.start(

TestApplicationManagerPlugin.java:46)

at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(

BundleContextImpl.java:999)

at java.security.AccessController.doPrivileged(

Native Method)

at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(

BundleContextImpl.java:993)

at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(

BundleContextImpl.java:974)

at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(

BundleHost.java:346)

at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(

AbstractBundle.java:260)

at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(

AbstractBundle.java:252)

at org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(

FrameworkCommandProvider.java:260)

at sun.reflect.NativeMethodAccessorImpl.invoke0(

Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(

FrameworkCommandInterpreter.java:150)

at org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(

FrameworkConsole.java:300)

at org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(

FrameworkConsole.java:285)

at org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(

FrameworkConsole.java:221)

at java.lang.Thread.run(Unknown Source)

It's kind of weird, since this error does not occur if I were to use 1.0M8 version. Can you help me on this?

Thanks,

Azrin.


On Tue, Jul 22, 2008 at 9:33 AM, Tim Hollosy <hollosyt@xxxxxxxxx> wrote:
Azrin,
This might be a dumb question, but is your persistence.xml reachable
in the class path? Since you said it works in eclipse, but not
outside, I might wonder about that since that is one of the major
things that changes once you run outside of eclipse.

./tch

Back to the top