Shared host config question.

11 views
Skip to first unread message

Victoria Ryder

unread,
Sep 19, 2009, 5:12:20 PM9/19/09
to Model Glue
My current error is:

Bean creation exception during init() of reactor.config.config
access denied (java.io.FilePermission \config\Reactor.xml read)

I believe I have incorrect ColdSpring configs, but I can't seem to
figure out what the correct ones would be.
My situation is thus:

www/ModelGlue
www/ColdSpring
www/Reactor
www/subdirectory1
www/subdirectory1/config
www/subdirectory2
www/subdirectory2/config

I'm on a shared host with no ability to create virtual hosts, but I
want more than one application up there.
I don't want to create CF mappings (and shouldn't need to?)
I've tried the ColdSpring configs I think should work and umpteen
other things.

Thanks.

Chris Blackwell

unread,
Sep 19, 2009, 5:37:00 PM9/19/09
to model...@googlegroups.com
Hi Victoria,

This seems to be a similar, if not same issue, discussed in the last few posts of this thread.  Pretty sure we squashed this bug in MG, maybe a similar issue exists in Reactor.

I've just got back from the pub so i'm not going to attempt to fix this right now, but hopefully i'll remember to to it in the morning.  If you can post the full error detail it'll help jog my memory.

nn.

2009/9/19 Victoria Ryder <vic...@gmail.com>

Victoria Ryder

unread,
Sep 19, 2009, 5:55:37 PM9/19/09
to model...@googlegroups.com
FWIW, I did have the bootstrapper error when I didn't have MG in the webroot.  (It was originally in Subdirectory1.)  Saw those tickets, grabbed the latest, but since it wasn't in the webroot... still had the error.   It cleared up when I moved it (and CS and Reactor) to the webroot.   Then I came across error at hand... 

Bean creation exception during init() of reactor.config.config

access denied (java.io.FilePermission \config\Reactor.xml read):
 
The error occurred in C:\Websites\158513gy8\ColdSpring\beans\DefaultXmlBeanFactory.cfc: line 893
Called from C:\Websites\149513gy8\ColdSpring\beans\DefaultXmlBeanFactory.cfc: line 632
Called from C:\Websites\149513gy8\ModelGlue\gesture\externaladapters\ioc\ColdSpringAdapter.cfc: line 22
Called from C:\Websites\149513gy8\ModelGlue\gesture\ModelGlue.cfc: line 195
Called from C:\Websites\149513gy8\ModelGlue\gesture\modules\orm\controller\GenericORMController.cfc: line 27
Called from C:\Websites\149513gy8\ModelGlue\gesture\eventrequest\EventContext.cfc: line 298
Called from C:\Websites\149513gy8\ModelGlue\gesture\eventrequest\EventContext.cfc: line 225
Called from C:\Websites\149513gy8\ModelGlue\gesture\eventrequest\phase\Population.cfc: line 23
Called from C:\Websites\149513gy8\ModelGlue\gesture\eventrequest\EventContext.cfc: line 155
Called from C:\Websites\149513gy8\ModelGlue\gesture\ModelGlue.cfc: line 215
Called from C:\Websites\149513gy8\ModelGlue\gesture\ModelGlue.cfm: line 58
Called from C:\Websites\149513gy8\subdirectory1\index.cfm: line 50
891 : 									<cfthrow type="coldspring.beanCreationException" 
892 : 										message="Bean creation exception during init() of #beanDef.getBeanClass()#" 
893 : 										detail="#cfcatch.message#:#cfcatch.detail#">
894 : 								</cfcatch>
895 : 							</cftry>


Chris Blackwell

unread,
Sep 20, 2009, 5:50:26 AM9/20/09
to model...@googlegroups.com
Hi Victoria,

As i suspected this isn't a MG issue its a Reactor one, but the cause is the same as was affecting MG in a sandboxed environment in the thread i linked. The error is actually being caused by an expandPath() in reactor/config/config.cfc line 117  but coldspring has a nasty habit of disguising the real error and throwing that rather unhelpful bean creation exception

I've attached a patch that should get it working for you. I will also submit the patch to the Reactor team and hopefully they will test it and incorporate it into the official version.

Cheers, Chris



 
config.cfc.diff

Victoria Ryder

unread,
Sep 20, 2009, 10:47:59 AM9/20/09
to model...@googlegroups.com
Implementing it and getting an error.  Just about to look into it.  May well be something I'm causing.  I changed around a lot of stuff in the configs trying to troubleshoot yesterday.  Thought I'd give the error in the meantime, in case you recognize it right away.  If you don't, give me a few to adjust my configs before dedicating time.


Bean creation exception in reactor.config.config

Invalid CFML construct found on line 21 at column 76.:ColdFusion was looking at the following text:

''

The CFML compiler was processing:

  • A cfthrow tag beginning on line 21, column 26.
  • A cfthrow tag beginning on line 21, column 26.
:
Line: 21
Snippet:
<cfthrow type="reactor.config.InvalidPathToConfig"
 
The error occurred in C:\Websites\158513gy8\ColdSpring\beans\BeanDefinition.cfc: line 573
Called from C:\Websites\158513gy8\ColdSpring\beans\BeanDefinition.cfc: line 384
Called from C:\Websites\158513gy8\ColdSpring\beans\BeanDefinition.cfc: line 534
Called from C:\Websites\158513gy8\ColdSpring\beans\DefaultXmlBeanFactory.cfc: line 731
Called from C:\Websites\158513gy8\ColdSpring\beans\DefaultXmlBeanFactory.cfc: line 632
Called from C:\Websites\158513gy8\ModelGlue\gesture\externaladapters\ioc\ColdSpringAdapter.cfc: line 22
Called from C:\Websites\158513gy8\ModelGlue\gesture\ModelGlue.cfc: line 195
Called from C:\Websites\158513gy8\ModelGlue\gesture\modules\orm\controller\GenericORMController.cfc: line 27
Called from C:\Websites\158513gy8\ModelGlue\gesture\eventrequest\EventContext.cfc: line 298
Called from C:\Websites\158513gy8\ModelGlue\gesture\eventrequest\EventContext.cfc: line 225
Called from C:\Websites\158513gy8\ModelGlue\gesture\eventrequest\phase\Population.cfc: line 23
Called from C:\Websites\158513gy8\ModelGlue\gesture\eventrequest\EventContext.cfc: line 155
Called from C:\Websites\158513gy8\ModelGlue\gesture\ModelGlue.cfc: line 215
Called from C:\Websites\158513gy8\ModelGlue\gesture\ModelGlue.cfm: line 58
Called from C:\Websites\158513gy8\foo\index.cfm: line 50
571 : 				<cfthrow type="coldspring.beanCreationException" 
572 : 					message="Bean creation exception in #getBeanClass()#" 
573 : 					detail="#cfcatch.message#:#cfcatch.detail#:#additionalInfo#">
574 : 			</cfcatch>
575 : 		</cftry>




<config.cfc.diff>

Victoria Ryder

unread,
Sep 20, 2009, 11:06:31 AM9/20/09
to model...@googlegroups.com
Sorry, I implemented the patch wrong.  Ignore me for now!

Still working my configs.  Will let you know when it works.

On Sep 20, 2009, at 5:50 AM, Chris Blackwell wrote:

<config.cfc.diff>

Victoria Ryder

unread,
Sep 20, 2009, 11:55:40 AM9/20/09
to model...@googlegroups.com
Thanks.  The patch works.   My app is running.

I still think I'm not understanding something fundamental about the applicationMapping, as I've had to change my image and controller paths within my app code to get them showing up correctly.  The directory structure of my app has not changed, only the location of the frameworks.   Looks like I need to go back and read up. 

Thanks for the patch.  That definitely solved the issue.


On Sep 20, 2009, at 5:50 AM, Chris Blackwell wrote:

<config.cfc.diff>

Reply all
Reply to author
Forward
0 new messages