For my source code folder i created a /cfml mapping and places a
sample app (cfportal) under this folder (i copied the
ApplicationTemplate folder for that).
Application Execution Exception
Error Type: Framework.EventHandlerNotRegisteredException : [N/A]
Error Messages: The event handler: railo.dspHome is not valid
registered event.
The problem is, that the event is railo.dspHome. But it should be
general.dspHome.
When i copy the handler cfc general.cfc to railo.cfc all works fine.
Why is this happening?? Is it a bug or am I doing something wrong??
FYI: The same source code works with Adobes ColdFusion 8 Server.
I´m using coldbox version 2.5.1.
Default event in coldbox.xml.cfm: general.dspHome
So it should call the general handler (handlers/general.cfc) and run
the dspHome method (by the way, when i copy default.cfc into a new
file railo.cfc it works, but that is no solutions)
string general <-- output of the first cfdump
string railo <-- output of the second cfdump
So i followed the code to the interceptorService.cfc and there i
debugged the processState() method:
When i comment out this line (about line 100), everything works fine:
<cfset structFind( getinterceptionStates(),
arguments.state).process(event,arguments.interceptData)>
it should be:
... (by the way, when i copy general.cfc into a new file railo.cfc it
works ...
And for further questions about the config ... it is the default
config and folder structure from the ApplicationTemplate folder of the
coldbox distribution.
The only things i changed are:
<cfset this.name = "cfportal"> in Application.cfc of my appfolder
and
<Setting name="AppName" value="cfportal"/> in the coldbox.xml.cfm
Then I recommend you hit the guides and read them up. The ses guide will show you what they are for and how they translate, also, how to use them. ITS VERY IMPORTANT TO UNDERSTAND THE CUSTOM ROUTING SYSTEM. If not you will hit brick walls.
Hi,
I am still not convinced that changing routes.cfm is solved your
problem.
As you mention about dump info... still something is wrongly
configured...
Which I feel that you have some kind of global mapping pointing to
railo or cfml directory.
CF app should run within their own space... should not rely on long
route to figure out the app path.
Would you make sure how many mapping in cf-admin and where they
pointing to.....?
Let's have a example how to configure a web-apps!
/railo this main-directory
/railo/ColdBox (cf-mapping /coldbox)
/railo/MyApp1 | (if you need mapping then /
MyApp1Mapping ---> /railo/MyApp1)
/railo/MyApp2 | =
/railo/MyApp3 | =
If you have a cf-mapping /MyApp1Mapping ---> /railo directory then
there would be many issues