Two instances of CB (2.6.4 & 3.0 svn)

I have two apps using different Coldbox versions on the same server. Both of them are using mappings in App.cfc. After a period of time, the app built with 2.6.4 crashes saying it can’t find getLogbox.

“The method getLogBox was not found in component coldbox.system.controller.Ensure that the method is defined, and that it is spelled correctly. The specific sequence of files included or processed is: q:path\to\ndex.cfm, line: 33 "
coldfusion.runtime.TemplateProxy$InvalidMethodNameException: The method getLogBox was not found in component coldbox.system.controller.”

According the stacktrace, the 2.6.4 InterceptorService.cfc is calling on the 3.0.0 Interceptor.cfc. How could this be happening? Both have unique app names defined in Coldbox.cfc/coldbox.xml.cfm. Class path caching is disabled in CFAdmin.

TIA

Jason Durham

PS. The 3.0 version I’m using was DL’d from SVN last week. The folder name is ColdBox-coldbox-platform-4231052.

Are they using per app mappings defined in Application.cfc or global mappings defined in the CFIDE Adminstrator?

Regards,

Andrew Scott

http://www.andyscott.id.au/

Are they using per app mappings defined in Application.cfc or global mappings defined in the CFIDE Adminstrator?

Regards,

Andrew Scott

http://www.andyscott.id.au/

I’m using a mapping in Application.cfc for the site running 3.0.0. However the 2.6.4 site is using a mapping defined in CF Admin.

In both App.cfcs, I’m using the following…
this.name = hash(getCurrentTemplatePath());

Jason Durham

Are you using ColdFusion 8 here?

Regards,

Andrew Scott

http://www.andyscott.id.au/

CF 9,0,1,274733

TIA

Ok I know there was a bug in ColdFusion 8 that would not allow this, but as you are on ColdFusion 9 the best thing that I can suggest is check the paths for both and see if there is something wrong.

Also you mention SVN, do you have ColdBox stored in there? If this is the case, do you have each ColdBox as a separate repository/project in SVN. And if you have do you have a svn external definition setup to point to the correct repository.

The reason I ask is I do the same thing, and it makes it easier to export a project out, knowing that it will also pull the correct ColdBox along with it for new developers or clean installs.

And last but not least while I think of it, are you using the non-inheritance version of ColdBox in your Application.cfc for both projects? That is extremely important, because before you do a per application mapping in the CFC and your application.cfc is extending coldbox then it will be getting the older or wrong version that is defined in the Adminstrator.

Hope that helps some.

Regards,

Andrew Scott

http://www.andyscott.id.au/

I keep frameworks outside of SVN. Thanks for the suggestion though.

The 2.6.4 app is using the standard App.cfc. The 3.0 app is using the “no inheritance” version so I can map to Coldbox.

BTW, if I restart CF and load the 2.6.4 app first, both apps load fine. If I load the 3.0 app first, the 2.6.4 app will not load without restarting CF.

Jason

Hmm real bizarre.

Regards,

Andrew Scott

http://www.andyscott.id.au/

Login to the CFADMIN and click Caching. Please make sure you have "

Component cache is unchecked.

Jason Durham