Happens to us all from time to time, Cliff.

I'd like to point out that I love your use of ColdSpring to manage your
objects. Keep in mind though, using ColdSpring to manage non-singletons can
cause a bottleneck in your application. If you aren't using ColdSpring to
manage any object dependencies or anything like that, you may be better off
just creating the bean with either CreateObject() or   <cfset
arguments.event.makeEventBean( "developers.cliff.honors.model.HonorsBean")
/>



The other point I want to make is your CFC paths look like they might be
developer specific. (using D:\Website\developers\cliff\honors ). If you
deploy the application somewhere else, like
D:\Website\production\honors you'll have to remap all of your CFC paths.
That's not a Model-Glue thing, rather a CFC thing.


One way around this is to use an application specific mapping in your
Application.cfc to just map Honors to the D:\Website\developers\cliff\honors
directory.

<cfset THIS.mappings["/Honors"]=GetDirectoryFromPath(
GetCurrentTemplatePath() ) & "../" />

Then you can use Honors as your CFC root and you'll be all set. For example:

 <cfset arguments.event.makeEventBean(
"developers.cliff.honors.model.HonorsBean") />
is now
 <cfset arguments.event.makeEventBean( "Honors.model.HonorsBean") />




DW
On Thu, Aug 5, 2010 at 3:29 PM, Clifford Moon <[email protected]>wrote:

> Hey Charlie,
>
> I had the syntax of the init wrong.  I've reinitialized it and no more
> errors.
>
> Many Thanks,
>
> Cliff
>
> On Aug 5, 2:17 pm, Clifford Moon <[email protected]> wrote:
> > Hey Charlie,
> >
> > I did the <app_url/init=true and it still has the same error message.
> >
> > Thanks,
> >
> > Cliff
> >
> > On Aug 5, 2:00 pm, Charlie Griefer <[email protected]> wrote:
> >
> >
> >
> > > Have you reinitialized the framework?
> >
> > > On Thu, Aug 5, 2010 at 11:59 AM, Clifford Moon <
> [email protected]>wrote:
> >
> > > > Greetings,
> >
> > > > I'm trying to create a bean, but keep getting a Bean Definition not
> > > > found error:
> >
> > > --
> > > Charlie Grieferhttp://charlie.griefer.com/
> >
> > > I have failed as much as I have succeeded. But I love my life. I love
> my
> > > wife. And I wish you my kind of success.
>
> --
> Model-Glue Sites:
> Home Page: http://www.model-glue.com
> Documentation: http://docs.model-glue.com
> Bug Tracker: http://bugs.model-glue.com
> Blog: http://www.model-glue.com/blog
>
> You received this message because you are subscribed to the Google
> Groups "model-glue" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<model-glue%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/model-glue?hl=en
>



-- 
William Osler - "We are here to add what we can to life, not to get what we
can from life."

-- 
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog

You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en

Reply via email to