stratos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeffrey Nguyen (jeffrngu)" <jeffr...@cisco.com>
Subject Re: Question about CloudControllerService.wsdl
Date Sat, 15 Mar 2014 06:47:01 GMT


Thanks Nirmal for the clarifications.   I followed your steps and was able to generate the
right WSDL and also able to do full build successfully with the updated WSDL.   I'm in the
process of testing the changes now.

Regards,
-Jeffrey

From: Nirmal Fernando <nirmal070125@gmail.com<mailto:nirmal070125@gmail.com>>
Reply-To: "dev@stratos.incubator.apache.org<mailto:dev@stratos.incubator.apache.org>"
<dev@stratos.incubator.apache.org<mailto:dev@stratos.incubator.apache.org>>
Date: Friday, March 14, 2014 5:23 PM
To: "dev@stratos.incubator.apache.org<mailto:dev@stratos.incubator.apache.org>" <dev@stratos.incubator.apache.org<mailto:dev@stratos.incubator.apache.org>>
Subject: Re: Question about CloudControllerService.wsdl


On Mar 15, 2014 1:15 AM, "Jeffrey Nguyen (jeffrngu)" <jeffrngu@cisco.com<mailto:jeffrngu@cisco.com>>
wrote:
>
> Thank you Nirmal for the reply.   As always, really appreciate the detailed steps.
>
> I will try out the steps you mentioned below.
>
> Some more clarifications:
> You didn't mentioned about the "components/org.apache.stratos.rest.endpoint" project
where I manually made changes to the Bean classes.   Where do they fit into the steps you
mentioned below?   They are not automatically generated aren't they?  What I did was I manually
add/update appropriate bean classes for the new attribute I'm adding.

Correct.
> The new WSDL file in step #6 below is the final copy I need to eventually check in? 
 Is it automatically updated with the new attribute based on the new Bean and POJO class I'm
adding?

Yes, you don't need to manually change it.
> Thanks,
> -Jeffrey
>
> From: Nirmal Fernando <nirmal070125@gmail.com<mailto:nirmal070125@gmail.com>>
> Reply-To: "dev@stratos.incubator.apache.org<mailto:dev@stratos.incubator.apache.org>"
<dev@stratos.incubator.apache.org<mailto:dev@stratos.incubator.apache.org>>
> Date: Friday, March 14, 2014 11:04 AM
> To: "dev@stratos.incubator.apache.org<mailto:dev@stratos.incubator.apache.org>"
<dev@stratos.incubator.apache.org<mailto:dev@stratos.incubator.apache.org>>
> Subject: Re: Question about CloudControllerService.wsdl
>
> Hi,
> On Mar 14, 2014 11:40 PM, "Jeffrey Nguyen (jeffrngu)" <jeffrngu@cisco.com<mailto:jeffrngu@cisco.com>>
wrote:
> >
> > Hi,
> >
> > I'm trying to add a new attribute which is  a JSON array to the existing cartridgeDefinitionBean/iaasProvider.
  I've added the new bean and POJO classes for the new attribute.  Also added supported method
in PojoConverter to convert the array of new bean objects to array of new POJO objects.
> >
> > Questions:
> >
> > When I do a full build of Stratos, I got compilation error in the PojoConverter.java
in the new method I added for the Bean conversion (shown below).   The references to the new
POJO class cause compile error.   Do I need to modify CloudControllerService.wsdl of CC service
stub?
>
> Yes, since you have changed the contract.
>
> At some point I was somehow able to do a full build but now it fails to build more consistent.
> > When I was able to do a full build and started Stratos CC.  I checked the CloudControllerService.wsdl
and it has references to the variable that holds the list of new POJO class in IaasConfig
element block.  However, it's still not quite correct so I need to fix it.
> > For changes like this, should I manually modify CloudControllerService.wsdl, or
should it be automatically generated when I deploy new CC jar file that has the changes for
my new POJO and bean classes?  I seem to have a chicken and egg problem now since I can't
build the code successfully if that's required to generate the new CloudControllerService.wsdl
file for CC service stub.
>
> 1. Assumption: you have built the code at least once before.
> 2. Change the CC component and build only that.
> 3. Now build only the CC product.
> 4. Start MB and then CC.
> 5. Get thd CC wsdl
> 6. Patch the service stub with new wsdl.
> 7. Build the service stub etc.
>
> > Any pointers, suggestions would be greatly appreciated.
> >
> > Thanks ,
> > -Jeffrey
> >
> >
> > [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
(default-compile) on project org.apache.stratos.rest.endpoint: Compilation failure: Compilation
failure:
> > [ERROR] /github/stratos/incubator-stratos-alpha/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/bean/util/converter/PojoConverter.java:[115,19]
error: cannot find symbol

Mime
View raw message