Mistake found. I inadvertently removed the servlet mapping for the
MessageBrokerServlet in the web.xml file.

Sorry, but I'm just getting used to all the configuration files.

Thanks,
Mike

--- In [email protected], "Mike_Robinson_98"
<[EMAIL PROTECTED]> wrote:
>
> I'm trying to call a method on a Java object and keep getting
> "Connection failed" when I try the method call. I know it must be a
> configuration issue but have been plugging away at this all morning
> with out making any headway. Maybe some of you can see the problem
> easily. I'm using Tomcat. Thanks in advance.
> 
> Here are the relevant details (I think):
> // ********** The error messages *****
> [SWF] /metalsmith/metalsmith-flex/metalsmith-debug.swf - 1,196,373
> bytes after decompression
> 'B82DD8CB-1D89-50BA-17CE-11B6029AA47B' producer set destination to
> 'loginService'.
> 'B82DD8CB-1D89-50BA-17CE-11B6029AA47B' producer sending message
> 'E164544F-F6BF-7F4E-D9C7-11B613446EE4'
> 'my-amf' channel endpoint set to
> http://localhost:8080/metalsmith/messagebroker/amf
> 'my-amf' channel settings are:
> <channel id="my-amf" type="mx.messaging.channels.AMFChannel">
>   <endpoint
> uri="http://{server.name}:{server.port}/metalsmith/messagebroker/amf"/>
>   <properties>
>     <polling-enabled>false</polling-enabled>
>   </properties>
> </channel>
> 'my-amf' pinging endpoint.
> 'my-amf' channel got status. (Object)#0
>   code = "NetConnection.Call.Failed"
>   description = "HTTP: Failed"
>   details = "http://localhost:8080/metalsmith/messagebroker/amf";
>   level = "error"
> 'my-amf' channel polling stopped.
> 'my-amf' channel connect failed.
> 'B82DD8CB-1D89-50BA-17CE-11B6029AA47B' producer channel faulted with
> Channel.Connect.Failed NetConnection.Call.Failed: HTTP: Failed
> 'B82DD8CB-1D89-50BA-17CE-11B6029AA47B' producer fault for
> 'E164544F-F6BF-7F4E-D9C7-11B613446EE4'.
> 
> // *********** The mxml file defining and calling the remote object
> <mx:Script>
>   <![CDATA[
>     import com.othenos.metalsmith.user.User;
>     import com.othenos.metalsmith.model.ModelLocator;
>     import mx.events.ValidationResultEvent;
>     import mx.rpc.events.ResultEvent;
>     import mx.rpc.events.FaultEvent;
> 
>     private function clickHandler():void{
>       if(userNameV.validate().type == ValidationResultEvent.VALID &&
>         passwordV.validate().type == ValidationResultEvent.VALID){
>         loginObject.validateUser();
> //             loginObject.validateUser(userName.text, password.text);
> //          var eventObj:Event=new Event("loginEvent");
> //          dispatchEvent(eventObj);
>       }
>       else{
>         resultLabel.text="There are errors.";
>       }
>     }
>     private function loginHandler(event:ResultEvent):void{
>       ModelLocator.currentUser = event.result as User;
>     }
>     private function failureHandler(event:FaultEvent):void{
>       resultLabel.text=event.fault.faultString;
>     }
>   ]]>
> </mx:Script>
> <mx:RemoteObject id="loginObject" destination="loginService" 
>          showBusyCursor="true" 
>          result="loginHandler(event)"
>          fault="failureHandler(event)" />
> 
> // ******* The flex-remoting-service.xml ********
> <?xml version="1.0" encoding="UTF-8"?>
> <service id="remoting-service"
>     class="flex.messaging.services.RemotingService"
>     messageTypes="flex.messaging.messages.RemotingMessage">
> 
>     <adapters>
>         <adapter-definition id="java-object" 
>           class="flex.messaging.services.remoting.adapters.JavaAdapter" 
>           default="true"/>
>     </adapters>
> 
>     <default-channels>
>         <channel ref="my-amf"/>
>     </default-channels>
> 
>     <destination id="loginService">
>         <properties>
>            
> <source>com.othenos.metalsmith.assembler.UserAssembler</source>
>             <scope>application</scope>           
>         </properties>
>     </destination>
> 
> </service>
> 
> //**** flex-enterprise-services (partial)
> <services>
>      <service-include file-path="flex-data-service.xml" />
>      <service-include file-path="flex-remoting-service.xml" />
> </services>
> 
> <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>
> 
> // ******** finally, startup messages
> [Flex] [INFO] Starting Adobe Flex Data Services 2.0 Express (beta
> period ends Jul 31, 2006)
> [Flex] [INFO] Adobe Flex Data Services Build: 138139
> [Flex] [INFO] Endpoint my-amf created with security: None
> at URI:
> http://{server.name}:{server.port}/{context.root}/messagebroker/amf
> [Flex] [INFO] Endpoint ms-rtmp created with security: None
> at URI: rtmp://{server.name}:2035
> [Flex] [INFO] RTMP-Server listening on port:2035
>






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to