I can see that posting that code caused nothing but confusion. I know that
shouldn't be like that but with it in there I am able to call
getActiveDirectory in my Security Service functions and not get the error
which demonstrates that my ColdSpring.xml is properly configured. So let's
start over from there. Pretend the init in my SecurityService is empty.
1) Based on above I have reason to believe that Coldspring.xml is correct
2) This is in my mach-ii.xml
<mach-ii>
<properties>
<property name="ColdspringConfigFile"
value="/actionpacks/security/config/ColdSpring.xml"
/>
</properties>
<plugins>
<plugin name="ColdspringPlugin" type="coldspring.machii.coldspringPlugin
">
<parameters>
<parameter name="configFilePropertyName"
value="ColdspringConfigFile" />
<parameter name="configFilePathIsRelative" value="false" />
<parameter name="resolveMachiiDependencies" value="false" />
<parameter name="placeFactoryInApplicationScope" value="false"
/>
</parameters>
</plugin>
</plugins>
</mach-ii>
3) This is near the bottom of my Security Service
<cffunction name="setActiveDirectoryDao" access="public" returntype="void"
output="false">
<cfargument name="activeDirectoryDao" required="true" type="any" />
<cfset variables.instance.activeDirectoryDao =
arguments.activeDirectoryDao />
</cffunction>
<cffunction name="getActiveDirectoryDao" access="public" returntype="any"
output="false">
<cfreturn variables.instance.activeDirectoryDao />
</cffunction>
4) This is the line of code that is failing in one of my SecurityService
functions
<cfset local.authenticationResults =
getActiveDirectoryDao().AuthenticateUser(local.userName,local.password)>
5) It creates the error
Element INSTANCE.ACTIVEDIRECTORYDAO is undefined in VARIABLES.
6) I know from debugging that prior to getting to the line of code the
generates the error variables.instance.securityService is being set in
setSecurity Service
7) I know from debugging that when getActiveDirectoryService is called in 4
above variables.instance.securityService is not defined
So the real question here is what is causing
variables.instance.securityService to become undefined between the call to
setSecurityService and the call to getActiveDirectoryService
On 8/10/07, Peter J. Farrell <[EMAIL PROTECTED]> wrote:
>
> Bryan,
>
> There is no way this will work you the way you want it based on what I
> see. Are you asking your bean factory for the SecurityService?
>