RE: NetConnection.Call.Prohibited
"David Lush" <[email protected]>
| Newsgroups | gmane.comp.java.openamf.user |
|---|---|
| Message-ID | <[email protected]> |
My apologies, I didn't rtfm as required :-(
*hangs his head in shame*
Until this point I've been using the default gateway, but I've now gone
back and configured my web.xml to use the AdvancedGateway as follows;
<!-- ============================================= Servlet Definitions
=== -->
<servlet>
<servlet-name>OpenAMFGatewayServlet</servlet-name>
<servlet-class>org.openamf.AdvancedGateway</servlet-class>
<init-param>
<param-name>OPENAMF_CONFIG</param-name>
<param-value>/WEB-INF/openamf-config.xml</param-value>
</init-param>
<load-on-startup>10</load-on-startup>
</servlet>
<!-- ================================================ Servlet Mappings
=== -->
<servlet-mapping>
<servlet-name>OpenAMFGatewayServlet</servlet-name>
<url-pattern>/gateway</url-pattern>
</servlet-mapping>
And added the following service configuration near the bottom of my
openamf-config.xml (I intend to allow access to all methods of the
FlashGatewayBD)
<service>
<name>FlashGatewayBD</name>
<service-location>flashapp.flashgateway.FlashGatewayBD</service-location
>
<invoker-ref>Java</invoker-ref>
<method>
<name>*</name>
<parameter>
<type>*</type>
</parameter>
</method>
</service>
Also I'm doing this over https if it makes any difference? and the swf
concerned is served from an https page which hasn't caused any problems
to this point.
Still having a similar problem though :-/
As for netconnection debugger, I've had problems ever since I started
using it. It'll just stop receiving messsages that I know are being sent
backwards and forwards. Only solution I've found is to kill off
everything flash related and reload it all, can be very frustrating :-(
But I'm not on here to gripe about things that are beyond my control ;-)
Thanks for any direction you can provide with the above problem though
:-)
Dave
-----Original Message-----
From: Leif Wells [mailto:[email protected]]
Sent: 02 June 2005 15:09
To: [email protected]
Subject: Re: [Openamf-user] NetConnection.Call.Prohibited
It sounds to me like you may not have configured your openamf-config.xml
file correctly.
Have you done that? Do you have the gateway listed as a service and each
method being called listed? The default openamf-config.xml has clear
examples of how to do this.
As far as the NetConnectionDebugger goes, I have *never* had it crash
(or is it crashing?) How exactly are you using it? What are your
expectations? What are you seeing?
Leif
On 6/2/05, David Lush <[email protected]> wrote:
>
> Hi,
> I've just started using openamf in favour of macromedias flash
> remoting in the past few days. First of all, good work on getting such
> a product out to the open-source community :-D I had everything
> working the other day, starting with a simple hello world passing a
> few strings back and forth, then using ASTranslator to pass some value
> objects around, was quite happy with myself ;-) . But I've just come
> back to it today and figured I best change the URL in my Service
> constructor, to make sure it works on remotely as well as with
> localhost e.g.
>
> commonService = new Service(
> "http://somedomain:8080/TestApp/gateway",
> null,
> "flashgateway.FlashGatewayBD",
> null,
> null);
>
> And I've started getting the error message
> 'NetConnection.Call.Prohibited' in macromedia's netconnection debugger
> (buggy piece of crap btw ;-( if anyone knows hot to make this thing
> work reliably without suddenly dying I'd appreciate an email) My swf
> is embedded in a jsp with the following code;
> <object width="396" height="500">
> <param name="allowScriptAccess" value="sameDomain" />
> <param name="movie" value="logon.swf">
> <embed src="flash/logon.swf" width="396" height="500" />
> </object>
>
> Googling this message only turns up a couple of results and it appears
> to be otherwise undocumented :-/ Do I need to create on of these
> crossdomain.xml files ? and if so where should I be putting it? in
> '/WEB-INF/' ? Any help and/or guidance anyone can provide would be
> grealy appreciated Cheers Dave
>
> PS
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=fad-ysdn-ostg-q22005
_______________________________________________
Openamf-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openamf-user
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005