You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Benjamin Coiffe <bc...@inforsense.com> on 2007/11/12 13:23:18 UTC

Dynamic client bug

Hi,

 

I think I found a bug in the Dynamic Client Factory. For the Web
Service:
http://www.ncbi.nlm.nih.gov/entrez/eutils/soap/eutils_lite.wsdl, it
fails to build the JAXB context and throws the following exception:

 

Caused by: java.lang.Exception: Unable to create JAXBContext for
generated packages: "java.lang" doesnt contain ObjectFactory.class or
jaxb.index

      at
org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(Dynami
cClientFactory.java:235)

      at
org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(Dynami
cClientFactory.java:145)

      at
org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(Dynami
cClientFactory.java:124)

      at
com.inforsense.webservicestudio.server.cache.ClientFactory.getClient(Cli
entFactory.java:85)

     at
com.inforsense.webservicestudio.server.HttpCxfImpl.getOperations(HttpCxf
Impl.java:47)

      ... 27 more

 

The Package list contains the following packages:

java.lang:gov.nih.nlm.ncbi.soap.eutils.esummary:gov.nih.nlm.ncbi.soap.eu
tils.esearch:java.io:gov.nih.nlm.ncbi.soap.eutils.egquery:gov.nih.nlm.nc
bi.soap.eutils.espell:gov.nih.nlm.ncbi.soap.eutils.einfo:generated:gov.n
ih.nlm.ncbi.soap.eutils.elink

 

It fails because of java.lang, java.io, and generated. I am using cxf
2.0.1.

I was looking for a similar bug in JIRA but could not find one. I would
be grateful if someone finds one and can send the ID.

 

Thanks,

 

Benjamin Coiffe

 


Re: Dynamic client bug

Posted by Daniel Kulp <dk...@apache.org>.

Benjamin,

I create a JIRA for this:
https://issues.apache.org/jira/browse/CXF-1204

Dan


On Monday 12 November 2007, Benjamin Coiffe wrote:
> Hi,
>
>
>
> I think I found a bug in the Dynamic Client Factory. For the Web
> Service:
> http://www.ncbi.nlm.nih.gov/entrez/eutils/soap/eutils_lite.wsdl, it
> fails to build the JAXB context and throws the following exception:
>
>
>
> Caused by: java.lang.Exception: Unable to create JAXBContext for
> generated packages: "java.lang" doesnt contain ObjectFactory.class or
> jaxb.index
>
>       at
> org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(Dyna
>mi cClientFactory.java:235)
>
>       at
> org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(Dyna
>mi cClientFactory.java:145)
>
>       at
> org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(Dyna
>mi cClientFactory.java:124)
>
>       at
> com.inforsense.webservicestudio.server.cache.ClientFactory.getClient(C
>li entFactory.java:85)
>
>      at
> com.inforsense.webservicestudio.server.HttpCxfImpl.getOperations(HttpC
>xf Impl.java:47)
>
>       ... 27 more
>
>
>
> The Package list contains the following packages:
>
> java.lang:gov.nih.nlm.ncbi.soap.eutils.esummary:gov.nih.nlm.ncbi.soap.
>eu
> tils.esearch:java.io:gov.nih.nlm.ncbi.soap.eutils.egquery:gov.nih.nlm.
>nc
> bi.soap.eutils.espell:gov.nih.nlm.ncbi.soap.eutils.einfo:generated:gov
>.n ih.nlm.ncbi.soap.eutils.elink
>
>
>
> It fails because of java.lang, java.io, and generated. I am using cxf
> 2.0.1.
>
> I was looking for a similar bug in JIRA but could not find one. I
> would be grateful if someone finds one and can send the ID.
>
>
>
> Thanks,
>
>
>
> Benjamin Coiffe



-- 
J. Daniel Kulp
Principal Engineer
IONA
P: 781-902-8727    C: 508-380-7194
daniel.kulp@iona.com
http://www.dankulp.com/blog