You might have better luck posting in the Mach-II list since the problem is
specific to the way you are using the Mach-II plugin.
On 8/9/07, Bryan S <[EMAIL PROTECTED]> wrote:
>
> I left out the most important part of the error message
> Element INSTANCE.ACTIVEDIRECTORYDAO is undefined in VARIABLES
>
> On 8/9/07, Bryan S < [EMAIL PROTECTED]> wrote:
> >
> > I was sidetracked at work shortly after starting this thread. I'm just
> > getting back to it today. I've dug deeper and this still has me stumped. I
> > know that my set method is getting called and
> > variables.instance.activedirectorydao does have a value before it leaves
> > the setter but then when it gets to the getter it doesn't have it any more I
> > don't know what is causing this. Any help would be appreciated.
> >
> > The previous suggestion to change resolve mach-ii dependencies to true
> > did not solve the problem.
> >
> > THE ERROR
> > The error occurred in
> > D:\Inetpub\wwwroot\actionpacks\security\model\SecurityService.cfc: line 580
> > Called from
> > D:\Inetpub\wwwroot\actionpacks\security\model\SecurityService.cfc: line 410
> > Called from
> > D:\Inetpub\wwwroot\com\mybrighthouse\security\machii\plugins\SecurityPluginActionPacks.cfc:
> > line 237
> > Called from D:\Inetpub\wwwroot\MachII\framework\PluginManager.cfc: line
> > 142
> > Called from D:\Inetpub\wwwroot\MachII\framework\EventContext.cfc: line
> > 212
> > Called from D:\Inetpub\wwwroot\MachII\framework\RequestHandler.cfc: line
> > 74
> > Called from D:\Inetpub\wwwroot\MachII\framework\RequestHandler.cfc: line
> > 39
> > Called from D:\Inetpub\wwwroot\MachII\mach-ii.cfm: line 105
> > Called from D:\Inetpub\wwwroot\flexcomm3\index.cfm: line 1
> >
> > 578 : <!---
> > 579 : <cfdump var="#variables.instance.activeDirectoryDao#" label="
> > variables.instance.activeDirectoryDao in
> > GETActiveDirectoryDao"><cfabort>
> > 580 : --->
> > 581 : <cfreturn variables.instance.activeDirectoryDao />
> > 582 : </cffunction>
> >
> > THE RELEVANT CODE IN MY COLDSPRING.XML
> > <!-- Security Service -->
> > <bean id="SecurityService" class="
> > actionpacks.security.model.SecurityService">
> > <!-- -->
> > <property name="SecurityConfig">
> > <ref bean="SecurityConfig"/>
> > </property>
> > <property name="ActiveDirectoryDao">
> > <ref bean="ActiveDirectoryDao"/>
> > </property>
> > <property name="groupUserGateway">
> > <ref bean="groupUserGateway"/>
> > </property>
> > <property name="groupOwnerGateway">
> > <ref bean="groupOwnerGateway"/>
> > </property>
> > <property name="appRoleGateway">
> > <ref bean="appRoleGateway"/>
> > </property>
> > <property name="appRoleGroupGateway">
> > <ref bean="appRoleGroupGateway"/>
> > </property>
> > <property name="appMainGateway">
> > <ref bean="appMainGateway"/>
> > </property>
> > <property name="userMainGateway">
> > <ref bean="userMainGateway"/>
> > </property>
> >
> > </bean>
> >
> > <bean id="ActiveDirectoryDao" class="
> > actionpacks.security.model.ActiveDirectoryDao">
> > <property name="SecurityConfig">
> > <ref bean="SecurityConfig"/>
> > </property>
> > </bean>
> >
> > <!-- Security Configuration -->
> > <bean id="SecurityConfig" class="
> > ModelGlue.Bean.CommonBeans.SimpleConfig">
> > <property name="config">
> > <map>
> > <entry key="ldapServers">
> > <value>10.xxx.1.1,XX.xxx.1.2</value>
> > </entry>
> > </map>
> > </property>
> > </bean>
> >
> > On 7/31/07, Kurt Wiersma <[EMAIL PROTECTED] > wrote:
> > >
> > > Can see the stack trace (aka the tag context) for this error? I am
> > > wondering which is triggering this error. Can we see the configuration for
> > > any beans that configured to use active directory DAO?
> > > --Kurt
> > >
> > > On 7/31/07, Bryan S < [EMAIL PROTECTED]> wrote:
> > > >
> > > > Please tell me what I am missing. This is the first time I am using
> > > > the Coldspring plugin for mach-ii. Thanks.
> > > >
> > > > Bryan
> > > >
> > > > I'm getting this error in my security service:
> > > > Element INSTANCE.ACTIVEDIRECTORYDAO is undefined in VARIABLES.
> > > >
> > > > I have this 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="placeFactoryInApplication Scope"
> > > > value="false" />
> > > > </parameters>
> > > > </plugin>
> > > > </plugins>
> > > > </mach-ii>
> > > >
> > > > I know that my Coldspring.xml is good because this works if I put it
> > > > the init of the service:
> > > > <cffunction name="init" returntype="any" output="false"
> > > > hint="Constructor">
> > > > <cfset variables.instance.BeanFactory =
> > > > createObject("component","
> > > > coldspring.beans.DefaultXmlBeanFactory").init()
> > > > />
> > > > <cfset
> > > > getBeanFactory().loadBeansFromXmlFile("/actionpacks/security/config/ColdSpring.xml",true)
> > > > />
> > > > <cfset variables.instance.ActiveDirect oryDao =
> > > > getBeanFactory().getBean("ActiveDirectoryDao") />
> > > > <cfreturn this />
> > > > </cffunction>
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
>