You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Benson Margulies <bi...@basistech.com> on 2007/09/29 22:27:31 UTC
JaxWsServerFactoryBean null pointer
Step 1: create a JaxWsServiceFactoryBean. Set the service class.
Step 2: create a JaxWsServerFactoryBean over the service factory bean.
Step 3: observe that the serviceClass of the serverFactory bean is null.
Shouldn't it default to that of the service factory?
RE: JaxWsServerFactoryBean null pointer
Posted by Benson Margulies <bi...@basistech.com>.
My opinion is that the constructor of the server factory that takes a
service factory should pull all relevant properties from it. I'll post
to JIRA.
> -----Original Message-----
> From: Jeff.Yu [mailto:jeff.yu@iona.com]
> Sent: Saturday, September 29, 2007 10:05 PM
> To: cxf-user@incubator.apache.org
> Subject: Re: JaxWsServerFactoryBean null pointer
>
> Hi,
>
> I encountered this same issue several days ago, it ended up using
> "ServerFactoryBean.setServiceClass()", if I
> set serviceFactoryBean.setServiceClass(), I would get the NPE. I think
it
> would be better for us to take a look
> at whats wrong here.
>
> Thanks
> Jeff
>
>
>
> Benson Margulies wrote:
> > Step 1: create a JaxWsServiceFactoryBean. Set the service class.
> >
> > Step 2: create a JaxWsServerFactoryBean over the service factory
bean.
> >
> > Step 3: observe that the serviceClass of the serverFactory bean is
null.
> > Shouldn't it default to that of the service factory?
> >
> >
> >
> >
> >
> >
> >
Re: JaxWsServerFactoryBean null pointer
Posted by "Jeff.Yu" <je...@iona.com>.
Hi,
I encountered this same issue several days ago, it ended up using "ServerFactoryBean.setServiceClass()", if I
set serviceFactoryBean.setServiceClass(), I would get the NPE. I think it would be better for us to take a look
at whats wrong here.
Thanks
Jeff
Benson Margulies wrote:
> Step 1: create a JaxWsServiceFactoryBean. Set the service class.
>
> Step 2: create a JaxWsServerFactoryBean over the service factory bean.
>
> Step 3: observe that the serviceClass of the serverFactory bean is null.
> Shouldn't it default to that of the service factory?
>
>
>
>
>
>
>
Re: JaxWsServerFactoryBean null pointer
Posted by Willem2 <ni...@iona.com>.
ServerFactoryBean is just facade of the CXF server creation API.
you can set the service class from the JaxWsServerFactoryBean instead.
JaxWsServerFactoryBean will pass it to its ServiceFactoryBean.
Willem.
bmargulies wrote:
>
> Step 1: create a JaxWsServiceFactoryBean. Set the service class.
>
> Step 2: create a JaxWsServerFactoryBean over the service factory bean.
>
> Step 3: observe that the serviceClass of the serverFactory bean is null.
> Shouldn't it default to that of the service factory?
>
>
>
>
>
>
>
--
View this message in context: http://www.nabble.com/JaxWsServerFactoryBean-null-pointer-tf4540810.html#a12961744
Sent from the cxf-user mailing list archive at Nabble.com.