Expand my Community achievements bar.

secure-amf problem

Avatar

Level 1
i am able to connect through unsecure amf but i get the
following error when trying to connect through secure amf.



[RPC Fault faultString="Send failed"
faultCode="Client.Error.MessageSend"
faultDetail="Channel.Security.Error error Error #2048: Security
sandbox violation:
http://192.168.0.53:8080/i4sale/views/i4sale.swf
cannot load data from
https://192.168.0.53:8443/i4sale/messagebroker/amfsecure."]

at mx.rpc::AbstractInvoker/
http://www.adobe.com/2006/flex/mx/internal::faultHandler()

at mx.rpc::Responder/fault()

at mx.rpc::AsyncRequest/fault()

at mx.messaging::ChannelSet/::faultPendingSends()

at mx.messaging::ChannelSet/channelFaultHandler()

at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()

at flash.events::EventDispatcher/dispatchEvent()

at
mx.messaging.channels::NetConnectionChannel/::defaultErrorHandler()

at
mx.messaging.channels::NetConnectionChannel/::securityErrorHandler()



My services config looks as follows:



<?xml version="1.0" encoding="UTF-8"?>

<services-config>



<services>

<service-include file-path="remoting-config.xml" />

<service-include file-path="proxy-config.xml" />

<service-include file-path="messaging-config.xml" />

<service-include file-path="data-management-config.xml"
/>

</services>



<security>

<login-command
class="flex.messaging.security.JRunLoginCommand" server="JRun"/>

<!-- Uncomment the correct app server

<login-command
class="flex.messaging.security.TomcatLoginCommand"
server="Tomcat"/>

<login-command
class="flex.messaging.security.WeblogicLoginCommand"
server="Weblogic"/>

<login-command
class="flex.messaging.security.WebSphereLoginCommand"
server="WebSphere"/>

-->

<security-constraint id="basic-read-access">

<auth-method>Basic</auth-method>

<roles>

<role>guests</role>

<role>accountants</role>

<role>employees</role>

<role>managers</role>

</roles>

</security-constraint>

</security>



<channels>

<channel-definition id="my-amf"
class="mx.messaging.channels.AMFChannel">

<endpoint uri="
http://{server.name}:{server.port}/{context.root}/messagebroker/amf"
class="flex.messaging.endpoints.AMFEndpoint"/>

<properties>

<polling-enabled>false</polling-enabled>

</properties>

</channel-definition>



<channel-definition id="my-secure-amf"
class="mx.messaging.channels.SecureAMFChannel">

<endpoint
uri="https://{server.name}:8443/{context.root}/messagebroker/amfsecure"
class="flex.messaging.endpoints.SecureAMFEndpoint"/>

</channel-definition>



<channel-definition id="my-polling-amf"
class="mx.messaging.channels.AMFChannel">

<endpoint uri="
http://{server.name}:{server.port}/{context.root}/messagebroker/amfpolling"
class="flex.messaging.endpoints.AMFEndpoint"/>

<properties>

<polling-enabled>true</polling-enabled>


<polling-interval-seconds>8</polling-interval-seconds>

</properties>

</channel-definition>



<channel-definition id="my-rtmp"
class="mx.messaging.channels.RTMPChannel">

<endpoint uri="rtmp://{server.name}:2038"
class="flex.messaging.endpoints.RTMPEndpoint"/>

<properties>

<idle-timeout-minutes>20</idle-timeout-minutes>


<client-to-server-maxbps>100K</client-to-server-maxbps>


<server-to-client-maxbps>100K</server-to-client-maxbps>

<!-- for deployment on WebSphere, must be mapped to a
WorkManager available in the web application's jndi context.


<websphere-workmanager-jndi-name>java:comp/env/wm/MessagingWorkManager</websphere-workmanager-jndi-name>

-->

</properties>

</channel-definition>



<channel-definition id="my-http"
class="mx.messaging.channels.HTTPChannel">

<endpoint uri="
http://{server.name}:{server.port}/{context.root}/messagebroker/http"
class="flex.messaging.endpoints.HTTPEndpoint"/>

</channel-definition>



<channel-definition id="my-secure-http"
class="mx.messaging.channels.SecureHTTPChannel">

<endpoint
uri="https://{server.name}:8443/{context.root}/messagebroker/httpsecure"
class="flex.messaging.endpoints.SecureHTTPEndpoint"/>

</channel-definition>

</channels>



<logging>

<target class="flex.messaging.log.ConsoleTarget"
level="Error">

<properties>

<prefix>[Flex] </prefix>

<includeDate>false</includeDate>

<includeTime>false</includeTime>

<includeLevel>false</includeLevel>

<includeCategory>false</includeCategory>

</properties>

<filters>

<pattern>Endpoint.*</pattern>

<pattern>Service.*</pattern>

<pattern>Configuration</pattern>

</filters>

</target>

</logging>



<system>

<redeploy>

<enabled>true</enabled>

<watch-interval>20</watch-interval>


<watch-file>{context.root}/WEB-INF/flex/services-config.xml</watch-file>


<watch-file>{context.root}/WEB-INF/flex/proxy-config.xml</watch-file>


<watch-file>{context.root}/WEB-INF/flex/remoting-config.xml</watch-file>


<watch-file>{context.root}/WEB-INF/flex/messaging-config.xml</watch-file>


<watch-file>{context.root}/WEB-INF/flex/data-management-config.xml</watch-file>


<touch-file>{context.root}/WEB-INF/web.xml</touch-file>

</redeploy>

</system>



<factories>

<factory id="springFactory"
class="com.cme.factories.SpringFactory"/>

</factories>



</services-config>



please help, thank you.
0 Replies