  | | | Subject: Re: *SPAM*: 08.50/4.0 - Re: Problem building available services | Subject: Re: *SPAM*: 08.50/4.0 - Re: Problem building available services 2007-10-03 - By Suran Jayathilaka
Back Ana Bel?n Ant?n Giron?s wrote: > Hi! > > Thank you very much for your help, Suran and Lahiru. > > >First of all, I see that your class uses generics. Please note that > Axis2 only supports simple-types, arrays and beans. Since Axis2 is > JDK1.4 compliant, generics are not >supported. > >So what you can do is replace your genericised List arguments with arrays. > >e.g.: replace List<Class32> with Class32[]. > > > I think I am more confused than I thought :-(. Because of your > explanation I deduce that I should use another web service framework, > maybe Apache Tuscany. Is this right? > > >Your service folder structure looks ok to me. When the eclipse plugin > has created the .aar file, check whether it contains the intended > structure. > >(rename the .aar file to .zip and you'll be able to deal with it using > any zip tool, or extract the .aar file somewhere and take a look at > the extracted structure, or do "jar tvf" on the archive). > > Regarding the generation of .aar files. I checked the structure > generated before and I thought that it was wrong, because where is the > "MyService.class"??. The generated structure is: > -MyService.aar > -configuration > - ............. > -lib (the libraries that I described in my latter mail) > -META-INF > -MANIFEST.MF > -services.xml (the same xml that I described in my latter mail) > -plugins > > Thanks, > > Ana. > > Hi Ana, Obviously, as members of the Axis2 dev community, we wouldn't be suggesting that you move to another framework, although that is up to you. :-)
Might I ask what you rconfusion is in regards to our suggestions? In removing generics?
Also, you can try creating the service archive manually, using the java jar tool. Again, you are welcome to ask for any help in solving any problems that may arise.
Cheers. Suran
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859 (See http://ISO-8859.ora-code.com)-1" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#000000"> Ana Belén Antón Gironés wrote: <blockquote cite="mid260E4ACD2B8543A79ECC05292813C776@(protected)" type="cite"> <title></title> <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859 (See http://ISO-8859.ora-code.com)-1"> <meta content="MSHTML 6.00.6000.16525" name="GENERATOR"> <div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span class="316000910-03102007">Hi!</span></font></div> <div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span class="316000910-03102007"></span></font> </div> <div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span class="316000910-03102007"><span class="316000910-03102007">Thank you very much for your help, Suran and Lahiru. </span></span></font></div> <div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span class="316000910-03102007"><span class="316000910-03102007"></span></span></font> </div> <div dir="ltr" align="left"><font><span class="316000910-03102007">>First of all, I see that your class uses generics. Please note that Axis2 only supports simple-types, arrays and beans. Since Axis2 is JDK1.4 compliant, generics are not >supported.<br> >So what you can do is replace your genericised List arguments with arrays.<br> >e.g.: replace List<Class32> with Class32[].</span></font></div> <div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span class="316000910-03102007"></span></font> </div> <div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span class="316000910-03102007"></span></font> </div> <div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span class="316000910-03102007">I think I am more confused than I thought :-(. Because of your explanation I deduce that I should use another web service framework, maybe Apache Tuscany. Is this right?</span>< /font></div> <div> </div> <div><span class="316000910-03102007">></span>Your service folder structure looks ok to me. When the eclipse plugin has created the .aar file, check whether it contains the intended structure.<br> <span class="316000910-03102007">></span>(rename the .aar file to .zip and you'll be able to deal with it using any zip tool, or extract the .aar file somewhere and take a look at the extracted structure, or do <span class="316000910-03102007"> </span>"jar tvf" on the archive).</div> <div> </div> <div><span class="316000910-03102007"></span><font face="Arial"><font color="#0000ff"><font size="2">R<span class="316000910-03102007">egarding the generation of .aar files. I checked the structure generated before and I thought that it was wrong, because where is the "MyService.class"??. The generated structure is: </span></font></font>< /font><br> </div> <div class="OutlookMessageHeader" dir="ltr" align="left" lang="es"><span class="316000910-03102007"></span><font face="Arial"><font color="#0000ff"><font size="2">-<span class="316000910-03102007">MyService.aar </span></font></font></font></div> <div class="OutlookMessageHeader" dir="ltr" align="left" lang="es"><font><font color="#0000ff"><font size="2"><span class="316000910-03102007"></span></font> </font></font><span class="316000910-03102007"><font color="#0000ff" face="Arial" size="2"> -configuration</font></span></div> <div class="OutlookMessageHeader" dir="ltr" align="left" lang="es"><span class="316000910-03102007"><font color="#0000ff" face="Arial" size="2"> - ............. </font></span></div> <div class="OutlookMessageHeader" dir="ltr" align="left" lang="es"><span class="316000910-03102007"></span><span class="316000910-03102007"><font color="#0000ff" face="Arial" size="2"> -lib (the libraries that I described in my latter mail)</font></span></div> <div class="OutlookMessageHeader" dir="ltr" align="left" lang="es"><span class="316000910-03102007"></span><span class="316000910-03102007"><font color="#0000ff" face="Arial" size="2"> -META-INF</font> </span></div> <div class="OutlookMessageHeader" dir="ltr" align="left" lang="es"><span class="316000910-03102007"></span><span class="316000910-03102007"><font color="#0000ff" face="Arial" size="2"> -MANIFEST.MF</font></span></div> <div class="OutlookMessageHeader" dir="ltr" align="left" lang="es"><span class="316000910-03102007"></span><span class="316000910-03102007"><font color="#0000ff" face="Arial" size="2"> -services.xml (the same xml that I described in my latter mail)</font></span><br> <font face="Arial"><font color="#0000ff"><font size="2"><span class="316000910-03102007"> </span><span class="316000910 -03102007">-plugins</span></font></font></font></div> <div class="OutlookMessageHeader" dir="ltr" align="left" lang="es"><font face="Arial"><font color="#0000ff"><font size="2"><span class="316000910-03102007"> </span>< /font></font></font></div> <div class="OutlookMessageHeader" dir="ltr" align="left" lang="es"><font face="Arial"><font color="#0000ff"><font size="2"><span class="316000910-03102007">Thanks, </span></font></font></font></div> <div class="OutlookMessageHeader" dir="ltr" align="left" lang="es"><font face="Arial"><font color="#0000ff"><font size="2"><span class="316000910-03102007"></span></font></font></font> </div> <div class="OutlookMessageHeader" dir="ltr" align="left" lang="es"><font face="Arial"><font color="#0000ff"><font size="2"><span class="316000910-03102007">Ana.</span></font></font></font></div> <div class="OutlookMessageHeader" dir="ltr" align="left" lang="es"><font face="Arial"><font color="#0000ff"><font size="2"><span class="316000910-03102007"></span></font></font></font> </div> <br> </blockquote> Hi Ana,<br> Obviously, as members of the Axis2 dev community, we wouldn't be suggesting that you move to another framework, although that is up to you. :-)<br> <br> Might I ask what you rconfusion is in regards to our suggestions? In removing generics?<br> <br> Also, you can try creating the service archive manually, using the java jar tool. Again, you are welcome to ask for any help in solving any problems that may arise.<br> <br> Cheers.<br> Suran<br> <br> <br> </body> </html>
|
|
 |