On Monday 22 May 2006 16:48, Nick Tong - TalkWebSolutions.co.uk wrote:
> HI Tom, can you post your config file and how you're calling reactor?
Sure.
The mapping /data points to a dir called Data under the web root, the web
server has write access there and no where else.
expantPath("reactor.xml") on the calling page prints the expected location of
reactor.xml
(incidently Doug, an updated .zip would be good because svn can't get out of
our corporate firewall :-( )
The exact error is (should have included this):
--------------------------------------------------------------------
The specified Directory attribute
value /home/chivertont/Projects/Reactor/core/../project/archDevThing/Gateway/
could not be created.
The most likely cause of this error is that
'/home/chivertont/Projects/Reactor/core/../project/archDevThing/Gateway/'
already exists on your file system. The exception occurred during a
cfdirectory action="create".
The error occurred
in /home/chivertont/Projects/Reactor/core/objectTranslator.cfc: line 323
Called from /home/chivertont/Projects/Reactor/core/objectTranslator.cfc: line
81
Called from /home/chivertont/Projects/Reactor/core/objectTranslator.cfc: line
46
Called from /home/chivertont/Projects/Reactor/core/objectFactory.cfc: line 87
Called from /home/chivertont/Projects/Reactor/reactorFactory.cfc: line 61
Called from /home/chivertont/Projects/myplan2/reactTest.cfm: line 6
--------------------------------------------------------------------
/reactor.xml
--------------------------------------------------------------------
<reactor>
<config>
<project value="archDevThing" />
<dsn value="archive" />
<type value="mysql4" />
<mapping value="/data" />
<mode value="development" />
</config>
<objects>
<object name="users">
</object>
</objects>
</reactor>
--------------------------------------------------------------------
/reactTest.cfm
--------------------------------------------------------------------
<cfset Reactor = CreateObject("Component",
"reactor.reactorFactory").init(expandPath("reactor.xml")) />
<cfset userGateway = Reactor.createGateway("users") />
<!--- Get all the Contacts in the databaes --->
<cfset userQuery = userGateway.getAll() />
--------------------------------------------------------------------
--
Tom Chiverton
****************************************************
This email is sent for and on behalf of Halliwells LLP.
Halliwells LLP is a limited liability partnership registered in England and
Wales under registered number OC307980 whose registered office address is at St
James's Court Brown Street Manchester M2 2JF. A list of members is available
for inspection at the registered office. Any reference to a partner in relation
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law
Society.
CONFIDENTIALITY
This email is intended only for the use of the addressee named above and may be
confidential or legally privileged. If you are not the addressee you must not
read it and must not use any information contained in nor copy it nor inform
any person other than Halliwells LLP or the addressee of its existence or
contents. If you have received this email in error please delete it and notify
Halliwells LLP IT Department on 0870 365 8008.
For more information about Halliwells LLP visit www.halliwells.com.
We are pleased to announce that Halliwells LLP has been voted AIM Lawyer of the
Year at the 2005 Growth Company Awards
-- Reactor for ColdFusion Mailing List -- [email protected]
-- Archives at http://www.mail-archive.com/reactor%40doughughes.net/