I am trying to deploy OSGI enabled bundled using hibernate on JBoass EAP 6.1 alpha but at the time of deployment I am seeing following error:
Quote:
Caused by: org.osgi.framework.BundleException: JBOSGI011254: Cannot start bundle: osgi-jpa:1.0.0.SNAPSHOT
at org.jboss.osgi.framework.internal.HostBundleState.startInternalNow(HostBundleState.java:302)
at org.jboss.osgi.framework.internal.HostBundleState.startInternal(HostBundleState.java:199)
at org.jboss.osgi.framework.internal.BundleManagerPlugin.startBundle(BundleManagerPlugin.java:406)
at org.jboss.as.osgi.deployment.BundleActivateProcessor$BundleActivateService.start(BundleActivateProcessor.java:128)
... 5 more
Caused by: java.lang.NullPointerException
at com.etipl.osgi.service.TestPersistenceSvcImpl.getEntityById(TestPersistenceSvcImpl.java:21)
at com.etipl.osgi.jpa.Activator.start(Activator.java:17)
at org.jboss.osgi.framework.internal.HostBundleState.startInternalNow(HostBundleState.java:276)
... 8 more
15:36:13,046 ERROR [org.jboss.as.server] (management-handler-thread - 4) JBAS015870: Deploy of deployment "osgi-jpa.jar" was rolled back with the following failure message:
{"JBAS014671: Failed services" => {"jboss.deployment.unit.\"osgi-jpa.jar\".Activate" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"osgi-jpa.jar\".Activate: JBAS011968: Cannot start bundle: osgi-jpa:1.0.0.SNAPSHOT
Caused by: org.osgi.framework.BundleException: JBOSGI011254: Cannot start bundle: osgi-jpa:1.0.0.SNAPSHOT
Caused by: java.lang.NullPointerException"}}