I had blocked all calls to the MessageBroker servlet by adding a security 
constraint in the web.xml which is no good for Flex...cause then the SWF cannot 
communicate with the server at all.
 
This is the constraint that was there that I removed:
 
<security-constraint>
    <web-resource-collection>
      <url-pattern>/*</url-pattern>
      <http-method>DELETE</http-method>
      <http-method>GET</http-method>
      <http-method>POST</http-method>
      <http-method>PUT</http-method>
    </web-resource-collection>
    <auth-constraint>
      <role-name>fcnuser</role-name>
    </auth-constraint>
    <user-data-constraint>
      <transport-guarantee>NONE</transport-guarantee>
    </user-data-constraint>
  </security-constraint>
 
Dimitrios Gianninas
RIA Developer and Team Lead
Optimal Payments Inc.
 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of valdhor
Sent: Thursday, August 07, 2008 9:03 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: BlazeDS/LCDS on Jboss 4.2.3



Would you mind posting the fix (Just so it's available later on when
someone is searching).

--- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , 
"Dimitrios Gianninas"
<[EMAIL PROTECTED]> wrote:
>
> nevermind, figure out my problem
> 
> Dimitrios Gianninas
> RIA Developer and Team Lead
> Optimal Payments Inc.
> 
> 
> ________________________________
> 
> From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>  
> [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> ]
On Behalf Of Dimitrios Gianninas
> Sent: Thursday, July 31, 2008 11:16 AM
> To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> 
> Subject: [flexcoders] BlazeDS/LCDS on Jboss 4.2.3
> 
> 
> 
> Just wondering if anyone has deployed BlazeDS/LCDS on JBoss 4.2.3
and got the authentication stuff to work?
> 
> Got everything configured as it should be but when I do
> 
> myRemoteObject.setCredentials( "falcon", "falconfalcon" );
> 
> in my flex app, I get no response and when I try a remote call it
fails and I see the following in the debug log:
> 
> '837C1F01-1993-5303-FCA0-79AC9C93A63C' producer sending message
'C36DF068-C3FB-BA3B-F07E-79AD2A0CC9D5'
> 'my-amf' channel endpoint set to
http://localhost:8080/xlogin/messagebroker/amf 
<http://localhost:8080/xlogin/messagebroker/amf> 
<http://localhost:8080/xlogin/messagebroker/amf 
<http://localhost:8080/xlogin/messagebroker/amf> > 
> 'my-amf' channel settings are:
> <channel id="my-amf" type="mx.messaging.channels.AMFChannel">
> <endpoint
uri="http://{server.name}:{server.port}/xlogin/messagebroker/amf"/
<http://{server.name}:{server.port}/xlogin/messagebroker/amf"/> >
> <properties/>
> </channel>
> 'my-amf' pinging endpoint.
> 'my-amf' channel got status. (Object)#0
> code = "NetConnection.Call.BadVersion"
> description = ""
> details = ""
> level = "error"
> 'my-amf' channel polling stopped.
> 'my-amf' channel connect failed.
> '837C1F01-1993-5303-FCA0-79AC9C93A63C' producer channel faulted with
Channel.Connect.Failed NetConnection.Call.BadVersion: : url:
'http://localhost:8080/xlogin/messagebroker/amf 
<http://localhost:8080/xlogin/messagebroker/amf> '
> '837C1F01-1993-5303-FCA0-79AC9C93A63C' producer fault for
'C36DF068-C3FB-BA3B-F07E-79AD2A0CC9D5'.
> 
> However... if I go to my login.jsp and login successfull and then
access my Flex app and try a remote call, it all works like a champ!
> 
> So what am I missing?
> 
> Dimitrios Gianninas
> RIA Developer and Team Lead
> Optimal Payments Inc.
> 
> AVIS IMPORTANT
> 
> WARNING
> 
> Ce message électronique et ses pièces jointes peuvent contenir des
renseignements confidentiels, exclusifs ou légalement privilégiés
destinés au seul usage du destinataire visé. L'expéditeur original ne
renonce à aucun privilège ou à aucun autre droit si le présent message
a été transmis involontairement ou s'il est retransmis sans son
autorisation. Si vous n'êtes pas le destinataire visé du présent
message ou si vous l'avez reçu par erreur, veuillez cesser
immédiatement de le lire et le supprimer, ainsi que toutes ses pièces
jointes, de votre système. La lecture, la distribution, la copie ou
tout autre usage du présent message ou de ses pièces jointes par des
personnes autres que le destinataire visé ne sont pas autorisés et
pourraient être illégaux. Si vous avez reçu ce courrier électronique
par erreur, veuillez en aviser l'expéditeur.
> 
> This electronic message and its attachments may contain
confidential, proprietary or legally privileged information, which is
solely for the use of the intended recipient. No privilege or other
rights are waived by any unintended transmission or unauthorized
retransmission of this message. If you are not the intended recipient
of this message, or if you have received it in error, you should
immediately stop reading this message and delete it and all
attachments from your system. The reading, distribution, copying or
other use of this message or its attachments by unintended recipients
is unauthorized and may be unlawful. If you have received this e-mail
in error, please notify the sender.
> 
> 
> 
> -- 
> WARNING
> -------
> This electronic message and its attachments may contain
confidential, proprietary or legally privileged information, which is
solely for the use of the intended recipient. No privilege or other
rights are waived by any unintended transmission or unauthorized
retransmission of this message. If you are not the intended recipient
of this message, or if you have received it in error, you should
immediately stop reading this message and delete it and all
attachments from your system. The reading, distribution, copying or
other use of this message or its attachments by unintended recipients
is unauthorized and may be unlawful. If you have received this e-mail
in error, please notify the sender.
> 
> AVIS IMPORTANT
> --------------
> Ce message électronique et ses pièces jointes peuvent contenir des
renseignements confidentiels, exclusifs ou légalement privilégiés
destinés au seul usage du destinataire visé. L'expéditeur original ne
renonce à aucun privilège ou à aucun autre droit si le présent message
a été transmis involontairement ou s'il est retransmis sans son
autorisation. Si vous n'êtes pas le destinataire visé du présent
message ou si vous l'avez reçu par erreur, veuillez cesser
immédiatement de le lire et le supprimer, ainsi que toutes ses pièces
jointes, de votre système. La lecture, la distribution, la copie ou
tout autre usage du présent message ou de ses pièces jointes par des
personnes autres que le destinataire visé ne sont pas autorisés et
pourraient être illégaux. Si vous avez reçu ce courrier électronique
par erreur, veuillez en aviser l'expéditeur.
>



 

Reply via email to