Hi, I have same problem but I can't solve it, can you please tell me how to 
solve it. Thank 

Vào 15:12:08 UTC+7 Thứ hai, ngày 24 tháng mười một năm 2008, Mor đã viết:
>
> Hi Nishant, 
>
> I am really thank full to you. 
> I have solved it now. 
>
> I could do it with your clue. 
>
> :) 
>
> Mor 
>
>
>
> On Nov 24, 11:20 am, "Nishant Kyal" <[email protected]> wrote: 
> > Hi, 
> > Try opening the URL '
> http://192.168.6.221:8400/mywebsitename/messagebroker/amf'in your 
> browser. 
> > It'll most probably give you the same error. But that is a quicker way 
> of 
> > seeing if your blazeds is properly configured. 
> > 
> > Next, you'll need to share your flex-config files and your web.xml so 
> that I 
> > can see what's wrong. 
> > 
> > Nishantwww.itasveer.com 
> > 
> > On Mon, Nov 24, 2008 at 11:41 AM, Mor <[email protected]> wrote: 
> > 
> > > Hi,  Venkat, 
> > 
> > > As my Root set : 192.168.6.221 
> > 
> > > (and actually my local host IP is same as 192.168.6.221) 
> > 
> > > Looking for solution. 
> > 
> > > Mor 
> > 
> > > On Nov 23, 10:29 am, "Venkat Viswanathan" <[email protected]> 
> > > wrote: 
> > > > Hi, 
> > 
> > > > While creating the Flex project, what have you given in root URL...? 
> > > > localhost or 192.168.6.221? 
> > 
> > > > Regards, 
> > > > Venkat 
> > 
> > > > On Sat, Nov 22, 2008 at 11:03 PM, Mor <[email protected]> wrote: 
> > 
> > > > > This is my first experience with BlazeDS. 
> > 
> > > > > I have installed BlazeDS on Tomcat 6.0.18. 
> > > > > Since last 3 days I am trying to resolve this problem but I can 
> not 
> > > > > work on it. I am just trying to get one very simple Remote Object 
> > > > > example. 
> > 
> > > > > I have given all possible details here, please look into it and 
> guide 
> > > > > me how to resolve this error. 
> > 
> > > > > WebApplication  :
> http://192.168.6.221:8400/mywebsitename/myindex.html 
> > 
> > >http://localhost:8400/mywebsitename/myindex.html 
> > > > > My PC IP is : 192.168.6.221 
> > > > > same on : localhost 
> > 
> > > > > Tomcat structure 
> > > > > ----------------------------- 
> > > > > Tomcat (dir) 
> > > > >   webapps (dir) 
> > > > >        mywebsitename (dir) 
> > > > >            WEB-INF (dir) 
> > > > >                myindex.html 
> > > > >                myindex.swf 
> > > > >                classes (dir) 
> > > > >                         demo.DemoFlexJava 
> > > > >                flex (dir) 
> > > > >                         4 flex config files 
> > 
> > > > > ****  Fault Error ***************** 
> > 
> > > > > FAULT : (mx.messaging.messages::ErrorMessage)#0 
> > > > >  body = (Object)#1 
> > > > >  clientId = (null) 
> > > > >  correlationId = "3B598FB4-AF0F-B98B-3E9A-C51DE95CFEFF" 
> > > > >  destination = "" 
> > > > >  extendedData = (null) 
> > > > >  faultCode = "Client.Error.MessageSend" 
> > > > >  faultDetail = "Channel.Connect.Failed error 
> > > > > NetConnection.Call.Failed: HTTP: Status 404: url: 'http:// 
> > > > > 192.168.6.221:8400/mywebsitename/messagebroker/amf'" 
> > > > >  faultString = "Send failed" 
> > > > >  headers = (Object)#2 
> > > > >  messageId = "89D7340D-765C-37AB-D902-C51DE96B0388" 
> > > > >  rootCause = (mx.messaging.events::ChannelFaultEvent)#3 
> > > > >    bubbles = false 
> > > > >    cancelable = false 
> > > > >    channel = (mx.messaging.channels::AMFChannel)#4 
> > > > >      authenticated = false 
> > > > >      channelSets = (Array)#5 
> > > > >        [0] (mx.messaging::ChannelSet)#6 
> > > > >          authenticated = false 
> > > > >          channelIds = (Array)#7 
> > > > >            [0] "my-amf" 
> > > > >          channels = (Array)#8 
> > > > >            [0] (mx.messaging.channels::AMFChannel)#4 
> > > > >          clustered = false 
> > > > >          connected = false 
> > > > >          currentChannel = (mx.messaging.channels::AMFChannel)#4 
> > > > >          initialDestinationId = (null) 
> > > > >          messageAgents = (Array)#9 
> > > > >            [0] (mx.rpc::AsyncRequest)#10 
> > > > >              authenticated = false 
> > > > >              autoConnect = true 
> > > > >              channelSet = (mx.messaging::ChannelSet)#6 
> > > > >              clientId = (null) 
> > > > >              connected = false 
> > > > >              defaultHeaders = (null) 
> > > > >              destination = "MyRODestination" 
> > > > >              id = "AA4D300D-C37B-C8FD-19C4-C51DDF3CF648" 
> > > > >              reconnectAttempts = 0 
> > > > >              reconnectInterval = 0 
> > > > >              requestTimeout = -1 
> > > > >              subtopic = "" 
> > > > >      connected = false 
> > > > >      connectTimeout = -1 
> > > > >      enableSmallMessages = true 
> > > > >      endpoint = "http://192.168.6.221:8400/mywebsitename/ 
> > > > > messagebroker/amf< 
> > >http://192.168.6.221:8400/mywebsitename/messagebroker/amf> 
> > > > > " 
> > > > >      failoverURIs = (Array)#11 
> > > > >      id = "my-amf" 
> > > > >      mpiEnabled = false 
> > > > >      netConnection = (flash.net::NetConnection)#12 
> > > > >        client = (mx.messaging.channels::AMFChannel)#4 
> > > > >        connected = false 
> > > > >        objectEncoding = 3 
> > > > >        proxyType = "none" 
> > > > >        uri = "
> http://192.168.6.221:8400/mywebsitename/messagebroker/ 
> > > > > amf" 
> > > > >      piggybackingEnabled = false 
> > > > >      polling = false 
> > > > >      pollingEnabled = true 
> > > > >      pollingInterval = 3000 
> > > > >      protocol = "http" 
> > > > >      reconnecting = false 
> > > > >      recordMessageSizes = false 
> > > > >      recordMessageTimes = false 
> > > > >      requestTimeout = -1 
> > > > >      uri = "http://192.168.6.221:8400/mywebsitename/messagebroker/ 
> > > > > amf" 
> > > > >      url = "http://192.168.6.221:8400/mywebsitename/messagebroker/ 
> > > > > amf" 
> > > > >      useSmallMessages = false 
> > > > >    channelId = "my-amf" 
> > > > >    connected = false 
> > > > >    currentTarget = (mx.messaging.channels::AMFChannel)#4 
> > > > >    eventPhase = 2 
> > > > >    faultCode = "Channel.Connect.Failed" 
> > > > >    faultDetail = "NetConnection.Call.Failed: HTTP: Status 404: 
> url: 
> > > > > 'http://192.168.6.221:8400/mywebsitename/messagebroker/amf'" 
> > > > >    faultString = "error" 
> > > > >    reconnecting = false 
> > > > >    rejected = false 
> > > > >    rootCause = (Object)#13 
> > > > >      code = "NetConnection.Call.Failed" 
> > > > >      description = "HTTP: Status 404" 
> > > > >      details = "
> http://192.168.6.221:8400/mywebsitename/messagebroker/ 
> > > > > amf" 
> > > > >      level = "error" 
> > > > >    target = (mx.messaging.channels::AMFChannel)#4 
> > > > >    type = "channelFault" 
> > > > >  timestamp = 0 
> > > > >  timeToLive = 0 
> > 
> > > > > ******* Error log ********* 
> > 
> > > > > ----------------------------------------------------- 
> > > > > myindex.html 
> > > > > *************************** 
> > > > > <?xml version="1.0" encoding="utf-8"?> 
> > > > > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"; 
> > > > > layout="absolute" 
> > > > >        creationComplete="onCrationComplete()"> 
> > 
> > > > >        <!--<mx:Style source="css/main.css"/>--> 
> > 
> > > > >        <mx:Script> 
> > > > >                <![CDATA[ 
> > > > >                        import mx.rpc.Fault; 
> > > > >                        import mx.rpc.events.FaultEvent; 
> > > > >                        import mx.rpc.events.ResultEvent; 
> > > > >                        import mx.controls.Alert; 
> > 
> > > > >                        private function onCrationComplete():void 
> > > > >                        { 
> > > > >                                //txtUser.setFocus(); 
> > > > >                        } 
> > 
> > > > >                        public function 
> > > onROResult(event:ResultEvent):void 
> > > > >                        { 
> > > > >                                //txtArea.text += 
> > > > > event.returnText.toString(); 
> > > > >                                txtArea.text += 
> event.toString()+'/n'; 
> > > > >                        } 
> > 
> > > > >                        public function goHandler(event:MouseEvent 
> = 
> > > > > null):void 
> > > > >                        { 
> > > > >                                //ro.returnToFlex.send(); 
> > > > >                        } 
> > 
> > > > >                        public function onROFault(event:FaultEvent 
> = 
> > > > > null):void 
> > > > >                        { 
> > > > >                               
>  //Alert.show(event.message.toString()); 
> > > > >                                txtArea.text = txtArea.htmlText = 
> ''; 
> > > > >                                var falultRed:String = "<font 
> > > > > color='#ff0000'>FAULT : </font>"; 
> > > > >                                txtArea.htmlText = 
> > > falultRed+event.message; 
> > > > >                        } 
> > > > >                ]]> 
> > > > >        </mx:Script> 
> > 
> > > > >        <mx:RemoteObject id="rmtObj" destination="MyRODestination" 
> > > > >                showBusyCursor="true" fault="onROFault(event)"> 
> > > > >                <mx:method name="methodWithoutArgument" 
> > > > > result="onROResult(event)" / 
> > 
> > > > >                <mx:method name="methodWithArgument" 
> > > > > result="onROResult(event)" /> 
> > > > >        </mx:RemoteObject> 
> > 
> > > > >        <mx:Text text="Welcome...  Blaze DS ...  be happyyyyy" 
>  x="80" 
> > > > > y="24" 
> > > > > id="txt1"/> 
> > > > >        <mx:TextInput top="50" x="106" id="txtUser"/> 
> > > > >        <mx:Text text="Enter Text" left="36" top="50"/> 
> > > > >        <mx:Button x="274" y="50" label="Go" id="btnGo" 
> > > > > click="rmtObj.methodWithoutArgument()"/> 
> > > > >        <mx:TextArea id="txtArea" x="36" y="80" width="570" 
> height="450" 
> > > > > wordWrap="true" /> 
> > > > > </mx:Application> 
> > > > > ********** 
> > > > > ----------------------------------------------------- 
> > > > > DemoFlexJava.java 
> > 
> > > > > ******************************** 
> > > > > package demo; 
> > 
> > > > > public class DemoFlexJava 
> > > > > { 
> > > > >        public DemoFlexJava() 
> > > > >        { 
> > > > >                //empty 
> > > > >        } 
> > 
> > > > >        public int woArg = 0; 
> > > > >        public int withArg = 0; 
> > 
> > > > >        public String methodWithoutArgument() 
> > > > >        { 
> > > > >                System.out.println(woArg++); 
> > 
> > > > >                return "method Without Argument"; 
> > > > >        } 
> > 
> > > > >        public String methodWithArgument(String strArg) 
> > > > >        { 
> > > > >                System.out.println(withArg++); 
> > 
> > > > >                return "method WITH Argument : "+strArg; 
> > > > >        } 
> > 
> > > > > } 
> > 
> > > 
> *************************************************************************** 
> > > ********* 
> > 
> > > > > ------------------------------------------------------------- 
> > > > > remoting-config.xml 
> > > > >                                **************************** 
> > 
> > > > > <?xml version="1.0" encoding="UTF-8"?> 
> > > > > <service id="remoting-service" 
> > > > >    class="flex.messaging.services.RemotingService"> 
> > 
> > > > >    <adapters> 
> > 
> > ... 
> > 
> > read more »

-- 
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/flex_india/-/OZC3H7TcSH4J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.

Reply via email to