not sure if this is relevant to my generics problem but I always get this 
warning as well when deploying

INFO: Could not find the configuration file cxf.xml on the classpath


----- Original Message ----
From: Jeremy Isikoff <[EMAIL PROTECTED]>
To: [email protected]
Sent: Sunday, July 29, 2007 2:47:45 PM
Subject: Re: Returning Generic Lists Properly Typed?


I managed to build the snapshot by commenting out the javadoc section in the 
pom file.  I now get this error on deploying to tomcat:

WARN DefaultNamespaceHandlerResolver:133 - Ignoring namespace handler 
[org.apache.cxf.bus.spring.NamespaceHandler]: problem with handler class file 
or dependent class
java.lang.VerifyError: class org.apache.cxf.bus.spring.BusDefinitionParser 
overrides final method getIdOrName.(Lorg/w3c/dom/Element;)Ljava/lang/String;

the service still works however but it still returns <item> items instead of 
<report> items  for the List<report> return type.

from the interface def of the service: (I took all the annontations off and it 
didnt help)

List<Report> GetAllReports();


from the implementation:

public List<Report> GetAllReports()
{
    return reportServer.GetAllReports();
}

----- Original Message ----
From: Daniel Kulp <[EMAIL PROTECTED]>
To: [email protected]
Cc: Jeremy Isikoff <[EMAIL PROTECTED]>
Sent: Sunday, July 29, 2007 8:27:02 AM
Subject: Re: Returning Generic Lists Properly Typed?


On Sunday 29 July 2007 01:29, Jeremy Isikoff wrote:
> I'm using the 2.0 release and JAXB.  I'd try the 2.1 if that fixes it
> but im not good enough at this stuff to figure out how to do a build
> from the source yet. When is that expected to be released as a jar?

We're hoping to start the release process tomorrow.   (It will be 
released as 2.0.1 since it's just bug fixes at this point)  That's kind 
of why I'd like to know if it fixes the problems for you.   I'd like to 
make sure 2.0.1 will work.

Dan


> ----- Original Message ----
> From: Daniel Kulp <[EMAIL PROTECTED]>
> To: [email protected]
> Cc: Jeremy Isikoff <[EMAIL PROTECTED]>
> Sent: Saturday, July 28, 2007 9:49:51 PM
> Subject: Re: Returning Generic Lists Properly Typed?
>
>
> Jeremy,
>
> Are you using the latest 2.1-SNAPSHOT or the 2.0 release?
>
> Also, JAXB or Aegis?
>
> This SHOULD be fixed in the latest 2.1-SNAPSHOT for JAXB:
> http://people.apache.org/repo/m2-snapshot-repository/org/apache/cxf/ap
>ache-cxf/2.1-incubator-SNAPSHOT/
>
>
> Dan
>
> On Saturday 28 July 2007 19:32, Jeremy Isikoff wrote:
> > Yeah I had already tried something like that, but it doesnt seem to
> > work for me.  Did the dev team say if returning generic Lists was
> > supposed to work like it does in xfire? Would it work better as an
> > array or a collection?  Maybe you changed something else at the same
> > time that fixed the problem?  When I add the annotation for the
> > class that is the "Item" in the List it just starts returning
> > nothing I think because a Item != List<Item> but I'm not really
> > sure.
> >
> >
> > ----- Original Message ----
> > From: Brad Harper <[EMAIL PROTECTED]>
> > To: [email protected]
> > Sent: Saturday, July 28, 2007 3:11:06 PM
> > Subject: Re: Returning Generic Lists Properly Typed?
> >
> >
> > Jeremy, I had the same issue until I annotated my interface methods
> > like this:
> >
> > @WebMethod(operationName = "getAllProducts")
> >     @ResponseWrapper(targetNamespace = "
> > http://catalogService.service.gdservices.com<http://catalogservice.s
> >er vice.gdservices.com/>";,
> >
> >             className =
> > "com.gdservices.service.thirdparty.ProductSummary")
> > @WebResult(targetNamespace =
> > "http://catalogService.service.gdservices.com
> > <http://catalogservice.service.gdservices.com/>";;;;,
> >             name = "products")
> >     List<ProductSummary> getAllProducts(Long userId, Integer
> > detailLevel) throws ServiceException;
> >
> > Although this works, the CXF dev team told me this was an incorrect
> > usage of the annotations and they weren't sure how it worked.  I'd
> > be interested to see if it works for you too.
> >
> > -bh
> >
> > On 7/28/07, Jeremy Isikoff <[EMAIL PROTECTED]> wrote:
> > > Sorry for all the activity, I'm on deadline and trying to get some
> > > stuff running quickly...
> > > I'm trying to return a List<Reports>  where report is a javabean
> > > with some string properties.  I can get the array back from the
> > > webservice but they all come back typed as Item instead of Report
> > > is there an annotation i need to make or something I need to do to
> > > make the collection come back correctly?  Xfire claims to do this
> > > automatically for 1.5 generic collections.
> > >
> > > Jeremy M. Isikoff
> > >
> > >
> > >
> > >
> > > __________________________________________________________________
> > >__ ________________ Pinpoint customers who are looking for what you
> > > sell.
> > > http://searchmarketing.yahoo.com/
> >
> > ____________________________________________________________________
> >__ ______________ Choose the right car based on your needs.  Check
> > out Yahoo! Autos new Car Finder tool.
> > http://autos.yahoo.com/carfinder/

-- 
J. Daniel Kulp
Principal Engineer
IONA
P: 781-902-8727    C: 508-380-7194
[EMAIL PROTECTED]
http://www.dankulp.com/blog


       
____________________________________________________________________________________
Got a little couch potato? 
Check out fun summer activities for kids.
http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz


      
____________________________________________________________________________________
Fussy? Opinionated? Impossible to please? Perfect.  Join Yahoo!'s user panel 
and lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 

Reply via email to