karaf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Francois Papon <francois.pa...@openobject.fr>
Subject Re: java.lang.NullPointerException: Specified service reference cannot be null
Date Fri, 12 Apr 2019 11:08:19 GMT
Hi,

I think you should to use a WAB (Web Application Bundle) instead of a WAR.

regards,

François Papon
fpapon@apache.org

Le 12/04/2019 à 12:43, Saravana Prasad a écrit :
> Hi,
>
> Can one concrete class in Bundle-A be annotated with 
> @Component
> @Provides(specifications={Implementing.class})
> @Instantiate
> public class Implementing{
> ..
> ..
> }
>
> and can this component be made available in a Jersey REST-API Bundle-B ( a
> war package ) using 
>
> @Requires 
> private Implementing implementation;
>
> This way there is : java.lang.NullPointerException: Specified service
> reference cannot be null.
>
>
>
>
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html

Mime
View raw message