Thanks for all your responses... It works!! Fabulous...
Just need to add 2/3 things and then go go go with XFire!! -----Original Message----- From: Hogan, Gavin [mailto:[EMAIL PROTECTED] Sent: 04 June 2007 14:33 To: [email protected] Subject: RE: [xfire-user] Urgent: How to Wrire Aegis.xml file for Complex Data Type I am using 1.2.6 but all my mapping files have been in use since I was using 1.2.3 . When I have issues the most common reasons are. 1. I made a typo somewhere. The Java class must have the exact same name and case as the aegis file 2. My build script did not include the aegis file in my packaged code. 3. My current XML env has issues with namespaces. Anshumn removing the namespace declarations would solve this. 4. The Collection is not declared in the class I am mapping, instead it is mapped by a super class. In this cases I just add some delegate methods ..... public Collection getMyCollection(){ return super.getMyCollection(); } 5. Something else ;) ___________________________________________ Gavin Hogan Programmer/Analyst The State University of New York State University Plaza Albany, NY 12246 Phone 518-443-5481 fax 518-443-5809 e-mail [EMAIL PROTECTED] -----Original Message----- From: Maxime Orain [mailto:[EMAIL PROTECTED] Sent: Monday, June 04, 2007 8:13 AM To: [email protected] Subject: RE: [xfire-user] Urgent: How to Wrire Aegis.xml file for Complex Data Type Which version of XFire do you use? I use the 1.2.5... and it didn't work... Thanks for the help. -----Original Message----- From: Anshumn Sagar [mailto:[EMAIL PROTECTED] Sent: 04 June 2007 13:21 To: [email protected] Subject: RE: [xfire-user] Urgent: How to Wrire Aegis.xml file for Complex Data Type I am able to get it working. I made the aegis file simple and removed the xmlns:mp attributes. The Aegis file is Batch.aegis.xml ------------------- <?xml version="1.0" encoding="UTF-8"?> <mappings> <mapping> <property name="batchItems" componentType="service.beans.BatchLicenseItem"/> </mapping> </mappings> ------------------------------------------------------- Also make sure that the file is in the same package where the bean is(the bean which has the property as a list of other bean). Hope this helps. Regards, Anshumn --- Anshumn Sagar <[EMAIL PROTECTED]> wrote: > Even I am getting the same error > > It is not able to create the list.. > The exception is ---------------- > > org.codehaus.xfire.XFireRuntimeException: Couldn't > create type for property batc > hItems on class beamrocs.service.beans.Batch: Cannot > create mapping for java.uti > l.List, unspecified component type for interface java.util.List > at > org.codehaus.xfire.aegis.type.DefaultTypeCreator.createCollectionType > (DefaultTypeCreator.java:43) > at > org.codehaus.xfire.aegis.type.java5.Java5TypeCreator.createCollection > Type(Java5TypeCreator.java:139) > at > org.codehaus.xfire.aegis.type.XMLTypeCreator.createCollectionType(XML > TypeCreator.java:141) > at > org.codehaus.xfire.aegis.type.AbstractTypeCreator.createTypeForClass( > AbstractTypeCreator.java:113) > at > org.codehaus.xfire.aegis.type.AbstractTypeCreator.createType(Abstract > TypeCreator.java:396) > > :( > > Regards, > Anshumn > > > --- Maxime Orain <[EMAIL PROTECTED]> wrote: > > > Hello I ve got the same problem... > > > > I copy/paste the same code... > > > > But even if the mapping file is putted I always > get > > this error: > > org.codehaus.xfire.XFireRuntimeException: Cannot > > create mapping for > > java.util.Collection, unspecified component type > for > > return type of > > method giveMailAdress in interface IMyService > > at > > > org.codehaus.xfire.aegis.type.DefaultTypeCreator.createCollectionType(De > > faultTypeCreator.java:43) > > at > > > org.codehaus.xfire.aegis.type.java5.Java5TypeCreator.createCollectionTyp > > e(Java5TypeCreator.java:139) > > at > > > org.codehaus.xfire.aegis.type.XMLTypeCreator.createCollectionType(XMLTyp > > eCreator.java:141) > > at > > > org.codehaus.xfire.aegis.type.AbstractTypeCreator.createTypeForClass(Abs > > tractTypeCreator.java:122) > > at > > > org.codehaus.xfire.aegis.type.AbstractTypeCreator.createType(AbstractTyp > > eCreator.java:368) > > at > > > org.codehaus.xfire.aegis.AegisBindingProvider.getSuggestedName(AegisBind > > ingProvider.java:248) > > at > > > org.codehaus.xfire.service.binding.DefaultServiceConfiguration.getOutPar > > ameterName(DefaultServiceConfiguration.java:174) > > at > > > org.codehaus.xfire.service.binding.ObjectServiceFactory.getOutParameterN > > ame(ObjectServiceFactory.java:1087) > > at > > > org.codehaus.xfire.service.binding.ObjectServiceFactory.addOperation(Obj > > ectServiceFactory.java:844) > > at > > > org.codehaus.xfire.service.binding.ObjectServiceFactory.initializeOperat > > ions(ObjectServiceFactory.java:769) > > at > > > org.codehaus.xfire.service.binding.ObjectServiceFactory.create(ObjectSer > > viceFactory.java:452) > > at > > > org.codehaus.xfire.service.binding.ObjectServiceFactory.create(ObjectSer > > viceFactory.java:378) > > at > > > org.codehaus.xfire.service.binding.ObjectServiceFactory.create(ObjectSer > > viceFactory.java:359) > > > > > > -----Original Message----- > > From: Anshumn Sagar > [mailto:[EMAIL PROTECTED] > > Sent: 04 June 2007 06:40 > > To: [email protected] > > Subject: RE: [xfire-user] Urgent: How to Wrire > > Aegis.xml file for > > Complex Data Type > > > > Dear Hogan, > > > > Thanks. This is quite clear. I am going to try > this > > out. > > > > Thanks & Regards, > > Anshumn > > > > --- "Hogan, Gavin" <[EMAIL PROTECTED]> wrote: > > > > > In the same package as the calls mentioned below > > > include User.aegis.xml. > > > > > > Within that file you must create a property > > mapping > > > like this > > > > > > <?xml version="1.0" encoding="UTF-8"?> > > > <mp:mappings xmlns:mp="http://xfire.codehaus.org/aegis/1.0" > > > > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > > > > > xsi:schemaLocation="http://xfire.codehaus.org/aegis/1.0 > > > > http://xfire.codehaus.org/schemas/1.0/mapping.xsd > > "> > > > <mapping> > > > > > > <property name="customers" > > > componentType="your.package.path.Customers" /> > > > </mapping> > > > </mp:mappings> > > > > > > > > > Hope this is clear. > > > > > > > > > Also if the Customer has a collection of, say > > email > > > addresses you would > > > have a aegis file for Customer.java > > > > > > <?xml version="1.0" encoding="UTF-8"?> > > > <mp:mappings xmlns:mp="http://xfire.codehaus.org/aegis/1.0" > > > > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > > > > > xsi:schemaLocation="http://xfire.codehaus.org/aegis/1.0 > > > > http://xfire.codehaus.org/schemas/1.0/mapping.xsd > > "> > > > <mapping> > > > > > > <property name="emails" > > > componentType="java.lang.String" /> > > > </mapping> > > > </mp:mappings> > > > > > > Remember that these files must be available at > run > > > time and be located > > > in the package of the class they relate to and > the > > > name must match the > > > class as indicated above. > > > > > > > > > ___________________________________________ > > > > > > Gavin Hogan > > > Programmer/Analyst > > > The State University of New York > > > State University Plaza > > > Albany, NY 12246 > > > Phone 518-443-5481 > > > fax 518-443-5809 > > > e-mail [EMAIL PROTECTED] > > > > > > -----Original Message----- > > > From: Anshumn Sagar > > [mailto:[EMAIL PROTECTED] > > > Sent: Friday, June 01, 2007 5:52 AM > > > To: [email protected] > === message truncated === ________________________________________________________________________ ____________ Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more. http://mobile.yahoo.com/go?refer=1GNXIC --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email This email was sent to you by Reuters, the global news and information company. To find out more about Reuters visit www.about.reuters.com Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Reuters Limited. Reuters Limited is part of the Reuters Group of companies, of which Reuters Group PLC is the ultimate parent company. Reuters Group PLC - Registered office address: The Reuters Building, South Colonnade, Canary Wharf, London E14 5EP, United Kingdom Registered No: 3296375 Registered in England and Wales --------------------------------------------------------------------- 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 This email was sent to you by Reuters, the global news and information company. To find out more about Reuters visit www.about.reuters.com Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Reuters Limited. Reuters Limited is part of the Reuters Group of companies, of which Reuters Group PLC is the ultimate parent company. Reuters Group PLC - Registered office address: The Reuters Building, South Colonnade, Canary Wharf, London E14 5EP, United Kingdom Registered No: 3296375 Registered in England and Wales --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email
