Re: [coldspring-users] Creating web services with Coldspring in Model-Glue: Funky issue

40 views
Skip to first unread message

Ezra Parker

unread,
Sep 4, 2012, 6:52:59 PM9/4/12
to coldspri...@googlegroups.com
The key to getting ColdSpring remote proxies playing nicely with Model-Glue is defining a parent bean factory for MG -- here is a blog post that details the necessary configuration:


(This post is specifically addressing the issue of regenerating proxies, and includes the necessary instructions for setting up a parent bean factory.)

HTH,

--
Ezra Parker


On Tue, Sep 4, 2012 at 2:23 PM, pat-rice <latoya.p...@gmail.com> wrote:
Hi,

I created a web proxy service through ColdSpring. I currently have a Model-Glue application and I wanted to be able to retrieve data from my application via a web service. I've been reading several blogs and I've gone through all the steps needed. I defined my remote bean in my coldspring xml ( i also included the beanFactoryName). ColdSpring then generated my remote service cfc in the directory I defined in the remote bean. I created a test page to test that I could get the data I was requesting. The test page used a cfinvoke webservice statement to invoke my service and takes in one argument. Everything seemed to work well I ran the page and I received data. Then I hit F5 to refresh and received a Sorry , a ColdSpring Bean Factory named was not found in application scope. Please make sure your bean factory is properly loaded. Perhapse your main application is not running? However when I hit F5 again my data shows back up. So clearly I'm getting my data but everytime I hit F5 again I get the same error message but if I refresh again my data shows up. I'm not sure what is going on. I've been reading in some places where they talk about needing to initialize and setup coldSpring though the Application.cfc. I'm not doing anything in the application.cfc. Could that be the reason? Even through reading all of the documentation I'm not sure what it is that I should be doing. Any help would be greatly appreciated.

--
You received this message because you are subscribed to the Google Groups "ColdSpring-Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/coldspring-users/-/Wa4ITy155UsJ.
To post to this group, send email to coldspri...@googlegroups.com.
To unsubscribe from this group, send email to coldspring-use...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/coldspring-users?hl=en.

pat-rice

unread,
Sep 5, 2012, 10:40:08 AM9/5/12
to coldspri...@googlegroups.com
I've read that article and I am going to try that. The odd thing about this issue is that it doesn't happen in my development environment. I have 3 environments development, staging, and production. In my development environment everything works perfectly. I don't get the error. when I moved things up to my staging environment I started getting the error. So I'm confused as to why it works in one environment but not the other.
Reply all
Reply to author
Forward
0 new messages