Ticket #94 (closed defect: fixed)

Opened 20 years ago

Last modified 16 years ago

customized scaffoldPath won't work

Reported by: katz Owned by: joe.rinehart
Priority: normal Milestone:
Version: 2.0.304 Severity: normal
Keywords: Cc:

Description

It's nice to put models, views and controllers to where Apache can't reach. So I put files as following.

top--public (Apache's DocumentRoot)
  |   |
  |   --index.cfm
  |   |
  |   --Application.cfm
  |
  --ModelGlue
  |
  --coldspring
  |
  --reactor
  |
  --webapp (where models, views and controllers are stored)
       |
       --controller
       |
       --model
       |
       --view
       |
       --config
           |
           --ColdSpring.xml
           |
           --ModelGlue.xml
           |
           --Reactor.xml

I wrote following to ColdSpring?.xml.

<property name="scaffoldPath"><value>/webapp/config/scaffolds/Scaffolds.xml</value></property>

But Scaffolds.xml is created at top/public/config/scaffolds/.
Ofcourse /webapp is mapped to top/webapp in ColdFusion? Administrator.
So I think this is a bug.

Change History

  Changed 20 years ago by joe.rinehart

  • owner changed from somebody to joe.rinehart
  • status changed from new to assigned
  • milestone set to Defects Awaiting More Information

I can't duplicate this - have you tried it with the latest code from SVN?

  Changed 20 years ago by katz

The latest code works fine. But the another error occurred.

Model-Glue: There is no known event handler for "exception".

The error occurred in /opt/coldfusionmx7/wwwroot/top/ModelGlue/unity/eventhandler/EventHandlerRegistry.cfc: line 20
Called from /opt/coldfusionmx7/wwwroot/top/ModelGlue/unity/framework/ModelGlue.cfc: line 209
Called from /opt/coldfusionmx7/wwwroot/top/ModelGlue/unity/framework/ModelGlue.cfc: line 271
Called from /opt/coldfusionmx7/wwwroot/top/ModelGlue/unity/ModelGlue.cfm: line 58
Called from /opt/coldfusionmx7/wwwroot/top/public/index.cfm: line 51
18 : 		<cfreturn variables._EventHandlers[arguments.name] />
19 : 		<cfcatch>
20 : 			<cfthrow message="Model-Glue:  There is no known event handler for ""#arguments.name#""." />
21 : 		</cfcatch>
22 : 	</cftry>

It seems that ModelGule? doesn't load /webapp/config/ColdSpring.xml.

follow-up: ↓ 5   Changed 20 years ago by katz

  • status changed from assigned to closed
  • resolution set to fixed

Ah, I missconfigured mapping in ColdFusion? Administrator.
Now works fine.

in reply to: ↑ 3   Changed 19 years ago by Tjoolder

  • status changed from closed to reopened
  • resolution fixed deleted

Replying to katz:

Ah, I missconfigured mapping in ColdFusion? Administrator.
Now works fine.

I have the same environment en the same error but I think my mappings are set good. How exactly did you solve this?

  Changed 19 years ago by joe.rinehart

  • status changed from reopened to closed
  • resolution set to fixed

  Changed 16 years ago by cfgrok

  • milestone Defects Awaiting More Information deleted

Milestone Defects Awaiting More Information deleted

Note: See TracTickets for help on using tickets.