| Hey Qasim,
Glad to hear that you got it working correctly! Sorry I was no help at all...
Chris Chris Scott

On Jul 23, 2006, at 10:38 AM, Qasim Rasheed wrote: Dave,
That was it!!!!!!!! the beanFactoryName. As soon as I put that value in the remote bean definition, it just worked perfectly. I must have forgotten to read the documentation in detail about this property.
Thanks again for helping me. Qasim
On 7/23/06, Dave Ross <[EMAIL PROTECTED]> wrote: Ok, so that's the problem (it can't find the BeanFactory).
There's another property you can set on the RemoteProxyBean definition to give it the location:
<property name="beanFactoryName"> <value>BeanFactory</value> </property>
This would tell it that the beanFactory can be found at "application.BeanFactory".
Does that help? Where do you place the beanFactory in your fusebox.init.cfm?
-Dave
On 7/23/06, Qasim Rasheed <[EMAIL PROTECTED]> wrote: > Dave, > > thanks for helping me out on this. Here is the AXIS error. > AXIS error > > Sorry, something seems to have gone wrong... here are the details:Fault - > Error attempting to create Java skeleton for CFC web service; nested > exception is: > coldfusion.xml.rpc.CFCInvocationException : > [coldfusion.runtime.AbortException : null] > > AxisFault > faultCode: > { http://schemas.xmlsoap.org/soap/envelope/}Server.generalException > faultSubcode: > faultString: Error attempting to create Java skeleton for CFC web service; > nested exception is: > coldfusion.xml.rpc.CFCInvocationException: > [coldfusion.runtime.AbortException : null] > faultActor: > faultNode: > faultDetail: > {http://xml.apache.org/axis/}hostname:ec72460 > > When I try to run it locally i.e. just using createobject to get an instance > of remote class, I get the defaultfactory not defined error. > > The default bean factory does not exist in the specified scope, if you do > not intend on handling this error, please use defaultFactoryExists(scope) to > check for the factory first! > > As an FYI, this is a Fusebox4.1 application where beanFactory is initialized > in fusebox.init.cfm file. > > Thanks!!! > Qasim > > > On 7/22/06, Dave Ross <[EMAIL PROTECTED]> wrote: > > > Qasim, > > Could you give us specifics about the AXIS error you get? Another > thing you can do to test this is create the remote proxy > (/somepath/remote/RemoteTestArticleManager.cfc) and test it > locally > (e.g. call the methods directly instead of remote). > > One common problem with this (and it should be documented), is that > the remote stub expects to find the beanFactory somewhere - I think it > defaults to application.BeanFactory. This is configurable, but may be > what's tripping you up. > > thanks, > > Dave > > > > On 7/22/06, Qasim Rasheed <[EMAIL PROTECTED]> wrote: > > Dave & Kurt, > > > > Thanks for the replying. I am using CFMX7 without the latest updater i.e. > > 7.0.2. Any help is greatly appreciated. > > > > Once again thanks for developing such a useful product. > > > > Qasim > > > > > > On 7/21/06, Dave Ross < [EMAIL PROTECTED]> wrote: > > > > > Yes, as Kurt mentioned this specific functionality doesn't work on > > MX6.1. When I get a chance I'll try to troubleshoot it more, but for > > now it's MX7+ only. I think (hope) this is noted in the docs. > > > > On 7/21/06, Kurt Wiersma < [EMAIL PROTECTED]> wrote: > > > What version of CF are you running? There were some updates to the web > > > serves support in the lastest cf updater ( 7.0.2) that might fix your > > issue. > > > > > > What is the exact error message you receive? > > > > > > --Kurt > > > > > > On 7/21/06, Qasim Rasheed < [EMAIL PROTECTED]> wrote: > > > > > > > > Folks, > > > > > > > > I am looking at ColdSpring documentation for help on this particular > > topic > > > and found a complete section on Remote Facades. However when I implement > > > that in my coldspring service.xml file, it just doesn't work. Here is a > > > snapshot of xml file > > > > > > > > <bean id="testArticleManager" class="somepath.com.TestArticleManager > "> > > > > </bean> > > > > > > > > <bean id="testArticleManager_Remote" > > > class="coldspring.aop.framework.RemoteFactoryBean "> > > > > <property name="target"> > > > > <ref bean="testArticleManager" /> > > > > </property> > > > > <property name="serviceName"> > > > > <value>RemoteTestArticleManager</value> > > > > </property> > > > > <property name="relativePath"> > > > > <value>/somepath/com/remote/</value> > > > > </property> > > > > <property name="remoteMethodNames"> > > > > <value>get*</value> > > > > </property> > > > > </bean> > > > > > > > > > > > > After this I have created the remote proxy by calling > > beanFactory.getBean( > > > 'testArticleManager_Remote' ). However now when I try to open that > > > webservice in the url like > > > > > > > > > > > > > > http://....../somepath/remote/RemoteTestArticleManager.cfcm?wsdl, > > > I am getting an Axis fault error. I am positive that there is something > > > stupid that I am missing. Any help is appreciated. > > > > > > > > Thanks, > > > > > > > > Qasim > > > > > > > > > > > > > > > > > > > > > >
|