You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by "ali.uib" <al...@gmail.com> on 2011/02/28 11:39:37 UTC

CXF with spring autowire problem does work.

Hi all,

I am facing a problem of spring autowire is not working with CXF.

The autowire class is coming a jar file and hence I can not annotate it with
@Component. 

Here is the stacktrace of the exception

http://pastebin.com/fCwhFM5w

And you are wondering about my endpoint declaration is looks like this

    <jaxws:endpoint id="AuthenticationService"
                   
implementorClass="org.openxdata.server.service.AuthenticationService"
                    implementor="#authenticationService"
address="/AuthenticationService">
    </jaxws:endpoint> 

Please suggest any solution.
Thanks in advance.


-- 
View this message in context: http://cxf.547215.n5.nabble.com/CXF-with-spring-autowire-problem-does-work-tp3403064p3403064.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: CXF with spring autowire problem does work.

Posted by Nordine Boussedra <ex...@agora.msa.fr>.
You can declare your bean (implementing SessionFactory) with <bean 
class="package.implementation_class"/> in the cxf-servlet.xml file.

ali.uib a écrit :
> Hi all,
>
> I am facing a problem of spring autowire is not working with CXF.
>
> The autowire class is coming a jar file and hence I can not annotate it with
> @Component. 
>
> Here is the stacktrace of the exception
>
> http://pastebin.com/fCwhFM5w
>
> And you are wondering about my endpoint declaration is looks like this
>
>     <jaxws:endpoint id="AuthenticationService"
>                    
> implementorClass="org.openxdata.server.service.AuthenticationService"
>                     implementor="#authenticationService"
> address="/AuthenticationService">
>     </jaxws:endpoint> 
>
> Please suggest any solution.
> Thanks in advance.
>
>
>   


Ce message est protégé par les règles relatives au secret des correspondances. Il est donc établi à destination exclusive de son destinataire. Celui-ci peut donc contenir des informations confidentielles. La divulgation de ces informations est à ce titre rigoureusement interdite. Si vous avez reçu ce message par erreur, merci de le renvoyer à l'expéditeur dont l'adresse e-mail figure ci-dessus et de détruire le message ainsi que toute pièce jointe.

This message is protected by the secrecy of correspondence rules. Therefore, this message is intended solely for the attention of the addressee. This message may contain privileged or confidential information, as such the disclosure of these informations is strictly forbidden. If, by mistake, you have received this message, please return this message to the addressser whose e-mail address is written above and destroy this message and all files attached.