You shouldn't have both "localhost" and "{server.name}" in your <channel-definition><endpoint uri="...">


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sank xuan
Sent: Tuesday, April 25, 2006 12:45 AM
To: flexcoders@yahoogroups.com
Subject: 回复: RE: [flexcoders] Flex 2 problem about remoteobject in tomcat

Hi Matt,
thanks your quickly reply. below is my config list:
and when i call meetingService.login(), got the error that I refered.
in mxml:
 ....
  private function faultHandler(event:FaultEvent):void
    {         
         Alert.show(event.fault.faultDetail, "Error"); 
   } 
.....  
 <mx:RemoteObject id="meetingService" destination="meetingService" showBusyCursor="true" fault="faultHandler(event)">
  <mx:method name="login" result="loginResult(event)"/>
 </mx:RemoteObject>
 
in flex-remoting-service:
<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="database">
        <properties>
            <source>samples.sqladmin.DatabaseService</source>
        </properties>
    </destination>
 <destination id="meetingService">
        <properties>
            <source>com.poppybar.meeting.MeetingService</source>
        </properties>
    </destination>
 
in flex-enterprise-service:
 <channel-definition id="my-amf" class="mx.messaging.channels.AMFChannel">
            <endpoint uri="http://localhost:{server.port}/{context.root}/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/>
            <properties>
                <polling-enabled>false</polling-enabled>
            </properties>
        </channel-definition>
 
and I can't get the stack trace  error log from console of tomcat,  and if we need set something to get it ?
 
thanks
- sank
 

Matt Chotin <[EMAIL PROTECTED]> 写道:
There must be a configuration setting that’s wrong.  I’d check your logfiles and see if there are any errors as it starts up.  If you don’t see anything change the log settings to debug and see what else spits out, you should at least see a stack trace when the flex app tries to connect.
 
Matt
 

From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of sank xuan
Sent: Monday, April 24, 2006 8:46 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex 2 problem about remoteobject in tomcat
 
I meet a issue of remoteObject in flex2, when config a remote object , and call its method, and return detail result of this error message
"Channel.connect.failed error
netconnection.call.failed:http status 500"
 
and even I put the samples in flex2 package to webapp dir of tomcat, also appear this error."send failed".
 
who can help me? thanks
 
and I have finish a blog site with flex1.5 ,you can visit it if you are intersting with it.
thanks
- sank

__________________________________________________
赶快注册雅虎超大容量免费邮箱?
http://cn.mail.yahoo.com

__________________________________________________
赶快注册雅虎超大容量免费邮箱?
http://cn.mail.yahoo.com

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




Reply via email to