Riding on Brian’s coat tails, you’ll want the following servlet definition and mapping in the web.xml file for your webapp.

 

    <!-- MessageBroker Servlet -->

    <servlet>

        <servlet-name>MessageBrokerServlet</servlet-name>

        <display-name>MessageBrokerServlet</display-name>

        <servlet-class>flex.messaging.MessageBrokerServlet</servlet-class>

        <init-param>

            <param-name>services.configuration.file</param-name>

            <param-value>/WEB-INF/flex/services-config.xml</param-value>

        </init-param>

        <init-param>

            <param-name>flex.write.path</param-name>

            <param-value>/WEB-INF/flex</param-value>

        </init-param>

        <load-on-startup>1</load-on-startup>

    </servlet>

 

    ….

 

    <servlet-mapping>

        <servlet-name>MessageBrokerServlet</servlet-name>

        <url-pattern>/messagebroker/*</url-pattern>

    </servlet-mapping>

 

Best,

Seth

 


From: [email protected] [mailto:[email protected]] On Behalf Of Brian Deitte
Sent: Tuesday, August 15, 2006 10:31 AM
To: [email protected]
Subject: RE: [flexcoders] Getting a problem trying to do a remote object in FLEX

 

You don't have the necessary servlet set up in web.xml. I don't know
the current FDS documentation, but I assume the details are in there, or
just look in another Flex install for the expected info that should be
in the web.xml. -Brian


> -----Original Message-----
> From: [EMAIL PROTECTED]ups.com
> [mailto:[EMAIL PROTECTED]ups.com] On Behalf Of laidezmon
> Sent: Tuesday, August 15, 2006 1:10 PM
> To: [EMAIL PROTECTED]ups.com
> Subject: [flexcoders] Getting a problem trying to do a remote
> object in FLEX
>
> Here is the error I get when trying to access the remote object called
> simpleJava which is defined as a destination in my remote-config.xml
> file.
>
> Here is the Flex error.
>
> [RPC Fault faultString="Send failed"
> faultCode="Client.Error.MessageSend"
> faultDetail="Channel.Connect.Failed error NetConnection.Call.Failed:
> HTTP: Failed"]
> at
> mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/inte
> rnal::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::di
> spatchEventFunction()
> at flash.events::EventDispatcher/dispatchEvent()
> at mx.messaging::Channel/mx.messaging:Channel::connectFailed()
> at
> mx.messaging.channels::PollingChannel/mx.messaging.channels:Po
> llingChannel::connectFailed()
> at
> mx.messaging.channels::AMFChannel/mx.messaging.channels:AMFCha
> nnel::statusHandler()
>
>
> Here is the JRUN Server inline error.
>
> 08/15 13:10:51 error Requested resource '/messagebroker/amf'
> (%2fmessagebroker%2famf) not found
>
>
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
>
>
>
>
>
>

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to