<DIV> </DIV>
<DIV>Hi, </DIV>
<DIV>
<DIV>I'm interesting in open source system development, especially open source middleware. So, I pay attention to ACE/TAO/CIAO.</DIV>
<DIV> </DIV>
<DIV>From the website, I download the open source code. My development environment as follows: Windows XP SP2, VC 7.1 . NET 2003,ACE 5.5, TAO 1.5 and CIAO 0.5.</DIV>
<DIV> </DIV>
<DIV>So far, I have successfully run the TAO's Nameservice, EventService, and utility these service to code my simple application. Because the component application has been a trend of system of system development, so I want to learn how to develop, deploy and manager component.</DIV>
<DIV> </DIV>
<DIV>According to the CIAO-INSTALL.html, I download the prebuilt binary CIDLC (exe) from the <A href="http://www.vanderbilt.edu/cidlc/" target=_blank rel=nofollow _><FONT color=#003399>http://www.vanderbilt.edu/cidlc/</FONT></A>. I download cidlc-0.5.zip, </DIV>
<DIV>decompress the zip file, and install this file in ACE_ROOT\TAO_ROOT\CIAO_ROOT\bin directory. </DIV>
<DIV> </DIV>
<DIV>So, I open the dance.sln, and set to build release verson exe or dll. Fortuantely, I don't meet any problem, I build all projects successfully. </DIV>
<DIV>According to the c:\ace_wrappers\tao\ciao\docs\tutorials\cosmic\04.html guidance, I successfully run the quoter example. In order to get more component knowledge in detail, I decide to learn every step to build, deploy and manager component. I download the GME 5.9.21 and COSMIC 0.4.8. I install GME first before start COSMIC. Every thing is ok. I find GME 5.9.21 and COSMIC 0.5.2 can't install together. The DLL error will generate.</DIV>
<DIV> </DIV>
<DIV>Start GME, Select File->Import XML, import "c:\ace_wrappers\tao\ciao\docs\tutorials\cosmic\model\quoter.xme", (I think that the quoter.xme file is correct for generating some component descriptors file which used in quoter example.). The import process show ok.</DIV>
<DIV>Because the quoter.xme is correctly imported, I can generate the component descriptors by pointing three icons on the top right-hand coner of GME, </DIV>
<DIV>named P, D.</DIV>
<DIV> </DIV>
<DIV>The first step is following:<BR>Point 'P'(Generate deploymentplan Descriptors), GME generate plan.cdp file. Its content is as follows:<BR><?xml versionfiltered="1.0" encoding="UTF-8" standalone="no"?><BR><Deployment:DeploymentPlan <BR>Xmlns:Deployment=http://www.omg.org/Deployment<BR>Xmlns:xmi="<A href="http://www.omg.org/XMI" target=_blank rel=nofollow _><FONT color=#003399>http://www.omg.org/XMI</FONT></A>"<BR>Xmlns:xsi="<A href="http://www.w3.org/2001/XMLSchema-instance" target=_blank rel=nofollow _><FONT color=#003399>http://www.w3.org/2001/XMLSchema-instance</FONT></A>"<BR>Xsi:SchemaLocationfiltered="<A href="http://www.omg.org/Deployment" target=_blank rel=nofollow _><FONT color=#003399>http://www.omg.org/Deployment</FONT></A> Deployment.xsd"><BR> <instance><BR> <name>_MyQuoter_Componentimplementations_StockQuoterImplementation_StockQuoter_StockBroker</name><BR><node>Broker</node><BR></instance></DIV>
<DIV><instance><BR><name>_MyQuoter_Componentimplementations_StockQuoterImplementation_StockQuoter_StockDistributor</name><BR><node>Distributor</node><BR></instance><BR><Deployment:DeploymentPlan></DIV>
<DIV> </DIV>
<DIV>The second step is following:<BR>Point 'D'(Generate Domain Descriptors), GME generate Domain.ccd file. Its content is as follows:<BR><?xml versionfiltered="1.0" encoding="UTF-8" standalone="no"?><BR><Deployment:Domain <BR>Xmlns:Deployment=http://www.omg.org/Deployment<BR>Xmlns:xmi="<A href="http://www.omg.org/XMI" target=_blank rel=nofollow _><FONT color=#003399>http://www.omg.org/XMI</FONT></A>"<BR>Xmlns:xsi="<A href="http://www.w3.org/2001/XMLSchema-instance" target=_blank rel=nofollow _><FONT color=#003399>http://www.w3.org/2001/XMLSchema-instance</FONT></A>"<BR>Xsi:SchemaLocationfiltered="<A href="http://www.omg.org/Deployment" target=_blank rel=nofollow _><FONT color=#003399>http://www.omg.org/Deployment</FONT></A> Deployment.xsd"><BR><UUID>_MyQuoter_target_Domain</UUID><BR><node><BR> <name>Broker</name><BR></node><BR><node><BR> <name>Distributor</name><BR></node><BR><Deployment:Domain></DIV>
<DIV> </DIV>
<DIV>The third step is following:<BR>Point "Generate Domain Descriptors", GME generate plan.cdp file. Its name is as same as the first step generated file name. its content is as follows:<BR><?xml versionfiltered="1.0" encoding="UTF-8" standalone="no"?><BR><Deployment:deploymentplan <BR>Xmlns:Deployment=http://www.omg.org/Deployment<BR>Xmlns:xmi="<A href="http://www.omg.org/XMI" target=_blank rel=nofollow _><FONT color=#003399>http://www.omg.org/XMI</FONT></A>"<BR>Xmlns:xsi="<A href="http://www.w3.org/2001/XMLSchema-instance" target=_blank rel=nofollow _><FONT color=#003399>http://www.w3.org/2001/XMLSchema-instance</FONT></A>"<BR>Xsi:SchemaLocationfiltered="<A href="http://www.omg.org/Deployment" target=_blank rel=nofollow _><FONT color=#003399>http://www.omg.org/Deployment</FONT></A> Deployment.xsd"></DIV>
<DIV><implementation id="MyQuoter_ComponentImplementations_StockBrokerImplementation_StockBrokerMonolithicImpl"><BR><name> MyQuoter_ComponentImplementations_StockBrokerImplementation_StockBrokerMonolithicImpl</name><BR><source/><BR><artifact><MyQuoter_ImplementationArtifacts_StockBrokerArtifacts_StockBroker_stub></artifact><BR><artifact><MyQuoter_ImplementationArtifacts_StockBrokerArtifacts_StockBroker_svnt></artifact><BR><artifact><MyQuoter_ImplementationArtifacts_StockBrokerArtifacts_StockBroker_exec></artifact><BR></implementation></DIV>
<DIV><implementation id="MyQuoter_ComponentImplementations_StockDistributorImplementation_StockDistributorMonolithicImpl"><BR><name> MyQuoter_Componentimplementations_StockDistributorImplementation_StockDistributorMonolithicImpl</name><BR><source/><BR><artifact><MyQuoter_ImplementationArtifacts_StockDistributorArtifacts_StockDistributor_stub></artifact><BR><artifact><MyQuoter_ImplementationArtifacts_StockDistributorArtifacts_StockDistributor_svnt></artifact><BR><artifact><MyQuoter_ImplementationArtifacts_StockDistributorArtifacts_StockDistributor_exec></artifact><BR></implementation><BR>......<BR>......<BR>......</DIV>
<DIV> </DIV>
<DIV>The fourth step is following:<BR>Point 'Generate package Descriptors', GME generate some files (Broker.cpd, Default.pcd, Distributor,cpd, package.tpd, StockBroker.ccd, </DIV>
<DIV>StockBroker_exec.iad, StockBroker_stub.iad, StockBroker_exec.svnt, StockBrokerMonolitjicImpl.cid, StockDistributor.ccd, StockDistributor_exec.iad, StockDistributor_stub.iad, StockDistributor_svnt.iad, StockDistributorMonolitjicImpl.cid, StockQuoter.cid, stockQuoter.cpd).</DIV>
<DIV> </DIV>
<DIV>After generated these file component descriptors files, I use these file to replace originally files which is running ok. According to </DIV>
<DIV>c:\ace_wrappers\tao\ciao\docs\cosmic\04.html, I meet error hint.<BR>(1)Start NodeManagers (NodeDameon) by running runNodeDaemon.pl, shows:CIAO_NodeManager is running...<BR>(2)Start the execution manager %CIAO_ROOT%/DAnCE/ExecutionManager/Execution_Manager -o ior -i Stock.dat, shows:CIAO_ExecutionManager is running...<BR>(3)plan_launcher -p plan.cdp -k <A target=_blank rel=nofollow><FONT color=#003399>file://ior</FONT></A>, the error shows:<BR> <1788|668> Initalizing the Xerces runtime<BR> <1788|668> EXCEPTION, <%p|%t> Plan_Launcher<BR> user exception, ID 'IDL:Deployment/PlanError:1.0'<BR>(4)at the same time, the Execution_Manager.exe shows error hint as follows:<BR> DAnCE <1500|716> Deploment_Configuration.cpp:Failed to fing IOR for destination [Broker]:DAnCE <BR> <1500|716> DomainApplicationManager_Impl.cpp -CIAO::DomainApplicationmanager_Impl::init -ERROR while calling get_plan_info()<BR> <1500|716> EXCEPTION, DomainApplicationmanager_Impl::init user exception, ID' IDL:Deployment/PlanError:1.0'</DIV>
<DIV> </DIV>
<DIV>So, I compare plan.cdp with flattened+deploymentplan.cdp file, and I find much differnece between these files. Also, there are alike case in another </DIV>
<DIV>file which generate by GME. In order to check the difference between these file, I check differnce by XMLViewer tool(MindFusion Ltd). I find the plan.cdp file have no 'lable' and 'realizes' items. The plan.cdp have 6 'artifact' items, but the flattened_deploymentplan.cdp have 8 'artifact' items.</DIV>
<DIV>According to cosmic-user web, I know the flattened_deploymentplan.cdp name which was named past period. I want to know how to get plan.cdp and another file which can correctly deploy component by GME and COSMIC tool.</DIV>
<DIV> </DIV>
<DIV>Furthermore, use idl_to_picml.exe to generate .xme file as follows:<BR>In c:\ace_wrappers\tao\ciao\docs\tutorials\quoter\simple\MyQuoter directory, MyQuoter directory has three idl files (Stock_base.idl, Broker.idl, </DIV>
<DIV>Distributor.idl).<BR>I run idl_to_picml.exe as follows:<BR>idl_to_picml -x MyQuoter -r . -I .\Stock_Base<BR>show:<BR>tao-idli_sallNK.cpp<BR>tao-idli_zIhGKh.cpp<BR>tao-idli_iYeJwN.cpp</DIV>
<DIV>MyQuoter.xme file is created in MyQuoter directory. Its size is 58646. The original quoter.xme size is 75273 (in </DIV>
<DIV>C:\ACE_wrappers\TAO\CIAO\docs\tutorials\CoSMIC\Model).</DIV>
<DIV> </DIV>
<DIV>Please tell me why the file size is differce?</DIV>
<DIV>Please give me guidance about how to generate component descriptors by GME and COSMIC in detail, thank you very much!</DIV>
<DIV> </DIV>
<DIV>Best Wishes!</DIV></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV > </DIV><br><!-- footer --><br><br><br><br><br><div style="border-bottom:1px solid #999"></div><br>
        <font color="black" style="font-size:14.8px"> Nike 专 卖 6 折 清 仓 , 疯 抢 啦 ! </font>
        <br>
         <a href="http://adtaobao.allyes.com/main/adfclick?db=adtaobao&bid=600,597,58&cid=29985,198,1&sid=32501&show=ignore&url=http://www.taobao.com/vertical/sports/pro.php" target="_blank" style="font-size:13px;line-height:160%;color:blue"> 低 价 上 市 ! 阿 迪 \ Kappa \ 李 宁 新 款 运 动 装 的 全 长 1-4 折 ( 图 )
</a>