As Tom kindly suggested I got rid of the errors. The cleaned-up code
looks as follows. I am still getting the same error message though.

---------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute">
  <mx:RemoteObject id="remoteTagInfo" source="example.RemoteInfo">
        <mx:method name="getInfo" result="resultHandler(event.result)"/>
    </mx:RemoteObject>

    <mx:Script>
        <![CDATA[
         [Bindable]
         public var infoStr:String;
   public function getdata():void
   {
     remoteTagInfo.getInfo();
   }
  
   public function resultHandler(result:Object):void
   {
      infoStr= result(String);
  }
       ]]>
    </mx:Script>

    <mx:Panel title="Remote Object Panel" width="60%" height="45%">

        <mx:Button label="Get Data" click="getdata();"/>
        <mx:TextArea text="{infoStr}" width="100%" height="100%"/>

    </mx:Panel>
</mx:Application>
-----------------------------------------------------

As per Tom's suggestion I include my logs.

Using JRun, trying to access a Java class file locally

http://localhost:8700/flex/RemoteObjectExample/RemoteObjectExample.html

RemoteInfo.class stored in
C:\fds2\jrun4\servers\default\flex\WEB-INF\classes\example

-------------------------------------------------------
Starting Macromedia JRun 4.0 (Build 106363), default server Flex OEM
License for JRun enabled
06/01 12:05:31 warning Unable to open C:\fds2\jrun4/lib/license.properties
06/01 12:05:32 info JRun Naming Service listening on *:2907
06/01 12:05:32 info No JDBC data sources have been configured for this
server (s ee jrun-resources.xml)
06/01 12:05:32 info JRun Web Server listening on *:8700
06/01 12:05:32 info Deploying enterprise application "JRun 4.0
Internal J2EE Com ponents" from: file:/C:/fds2/jrun4/lib/jrun-comp.ear
06/01 12:05:32 info Deploying EJB "JRunSQLInvoker" from:
file:/C:/fds2/jrun4/lib /jrun-comp.ear Server default ready (startup
time: 3 seconds)
06/01 12:05:32 info Deploying web application "Flex Default Web
Application" fro
m: file:/C:/fds2/jrun4/servers/default/default-war/
06/01 12:05:32 user JSPServlet: init
06/01 12:05:33 info Deploying web application "Flex Data Services"
from: file:/C :/fds2/jrun4/servers/default/flex/
06/01 12:05:33 user JSPServlet: init
06/01 12:05:33 user FlexMxmlServlet: init Loading configuration file
C:\fds2\jrun4\servers\default\flex\WEB-INF\flex\flex-
webtier-config.xml, root element flex-webtier-config Loading
configuration file C:\fds2\jrun4\servers\default\flex\WEB-INF\flex\flex-
config.xml, root element flex-config
06/01 12:05:35 user FlexMxmlServlet: Starting Adobe Flex Web Tier
Compiler (beta  period ends Jul 31, 2006)
06/01 12:05:35 user FlexMxmlServlet: Adobe Flex Web Tier Compiler
Build: 138139
06/01 12:05:36 user MessageBrokerServlet: init
06/01 12:05:40 user FlexSwfServlet: init
06/01 12:05:40 user FlexInternalServlet: init
06/01 12:05:41 info Deploying web application "Flex Admin Web
Application" from:
file:/C:/fds2/jrun4/servers/default/flex-admin/
06/01 12:05:42 user JSPServlet: init
06/01 12:05:43 user MessageBrokerServlet: init
06/01 12:05:44 info Deploying web application "Flex Data Services
Samples" from:
file:/C:/fds2/jrun4/servers/default/samples/
06/01 12:05:45 user JSPServlet: init
06/01 12:05:51 user FlexMxmlServlet: init Loading configuration file
C:\fds2\jrun4\servers\default\samples\WEB-INF\flex\fl
ex-webtier-config.xml, root element flex-webtier-config Loading
configuration file C:\fds2\jrun4\servers\default\samples\WEB-INF\flex\fl
ex-config.xml, root element flex-config
06/01 12:05:55 user FlexMxmlServlet: Starting Adobe Flex Web Tier
Compiler (beta  period ends Jul 31, 2006)
06/01 12:05:55 user FlexMxmlServlet: Adobe Flex Web Tier Compiler
Build: 138139
06/01 12:05:55 user MessageBrokerServlet: init [Flex] [INFO] Starting
Adobe Flex Data Services 2.0 Express (beta period ends Ju l 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 my-polling-amf created with security: None at
URI:
http://{server.name}:{server.port}/{context.root}/messagebroker/amfpolli
ng
[Flex] [INFO] Endpoint my-http created with security: None at URI:
http://{server.name}:{server.port}/{context.root}/messagebroker/http
[Flex] [INFO] Endpoint my-secure-amf created with security: None at
URI: https://{server.name}:9100/{context.root}/messagebroker/amfsecure
[Flex] [INFO] Endpoint my-rtmp created with security: None at URI:
rtmp://{server.name}:2037 [Flex] [INFO] Endpoint my-secure-http
created with security: None at URI:
https://{server.name}:9100/{context.root}/messagebroker/httpsecure
06/01 12:05:57 user FlexSwfServlet: init
06/01 12:05:57 user FlexInternalServlet: init
06/01 12:06:28 user FileServlet: init
-------------------------------------------------------

And configurations files:


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



flex-data-service.xml
-------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<service id="data-service"
    class="flex.data.DataService"
    messageTypes="flex.data.messages.DataMessage">

    <adapters>
        <adapter-definition id="actionscript"
class="flex.data.adapters.ASObjectAdapter" default="true"/>
        <adapter-definition id="java-dao"
class="flex.data.adapters.JavaAdapter"/>
    </adapters>
</service>
------------------------------------------------------



flex-enterprise-services.xml
------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<services-config>

    <services>
        <service-include file-path="flex-remoting-service.xml" />
        <service-include file-path="flex-proxy-service.xml" />
        <service-include file-path="flex-message-service.xml" />
        <service-include file-path="flex-data-service.xml" />
    </services>

    <security>
        <login-command
class="flex.messaging.security.JRunLoginCommand" server="JRun"/>
        <!-- Uncomment the correct app server
        <login-command
class="flex.messaging.security.TomcatLoginCommand" server="Tomcat"/>
        <login-command
class="flex.messaging.security.WeblogicLoginCommand" server="Weblogic"/>
        <login-command
class="flex.messaging.security.WebSphereLoginCommand" server="WebSphere"/>
        -->
        <security-constraint id="basic-read-access">
            <auth-method>Basic</auth-method>
            <roles>
                <role>guests</role>
                <role>accountants</role>
                <role>employees</role>
                <role>managers</role>
            </roles>
        </security-constraint>
    </security>

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

        <channel-definition id="my-secure-amf"
class="mx.messaging.channels.SecureAMFChannel">
            <endpoint
uri="https://{server.name}:9100/{context.root}/messagebroker/amfsecure"
class="flex.messaging.endpoints.SecureAMFEndpoint"/>
        </channel-definition>

        <channel-definition id="my-polling-amf"
class="mx.messaging.channels.AMFChannel">
            <endpoint
uri="http://{server.name}:{server.port}/{context.root}/messagebroker/amfpolling"
class="flex.messaging.endpoints.AMFEndpoint"/>
            <properties>
                <polling-enabled>true</polling-enabled>
                <polling-interval-seconds>8</polling-interval-seconds>
            </properties>
        </channel-definition>

        <channel-definition id="my-rtmp"
class="mx.messaging.channels.RTMPChannel">
            <endpoint uri="rtmp://{server.name}:2038"
class="flex.messaging.endpoints.RTMPEndpoint"/>
            <properties>
                <idle-timeout-minutes>20</idle-timeout-minutes>
                <client-to-server-maxbps>100K</client-to-server-maxbps>
                <server-to-client-maxbps>100K</server-to-client-maxbps>
                <!-- for deployment on WebSphere, must be mapped to a
WorkManager available in the web application's jndi context.
              
<websphere-workmanager-jndi-name>java:comp/env/wm/MessagingWorkManager</websphere-workmanager-jndi-name>
                -->
            </properties>
        </channel-definition>

        <channel-definition id="my-http"
class="mx.messaging.channels.HTTPChannel">
            <endpoint
uri="http://{server.name}:{server.port}/{context.root}/messagebroker/http"
class="flex.messaging.endpoints.HTTPEndpoint"/>
        </channel-definition>

        <channel-definition id="my-secure-http"
class="mx.messaging.channels.SecureHTTPChannel">
            <endpoint
uri="https://{server.name}:9100/{context.root}/messagebroker/httpsecure"
class="flex.messaging.endpoints.SecureHTTPEndpoint"/>
        </channel-definition>
    </channels>

    <logging>
        <target class="flex.messaging.log.ConsoleTarget" level="Error">
            <properties>
                <prefix>[Flex] </prefix>
                <includeDate>false</includeDate>
                <includeTime>false</includeTime>
                <includeLevel>false</includeLevel>
                <includeCategory>false</includeCategory>
            </properties>
            <filters>
                <pattern>Endpoint.*</pattern>
                <pattern>Service.*</pattern>
                <pattern>Configuration</pattern>
            </filters>
        </target>
    </logging>

    <system>
        <redeploy>
            <enabled>true</enabled>
            <watch-interval>20</watch-interval>
          
<watch-file>{context.root}/WEB-INF/flex/flex-enterprise-services.xml</watch-file>
          
<watch-file>{context.root}/WEB-INF/flex/flex-proxy-service.xml</watch-file>
          
<watch-file>{context.root}/WEB-INF/flex/flex-remoting-service.xml</watch-file>
          
<watch-file>{context.root}/WEB-INF/flex/flex-message-service.xml</watch-file>
          
<watch-file>{context.root}/WEB-INF/flex/flex-data-service.xml</watch-file>
            <touch-file>{context.root}/WEB-INF/web.xml</touch-file>
        </redeploy>
    </system>

</services-config>
------------------------------------------------------


flex-message-service.xml
------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<service id="message-service"
    class="flex.messaging.services.MessageService"
    messageTypes="flex.messaging.messages.AsyncMessage">

    <adapters>
        <adapter-definition id="actionscript"
class="flex.messaging.services.messaging.adapters.ActionScriptAdapter"
default="true" />
        <adapter-definition id="jms"
class="flex.messaging.services.messaging.adapters.JMSAdapter"/>
    </adapters>

</service>
------------------------------------------------------


I am very new to Flex and not exactly sure what the problem is. I have
spent a couple days reviewing the docs, but perhaps I am reading the
wrong parts. Any pointers or comments would be helpful.

Thank you,
Kevin



--- In [email protected], Tom Chiverton <[EMAIL PROTECTED]>
wrote:
>
> On Wednesday 31 May 2006 21:08, flexhelp0 wrote:
> > I did find a tutorial for an older version of Flex (1.5) at
> >
http://livedocs.macromedia.com/flex/15/asdocs_en/mx/servicetags/RemoteObjec
> >t.html
>
> What's wrong with the Flex2 docs ?
>
> > Following this tutorial I can get the project to compile under Flex
> > 2.0 with no errors but six warnings:
>
> I suggest you fix them then, for starters ;-)
>
> > --------------------------------------------
> > 1      Data binding will not be able to detect assignments to "infoStr".
> > RemoteObjectExample.mxml      RemoteObjectExample      line 25      May 31, 2006
> > 3:06:58 PM      25
> > --------------------------------------------
>
> That's not a good start, for instance.
>
> --
> Tom Chiverton
>
> ****************************************************
>
> This email is sent for and on behalf of Halliwells LLP.
>
> Halliwells LLP is a limited liability partnership registered in
England and Wales under registered number OC307980 whose registered
office address is at St James's Court Brown Street Manchester M2 2JF.
A list of members is available for inspection at the registered
office. Any reference to a partner in relation to Halliwells LLP means
a member of Halliwells LLP. Regulated by the Law Society.
>
> CONFIDENTIALITY
>
> This email is intended only for the use of the addressee named above
and may be confidential or legally privileged.  If you are not the
addressee you must not read it and must not use any information
contained in nor copy it nor inform any person other than Halliwells
LLP or the addressee of its existence or contents.  If you have
received this email in error please delete it and notify Halliwells
LLP IT Department on 0870 365 8008.
>
> For more information about Halliwells LLP visit www.halliwells.com.
>
> We are pleased to announce that Halliwells LLP has been voted AIM
Lawyer of the Year at the 2005 Growth Company Awards
>






--
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
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to