On 11/15/06, Martin Vojvodik <[EMAIL PROTECTED]> wrote:
Thanks very much!
you won't believe it but you helped me solve it. The problem was me - I had my
business
classes at two places: WEB-INF\classes directory and application-ejb.jar, while
aegis.xml
files were only in WEB-INF\classes.
Simple application made from scratch has worked flawlessly what made me
suspicious there's
something rotten in the packaged EAR. ;)
Yep, i like to help :) specially if bugs are fixed without my work ;)
Good to know that is working.
Martin
----- Original Message ----
From: Tomek Sztelak <[EMAIL PROTECTED]>
To: [email protected]
Sent: Tuesday, November 14, 2006 10:04:17 PM
Subject: Re: [xfire-user] List of components containing List mapping
Can you send me this sample project, so i can try to check whats wrong
? It will be easier to test.
On 11/10/06, Martin Vojvodik <[EMAIL PROTECTED]> wrote:
> Hello,
>
>
>
> I'm experimenting with XFire and there's one thing I wasn't able to figure out
> (on Java 1.4, XFire 1.2.2, simple use - no Spring or anything).
>
>
>
> I have a web service interface with method returning java.util.List. I've
created
>
> an aegis mapping file with setting component-type to ClassA. Everything
worked fine
>
> till I've added property of the type java.util.List to the ClassA. Then XFire
start to complain
>
>
>
> org.codehaus.xfire.XFireRuntimeException:
> Couldn't create type for property listOfClassB on class
com.company.project.business.ClassA:
> Cannot create mapping for java.util.List, unspecified component type for
property listOfClassB
>
> I tried to provide aegis mapping ClassB.aegis.xml as well but id didnt help.
>
> Any suggestions?
>
> tnx,
> Martin Vojvodik
>
>
>
> --- IMyService.java
>
> package com.company.project.service;
>
> import java.util.List;
> import com.company.system.ejb.DatabaseException;
>
> public interface IMyService {
>
>
>
> public abstract List findAllClassA() throws DatabaseException;
>
>
> }
>
> --- ClassA.java
>
> package com.company.project.business;
>
>
> import java.util.List;
>
>
> public class ClassA extends ParentClass {
>
> ...
> protected List listOfClassB;
>
> public List getListOfClassB() {
> return listOfClassB;
> }
>
> --- WEB-INF/classes/com/company/project/service/IMyService.aegis.xml ---
>
>
> <?xml version="1.0" encoding="utf-8"?>
>
> <mappings>
> <mapping>
> <method name="findAllClassA">
> <return-type componentType="com.company.project.business.ClassA"
/>
> </method>
> </mapping>
> </mappings>
>
>
>
> --- WEB-INF/classes/com/company/project/business/ClassA.aegis.xml ---
>
>
>
> <?xml version="1.0" encoding="utf-8"?>
> <mappings>
> <mapping>
> <property name="listOfClassB"
componentType="com.company.project.business.ClassB"/>
> </mapping>
> </mappings>
>
>
> --- WEB-INF/classes/META-INF/xfire/services.xml
>
>
>
> <service>
> <name>MyService</name>
> <namespace>myservice</namespace>
> <serviceClass>com.company.project.service.IMyService</serviceClass>
>
<implementationClass>com.company.project.service.MyService</implementationClass>
> </service>
>
> </beans>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
> http://xircles.codehaus.org/manage_email
>
>
--
-----
When one of our products stops working, we'll blame another vendor
within 24 hours.
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email
--
-----
When one of our products stops working, we'll blame another vendor
within 24 hours.
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email