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/11/15 20:56:03 UTC
RE: Jaxb databinding issue
This looks like a cousin of a more recent issue involving byte[]. Are
you running 2.0.3?
> -----Original Message-----
> From: Roshan A. Punnoose [mailto:rpunnoose@proteus-technologies.com]
> Sent: Thursday, November 15, 2007 2:58 PM
> To: cxf-user@incubator.apache.org
> Subject: Jaxb databinding issue
>
> I am having the same problems as described in: CXF-340 :
> https://issues.apache.org/jira/browse/CXF-340
>
> But I can't seem to get the fix working. My spring file
> currently looks like this:
>
> <jaxws:endpoint id="service" address="/service"
> implementor="#serviceimpl">
> <jaxws:binding>
> <soap:soapBinding mtomEnabled="true"
> version="1.2"/>
> </jaxws:binding>
> <jaxws:properties>
> <entry key="jaxb.additionalContextClasses">
> <bean
> class="groundstation.xqueryservice.utils.ClassArrayFactoryBean">
> <property name="classNames">
> <list>
> <value>station.
> service.MyClass</value>
> </list>
> </property>
> </bean>
> </entry>
> </jaxws:properties>
> </jaxws:endpoint>
>
> But this hasn't fixed the issue. I still keep getting: Marshalling
> Error: [Lstation.service.MyClass; is not known to this context
>
> Any ideas?
>
RE: Jaxb databinding issue
Posted by "Roshan A. Punnoose" <rp...@proteus-technologies.com>.
Ok, I finally got it working. The reason it wasn't working before is
because I was returning a Collection< MyClass > object, which in the
JaxBContextImpl, it tries to find the class MyClass[]. No idea why, but
I am now returning my own object that acts as a Collection, and voila it
works. :) (Without any changes to the spring config)
Roshan
-----Original Message-----
From: Benson Margulies [mailto:bim2007@basistech.com]
Sent: Thursday, November 15, 2007 3:10 PM
To: cxf-user@incubator.apache.org
Subject: RE: Jaxb databinding issue
Please make a JIRA.
> -----Original Message-----
> From: Roshan A. Punnoose [mailto:rpunnoose@proteus-technologies.com]
> Sent: Thursday, November 15, 2007 3:06 PM
> To: cxf-user@incubator.apache.org
> Subject: RE: Jaxb databinding issue
>
> I just tried that, and no luck. I also tried to add the
> jaxb.index file to the package but that didn't seem to work
> either. Man...
>
> Roshan
>
> -----Original Message-----
> From: Benson Margulies [mailto:bim2007@basistech.com]
> Sent: Thursday, November 15, 2007 3:00 PM
> To: cxf-user@incubator.apache.org
> Subject: RE: Jaxb databinding issue
>
> Yes. I fixed a later issue that had to do with array types
> and which could produce a message like that.
>
> > -----Original Message-----
> > From: Roshan A. Punnoose [mailto:rpunnoose@proteus-technologies.com]
> > Sent: Thursday, November 15, 2007 3:02 PM
> > To: cxf-user@incubator.apache.org
> > Subject: RE: Jaxb databinding issue
> >
> > I believe I'm running 2.0.2-incubator. Should I upgrade?
> >
> > -----Original Message-----
> > From: Benson Margulies [mailto:bim2007@basistech.com]
> > Sent: Thursday, November 15, 2007 2:56 PM
> > To: cxf-user@incubator.apache.org
> > Subject: RE: Jaxb databinding issue
> >
> > This looks like a cousin of a more recent issue involving
> byte[]. Are
> > you running 2.0.3?
> >
> > > -----Original Message-----
> > > From: Roshan A. Punnoose
> [mailto:rpunnoose@proteus-technologies.com]
> > > Sent: Thursday, November 15, 2007 2:58 PM
> > > To: cxf-user@incubator.apache.org
> > > Subject: Jaxb databinding issue
> > >
> > > I am having the same problems as described in: CXF-340 :
> > > https://issues.apache.org/jira/browse/CXF-340
> > >
> > > But I can't seem to get the fix working. My spring file currently
> > > looks like this:
> > >
> > > <jaxws:endpoint id="service" address="/service"
> > > implementor="#serviceimpl">
> > > <jaxws:binding>
> > > <soap:soapBinding mtomEnabled="true"
> > > version="1.2"/>
> > > </jaxws:binding>
> > > <jaxws:properties>
> > > <entry key="jaxb.additionalContextClasses">
> > > <bean
> > > class="groundstation.xqueryservice.utils.ClassArrayFactoryBean">
> > > <property name="classNames">
> > > <list>
> > > <value>station.
> > > service.MyClass</value>
> > > </list>
> > > </property>
> > > </bean>
> > > </entry>
> > > </jaxws:properties>
> > > </jaxws:endpoint>
> > >
> > > But this hasn't fixed the issue. I still keep getting: Marshalling
> > > Error: [Lstation.service.MyClass; is not known to this context
> > >
> > > Any ideas?
> > >
> >
>
Re: OSGi bundling
Posted by Mayank Thakore <th...@gmail.com>.
we're using cxf inside osgi bundles... we just put all the libs in one
bundle and export required packages from there...
just had to be careful to import the javax.jws and some related
namespaces in other bundles where services are written since these
packages are available without import too but the @WebService
annotations won't work then
so is there anything special we ought to do to make a cxf bundle?
On Feb 9, 2008 2:40 AM, Kyle.Bober <ky...@yahoo.com> wrote:
>
> To whom it may concern,
> I would also like to try out CXF OSGi bundles. I would love to use CXF in
> my Eclipse RCP application I am writing. You mention there is a small
> (untested) maven project to create the bundles. I would like to try it out
> in my environment if possible. Where can I locate it to give it a whirl.
>
> Regards,
> Kyle
>
>
>
>
> gnodet wrote:
> >
> > We're currently working on using CXF inside ServiceMix, so I've just
> > committed a small maven project to create a bundle for CXF, though this is
> > not tested yet and may not include everything you will need right now.
> > However, any feedback would be welcome.
> >
> > On Nov 19, 2007 5:27 PM, Roshan A. Punnoose <
> > rpunnoose@proteus-technologies.com> wrote:
> >
> >> Is there incubation code set up for the cxf OSGi bundling that is
> >> targeted for Dec.15? I want to try it out now. :)
> >>
> >> Roshan
> >>
> >
> >
> >
> > --
> > Cheers,
> > Guillaume Nodet
> > ------------------------
> > Blog: http://gnodet.blogspot.com/
> >
> >
>
> --
> View this message in context: http://www.nabble.com/axis-vs-cxf%2C-which-is-better--tp13755334p15363956.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>
>
Re: OSGi bundling
Posted by "Kyle.Bober" <ky...@yahoo.com>.
To whom it may concern,
I would also like to try out CXF OSGi bundles. I would love to use CXF in
my Eclipse RCP application I am writing. You mention there is a small
(untested) maven project to create the bundles. I would like to try it out
in my environment if possible. Where can I locate it to give it a whirl.
Regards,
Kyle
gnodet wrote:
>
> We're currently working on using CXF inside ServiceMix, so I've just
> committed a small maven project to create a bundle for CXF, though this is
> not tested yet and may not include everything you will need right now.
> However, any feedback would be welcome.
>
> On Nov 19, 2007 5:27 PM, Roshan A. Punnoose <
> rpunnoose@proteus-technologies.com> wrote:
>
>> Is there incubation code set up for the cxf OSGi bundling that is
>> targeted for Dec.15? I want to try it out now. :)
>>
>> Roshan
>>
>
>
>
> --
> Cheers,
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
>
>
--
View this message in context: http://www.nabble.com/axis-vs-cxf%2C-which-is-better--tp13755334p15363956.html
Sent from the cxf-user mailing list archive at Nabble.com.
Re: OSGi bundling
Posted by Guillaume Nodet <gn...@gmail.com>.
We're currently working on using CXF inside ServiceMix, so I've just
committed a small maven project to create a bundle for CXF, though this is
not tested yet and may not include everything you will need right now.
However, any feedback would be welcome.
On Nov 19, 2007 5:27 PM, Roshan A. Punnoose <
rpunnoose@proteus-technologies.com> wrote:
> Is there incubation code set up for the cxf OSGi bundling that is
> targeted for Dec.15? I want to try it out now. :)
>
> Roshan
>
--
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
OSGi bundling
Posted by "Roshan A. Punnoose" <rp...@proteus-technologies.com>.
Is there incubation code set up for the cxf OSGi bundling that is
targeted for Dec.15? I want to try it out now. :)
Roshan
RE: Jaxb databinding issue
Posted by Benson Margulies <bi...@basistech.com>.
Please make a JIRA.
> -----Original Message-----
> From: Roshan A. Punnoose [mailto:rpunnoose@proteus-technologies.com]
> Sent: Thursday, November 15, 2007 3:06 PM
> To: cxf-user@incubator.apache.org
> Subject: RE: Jaxb databinding issue
>
> I just tried that, and no luck. I also tried to add the
> jaxb.index file to the package but that didn't seem to work
> either. Man...
>
> Roshan
>
> -----Original Message-----
> From: Benson Margulies [mailto:bim2007@basistech.com]
> Sent: Thursday, November 15, 2007 3:00 PM
> To: cxf-user@incubator.apache.org
> Subject: RE: Jaxb databinding issue
>
> Yes. I fixed a later issue that had to do with array types
> and which could produce a message like that.
>
> > -----Original Message-----
> > From: Roshan A. Punnoose [mailto:rpunnoose@proteus-technologies.com]
> > Sent: Thursday, November 15, 2007 3:02 PM
> > To: cxf-user@incubator.apache.org
> > Subject: RE: Jaxb databinding issue
> >
> > I believe I'm running 2.0.2-incubator. Should I upgrade?
> >
> > -----Original Message-----
> > From: Benson Margulies [mailto:bim2007@basistech.com]
> > Sent: Thursday, November 15, 2007 2:56 PM
> > To: cxf-user@incubator.apache.org
> > Subject: RE: Jaxb databinding issue
> >
> > This looks like a cousin of a more recent issue involving
> byte[]. Are
> > you running 2.0.3?
> >
> > > -----Original Message-----
> > > From: Roshan A. Punnoose
> [mailto:rpunnoose@proteus-technologies.com]
> > > Sent: Thursday, November 15, 2007 2:58 PM
> > > To: cxf-user@incubator.apache.org
> > > Subject: Jaxb databinding issue
> > >
> > > I am having the same problems as described in: CXF-340 :
> > > https://issues.apache.org/jira/browse/CXF-340
> > >
> > > But I can't seem to get the fix working. My spring file currently
> > > looks like this:
> > >
> > > <jaxws:endpoint id="service" address="/service"
> > > implementor="#serviceimpl">
> > > <jaxws:binding>
> > > <soap:soapBinding mtomEnabled="true"
> > > version="1.2"/>
> > > </jaxws:binding>
> > > <jaxws:properties>
> > > <entry key="jaxb.additionalContextClasses">
> > > <bean
> > > class="groundstation.xqueryservice.utils.ClassArrayFactoryBean">
> > > <property name="classNames">
> > > <list>
> > > <value>station.
> > > service.MyClass</value>
> > > </list>
> > > </property>
> > > </bean>
> > > </entry>
> > > </jaxws:properties>
> > > </jaxws:endpoint>
> > >
> > > But this hasn't fixed the issue. I still keep getting: Marshalling
> > > Error: [Lstation.service.MyClass; is not known to this context
> > >
> > > Any ideas?
> > >
> >
>
RE: Jaxb databinding issue
Posted by "Roshan A. Punnoose" <rp...@proteus-technologies.com>.
I just tried that, and no luck. I also tried to add the jaxb.index file
to the package but that didn't seem to work either. Man...
Roshan
-----Original Message-----
From: Benson Margulies [mailto:bim2007@basistech.com]
Sent: Thursday, November 15, 2007 3:00 PM
To: cxf-user@incubator.apache.org
Subject: RE: Jaxb databinding issue
Yes. I fixed a later issue that had to do with array types and which
could produce a message like that.
> -----Original Message-----
> From: Roshan A. Punnoose [mailto:rpunnoose@proteus-technologies.com]
> Sent: Thursday, November 15, 2007 3:02 PM
> To: cxf-user@incubator.apache.org
> Subject: RE: Jaxb databinding issue
>
> I believe I'm running 2.0.2-incubator. Should I upgrade?
>
> -----Original Message-----
> From: Benson Margulies [mailto:bim2007@basistech.com]
> Sent: Thursday, November 15, 2007 2:56 PM
> To: cxf-user@incubator.apache.org
> Subject: RE: Jaxb databinding issue
>
> This looks like a cousin of a more recent issue involving
> byte[]. Are you running 2.0.3?
>
> > -----Original Message-----
> > From: Roshan A. Punnoose [mailto:rpunnoose@proteus-technologies.com]
> > Sent: Thursday, November 15, 2007 2:58 PM
> > To: cxf-user@incubator.apache.org
> > Subject: Jaxb databinding issue
> >
> > I am having the same problems as described in: CXF-340 :
> > https://issues.apache.org/jira/browse/CXF-340
> >
> > But I can't seem to get the fix working. My spring file currently
> > looks like this:
> >
> > <jaxws:endpoint id="service" address="/service"
> > implementor="#serviceimpl">
> > <jaxws:binding>
> > <soap:soapBinding mtomEnabled="true"
> > version="1.2"/>
> > </jaxws:binding>
> > <jaxws:properties>
> > <entry key="jaxb.additionalContextClasses">
> > <bean
> > class="groundstation.xqueryservice.utils.ClassArrayFactoryBean">
> > <property name="classNames">
> > <list>
> > <value>station.
> > service.MyClass</value>
> > </list>
> > </property>
> > </bean>
> > </entry>
> > </jaxws:properties>
> > </jaxws:endpoint>
> >
> > But this hasn't fixed the issue. I still keep getting: Marshalling
> > Error: [Lstation.service.MyClass; is not known to this context
> >
> > Any ideas?
> >
>
RE: Jaxb databinding issue
Posted by Benson Margulies <bi...@basistech.com>.
Yes. I fixed a later issue that had to do with array types and which
could produce a message like that.
> -----Original Message-----
> From: Roshan A. Punnoose [mailto:rpunnoose@proteus-technologies.com]
> Sent: Thursday, November 15, 2007 3:02 PM
> To: cxf-user@incubator.apache.org
> Subject: RE: Jaxb databinding issue
>
> I believe I'm running 2.0.2-incubator. Should I upgrade?
>
> -----Original Message-----
> From: Benson Margulies [mailto:bim2007@basistech.com]
> Sent: Thursday, November 15, 2007 2:56 PM
> To: cxf-user@incubator.apache.org
> Subject: RE: Jaxb databinding issue
>
> This looks like a cousin of a more recent issue involving
> byte[]. Are you running 2.0.3?
>
> > -----Original Message-----
> > From: Roshan A. Punnoose [mailto:rpunnoose@proteus-technologies.com]
> > Sent: Thursday, November 15, 2007 2:58 PM
> > To: cxf-user@incubator.apache.org
> > Subject: Jaxb databinding issue
> >
> > I am having the same problems as described in: CXF-340 :
> > https://issues.apache.org/jira/browse/CXF-340
> >
> > But I can't seem to get the fix working. My spring file currently
> > looks like this:
> >
> > <jaxws:endpoint id="service" address="/service"
> > implementor="#serviceimpl">
> > <jaxws:binding>
> > <soap:soapBinding mtomEnabled="true"
> > version="1.2"/>
> > </jaxws:binding>
> > <jaxws:properties>
> > <entry key="jaxb.additionalContextClasses">
> > <bean
> > class="groundstation.xqueryservice.utils.ClassArrayFactoryBean">
> > <property name="classNames">
> > <list>
> > <value>station.
> > service.MyClass</value>
> > </list>
> > </property>
> > </bean>
> > </entry>
> > </jaxws:properties>
> > </jaxws:endpoint>
> >
> > But this hasn't fixed the issue. I still keep getting: Marshalling
> > Error: [Lstation.service.MyClass; is not known to this context
> >
> > Any ideas?
> >
>
RE: Jaxb databinding issue
Posted by "Roshan A. Punnoose" <rp...@proteus-technologies.com>.
I believe I'm running 2.0.2-incubator. Should I upgrade?
-----Original Message-----
From: Benson Margulies [mailto:bim2007@basistech.com]
Sent: Thursday, November 15, 2007 2:56 PM
To: cxf-user@incubator.apache.org
Subject: RE: Jaxb databinding issue
This looks like a cousin of a more recent issue involving byte[]. Are
you running 2.0.3?
> -----Original Message-----
> From: Roshan A. Punnoose [mailto:rpunnoose@proteus-technologies.com]
> Sent: Thursday, November 15, 2007 2:58 PM
> To: cxf-user@incubator.apache.org
> Subject: Jaxb databinding issue
>
> I am having the same problems as described in: CXF-340 :
> https://issues.apache.org/jira/browse/CXF-340
>
> But I can't seem to get the fix working. My spring file
> currently looks like this:
>
> <jaxws:endpoint id="service" address="/service"
> implementor="#serviceimpl">
> <jaxws:binding>
> <soap:soapBinding mtomEnabled="true"
> version="1.2"/>
> </jaxws:binding>
> <jaxws:properties>
> <entry key="jaxb.additionalContextClasses">
> <bean
> class="groundstation.xqueryservice.utils.ClassArrayFactoryBean">
> <property name="classNames">
> <list>
> <value>station.
> service.MyClass</value>
> </list>
> </property>
> </bean>
> </entry>
> </jaxws:properties>
> </jaxws:endpoint>
>
> But this hasn't fixed the issue. I still keep getting: Marshalling
> Error: [Lstation.service.MyClass; is not known to this context
>
> Any ideas?
>