Tracking issue with patch here: https://issues.apache.org/jira/browse/CXF-2907 
Allow DynamicClientFactory to use any JAXB version 2.1 or greater.



Gary Gregory

Senior Software Engineer

Seagull Software

email: ggreg...@seagullsoftware.com

email: ggreg...@apache.org

www.seagullsoftware.com







> -----Original Message-----

> From: Gary Gregory [mailto:ggreg...@seagullsoftware.com]

> Sent: Friday, July 23, 2010 09:24

> To: users@cxf.apache.org; Daniel Kulp

> Subject: RE: DynamicClientFactory broken with JAXB 2.2.1

>

> Hi All,

>

> I do not think the DynamicClientFactory#isJaxb21(SchemaCompiler) method ever

> worked as planned.

>

> When I run against a stock Sun JDK 6 in the debugger I get a build ID of

> "hudson-jaxb-ri-2.1-2" for which the method returns false.

>

> If my version of the method is used, true is returned and the test

> AegisClientServerTest#testDynamicClient() fails in Maven but passes in

> Eclipse. Confusing.

>

> It also looks like the method wants a more plain version format like "2.1.2"

>

> Any help is appreciated here.

>

> Gary Gregory

> Senior Software Engineer

> Seagull Software

> email: ggreg...@seagullsoftware.com

> email: ggreg...@apache.org

> www.seagullsoftware.com

>

>

>

> > -----Original Message-----

> > From: Gary Gregory [mailto:ggreg...@seagullsoftware.com]

> > Sent: Thursday, July 22, 2010 14:21

> > To: Daniel Kulp; users@cxf.apache.org

> > Subject: RE: DynamicClientFactory broken with JAXB 2.2.1

> >

> > Thanks Dan.

> >

> > I am currently running a local build to see if my version of isJaxb21()

> breaks

> > anything. I can then see if it fixes my issue... I'll post a patch to JIRA

> if

> > all goes well.

> >

> > Thank you again for your prompt patch application for [CXF-2900] and

> guidance.

> >

> > Gary Gregory

> > Senior Software Engineer

> > Seagull Software

> > email: ggreg...@seagullsoftware.com

> > email: ggreg...@apache.org

> > www.seagullsoftware.com

> >

> > > -----Original Message-----

> > > From: Daniel Kulp [mailto:dk...@apache.org]

> > > Sent: Thursday, July 22, 2010 13:58

> > > To: users@cxf.apache.org

> > > Cc: Gary Gregory

> > > Subject: Re: DynamicClientFactory broken with JAXB 2.2.1

> > >

> > >

> > > There really hasn't been much testing with JAXB 2.2 on the CXF 2.2 branch

> > > since the JAX-WS spec that it implements really requires 2.1.

> > >

> > > That said, any patches that you might want to create to fix issues would

> be

> > > more than welcome.    We could get any fixes in quickly and new snapshots

> > > deployed for you.    :-)

> > >

> > > Dan

> > >

> > >

> > > On Thursday 22 July 2010 2:27:13 pm Gary Gregory wrote:

> > > > Hi All (and Dan):

> > > >

> > > > I want to use JAXB 2.2.1 to benefit from a JAXB bug fix but I am having

> > > > problems getting CXF to recognize it is there.

> > > >

> > > > All is well when we use JAXB 2.1.13.

> > > >

> > > > I followed the instructions here to use JAXB on top of Java 6:

> > > >

> > https://jaxb.dev.java.net/guide/Migrating_JAXB_2_0_applications_to_JavaSE_6

> > > > .html

> > > >

> > > > I think the problem (I think) is the way CXF detects the JAXB version in

> > > > DynamicClientFactory#isJaxb21(SchemaCompiler).

> > > >

> > > > The implementation fails to see JAXB 2.2.1. The implementation looks odd

> > to

> > > > me, but, hey, that's me :)

> > > >

> > > > Has anyone else run into this issue? I am using a CXF 2.2.10 snapshot

> > build

> > > > to work around CXF 2.2.9 bug [CXF-2900].

> > > >

> > > > Gary Gregory

> > > > Senior Software Engineer

> > > > Seagull Software

> > > > email: ggreg...@seagullsoftware.com

> > > > email: ggreg...@apache.org

> > > > www.seagullsoftware.com

> > >

> > > --

> > > Daniel Kulp

> > > dk...@apache.org

> > > http://dankulp.com/blog

Reply via email to