Ticket #27 (closed defect: worksforme)

Opened 20 years ago

Last modified 19 years ago

Unity Will Not Load At All If Reactor Is Not Installed

Reported by: anonymous Owned by: somebody
Priority: normal Milestone: 2.0 Beta 1
Version: Severity: major
Keywords: Cc: dcarabetta@…, joe.rinehart@…

Description

Pretty self-explanatory, but I don't have Reactor installed anywhere on my system and the workaround in FrameworkLoader?.cfc will not work (it uses try/catch to check). Since ColdFusion? first checks to make sure that all files exists, it doesn't get to a run-time state where the try/catch would cleanly catch it.

My suggestion, though I don't know how deep this would run, would be to add a config setting in the ModelGlue?.xml file called useORM that has a default value of true but can be set to false. The code for the FrameworkLoader?.cfc would then looks something like:

<cfif mg.getConfigSetting("useORM")>

<cfset ormBeans = mg.getConfigSetting("ORMBeans") />

<cfelse>

<cfset ormBeans = mg.getConfigSetting("failoverORMBeans") />

</cfif>

Again, just a suggestion after a cursory look. The current code setup currently makes Unity unusable in the absence of Reactor. I know Reactor's popular, but there are likely many people who won't have it installed.

Change History

Changed 20 years ago by joe.rinehart

  • cc dcarabetta@…, joe.rinehart@… added
  • status changed from new to closed
  • resolution set to worksforme

I'm not sure if you're using the latest Unity code. Please do a checkout from http://svn.model-glue.com/trunk .

The try/catch method of loading reactor is long gone, with the "reactorless" stub happening in orm.ReactorAdapter??, not via a try/catch in loader.FrameworkLoader??.

If it still isn't working, it's almost as if CF works differently on OS X in terms of file resolution, at which point I'll be able to fix it when I have time to get CF up and running on my wife's (OS X) machine.

Note: See TracTickets for help on using tickets.