Problem in resolution phase

"Gustavo Wagner D Mendes / Pos. COPIN" <gustavo-y04Q/[email protected]> Thu, 10 Nov 2005 10:33:09 -0300
Newsgroups gmane.comp.java.smartfrog.devel
Message-ID <[email protected]>
Hello all.

  We have a doubt about the resolution phase. Looking at these 2 component
definitions below, is there any clear problem? When we try to parse the
component1.sf, the following error occurs:

ERROR
'/local/gustavo/applications/workspace/ServiceProfile/src/org/ourgrid/serviceprofile/teste/testeResolution/component1.sf':
SmartFrogCompileResolutionException:: Unresolved Reference, data: [basedir in:
HERE sfConfig:home], source: HERE sfConfig, resolutionPhase: link

We have an explanation, but we don't know if this error should occur. First,
the Component1 has a link reference to the Component2:home. In the
Component2:home definition, there is a local variable ( local to Component2 )
named "basedir". The parser tries to copy the "home" variable from Component2
to Component1. But, in Component1, there is not the "basedir" variable. So,
the error occurs. Should this happen?

   Thank you,

      Gustavo and Alisson

===== component1.sf =====

#include "org/smartfrog/components.sf"
#include "org/smartfrog/functions.sf"
#include "org/ourgrid/serviceprofile/teste/testeResolution/component2.sf"

Component1 extends {
    home ATTRIB Component2:home;    	
}

sfConfig extends Component1;


===== component2.sf =====

#include "org/smartfrog/components.sf"
#include "org/smartfrog/functions.sf"

#include "org/smartfrog/sfcore/workflow/components.sf"

Component2 extends {

	basedir "/tmp/dir";
	
	home ( basedir ++ "/test/");	
}

sfConfig extends Component2;





                #############################################
                #       GUSTAVO WAGNER DINIZ MENDES         #
                #       Graduado pela UFCG                  #
                #       Curso: Ciência da Computação        #
                #       Mestrando pela COPIN-UFCG           #
                #     * Integrante do projeto OurGrid       #
                #        Fones: (83)88246910 / 32358355     #
                #                   33333453                #



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php