Blueprint service reference to ?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Blueprint service reference to ?

Gerald Kallas -
Dear community,

I'm using in one Blueprint DSL file

        <bean id="securityHandlerImpl" class="">
                <property name="loginService">
                        <bean class="">
                                <property name="config" value="/opt/apache-karaf/etc/"/>
                <property name="authenticator">
                        <bean class=""/>
                <property name="constraintMappings">
                                <ref component-id="constraintMapping_TSTISP001"/>
                                <ref component-id="constraintMapping_TSTISP002"/>

        <service id="securityHandler" ref="securityHandlerImpl" interface="" />

and want to refer in another on to the service like

        <reference id="securityHandler" interface="" ext:proxy-method="default" />

Finally I'm getting an error

Caused by: java.lang.ClassCastException: Cannot cast Proxy01b089da_287a_40a5_987b_b3aa8d37c5b7 to org.eclipse.jetty.server.Handler

I wanted to switch to the other interface

but the reference

        <service id="securityHandler" ref="securityHandlerImpl" interface="" />

causes an

missing requirement [isp.jettyHttpComponent.xml [317](R 317.16)] osgi.wiring.package; ( Unresolved requirements: [[isp.jettyHttpComponent.xml [317](R 317.16)] osgi.wiring.package; (]

Does anyone have defined a securityHandler and set a Blueprint service reference with this?

Many thanks in advance
- Gerald