Hi Tim,
Sorry for the late reply! I have figured this out. It was due to my lack of
full understanding of Karaf at that point.

Thanks
Matt

On Wed, Sep 21, 2011 at 3:12 AM, Timothy Ward <[email protected]>wrote:

>  Hi,
>
> Are you still seeing this problem? Have you tried debugging to see why your
> Persistence Provider service might be null?
>
> Regards,
>
> Tim
>
> ------------------------------
> Date: Fri, 16 Sep 2011 18:17:33 -0500
> Subject: KARAF and JPA Bundle issues - Urgent
> From: [email protected]
> To: [email protected]; [email protected]; [email protected];
> [email protected]
>
>
> Hello,
> I moving couple of my sample applications from pax:provision to Apache
> Karaf. Both application run ok on pax:provision inside of a Felix container.
>
> But when I run the same applications (derby/openjpa 2.0, aries) I'm getting
> a null pointer exception when I start my persistence bundle. The same bundle
> worked fine in pax:provision!
>
> Can some one send me an example or send me the list of Bundles/Features I
> must have in order to make this work?
>
> I would greatly appreciate it.
>
> The errors are as follows:
> *The log says:*
> 2011-09-16 17:57:07,578 | INFO  | rint Extender: 2 | BlueprintContainerImpl
>           | container.BlueprintContainerImpl  305 | 9 -
> org.apache.aries.blueprint - 0.3.1 | Bundle itso.bank.persistence is waiting
> for dependencies [(&(&(org.apache.aries.jpa.proxy.factory=true)(
> osgi.unit.name
> =itso.bank.persistence))(objectClass=javax.persistence.EntityManagerFactory))]
> 2011-09-16 18:02:07,578 | ERROR | rint Extender: 3 | BlueprintContainerImpl
>           | ntainer.BlueprintContainerImpl$1  293 | 9 -
> org.apache.aries.blueprint - 0.3.1 | Unable to start blueprint container for
> bundle itso.bank.persistence due to unresolved dependencies
> [(&(&(org.apache.aries.jpa.proxy.factory=true)(osgi.unit.name
> =itso.bank.persistence))(objectClass=javax.persistence.EntityManagerFactory))]
> java.util.concurrent.TimeoutException
> at
> org.apache.aries.blueprint.container.BlueprintContainerImpl$1.run(BlueprintContainerImpl.java:287)[9:org.apache.aries.blueprint:0.3.1]
>
>
> *But the console output says:*
> *
> *
> karaf@root> start 207
> ERROR: Bundle org.apache.aries.jpa.container [126] EventDispatcher: Error
> during dispatch. (java.lang.NullPointerExcepti
> on)
> java.lang.NullPointerException
>         at
> org.apache.aries.jpa.container.impl.PersistenceBundleManager$ProviderServiceComparator.compare(PersistenceBun
> dleManager.java:575)
>         at
> org.apache.aries.jpa.container.impl.PersistenceBundleManager$ProviderServiceComparator.compare(PersistenceBun
> dleManager.java:572)
>         at java.util.Collections.max(Collections.java:681)
>         at
> org.apache.aries.jpa.container.impl.PersistenceBundleManager.getBestProvider(PersistenceBundleManager.java:55
> 4)
>         at
> org.apache.aries.jpa.container.impl.PersistenceBundleManager.getProviderServiceReference(PersistenceBundleMan
> ager.java:460)
>
> Any help will be appreciated.
>
> Thanks
> Matt
>
>

Reply via email to