[flexcoders] Re: Cairngorm 2, Flex 2 Beta 2 and RemoteObject (java)
Hello, Dave Lowe here. Don't know if the following helps you or not but - We saw a similar problem to the one you described and eventually tracked it down to the fact that the Project was created in Flex Builder wih the option "Compile application locally in Flex Builder" ... when we changed to "Compile application on the server..." then everything started working. (To do the above we created a new project since we couldn't find an option to change the original project...) Cheers, Dave. --- In flexcoders@yahoogroups.com, "sof4real03" <[EMAIL PROTECTED]> wrote: > > I'm trying to develop a fairly simple example of accessing a > server-side java object with RemoteObject Invocation. Here is my > following code snippets. > > flex-remoting-service.xml: > > > > class="flex.messaging.services.remoting.adapters.JavaAdapter" > default="true"/> > > > > > > > > > com.company.services.security.SecurityFacade > > > > This destination is using the default channel "my-amf" defined in the > flex-enterprise-service.xml, the same that the sample apps use. Yet > when I run the application I get the following error message: > > error Requested resource '/messagebroker/amf' (%2fmessagebroker% 2famf) > not found > > I've checked the web.xml and the MessageBrokerServlet and servlet > mapping are defined correctly. > > I'm running the application under the /flex context-root. The sample > sqladmin application that uses RemoteObject is running under /samples > context-root. Is there any other configuration needed that I may be > missing? > > Any insight would be much appreciated. > > Thanks, > Sof > -- 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Re: Cairngorm 2, Flex 2 Beta 2 and RemoteObject (java)
it's weird in fact. I'm actually using CF as my source for remote objects not Java but it should be the same. CF channel definition is a bit different but the approach is the same. -Original Message- From: flexcoders@yahoogroups.com on behalf of sof4real03 Sent: Sun 09-Apr-06 8:58 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Cairngorm 2, Flex 2 Beta 2 and RemoteObject (java) Just tried it still the same error. There is something weird going on. The sample applications are using the same my-amf channel definition and the sqladmin example works just fine. I even rewrote my code to mimic the sqladmin code to see if it was Cairngorm, but I still get the same error. Have you successfully gotten it to work? --- In flexcoders@yahoogroups.com, João Fernandes <[EMAIL PROTECTED]> wrote: > > > try to replace your context-root by its value (/flex) and see if it works. > > > -Original Message- > From: flexcoders@yahoogroups.com on behalf of sof4real03 > Sent: Sun 09-Apr-06 8:45 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Re: Cairngorm 2, Flex 2 Beta 2 and RemoteObject (java) > > In the flex-enterprise-services.xml: > > class="mx.messaging.channels.AMFChannel"> > uri="http://{server.name}:{server.port}/{context.root}/messagebroker/amf"; > class="flex.messaging.endpoints.AMFEndpoint"/> > > false > > > > Any insight? > > - Sof > > --- In flexcoders@yahoogroups.com, João Fernandes > wrote: > > > > how is defined your amf channel endpoint? > > > > João fernandes > > > > -Original Message- > > From: flexcoders@yahoogroups.com on behalf of sof4real03 > > Sent: Sun 09-Apr-06 2:02 PM > > To: flexcoders@yahoogroups.com > > Subject: [flexcoders] Cairngorm 2, Flex 2 Beta 2 and RemoteObject (java) > > > > I'm trying to develop a fairly simple example of accessing a > > server-side java object with RemoteObject Invocation. Here is my > > following code snippets. > > > > flex-remoting-service.xml: > > > > > > > class="flex.messaging.services.remoting.adapters.JavaAdapter" > > default="true"/> > > > > > > > > > > > > > > > > > > > com.company.services.security.SecurityFacade > > > > > > > > This destination is using the default channel "my-amf" defined in the > > flex-enterprise-service.xml, the same that the sample apps use. Yet > > when I run the application I get the following error message: > > > > error Requested resource '/messagebroker/amf' (%2fmessagebroker%2famf) > > not found > > > > I've checked the web.xml and the MessageBrokerServlet and servlet > > mapping are defined correctly. > > > > I'm running the application under the /flex context-root. The sample > > sqladmin application that uses RemoteObject is running under /samples > > context-root. Is there any other configuration needed that I may be > > missing? > > > > Any insight would be much appreciated. > > > > Thanks, > > Sof > > > > > > > > > > > > > > -- > > 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 > 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 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 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/ <>
[flexcoders] Re: Cairngorm 2, Flex 2 Beta 2 and RemoteObject (java)
Just tried it still the same error. There is something weird going on. The sample applications are using the same my-amf channel definition and the sqladmin example works just fine. I even rewrote my code to mimic the sqladmin code to see if it was Cairngorm, but I still get the same error. Have you successfully gotten it to work? --- In flexcoders@yahoogroups.com, João Fernandes <[EMAIL PROTECTED]> wrote: > > > try to replace your context-root by its value (/flex) and see if it works. > > > -Original Message- > From: flexcoders@yahoogroups.com on behalf of sof4real03 > Sent: Sun 09-Apr-06 8:45 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Re: Cairngorm 2, Flex 2 Beta 2 and RemoteObject (java) > > In the flex-enterprise-services.xml: > > class="mx.messaging.channels.AMFChannel"> > uri="http://{server.name}:{server.port}/{context.root}/messagebroker/amf"; > class="flex.messaging.endpoints.AMFEndpoint"/> > > false > > > > Any insight? > > - Sof > > --- In flexcoders@yahoogroups.com, João Fernandes > wrote: > > > > how is defined your amf channel endpoint? > > > > João fernandes > > > > -Original Message- > > From: flexcoders@yahoogroups.com on behalf of sof4real03 > > Sent: Sun 09-Apr-06 2:02 PM > > To: flexcoders@yahoogroups.com > > Subject: [flexcoders] Cairngorm 2, Flex 2 Beta 2 and RemoteObject (java) > > > > I'm trying to develop a fairly simple example of accessing a > > server-side java object with RemoteObject Invocation. Here is my > > following code snippets. > > > > flex-remoting-service.xml: > > > > > > > class="flex.messaging.services.remoting.adapters.JavaAdapter" > > default="true"/> > > > > > > > > > > > > > > > > > > > com.company.services.security.SecurityFacade > > > > > > > > This destination is using the default channel "my-amf" defined in the > > flex-enterprise-service.xml, the same that the sample apps use. Yet > > when I run the application I get the following error message: > > > > error Requested resource '/messagebroker/amf' (%2fmessagebroker%2famf) > > not found > > > > I've checked the web.xml and the MessageBrokerServlet and servlet > > mapping are defined correctly. > > > > I'm running the application under the /flex context-root. The sample > > sqladmin application that uses RemoteObject is running under /samples > > context-root. Is there any other configuration needed that I may be > > missing? > > > > Any insight would be much appreciated. > > > > Thanks, > > Sof > > > > > > > > > > > > > > -- > > 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 > 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 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/
RE: [flexcoders] Re: Cairngorm 2, Flex 2 Beta 2 and RemoteObject (java)
try to replace your context-root by its value (/flex) and see if it works. -Original Message- From: flexcoders@yahoogroups.com on behalf of sof4real03 Sent: Sun 09-Apr-06 8:45 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Cairngorm 2, Flex 2 Beta 2 and RemoteObject (java) In the flex-enterprise-services.xml: http://{server.name}:{server.port}/{context.root}/messagebroker/amf"; class="flex.messaging.endpoints.AMFEndpoint"/> false Any insight? - Sof --- In flexcoders@yahoogroups.com, João Fernandes <[EMAIL PROTECTED]> wrote: > > how is defined your amf channel endpoint? > > João fernandes > > -Original Message- > From: flexcoders@yahoogroups.com on behalf of sof4real03 > Sent: Sun 09-Apr-06 2:02 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Cairngorm 2, Flex 2 Beta 2 and RemoteObject (java) > > I'm trying to develop a fairly simple example of accessing a > server-side java object with RemoteObject Invocation. Here is my > following code snippets. > > flex-remoting-service.xml: > > > class="flex.messaging.services.remoting.adapters.JavaAdapter" > default="true"/> > > > > > > > > > com.company.services.security.SecurityFacade > > > > This destination is using the default channel "my-amf" defined in the > flex-enterprise-service.xml, the same that the sample apps use. Yet > when I run the application I get the following error message: > > error Requested resource '/messagebroker/amf' (%2fmessagebroker%2famf) > not found > > I've checked the web.xml and the MessageBrokerServlet and servlet > mapping are defined correctly. > > I'm running the application under the /flex context-root. The sample > sqladmin application that uses RemoteObject is running under /samples > context-root. Is there any other configuration needed that I may be > missing? > > Any insight would be much appreciated. > > Thanks, > Sof > > > > > > > -- > 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 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 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/ <>
[flexcoders] Re: Cairngorm 2, Flex 2 Beta 2 and RemoteObject (java)
In the flex-enterprise-services.xml: http://{server.name}:{server.port}/{context.root}/messagebroker/amf"; class="flex.messaging.endpoints.AMFEndpoint"/> false Any insight? - Sof --- In flexcoders@yahoogroups.com, João Fernandes <[EMAIL PROTECTED]> wrote: > > how is defined your amf channel endpoint? > > João fernandes > > -Original Message- > From: flexcoders@yahoogroups.com on behalf of sof4real03 > Sent: Sun 09-Apr-06 2:02 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Cairngorm 2, Flex 2 Beta 2 and RemoteObject (java) > > I'm trying to develop a fairly simple example of accessing a > server-side java object with RemoteObject Invocation. Here is my > following code snippets. > > flex-remoting-service.xml: > > > class="flex.messaging.services.remoting.adapters.JavaAdapter" > default="true"/> > > > > > > > > > com.company.services.security.SecurityFacade > > > > This destination is using the default channel "my-amf" defined in the > flex-enterprise-service.xml, the same that the sample apps use. Yet > when I run the application I get the following error message: > > error Requested resource '/messagebroker/amf' (%2fmessagebroker%2famf) > not found > > I've checked the web.xml and the MessageBrokerServlet and servlet > mapping are defined correctly. > > I'm running the application under the /flex context-root. The sample > sqladmin application that uses RemoteObject is running under /samples > context-root. Is there any other configuration needed that I may be > missing? > > Any insight would be much appreciated. > > Thanks, > Sof > > > > > > > -- > 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 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/
[flexcoders] Re: Cairngorm 2, Flex 2 Beta 2 and RemoteObject (java)
Yup that's all there. It's defined by default. Anything else? --- In flexcoders@yahoogroups.com, João Fernandes <[EMAIL PROTECTED]> wrote: > > > Look at your web.xml if you have your servlet ( MessageBrokerServlet )and servlet mapping defined ( /messagebroker/* ). > > João Fernandes > > > > -Original Message- > From: flexcoders@yahoogroups.com on behalf of sof4real03 > Sent: Sun 09-Apr-06 1:08 AM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Cairngorm 2, Flex 2 Beta 2 and RemoteObject (java) > > I'm trying to access a server-side java object via the RPC Data > Service RemoteObject. I have the following definitions: > > Services.mxml: > > result="event.call.resultHandler( event )" > fault="event.call.faultHandler( event )" >showBusyCursor="true"/> > > In my BusinessDelegate I invoke a method on the RemoteObject, but the > JRun log stdout spits out the following: > > error Requested resource '/messagebroker/amf' (%2fmessagebroker%2famf) > not found > > In the flex-remoting-service.xml, I have the following definition: > > > class="flex.messaging.services.remoting.adapters.JavaAdapter" > default="true"/> > > > > > > > > > // the java class name of the destination > com.company.services.security.SecurityFacade > > > > In the flex-enterprise-services.xml "my-amf" channel is defined by > default. > > Is there any other configuration I'm missing that would attribute to > the error message mentioned above? > > Thanks, > Sof > > > > > > > -- > 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 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/