Brad

Just to add to Dan's comment on the order of lookups:

1) First, it attempts to find the component in a subdirectory *relative to the 
calling code*. So your first call to instantiate reactor.ReactorFactory from 
index.cfm within your site's root folder will always find your local copy of 
/reactor/ReactorFactory.cfc. However, when a function inside ReactorFactory.cfc 
tries to instantiate something - such as reactor.config.config - it looks for a 
*local relative directory* to find this object. So in this example it is 
looking for the component /reactor/reactor/config/Config.cfc - which will not 
be found.

2) So, next it looks for the component via a mapping - this is bad. This means 
that if another site on a shared server has created a /reactor mapping then it 
will search *their* copy of reactor for the component. Your local copy will be 
ignored.

3) However, if the component is still not found, your site's webroot is the 
next place to look.

Point being that as long as nobody on a shared server creates a /reactor 
mapping then each site can have its own reactor in the root folder and things 
should work just fine.

Best regards

Kevan

________________________________________
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brad Haas
Sent: Thursday, 27 July 2006 4:27 AM
To: [email protected]
Subject: Re: [Reactor for CF] HELP--not of type reactor.reactorFactory

I don't plan to map at all (too dangerous).   I just want to keep the reactor 
directory in the web root.  My question was more of what if someone else on the 
server created a mapping called reactor and I was hitting their reactor instead 
of mine, but as Dan pointed out this shouldn't happen.

Thanks,
Brad

On Jul 26, 2006, at 2:21 PM, Teddy Payne wrote:


I would recommend a mapping name that will be unique.  This would avoid someone 
else accidentally trying to reference the mapping.

Teddy
On 7/26/06, Brad Haas <[EMAIL PROTECTED]> wrote:
Damn.  I had high hopes for this one.  I blew away Reactor and
downloaded the latest build.  Still no go.  This is got to be
something outside of Reactor.  I've got the same site working on my
dev box and my laptop.  It's just Intermedia that's not working.  I 
guess it's time for some tech support.

One more question.  Since the site is on a shared server and
Intermedia allows CF mappings.  What would happen if someone created
a reactor mapping?  I wouldn't think this would override the reactor 
directory in my web root.

I appreciate everyones help.

Thanks,
Brad

On Jul 26, 2006, at 1:52 PM, Patrick McElhaney wrote:

> I think I ran into the same problem. Did you just add a default value 
> to a column on one of your tables? It turned out to be a bug in
> reactor -- probably introduced in a recent build -- that was fixed a
> couple of days ago.
>
> http://trac.reactorframework.com/reactor/trac.cgi/ticket/65
>
> Patrick
>
>
> On 7/26/06, Brad Haas <[EMAIL PROTECTED] > wrote:
>>
>>
>> Please--if anyone can help me figure this out I would greatly
>> appreciate it.
>>  I'm moving a site from a dev server to a production server.
>> Everything is 
>> exactly the same except for the database name (which I changed in the
>> reactor.xml file).
>>
>> Whenever, I try to instantiate Reactor on the production site I
>> get the 
>> following error:
>>
>> The argument REACTORFACTORY passed to function init() is not of type
>> reactor.reactorFactory.
>>
>> I thought it may have been something to do with the database name 
>> change, so
>> I left Reactor in development mode, deleted the project and data
>> directory
>> files and flushed the application scope.  No matter what I do, I
>> can't get 
>> this error to go away.  I've ensured the permissions on the server
>> are
>> correct and the path to reactor.xml is correct.
>>
>> Can anyone give me any ideas why this is happening?  The site is 
>> on a shared
>> server at Intermedia, but I've got several other sites using
>> Reactor there
>> having no problems.  If there is anything I need to try please let
>> me know. 
>> I've been up all night and I'm getting desperate.
>>
>> I appreciate the help.  The error dump is below.
>>
>> Thanks,
>> Brad
>>
>>
>> Diagnostics 
>> The argument REACTORFACTORY passed to function init() is not of type
>> reactor.reactorFactory. If the component name is specified as a
>> type of this
>> argument, the reason for this error might be that a definition 
>> file for such
>> component cannot be found or is not accessible. <br>The error
>> occurred on
>> line 13.
>> GeneratedContent
>>
>>
>> Message 
>> The argument REACTORFACTORY passed to function init() is not of type
>> reactor.reactorFactory.
>> QueryString
>> [empty string]
>>
>> RootCause
>> [undefined struct element] 
>>
>> StackTrace
>> coldfusion.runtime.UDFMethod$InvalidArgumentTypeException:
>> The argument REACTORFACTORY passed to function init() is not of type
>> reactor.reactorFactory . at
>> coldfusion.runtime.UDFMethod._validateArg(UDFMethod.java:471)
>> at
>> coldfusion.runtime.UDFMethod._validateArg(UDFMethod.java:480)
>> at
>> cfobjectFactory2ecfc273392869$funcINIT.runFunction(D:\ftp\prevent 
>> \Htdocs\reactor\core\objectFactory.cfc:13)
>> at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:348)
>> at
>> coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47)
>> at 
>> coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke
>> (UDFMethod.java:294)
>> at
>> coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke
>> (UDFMethod.java:258)
>> at
>> coldfusion.filter.FunctionAccessFilter.invoke
>> (FunctionAccessFilter.java:56)
>> at
>> coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:211)
>> at coldfusion.runtime.UDFMethod.invoke (UDFMethod.java:173)
>> at
>> coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:192)
>> at
>> coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:145)
>> at
>> coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:1634)
>> at
>> cfreactorFactory2ecfc202763435$funcINIT.runFunction(D:\ftp\prevent
>> \Htdocs\reactor\reactorFactory.cfc:14)
>> at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:348)
>> at
>> coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke
>> (UDFMethod.java:294)
>> at
>> coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke 
>> (UDFMethod.java:258)
>> at
>> coldfusion.filter.FunctionAccessFilter.invoke
>> (FunctionAccessFilter.java:56)
>> at
>> coldfusion.runtime.UDFMethod.runFilterChain( UDFMethod.java:211)
>> at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:173)
>> at
>> coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:192)
>> at
>> coldfusion.runtime.TemplateProxy.invoke (TemplateProxy.java:145)
>> at
>> coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:1634)
>> at
>> cfscribble2ecfm334292028.runPage(D:\ftp\prevent\Htdocs
>> \scribble.cfm:2)
>> at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:152)
>> at
>> coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:349)
>> at
>> coldfusion.filter.CfincludeFilter.invoke (CfincludeFilter.java:65)
>> at
>> coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:
>> 209)
>> at
>> coldfusion.filter.RequestMonitorFilter.invoke
>> ( RequestMonitorFilter.java:51)
>> at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
>> at
>> coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:69)
>> at
>> coldfusion.filter.ClientScopePersistenceFilter.invoke
>> (ClientScopePersistenceFilter.java:28)
>> at
>> coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
>> at
>> coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
>> at
>> coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
>> at
>> coldfusion.filter.RequestThrottleFilter.invoke 
>> (RequestThrottleFilter.java:115)
>> at coldfusion.CfmServlet.service(CfmServlet.java:107) at
>> coldfusion.bootstrap.BootstrapServlet.service
>> (BootstrapServlet.java:78)
>> at 
>> jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
>> at
>> jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
>> at
>> jrun.servlet.JRunRequestDispatcher.invoke 
>> (JRunRequestDispatcher.java:257)
>> at
>> jrun.servlet.ServletEngineService.dispatch
>> (ServletEngineService.java:541)
>> at
>> jrun.servlet.jrpp.JRunProxyService.invokeRunnable 
>> (JRunProxyService.java:204)
>> at
>> jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable
>> (ThreadPool.java:318)
>> at
>> jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable 
>> (ThreadPool.java:426)
>> at
>> jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable
>> (ThreadPool.java:264)
>> at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66) 
>> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>> -- -- --
>> -- --
>> Reactor for ColdFusion Mailing List
>> [email protected] 
>> Archives at:
>> http://www.mail-archive.com/reactor%40doughughes.net/
>> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
>> -- -- --
>> -- --
>
>
> --
> Patrick McElhaney
> 704.560.9117
>
>
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> -- -- -- -- -- 
> Reactor for ColdFusion Mailing List
> [email protected]
> Archives at: http://www.mail-archive.com/reactor%40doughughes.net/ 
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> -- -- -- -- --
>



-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List 
[email protected]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
-- 



-- 
<cf_payne />
http://cfpayne.wordpress.com/ 
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[email protected]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --



-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[email protected]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

Reply via email to