You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@royale.apache.org by Piotr Zarzycki <pi...@gmail.com> on 2018/04/17 19:10:32 UTC

[AMF] How to setup RemoteObjectAMFTest

Hi Carlos,

I looked into your old post on flex dev list, but I cannot understand your
instruction. [1].

I don't have to much idea about Java. I have Tomcat server up and running.
Can you describe step by step what should I do in order to run example ?

1) SampleAmfWebApp - This is building for me, but when I run it on Tomcat
it's showing some exceptions.
2) I see that you mention some operation copy in post [1], but what and
where ?

Describe it here or on Wiki page - How to run that AMF example.

[1]
http://apache-flex-development.2333347.n4.nabble.com/FlexJS-AMF-branch-feature-amf-Starting-the-effort-Special-Thanks-to-PKumar-td59640.html#a63860

Thanks in advance!
-- 

Piotr Zarzycki

Patreon: *https://www.patreon.com/piotrzarzycki
<https://www.patreon.com/piotrzarzycki>*

Re: [AMF] How to setup RemoteObjectAMFTest

Posted by Carlos Rovira <ca...@apache.org>.
Hi Alex,

I see that normal for java web apps. Changes use to need a full rebuild and
redeploy of the entire war. Don't think that's bad at all. So for me that's
not a problem, just the way java things work on the web. Maybe that's one
the reasons why other backend languages like PHP had its space.

2018-04-21 1:29 GMT+02:00 Alex Harui <ah...@adobe.com.invalid>:

> Hi Carlos,
>
> My point was that you can't hack the client JS code in the exec.war.  At
> least, I haven’t found a way to do it.  But I think in some BlazeDS
> configs, the client JS files are available on the file system so you can
> just modify them and refresh the browser.
>
> Thanks,
> -Alex
>
> On 4/20/18, 12:04 PM, "carlos.rovira@gmail.com on behalf of Carlos
> Rovira" <carlos.rovira@gmail.com on behalf of carlosrovira@apache.org>
> wrote:
>
>     Hi Alex.
>
>     I think is important to demonstrate people coming that we have AMF
> working.
>     And the example should be improved to look better and have more
>     communication examples. I don't think building is a problem, is the
> working
>     example what we want to show. I don't understand exactly what you want
> to
>     say with the last phrase,  the "problem" with java apps is that are
> less
>     amenable at runtime, but I never thought in doing so.
>
>     I'll take a look to the CI server later today
>
>     thanks!
>
>
>
>     2018-04-20 20:55 GMT+02:00 Alex Harui <ah...@adobe.com.invalid>:
>
>     > Hi Carlos,
>     >
>     > Good to hear that it is working.  I'm wondering if we should still
> set up
>     > a BlazeDS server on our CI VM.  I found the exec.war workflow a bit
>     > cumbersome to debug in.  I don't know any way to patch the JS files
> without
>     > building both parts of the example again.  If we had a BlazeDS set
> up,
>     > wouldn't the WAR files be expanded so you could tweak files on the
> file
>     > system?
>     >
>     > Thoughts?
>     > -Alex
>     >
>     > On 4/20/18, 11:51 AM, "Carlos Rovira" <ca...@apache.org>
> wrote:
>     >
>     >     Thanks Alex, I tried and is working! :)
>     >
>     >     I tried using mvn spring-boot:run, and while I have access to
> flex
>     >     services, the static files was never accesible.
>     >     Still is a mystery for me what's going wrong , or the difference
> from
>     > both
>     >     ways to run the app.
>     >
>     >     Anyway, we have AMF working again and I think now is more easy to
>     > develop
>     >     more a more examples to see if something is not working
>     >
>     >     thanks! :)
>     >
>     >
>     >
>     >     2018-04-20 17:34 GMT+02:00 Alex Harui <aharui@adobe.com.invalid
> >:
>     >
>     >     > Hi Carlos,
>     >     >
>     >     > I am using the Spring Boot executable WAR (with Jetty) instead
> of
>     > TomCat.
>     >     >
>     >     > The Maven build results in a "sampleamfweb-app-0.9.3-
>     > SNAPSHOT-exec.war"
>     >     > file.
>     >     > I run "java -jar sampleamfweb-app-0.9.3-SNAPSHOT-exec.war and
> it
>     > spins up
>     >     > the Jetty server.
>     >     >
>     >     > If you run "jar -tf sampleamfweb-app-0.9.3-SNAPSHOT-exec.war",
> it
>     > will
>     >     > dump out the files in the war.   You should see that
> index.html and
>     > App.js
>     >     > and App.css are in the "public" folder.  That was the commit I
> pushed
>     >     > yesterday.  And that then should result in hitting
>     >     > localhost:8080/index.html and running the RemoteObjectAMFTest.
>     >     >
>     >     > HTH,
>     >     > -Alex
>     >     >
>     >     > On 4/20/18, 3:06 AM, "Carlos Rovira" <ca...@apache.org>
>     > wrote:
>     >     >
>     >     >     Hi Alex,
>     >     >
>     >     >     I'm trying this but I don't get localhost:808/index.html to
>     > work. Is
>     >     >     working for you in jetty embedded server? or you try it in
> an
>     > external
>     >     >     tomcat maybe?
>     >     >
>     >     >     if is in jetty, I think is not working, maybe in tomcat is
> ok
>     >     >
>     >     >     Could you share how are you doing or some steps so I can
>     > reproduce it?
>     >     > I'd
>     >     >     like to close this a continue with other things.
>     >     >
>     >     >     thanks!
>     >     >
>     >     >
>     >     >     2018-04-20 1:58 GMT+02:00 Alex Harui
> <ah...@adobe.com.invalid>:
>     >     >
>     >     >     > Hi Carlos,
>     >     >     >
>     >     >     > Thanks for figuring out the server side.  I just pushed a
>     > change
>     >     > that puts
>     >     >     > the RemoteObjectAMFTest into a public folder in the
>     > SampleAmfWebApp
>     >     > WAR
>     >     >     > which then allows the -exec.WAR to show the
>     > RemoteObjectAMFTest in
>     >     > the
>     >     >     > browser as localhost:8080/index.html
>     >     >     >
>     >     >     > And then a test of the release output for issue #189
> seems to
>     > work
>     >     > for me.
>     >     >     >
>     >     >     > Later,
>     >     >     > -Alex
>     >     >     >
>     >     >     > On 4/19/18, 2:46 PM, "carlos.rovira@gmail.com on behalf
> of
>     > Carlos
>     >     > Rovira"
>     >     >     > <carlos.rovira@gmail.com on behalf of
> carlosrovira@apache.org>
>     >     > wrote:
>     >     >     >
>     >     >     > >Piotr,
>     >     >     > >
>     >     >     > >just fix SampleAmfWebApp. It was not working until now.
> Steps
>     > to do:
>     >     >     > >
>     >     >     > >1) build "examples/RemoteObjectAMFTest" with standard
> "mvn
>     > clean
>     >     > install"
>     >     >     > >
>     >     >     > >2) build "amf/SampleAmfWebApp" with standard "mvn clean
>     > install"
>     >     >     > >
>     >     >     > >3) in "amf/SampleAmfWebApp" run embedded jetty
> webserver with
>     > "mvn
>     >     > spring-
>     >     >     > >boot:run". (this creates a jetty instance with the web
> app
>     > running
>     >     > in
>     >     >     > >http://localhost:8080
>     >     >     > >
>     >     >     > >At this point although I fix the overlay of
>     > RemoteObjectAMFTest
>     >     > over Sa
>     >     >     > >mpleAmfWebApp (the plugin had a bug that was setting
> wrong
>     > slashes
>     >     > that
>     >     >     > >prevents to copy root resources to the war), I don't
> find the
>     > right
>     >     >     > >contextPath to write in browser...or maybe something
> more is
>     > needed
>     >     > in the
>     >     >     > >war.
>     >     >     > >
>     >     >     > >Anyway,
>     >     >     > >
>     >     >     > >4) Go to "examples/RemoteObjectAMFTest/target/bin" and
> then
>     > to
>     >     > js-debug
>     >     >     > >or
>     >     >     > >js-release, depending on what you build and run
> "index.html"
>     >     >     > >
>     >     >     > >that opens the sample in your browser
>     >     >     > >
>     >     >     > >Since you're not inside the right context, you'll need
> to
>     > remove
>     >     > access
>     >     >     > >restrictions. I did this in Safari and I was able to
>     > communicate
>     >     >     > >successfully against SampleAmfWebApp and send and
> receive all
>     > AMF
>     >     > data
>     >     >     > >that
>     >     >     > >we have in the example.
>     >     >     > >
>     >     >     > >Now, to end this, I only need to find why
> localhost:8080 is
>     > not
>     >     >     > >showing RemoteObjectAMFTest
>     >     >     > >in the browser. With this I think we have the example
>     > finished, and
>     >     > we can
>     >     >     > >make more kinds of AMF calls and try what could be
> failing,
>     > or if
>     >     > all kind
>     >     >     > >of communications are working
>     >     >     > >
>     >     >     > >
>     >     >     > >
>     >     >     > >2018-04-17 23:32 GMT+02:00 Carlos Rovira <
>     > carlosrovira@apache.org>:
>     >     >     > >
>     >     >     > >> Hi Piotr,
>     >     >     > >>
>     >     >     > >> in order to provide you with instructions I should
> try to
>     >     > reproduce it
>     >     >     > >> myself now, a year has passed without touching
> anything and
>     >     > sincerely
>     >     >     > >>can't
>     >     >     > >> remember the tricks, ins and outs of the process. I
> think
>     > tomcat
>     >     > didn't
>     >     >     > >> work for me. Chris made a web app with spring root
> that was
>     >     > launching a
>     >     >     > >> jetty instance if I can recall correctly. I'll try it
> now
>     > and
>     >     > report
>     >     >     > >>here
>     >     >     > >>
>     >     >     > >> 2018-04-17 21:10 GMT+02:00 Piotr Zarzycki <
>     >     > piotrzarzycki21@gmail.com>:
>     >     >     > >>
>     >     >     > >>> Hi Carlos,
>     >     >     > >>>
>     >     >     > >>> I looked into your old post on flex dev list, but I
> cannot
>     >     > understand
>     >     >     > >>>your
>     >     >     > >>> instruction. [1].
>     >     >     > >>>
>     >     >     > >>> I don't have to much idea about Java. I have Tomcat
> server
>     > up and
>     >     >     > >>>running.
>     >     >     > >>> Can you describe step by step what should I do in
> order to
>     > run
>     >     > example
>     >     >     > >>>?
>     >     >     > >>>
>     >     >     > >>> 1) SampleAmfWebApp - This is building for me, but
> when I
>     > run it
>     >     > on
>     >     >     > >>>Tomcat
>     >     >     > >>> it's showing some exceptions.
>     >     >     > >>> 2) I see that you mention some operation copy in
> post [1],
>     > but
>     >     > what and
>     >     >     > >>> where ?
>     >     >     > >>>
>     >     >     > >>> Describe it here or on Wiki page - How to run that
> AMF
>     > example.
>     >     >     > >>>
>     >     >     > >>> [1]
>     >     >     > >>>
>     >     >     > >>>https://na01.safelinks.protection.outlook.com/?url=
>     >     >     > http%3A%2F%2Fapache-f
>     >     >     > >>>lex-development.2333347.n4.nabble.com
> %2FFlexJS-&data=02%
>     >     >     > 7C01%7Caharui%40
>     >     >     > >>>adobe.com%7C2f695b7d96bf4b2e93ab08d5a63f1d79%
>     >     >     > 7Cfa7b1b5a7b34438794aed2c17
>     >     >     > >>>8decee1%7C0%7C0%7C636597712369628361&sdata=
>     >     >     > aSjquDnbHThQx4awMCz7pMLkW4ci2
>     >     >     > >>>FppQyq%2FYQ17yy0%3D&reserved=0
>     >     >     > >>> AMF-branch-feature-amf-Starting-the-effort-Special-
> Thanks-
>     >     >     > >>> to-PKumar-td59640.html#a63860
>     >     >     > >>>
>     >     >     > >>> Thanks in advance!
>     >     >     > >>> --
>     >     >     > >>>
>     >     >     > >>> Piotr Zarzycki
>     >     >     > >>>
>     >     >     > >>> Patreon:
>     >     >     > >>>*https://na01.safelinks.protection.outlook.com/?url=
>     >     >     > https%3A%2F%2Fwww.pa
>     >     >     > >>>treon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%
> 40adobe.com
>     >     >     > %7C2f695b7d96
>     >     >     > >>>bf4b2e93ab08d5a63f1d79%7Cfa7b1b5a7b34438794aed2c178de
>     >     >     > cee1%7C0%7C0%7C6365
>     >     >     > >>>97712369628361&sdata=IgdHVt4xZx53PGvq%2B%
>     >     > 2B20W87WhFMFqkF2ZC7mLO9HtEI%
>     >     >     > 3D&
>     >     >     > >>>reserved=0
>     >     >     > >>>
>     >     >     > >>><https://na01.safelinks.protection.outlook.com/?url=
>     >     >     > https%3A%2F%2Fwww.pa
>     >     >     > >>>treon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%
> 40adobe.com
>     >     >     > %7C2f695b7d96
>     >     >     > >>>bf4b2e93ab08d5a63f1d79%7Cfa7b1b5a7b34438794aed2c178de
>     >     >     > cee1%7C0%7C0%7C6365
>     >     >     > >>>97712369628361&sdata=IgdHVt4xZx53PGvq%2B%
>     >     > 2B20W87WhFMFqkF2ZC7mLO9HtEI%
>     >     >     > 3D&
>     >     >     > >>>reserved=0>*
>     >     >     > >>>
>     >     >     > >>
>     >     >     > >>
>     >     >     > >>
>     >     >     > >> --
>     >     >     > >> Carlos Rovira
>     >     >     > >>
>     >     >     > >>https://na01.safelinks.protection.outlook.com/?url=
>     >     >     > http%3A%2F%2Fabout.me%
>     >     >     > >>2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%
>     >     >     > 7C2f695b7d96bf4b2e93ab08
>     >     >     > >>d5a63f1d79%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
>     >     >     > 7C63659771236962836
>     >     >     > >>1&sdata=OVlULJ9%2B3A9VIj5F3SGMgtLV3cMo0jZgTQII
>     >     > wqcGukA%3D&reserved=0
>     >     >     > >>
>     >     >     > >>
>     >     >     >
>     >     >     >
>     >     >
>     >     >
>     >     >     --
>     >     >     Carlos Rovira
>     >     >     https://na01.safelinks.protection.outlook.com/?url=
>     >     > http%3A%2F%2Fabout.me%2Fcarlosrovira&data=02%7C01%7Caharui%
>     > 40adobe.com%
>     >     > 7Cd4e1dd6773084acae49a08d5a6a664f8%
> 7Cfa7b1b5a7b34438794aed2c178de
>     >     > cee1%7C0%7C0%7C636598155971030308&sdata=Ey7Ai7YIgZWjQu%
>     >     > 2B451QhYu1sdmETLeqr%2BzJSsIRHFrY%3D&reserved=0
>     >     >
>     >     >
>     >     >
>     >
>     >
>     >     --
>     >     Carlos Rovira
>     >     https://na01.safelinks.protection.outlook.com/?url=
>     > http%3A%2F%2Fabout.me%2Fcarlosrovira&data=02%7C01%7Caharui%
> 40adobe.com%
>     > 7C56cef0821cc240055c3608d5a6efb041%7Cfa7b1b5a7b34438794aed2c178de
>     > cee1%7C0%7C0%7C636598470770065331&sdata=fvPwSe1qkAK9YODLzPDnVKkp20%
>     > 2FZyQzE8jjeqMRJrts%3D&reserved=0
>     >
>     >
>     >
>
>
>     --
>     Carlos Rovira
>     https://na01.safelinks.protection.outlook.com/?url=
> http%3A%2F%2Fabout.me%2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%
> 7Cf759b0b6d1ae4733c55308d5a6f17aa0%7Cfa7b1b5a7b34438794aed2c178de
> cee1%7C0%7C0%7C636598478433560197&sdata=52zbCFkdChmELkwQXsPsIr4QdO%
> 2FwfbUsCxuBVG5tkdc%3D&reserved=0
>
>
>


-- 
Carlos Rovira
http://about.me/carlosrovira

Re: [AMF] How to setup RemoteObjectAMFTest

Posted by Alex Harui <ah...@adobe.com.INVALID>.
Hi Carlos,

My point was that you can't hack the client JS code in the exec.war.  At least, I haven’t found a way to do it.  But I think in some BlazeDS configs, the client JS files are available on the file system so you can just modify them and refresh the browser.

Thanks,
-Alex

On 4/20/18, 12:04 PM, "carlos.rovira@gmail.com on behalf of Carlos Rovira" <carlos.rovira@gmail.com on behalf of carlosrovira@apache.org> wrote:

    Hi Alex.
    
    I think is important to demonstrate people coming that we have AMF working.
    And the example should be improved to look better and have more
    communication examples. I don't think building is a problem, is the working
    example what we want to show. I don't understand exactly what you want to
    say with the last phrase,  the "problem" with java apps is that are less
    amenable at runtime, but I never thought in doing so.
    
    I'll take a look to the CI server later today
    
    thanks!
    
    
    
    2018-04-20 20:55 GMT+02:00 Alex Harui <ah...@adobe.com.invalid>:
    
    > Hi Carlos,
    >
    > Good to hear that it is working.  I'm wondering if we should still set up
    > a BlazeDS server on our CI VM.  I found the exec.war workflow a bit
    > cumbersome to debug in.  I don't know any way to patch the JS files without
    > building both parts of the example again.  If we had a BlazeDS set up,
    > wouldn't the WAR files be expanded so you could tweak files on the file
    > system?
    >
    > Thoughts?
    > -Alex
    >
    > On 4/20/18, 11:51 AM, "Carlos Rovira" <ca...@apache.org> wrote:
    >
    >     Thanks Alex, I tried and is working! :)
    >
    >     I tried using mvn spring-boot:run, and while I have access to flex
    >     services, the static files was never accesible.
    >     Still is a mystery for me what's going wrong , or the difference from
    > both
    >     ways to run the app.
    >
    >     Anyway, we have AMF working again and I think now is more easy to
    > develop
    >     more a more examples to see if something is not working
    >
    >     thanks! :)
    >
    >
    >
    >     2018-04-20 17:34 GMT+02:00 Alex Harui <ah...@adobe.com.invalid>:
    >
    >     > Hi Carlos,
    >     >
    >     > I am using the Spring Boot executable WAR (with Jetty) instead of
    > TomCat.
    >     >
    >     > The Maven build results in a "sampleamfweb-app-0.9.3-
    > SNAPSHOT-exec.war"
    >     > file.
    >     > I run "java -jar sampleamfweb-app-0.9.3-SNAPSHOT-exec.war and it
    > spins up
    >     > the Jetty server.
    >     >
    >     > If you run "jar -tf sampleamfweb-app-0.9.3-SNAPSHOT-exec.war", it
    > will
    >     > dump out the files in the war.   You should see that index.html and
    > App.js
    >     > and App.css are in the "public" folder.  That was the commit I pushed
    >     > yesterday.  And that then should result in hitting
    >     > localhost:8080/index.html and running the RemoteObjectAMFTest.
    >     >
    >     > HTH,
    >     > -Alex
    >     >
    >     > On 4/20/18, 3:06 AM, "Carlos Rovira" <ca...@apache.org>
    > wrote:
    >     >
    >     >     Hi Alex,
    >     >
    >     >     I'm trying this but I don't get localhost:808/index.html to
    > work. Is
    >     >     working for you in jetty embedded server? or you try it in an
    > external
    >     >     tomcat maybe?
    >     >
    >     >     if is in jetty, I think is not working, maybe in tomcat is ok
    >     >
    >     >     Could you share how are you doing or some steps so I can
    > reproduce it?
    >     > I'd
    >     >     like to close this a continue with other things.
    >     >
    >     >     thanks!
    >     >
    >     >
    >     >     2018-04-20 1:58 GMT+02:00 Alex Harui <ah...@adobe.com.invalid>:
    >     >
    >     >     > Hi Carlos,
    >     >     >
    >     >     > Thanks for figuring out the server side.  I just pushed a
    > change
    >     > that puts
    >     >     > the RemoteObjectAMFTest into a public folder in the
    > SampleAmfWebApp
    >     > WAR
    >     >     > which then allows the -exec.WAR to show the
    > RemoteObjectAMFTest in
    >     > the
    >     >     > browser as localhost:8080/index.html
    >     >     >
    >     >     > And then a test of the release output for issue #189 seems to
    > work
    >     > for me.
    >     >     >
    >     >     > Later,
    >     >     > -Alex
    >     >     >
    >     >     > On 4/19/18, 2:46 PM, "carlos.rovira@gmail.com on behalf of
    > Carlos
    >     > Rovira"
    >     >     > <carlos.rovira@gmail.com on behalf of carlosrovira@apache.org>
    >     > wrote:
    >     >     >
    >     >     > >Piotr,
    >     >     > >
    >     >     > >just fix SampleAmfWebApp. It was not working until now. Steps
    > to do:
    >     >     > >
    >     >     > >1) build "examples/RemoteObjectAMFTest" with standard "mvn
    > clean
    >     > install"
    >     >     > >
    >     >     > >2) build "amf/SampleAmfWebApp" with standard "mvn clean
    > install"
    >     >     > >
    >     >     > >3) in "amf/SampleAmfWebApp" run embedded jetty webserver with
    > "mvn
    >     > spring-
    >     >     > >boot:run". (this creates a jetty instance with the web app
    > running
    >     > in
    >     >     > >http://localhost:8080
    >     >     > >
    >     >     > >At this point although I fix the overlay of
    > RemoteObjectAMFTest
    >     > over Sa
    >     >     > >mpleAmfWebApp (the plugin had a bug that was setting wrong
    > slashes
    >     > that
    >     >     > >prevents to copy root resources to the war), I don't find the
    > right
    >     >     > >contextPath to write in browser...or maybe something more is
    > needed
    >     > in the
    >     >     > >war.
    >     >     > >
    >     >     > >Anyway,
    >     >     > >
    >     >     > >4) Go to "examples/RemoteObjectAMFTest/target/bin" and then
    > to
    >     > js-debug
    >     >     > >or
    >     >     > >js-release, depending on what you build and run "index.html"
    >     >     > >
    >     >     > >that opens the sample in your browser
    >     >     > >
    >     >     > >Since you're not inside the right context, you'll need to
    > remove
    >     > access
    >     >     > >restrictions. I did this in Safari and I was able to
    > communicate
    >     >     > >successfully against SampleAmfWebApp and send and receive all
    > AMF
    >     > data
    >     >     > >that
    >     >     > >we have in the example.
    >     >     > >
    >     >     > >Now, to end this, I only need to find why localhost:8080 is
    > not
    >     >     > >showing RemoteObjectAMFTest
    >     >     > >in the browser. With this I think we have the example
    > finished, and
    >     > we can
    >     >     > >make more kinds of AMF calls and try what could be failing,
    > or if
    >     > all kind
    >     >     > >of communications are working
    >     >     > >
    >     >     > >
    >     >     > >
    >     >     > >2018-04-17 23:32 GMT+02:00 Carlos Rovira <
    > carlosrovira@apache.org>:
    >     >     > >
    >     >     > >> Hi Piotr,
    >     >     > >>
    >     >     > >> in order to provide you with instructions I should try to
    >     > reproduce it
    >     >     > >> myself now, a year has passed without touching anything and
    >     > sincerely
    >     >     > >>can't
    >     >     > >> remember the tricks, ins and outs of the process. I think
    > tomcat
    >     > didn't
    >     >     > >> work for me. Chris made a web app with spring root that was
    >     > launching a
    >     >     > >> jetty instance if I can recall correctly. I'll try it now
    > and
    >     > report
    >     >     > >>here
    >     >     > >>
    >     >     > >> 2018-04-17 21:10 GMT+02:00 Piotr Zarzycki <
    >     > piotrzarzycki21@gmail.com>:
    >     >     > >>
    >     >     > >>> Hi Carlos,
    >     >     > >>>
    >     >     > >>> I looked into your old post on flex dev list, but I cannot
    >     > understand
    >     >     > >>>your
    >     >     > >>> instruction. [1].
    >     >     > >>>
    >     >     > >>> I don't have to much idea about Java. I have Tomcat server
    > up and
    >     >     > >>>running.
    >     >     > >>> Can you describe step by step what should I do in order to
    > run
    >     > example
    >     >     > >>>?
    >     >     > >>>
    >     >     > >>> 1) SampleAmfWebApp - This is building for me, but when I
    > run it
    >     > on
    >     >     > >>>Tomcat
    >     >     > >>> it's showing some exceptions.
    >     >     > >>> 2) I see that you mention some operation copy in post [1],
    > but
    >     > what and
    >     >     > >>> where ?
    >     >     > >>>
    >     >     > >>> Describe it here or on Wiki page - How to run that AMF
    > example.
    >     >     > >>>
    >     >     > >>> [1]
    >     >     > >>>
    >     >     > >>>https://na01.safelinks.protection.outlook.com/?url=
    >     >     > http%3A%2F%2Fapache-f
    >     >     > >>>lex-development.2333347.n4.nabble.com%2FFlexJS-&data=02%
    >     >     > 7C01%7Caharui%40
    >     >     > >>>adobe.com%7C2f695b7d96bf4b2e93ab08d5a63f1d79%
    >     >     > 7Cfa7b1b5a7b34438794aed2c17
    >     >     > >>>8decee1%7C0%7C0%7C636597712369628361&sdata=
    >     >     > aSjquDnbHThQx4awMCz7pMLkW4ci2
    >     >     > >>>FppQyq%2FYQ17yy0%3D&reserved=0
    >     >     > >>> AMF-branch-feature-amf-Starting-the-effort-Special-Thanks-
    >     >     > >>> to-PKumar-td59640.html#a63860
    >     >     > >>>
    >     >     > >>> Thanks in advance!
    >     >     > >>> --
    >     >     > >>>
    >     >     > >>> Piotr Zarzycki
    >     >     > >>>
    >     >     > >>> Patreon:
    >     >     > >>>*https://na01.safelinks.protection.outlook.com/?url=
    >     >     > https%3A%2F%2Fwww.pa
    >     >     > >>>treon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
    >     >     > %7C2f695b7d96
    >     >     > >>>bf4b2e93ab08d5a63f1d79%7Cfa7b1b5a7b34438794aed2c178de
    >     >     > cee1%7C0%7C0%7C6365
    >     >     > >>>97712369628361&sdata=IgdHVt4xZx53PGvq%2B%
    >     > 2B20W87WhFMFqkF2ZC7mLO9HtEI%
    >     >     > 3D&
    >     >     > >>>reserved=0
    >     >     > >>>
    >     >     > >>><https://na01.safelinks.protection.outlook.com/?url=
    >     >     > https%3A%2F%2Fwww.pa
    >     >     > >>>treon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
    >     >     > %7C2f695b7d96
    >     >     > >>>bf4b2e93ab08d5a63f1d79%7Cfa7b1b5a7b34438794aed2c178de
    >     >     > cee1%7C0%7C0%7C6365
    >     >     > >>>97712369628361&sdata=IgdHVt4xZx53PGvq%2B%
    >     > 2B20W87WhFMFqkF2ZC7mLO9HtEI%
    >     >     > 3D&
    >     >     > >>>reserved=0>*
    >     >     > >>>
    >     >     > >>
    >     >     > >>
    >     >     > >>
    >     >     > >> --
    >     >     > >> Carlos Rovira
    >     >     > >>
    >     >     > >>https://na01.safelinks.protection.outlook.com/?url=
    >     >     > http%3A%2F%2Fabout.me%
    >     >     > >>2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%
    >     >     > 7C2f695b7d96bf4b2e93ab08
    >     >     > >>d5a63f1d79%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
    >     >     > 7C63659771236962836
    >     >     > >>1&sdata=OVlULJ9%2B3A9VIj5F3SGMgtLV3cMo0jZgTQII
    >     > wqcGukA%3D&reserved=0
    >     >     > >>
    >     >     > >>
    >     >     >
    >     >     >
    >     >
    >     >
    >     >     --
    >     >     Carlos Rovira
    >     >     https://na01.safelinks.protection.outlook.com/?url=
    >     > http%3A%2F%2Fabout.me%2Fcarlosrovira&data=02%7C01%7Caharui%
    > 40adobe.com%
    >     > 7Cd4e1dd6773084acae49a08d5a6a664f8%7Cfa7b1b5a7b34438794aed2c178de
    >     > cee1%7C0%7C0%7C636598155971030308&sdata=Ey7Ai7YIgZWjQu%
    >     > 2B451QhYu1sdmETLeqr%2BzJSsIRHFrY%3D&reserved=0
    >     >
    >     >
    >     >
    >
    >
    >     --
    >     Carlos Rovira
    >     https://na01.safelinks.protection.outlook.com/?url=
    > http%3A%2F%2Fabout.me%2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%
    > 7C56cef0821cc240055c3608d5a6efb041%7Cfa7b1b5a7b34438794aed2c178de
    > cee1%7C0%7C0%7C636598470770065331&sdata=fvPwSe1qkAK9YODLzPDnVKkp20%
    > 2FZyQzE8jjeqMRJrts%3D&reserved=0
    >
    >
    >
    
    
    -- 
    Carlos Rovira
    https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%7Cf759b0b6d1ae4733c55308d5a6f17aa0%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636598478433560197&sdata=52zbCFkdChmELkwQXsPsIr4QdO%2FwfbUsCxuBVG5tkdc%3D&reserved=0
    


Re: [AMF] How to setup RemoteObjectAMFTest

Posted by Carlos Rovira <ca...@apache.org>.
Hi Alex.

I think is important to demonstrate people coming that we have AMF working.
And the example should be improved to look better and have more
communication examples. I don't think building is a problem, is the working
example what we want to show. I don't understand exactly what you want to
say with the last phrase,  the "problem" with java apps is that are less
amenable at runtime, but I never thought in doing so.

I'll take a look to the CI server later today

thanks!



2018-04-20 20:55 GMT+02:00 Alex Harui <ah...@adobe.com.invalid>:

> Hi Carlos,
>
> Good to hear that it is working.  I'm wondering if we should still set up
> a BlazeDS server on our CI VM.  I found the exec.war workflow a bit
> cumbersome to debug in.  I don't know any way to patch the JS files without
> building both parts of the example again.  If we had a BlazeDS set up,
> wouldn't the WAR files be expanded so you could tweak files on the file
> system?
>
> Thoughts?
> -Alex
>
> On 4/20/18, 11:51 AM, "Carlos Rovira" <ca...@apache.org> wrote:
>
>     Thanks Alex, I tried and is working! :)
>
>     I tried using mvn spring-boot:run, and while I have access to flex
>     services, the static files was never accesible.
>     Still is a mystery for me what's going wrong , or the difference from
> both
>     ways to run the app.
>
>     Anyway, we have AMF working again and I think now is more easy to
> develop
>     more a more examples to see if something is not working
>
>     thanks! :)
>
>
>
>     2018-04-20 17:34 GMT+02:00 Alex Harui <ah...@adobe.com.invalid>:
>
>     > Hi Carlos,
>     >
>     > I am using the Spring Boot executable WAR (with Jetty) instead of
> TomCat.
>     >
>     > The Maven build results in a "sampleamfweb-app-0.9.3-
> SNAPSHOT-exec.war"
>     > file.
>     > I run "java -jar sampleamfweb-app-0.9.3-SNAPSHOT-exec.war and it
> spins up
>     > the Jetty server.
>     >
>     > If you run "jar -tf sampleamfweb-app-0.9.3-SNAPSHOT-exec.war", it
> will
>     > dump out the files in the war.   You should see that index.html and
> App.js
>     > and App.css are in the "public" folder.  That was the commit I pushed
>     > yesterday.  And that then should result in hitting
>     > localhost:8080/index.html and running the RemoteObjectAMFTest.
>     >
>     > HTH,
>     > -Alex
>     >
>     > On 4/20/18, 3:06 AM, "Carlos Rovira" <ca...@apache.org>
> wrote:
>     >
>     >     Hi Alex,
>     >
>     >     I'm trying this but I don't get localhost:808/index.html to
> work. Is
>     >     working for you in jetty embedded server? or you try it in an
> external
>     >     tomcat maybe?
>     >
>     >     if is in jetty, I think is not working, maybe in tomcat is ok
>     >
>     >     Could you share how are you doing or some steps so I can
> reproduce it?
>     > I'd
>     >     like to close this a continue with other things.
>     >
>     >     thanks!
>     >
>     >
>     >     2018-04-20 1:58 GMT+02:00 Alex Harui <ah...@adobe.com.invalid>:
>     >
>     >     > Hi Carlos,
>     >     >
>     >     > Thanks for figuring out the server side.  I just pushed a
> change
>     > that puts
>     >     > the RemoteObjectAMFTest into a public folder in the
> SampleAmfWebApp
>     > WAR
>     >     > which then allows the -exec.WAR to show the
> RemoteObjectAMFTest in
>     > the
>     >     > browser as localhost:8080/index.html
>     >     >
>     >     > And then a test of the release output for issue #189 seems to
> work
>     > for me.
>     >     >
>     >     > Later,
>     >     > -Alex
>     >     >
>     >     > On 4/19/18, 2:46 PM, "carlos.rovira@gmail.com on behalf of
> Carlos
>     > Rovira"
>     >     > <carlos.rovira@gmail.com on behalf of carlosrovira@apache.org>
>     > wrote:
>     >     >
>     >     > >Piotr,
>     >     > >
>     >     > >just fix SampleAmfWebApp. It was not working until now. Steps
> to do:
>     >     > >
>     >     > >1) build "examples/RemoteObjectAMFTest" with standard "mvn
> clean
>     > install"
>     >     > >
>     >     > >2) build "amf/SampleAmfWebApp" with standard "mvn clean
> install"
>     >     > >
>     >     > >3) in "amf/SampleAmfWebApp" run embedded jetty webserver with
> "mvn
>     > spring-
>     >     > >boot:run". (this creates a jetty instance with the web app
> running
>     > in
>     >     > >http://localhost:8080
>     >     > >
>     >     > >At this point although I fix the overlay of
> RemoteObjectAMFTest
>     > over Sa
>     >     > >mpleAmfWebApp (the plugin had a bug that was setting wrong
> slashes
>     > that
>     >     > >prevents to copy root resources to the war), I don't find the
> right
>     >     > >contextPath to write in browser...or maybe something more is
> needed
>     > in the
>     >     > >war.
>     >     > >
>     >     > >Anyway,
>     >     > >
>     >     > >4) Go to "examples/RemoteObjectAMFTest/target/bin" and then
> to
>     > js-debug
>     >     > >or
>     >     > >js-release, depending on what you build and run "index.html"
>     >     > >
>     >     > >that opens the sample in your browser
>     >     > >
>     >     > >Since you're not inside the right context, you'll need to
> remove
>     > access
>     >     > >restrictions. I did this in Safari and I was able to
> communicate
>     >     > >successfully against SampleAmfWebApp and send and receive all
> AMF
>     > data
>     >     > >that
>     >     > >we have in the example.
>     >     > >
>     >     > >Now, to end this, I only need to find why localhost:8080 is
> not
>     >     > >showing RemoteObjectAMFTest
>     >     > >in the browser. With this I think we have the example
> finished, and
>     > we can
>     >     > >make more kinds of AMF calls and try what could be failing,
> or if
>     > all kind
>     >     > >of communications are working
>     >     > >
>     >     > >
>     >     > >
>     >     > >2018-04-17 23:32 GMT+02:00 Carlos Rovira <
> carlosrovira@apache.org>:
>     >     > >
>     >     > >> Hi Piotr,
>     >     > >>
>     >     > >> in order to provide you with instructions I should try to
>     > reproduce it
>     >     > >> myself now, a year has passed without touching anything and
>     > sincerely
>     >     > >>can't
>     >     > >> remember the tricks, ins and outs of the process. I think
> tomcat
>     > didn't
>     >     > >> work for me. Chris made a web app with spring root that was
>     > launching a
>     >     > >> jetty instance if I can recall correctly. I'll try it now
> and
>     > report
>     >     > >>here
>     >     > >>
>     >     > >> 2018-04-17 21:10 GMT+02:00 Piotr Zarzycki <
>     > piotrzarzycki21@gmail.com>:
>     >     > >>
>     >     > >>> Hi Carlos,
>     >     > >>>
>     >     > >>> I looked into your old post on flex dev list, but I cannot
>     > understand
>     >     > >>>your
>     >     > >>> instruction. [1].
>     >     > >>>
>     >     > >>> I don't have to much idea about Java. I have Tomcat server
> up and
>     >     > >>>running.
>     >     > >>> Can you describe step by step what should I do in order to
> run
>     > example
>     >     > >>>?
>     >     > >>>
>     >     > >>> 1) SampleAmfWebApp - This is building for me, but when I
> run it
>     > on
>     >     > >>>Tomcat
>     >     > >>> it's showing some exceptions.
>     >     > >>> 2) I see that you mention some operation copy in post [1],
> but
>     > what and
>     >     > >>> where ?
>     >     > >>>
>     >     > >>> Describe it here or on Wiki page - How to run that AMF
> example.
>     >     > >>>
>     >     > >>> [1]
>     >     > >>>
>     >     > >>>https://na01.safelinks.protection.outlook.com/?url=
>     >     > http%3A%2F%2Fapache-f
>     >     > >>>lex-development.2333347.n4.nabble.com%2FFlexJS-&data=02%
>     >     > 7C01%7Caharui%40
>     >     > >>>adobe.com%7C2f695b7d96bf4b2e93ab08d5a63f1d79%
>     >     > 7Cfa7b1b5a7b34438794aed2c17
>     >     > >>>8decee1%7C0%7C0%7C636597712369628361&sdata=
>     >     > aSjquDnbHThQx4awMCz7pMLkW4ci2
>     >     > >>>FppQyq%2FYQ17yy0%3D&reserved=0
>     >     > >>> AMF-branch-feature-amf-Starting-the-effort-Special-Thanks-
>     >     > >>> to-PKumar-td59640.html#a63860
>     >     > >>>
>     >     > >>> Thanks in advance!
>     >     > >>> --
>     >     > >>>
>     >     > >>> Piotr Zarzycki
>     >     > >>>
>     >     > >>> Patreon:
>     >     > >>>*https://na01.safelinks.protection.outlook.com/?url=
>     >     > https%3A%2F%2Fwww.pa
>     >     > >>>treon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
>     >     > %7C2f695b7d96
>     >     > >>>bf4b2e93ab08d5a63f1d79%7Cfa7b1b5a7b34438794aed2c178de
>     >     > cee1%7C0%7C0%7C6365
>     >     > >>>97712369628361&sdata=IgdHVt4xZx53PGvq%2B%
>     > 2B20W87WhFMFqkF2ZC7mLO9HtEI%
>     >     > 3D&
>     >     > >>>reserved=0
>     >     > >>>
>     >     > >>><https://na01.safelinks.protection.outlook.com/?url=
>     >     > https%3A%2F%2Fwww.pa
>     >     > >>>treon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
>     >     > %7C2f695b7d96
>     >     > >>>bf4b2e93ab08d5a63f1d79%7Cfa7b1b5a7b34438794aed2c178de
>     >     > cee1%7C0%7C0%7C6365
>     >     > >>>97712369628361&sdata=IgdHVt4xZx53PGvq%2B%
>     > 2B20W87WhFMFqkF2ZC7mLO9HtEI%
>     >     > 3D&
>     >     > >>>reserved=0>*
>     >     > >>>
>     >     > >>
>     >     > >>
>     >     > >>
>     >     > >> --
>     >     > >> Carlos Rovira
>     >     > >>
>     >     > >>https://na01.safelinks.protection.outlook.com/?url=
>     >     > http%3A%2F%2Fabout.me%
>     >     > >>2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%
>     >     > 7C2f695b7d96bf4b2e93ab08
>     >     > >>d5a63f1d79%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
>     >     > 7C63659771236962836
>     >     > >>1&sdata=OVlULJ9%2B3A9VIj5F3SGMgtLV3cMo0jZgTQII
>     > wqcGukA%3D&reserved=0
>     >     > >>
>     >     > >>
>     >     >
>     >     >
>     >
>     >
>     >     --
>     >     Carlos Rovira
>     >     https://na01.safelinks.protection.outlook.com/?url=
>     > http%3A%2F%2Fabout.me%2Fcarlosrovira&data=02%7C01%7Caharui%
> 40adobe.com%
>     > 7Cd4e1dd6773084acae49a08d5a6a664f8%7Cfa7b1b5a7b34438794aed2c178de
>     > cee1%7C0%7C0%7C636598155971030308&sdata=Ey7Ai7YIgZWjQu%
>     > 2B451QhYu1sdmETLeqr%2BzJSsIRHFrY%3D&reserved=0
>     >
>     >
>     >
>
>
>     --
>     Carlos Rovira
>     https://na01.safelinks.protection.outlook.com/?url=
> http%3A%2F%2Fabout.me%2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%
> 7C56cef0821cc240055c3608d5a6efb041%7Cfa7b1b5a7b34438794aed2c178de
> cee1%7C0%7C0%7C636598470770065331&sdata=fvPwSe1qkAK9YODLzPDnVKkp20%
> 2FZyQzE8jjeqMRJrts%3D&reserved=0
>
>
>


-- 
Carlos Rovira
http://about.me/carlosrovira

Re: [AMF] How to setup RemoteObjectAMFTest

Posted by Alex Harui <ah...@adobe.com.INVALID>.
Hi Carlos,

Good to hear that it is working.  I'm wondering if we should still set up a BlazeDS server on our CI VM.  I found the exec.war workflow a bit cumbersome to debug in.  I don't know any way to patch the JS files without building both parts of the example again.  If we had a BlazeDS set up, wouldn't the WAR files be expanded so you could tweak files on the file system?

Thoughts?
-Alex

On 4/20/18, 11:51 AM, "Carlos Rovira" <ca...@apache.org> wrote:

    Thanks Alex, I tried and is working! :)
    
    I tried using mvn spring-boot:run, and while I have access to flex
    services, the static files was never accesible.
    Still is a mystery for me what's going wrong , or the difference from both
    ways to run the app.
    
    Anyway, we have AMF working again and I think now is more easy to develop
    more a more examples to see if something is not working
    
    thanks! :)
    
    
    
    2018-04-20 17:34 GMT+02:00 Alex Harui <ah...@adobe.com.invalid>:
    
    > Hi Carlos,
    >
    > I am using the Spring Boot executable WAR (with Jetty) instead of TomCat.
    >
    > The Maven build results in a "sampleamfweb-app-0.9.3-SNAPSHOT-exec.war"
    > file.
    > I run "java -jar sampleamfweb-app-0.9.3-SNAPSHOT-exec.war and it spins up
    > the Jetty server.
    >
    > If you run "jar -tf sampleamfweb-app-0.9.3-SNAPSHOT-exec.war", it will
    > dump out the files in the war.   You should see that index.html and App.js
    > and App.css are in the "public" folder.  That was the commit I pushed
    > yesterday.  And that then should result in hitting
    > localhost:8080/index.html and running the RemoteObjectAMFTest.
    >
    > HTH,
    > -Alex
    >
    > On 4/20/18, 3:06 AM, "Carlos Rovira" <ca...@apache.org> wrote:
    >
    >     Hi Alex,
    >
    >     I'm trying this but I don't get localhost:808/index.html to work. Is
    >     working for you in jetty embedded server? or you try it in an external
    >     tomcat maybe?
    >
    >     if is in jetty, I think is not working, maybe in tomcat is ok
    >
    >     Could you share how are you doing or some steps so I can reproduce it?
    > I'd
    >     like to close this a continue with other things.
    >
    >     thanks!
    >
    >
    >     2018-04-20 1:58 GMT+02:00 Alex Harui <ah...@adobe.com.invalid>:
    >
    >     > Hi Carlos,
    >     >
    >     > Thanks for figuring out the server side.  I just pushed a change
    > that puts
    >     > the RemoteObjectAMFTest into a public folder in the SampleAmfWebApp
    > WAR
    >     > which then allows the -exec.WAR to show the RemoteObjectAMFTest in
    > the
    >     > browser as localhost:8080/index.html
    >     >
    >     > And then a test of the release output for issue #189 seems to work
    > for me.
    >     >
    >     > Later,
    >     > -Alex
    >     >
    >     > On 4/19/18, 2:46 PM, "carlos.rovira@gmail.com on behalf of Carlos
    > Rovira"
    >     > <carlos.rovira@gmail.com on behalf of carlosrovira@apache.org>
    > wrote:
    >     >
    >     > >Piotr,
    >     > >
    >     > >just fix SampleAmfWebApp. It was not working until now. Steps to do:
    >     > >
    >     > >1) build "examples/RemoteObjectAMFTest" with standard "mvn clean
    > install"
    >     > >
    >     > >2) build "amf/SampleAmfWebApp" with standard "mvn clean install"
    >     > >
    >     > >3) in "amf/SampleAmfWebApp" run embedded jetty webserver with "mvn
    > spring-
    >     > >boot:run". (this creates a jetty instance with the web app running
    > in
    >     > >http://localhost:8080
    >     > >
    >     > >At this point although I fix the overlay of RemoteObjectAMFTest
    > over Sa
    >     > >mpleAmfWebApp (the plugin had a bug that was setting wrong slashes
    > that
    >     > >prevents to copy root resources to the war), I don't find the right
    >     > >contextPath to write in browser...or maybe something more is needed
    > in the
    >     > >war.
    >     > >
    >     > >Anyway,
    >     > >
    >     > >4) Go to "examples/RemoteObjectAMFTest/target/bin" and then to
    > js-debug
    >     > >or
    >     > >js-release, depending on what you build and run "index.html"
    >     > >
    >     > >that opens the sample in your browser
    >     > >
    >     > >Since you're not inside the right context, you'll need to remove
    > access
    >     > >restrictions. I did this in Safari and I was able to communicate
    >     > >successfully against SampleAmfWebApp and send and receive all AMF
    > data
    >     > >that
    >     > >we have in the example.
    >     > >
    >     > >Now, to end this, I only need to find why localhost:8080 is not
    >     > >showing RemoteObjectAMFTest
    >     > >in the browser. With this I think we have the example finished, and
    > we can
    >     > >make more kinds of AMF calls and try what could be failing, or if
    > all kind
    >     > >of communications are working
    >     > >
    >     > >
    >     > >
    >     > >2018-04-17 23:32 GMT+02:00 Carlos Rovira <ca...@apache.org>:
    >     > >
    >     > >> Hi Piotr,
    >     > >>
    >     > >> in order to provide you with instructions I should try to
    > reproduce it
    >     > >> myself now, a year has passed without touching anything and
    > sincerely
    >     > >>can't
    >     > >> remember the tricks, ins and outs of the process. I think tomcat
    > didn't
    >     > >> work for me. Chris made a web app with spring root that was
    > launching a
    >     > >> jetty instance if I can recall correctly. I'll try it now and
    > report
    >     > >>here
    >     > >>
    >     > >> 2018-04-17 21:10 GMT+02:00 Piotr Zarzycki <
    > piotrzarzycki21@gmail.com>:
    >     > >>
    >     > >>> Hi Carlos,
    >     > >>>
    >     > >>> I looked into your old post on flex dev list, but I cannot
    > understand
    >     > >>>your
    >     > >>> instruction. [1].
    >     > >>>
    >     > >>> I don't have to much idea about Java. I have Tomcat server up and
    >     > >>>running.
    >     > >>> Can you describe step by step what should I do in order to run
    > example
    >     > >>>?
    >     > >>>
    >     > >>> 1) SampleAmfWebApp - This is building for me, but when I run it
    > on
    >     > >>>Tomcat
    >     > >>> it's showing some exceptions.
    >     > >>> 2) I see that you mention some operation copy in post [1], but
    > what and
    >     > >>> where ?
    >     > >>>
    >     > >>> Describe it here or on Wiki page - How to run that AMF example.
    >     > >>>
    >     > >>> [1]
    >     > >>>
    >     > >>>https://na01.safelinks.protection.outlook.com/?url=
    >     > http%3A%2F%2Fapache-f
    >     > >>>lex-development.2333347.n4.nabble.com%2FFlexJS-&data=02%
    >     > 7C01%7Caharui%40
    >     > >>>adobe.com%7C2f695b7d96bf4b2e93ab08d5a63f1d79%
    >     > 7Cfa7b1b5a7b34438794aed2c17
    >     > >>>8decee1%7C0%7C0%7C636597712369628361&sdata=
    >     > aSjquDnbHThQx4awMCz7pMLkW4ci2
    >     > >>>FppQyq%2FYQ17yy0%3D&reserved=0
    >     > >>> AMF-branch-feature-amf-Starting-the-effort-Special-Thanks-
    >     > >>> to-PKumar-td59640.html#a63860
    >     > >>>
    >     > >>> Thanks in advance!
    >     > >>> --
    >     > >>>
    >     > >>> Piotr Zarzycki
    >     > >>>
    >     > >>> Patreon:
    >     > >>>*https://na01.safelinks.protection.outlook.com/?url=
    >     > https%3A%2F%2Fwww.pa
    >     > >>>treon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
    >     > %7C2f695b7d96
    >     > >>>bf4b2e93ab08d5a63f1d79%7Cfa7b1b5a7b34438794aed2c178de
    >     > cee1%7C0%7C0%7C6365
    >     > >>>97712369628361&sdata=IgdHVt4xZx53PGvq%2B%
    > 2B20W87WhFMFqkF2ZC7mLO9HtEI%
    >     > 3D&
    >     > >>>reserved=0
    >     > >>>
    >     > >>><https://na01.safelinks.protection.outlook.com/?url=
    >     > https%3A%2F%2Fwww.pa
    >     > >>>treon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
    >     > %7C2f695b7d96
    >     > >>>bf4b2e93ab08d5a63f1d79%7Cfa7b1b5a7b34438794aed2c178de
    >     > cee1%7C0%7C0%7C6365
    >     > >>>97712369628361&sdata=IgdHVt4xZx53PGvq%2B%
    > 2B20W87WhFMFqkF2ZC7mLO9HtEI%
    >     > 3D&
    >     > >>>reserved=0>*
    >     > >>>
    >     > >>
    >     > >>
    >     > >>
    >     > >> --
    >     > >> Carlos Rovira
    >     > >>
    >     > >>https://na01.safelinks.protection.outlook.com/?url=
    >     > http%3A%2F%2Fabout.me%
    >     > >>2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%
    >     > 7C2f695b7d96bf4b2e93ab08
    >     > >>d5a63f1d79%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
    >     > 7C63659771236962836
    >     > >>1&sdata=OVlULJ9%2B3A9VIj5F3SGMgtLV3cMo0jZgTQII
    > wqcGukA%3D&reserved=0
    >     > >>
    >     > >>
    >     >
    >     >
    >
    >
    >     --
    >     Carlos Rovira
    >     https://na01.safelinks.protection.outlook.com/?url=
    > http%3A%2F%2Fabout.me%2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%
    > 7Cd4e1dd6773084acae49a08d5a6a664f8%7Cfa7b1b5a7b34438794aed2c178de
    > cee1%7C0%7C0%7C636598155971030308&sdata=Ey7Ai7YIgZWjQu%
    > 2B451QhYu1sdmETLeqr%2BzJSsIRHFrY%3D&reserved=0
    >
    >
    >
    
    
    -- 
    Carlos Rovira
    https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%7C56cef0821cc240055c3608d5a6efb041%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636598470770065331&sdata=fvPwSe1qkAK9YODLzPDnVKkp20%2FZyQzE8jjeqMRJrts%3D&reserved=0
    


Re: [AMF] How to setup RemoteObjectAMFTest

Posted by Carlos Rovira <ca...@apache.org>.
Thanks Alex, I tried and is working! :)

I tried using mvn spring-boot:run, and while I have access to flex
services, the static files was never accesible.
Still is a mystery for me what's going wrong , or the difference from both
ways to run the app.

Anyway, we have AMF working again and I think now is more easy to develop
more a more examples to see if something is not working

thanks! :)



2018-04-20 17:34 GMT+02:00 Alex Harui <ah...@adobe.com.invalid>:

> Hi Carlos,
>
> I am using the Spring Boot executable WAR (with Jetty) instead of TomCat.
>
> The Maven build results in a "sampleamfweb-app-0.9.3-SNAPSHOT-exec.war"
> file.
> I run "java -jar sampleamfweb-app-0.9.3-SNAPSHOT-exec.war and it spins up
> the Jetty server.
>
> If you run "jar -tf sampleamfweb-app-0.9.3-SNAPSHOT-exec.war", it will
> dump out the files in the war.   You should see that index.html and App.js
> and App.css are in the "public" folder.  That was the commit I pushed
> yesterday.  And that then should result in hitting
> localhost:8080/index.html and running the RemoteObjectAMFTest.
>
> HTH,
> -Alex
>
> On 4/20/18, 3:06 AM, "Carlos Rovira" <ca...@apache.org> wrote:
>
>     Hi Alex,
>
>     I'm trying this but I don't get localhost:808/index.html to work. Is
>     working for you in jetty embedded server? or you try it in an external
>     tomcat maybe?
>
>     if is in jetty, I think is not working, maybe in tomcat is ok
>
>     Could you share how are you doing or some steps so I can reproduce it?
> I'd
>     like to close this a continue with other things.
>
>     thanks!
>
>
>     2018-04-20 1:58 GMT+02:00 Alex Harui <ah...@adobe.com.invalid>:
>
>     > Hi Carlos,
>     >
>     > Thanks for figuring out the server side.  I just pushed a change
> that puts
>     > the RemoteObjectAMFTest into a public folder in the SampleAmfWebApp
> WAR
>     > which then allows the -exec.WAR to show the RemoteObjectAMFTest in
> the
>     > browser as localhost:8080/index.html
>     >
>     > And then a test of the release output for issue #189 seems to work
> for me.
>     >
>     > Later,
>     > -Alex
>     >
>     > On 4/19/18, 2:46 PM, "carlos.rovira@gmail.com on behalf of Carlos
> Rovira"
>     > <carlos.rovira@gmail.com on behalf of carlosrovira@apache.org>
> wrote:
>     >
>     > >Piotr,
>     > >
>     > >just fix SampleAmfWebApp. It was not working until now. Steps to do:
>     > >
>     > >1) build "examples/RemoteObjectAMFTest" with standard "mvn clean
> install"
>     > >
>     > >2) build "amf/SampleAmfWebApp" with standard "mvn clean install"
>     > >
>     > >3) in "amf/SampleAmfWebApp" run embedded jetty webserver with "mvn
> spring-
>     > >boot:run". (this creates a jetty instance with the web app running
> in
>     > >http://localhost:8080
>     > >
>     > >At this point although I fix the overlay of RemoteObjectAMFTest
> over Sa
>     > >mpleAmfWebApp (the plugin had a bug that was setting wrong slashes
> that
>     > >prevents to copy root resources to the war), I don't find the right
>     > >contextPath to write in browser...or maybe something more is needed
> in the
>     > >war.
>     > >
>     > >Anyway,
>     > >
>     > >4) Go to "examples/RemoteObjectAMFTest/target/bin" and then to
> js-debug
>     > >or
>     > >js-release, depending on what you build and run "index.html"
>     > >
>     > >that opens the sample in your browser
>     > >
>     > >Since you're not inside the right context, you'll need to remove
> access
>     > >restrictions. I did this in Safari and I was able to communicate
>     > >successfully against SampleAmfWebApp and send and receive all AMF
> data
>     > >that
>     > >we have in the example.
>     > >
>     > >Now, to end this, I only need to find why localhost:8080 is not
>     > >showing RemoteObjectAMFTest
>     > >in the browser. With this I think we have the example finished, and
> we can
>     > >make more kinds of AMF calls and try what could be failing, or if
> all kind
>     > >of communications are working
>     > >
>     > >
>     > >
>     > >2018-04-17 23:32 GMT+02:00 Carlos Rovira <ca...@apache.org>:
>     > >
>     > >> Hi Piotr,
>     > >>
>     > >> in order to provide you with instructions I should try to
> reproduce it
>     > >> myself now, a year has passed without touching anything and
> sincerely
>     > >>can't
>     > >> remember the tricks, ins and outs of the process. I think tomcat
> didn't
>     > >> work for me. Chris made a web app with spring root that was
> launching a
>     > >> jetty instance if I can recall correctly. I'll try it now and
> report
>     > >>here
>     > >>
>     > >> 2018-04-17 21:10 GMT+02:00 Piotr Zarzycki <
> piotrzarzycki21@gmail.com>:
>     > >>
>     > >>> Hi Carlos,
>     > >>>
>     > >>> I looked into your old post on flex dev list, but I cannot
> understand
>     > >>>your
>     > >>> instruction. [1].
>     > >>>
>     > >>> I don't have to much idea about Java. I have Tomcat server up and
>     > >>>running.
>     > >>> Can you describe step by step what should I do in order to run
> example
>     > >>>?
>     > >>>
>     > >>> 1) SampleAmfWebApp - This is building for me, but when I run it
> on
>     > >>>Tomcat
>     > >>> it's showing some exceptions.
>     > >>> 2) I see that you mention some operation copy in post [1], but
> what and
>     > >>> where ?
>     > >>>
>     > >>> Describe it here or on Wiki page - How to run that AMF example.
>     > >>>
>     > >>> [1]
>     > >>>
>     > >>>https://na01.safelinks.protection.outlook.com/?url=
>     > http%3A%2F%2Fapache-f
>     > >>>lex-development.2333347.n4.nabble.com%2FFlexJS-&data=02%
>     > 7C01%7Caharui%40
>     > >>>adobe.com%7C2f695b7d96bf4b2e93ab08d5a63f1d79%
>     > 7Cfa7b1b5a7b34438794aed2c17
>     > >>>8decee1%7C0%7C0%7C636597712369628361&sdata=
>     > aSjquDnbHThQx4awMCz7pMLkW4ci2
>     > >>>FppQyq%2FYQ17yy0%3D&reserved=0
>     > >>> AMF-branch-feature-amf-Starting-the-effort-Special-Thanks-
>     > >>> to-PKumar-td59640.html#a63860
>     > >>>
>     > >>> Thanks in advance!
>     > >>> --
>     > >>>
>     > >>> Piotr Zarzycki
>     > >>>
>     > >>> Patreon:
>     > >>>*https://na01.safelinks.protection.outlook.com/?url=
>     > https%3A%2F%2Fwww.pa
>     > >>>treon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
>     > %7C2f695b7d96
>     > >>>bf4b2e93ab08d5a63f1d79%7Cfa7b1b5a7b34438794aed2c178de
>     > cee1%7C0%7C0%7C6365
>     > >>>97712369628361&sdata=IgdHVt4xZx53PGvq%2B%
> 2B20W87WhFMFqkF2ZC7mLO9HtEI%
>     > 3D&
>     > >>>reserved=0
>     > >>>
>     > >>><https://na01.safelinks.protection.outlook.com/?url=
>     > https%3A%2F%2Fwww.pa
>     > >>>treon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
>     > %7C2f695b7d96
>     > >>>bf4b2e93ab08d5a63f1d79%7Cfa7b1b5a7b34438794aed2c178de
>     > cee1%7C0%7C0%7C6365
>     > >>>97712369628361&sdata=IgdHVt4xZx53PGvq%2B%
> 2B20W87WhFMFqkF2ZC7mLO9HtEI%
>     > 3D&
>     > >>>reserved=0>*
>     > >>>
>     > >>
>     > >>
>     > >>
>     > >> --
>     > >> Carlos Rovira
>     > >>
>     > >>https://na01.safelinks.protection.outlook.com/?url=
>     > http%3A%2F%2Fabout.me%
>     > >>2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%
>     > 7C2f695b7d96bf4b2e93ab08
>     > >>d5a63f1d79%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
>     > 7C63659771236962836
>     > >>1&sdata=OVlULJ9%2B3A9VIj5F3SGMgtLV3cMo0jZgTQII
> wqcGukA%3D&reserved=0
>     > >>
>     > >>
>     >
>     >
>
>
>     --
>     Carlos Rovira
>     https://na01.safelinks.protection.outlook.com/?url=
> http%3A%2F%2Fabout.me%2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%
> 7Cd4e1dd6773084acae49a08d5a6a664f8%7Cfa7b1b5a7b34438794aed2c178de
> cee1%7C0%7C0%7C636598155971030308&sdata=Ey7Ai7YIgZWjQu%
> 2B451QhYu1sdmETLeqr%2BzJSsIRHFrY%3D&reserved=0
>
>
>


-- 
Carlos Rovira
http://about.me/carlosrovira

Re: [AMF] How to setup RemoteObjectAMFTest

Posted by Alex Harui <ah...@adobe.com.INVALID>.
Hi Carlos,

I am using the Spring Boot executable WAR (with Jetty) instead of TomCat.

The Maven build results in a "sampleamfweb-app-0.9.3-SNAPSHOT-exec.war" file.
I run "java -jar sampleamfweb-app-0.9.3-SNAPSHOT-exec.war and it spins up the Jetty server.

If you run "jar -tf sampleamfweb-app-0.9.3-SNAPSHOT-exec.war", it will dump out the files in the war.   You should see that index.html and App.js and App.css are in the "public" folder.  That was the commit I pushed yesterday.  And that then should result in hitting localhost:8080/index.html and running the RemoteObjectAMFTest.

HTH,
-Alex

On 4/20/18, 3:06 AM, "Carlos Rovira" <ca...@apache.org> wrote:

    Hi Alex,
    
    I'm trying this but I don't get localhost:808/index.html to work. Is
    working for you in jetty embedded server? or you try it in an external
    tomcat maybe?
    
    if is in jetty, I think is not working, maybe in tomcat is ok
    
    Could you share how are you doing or some steps so I can reproduce it? I'd
    like to close this a continue with other things.
    
    thanks!
    
    
    2018-04-20 1:58 GMT+02:00 Alex Harui <ah...@adobe.com.invalid>:
    
    > Hi Carlos,
    >
    > Thanks for figuring out the server side.  I just pushed a change that puts
    > the RemoteObjectAMFTest into a public folder in the SampleAmfWebApp WAR
    > which then allows the -exec.WAR to show the RemoteObjectAMFTest in the
    > browser as localhost:8080/index.html
    >
    > And then a test of the release output for issue #189 seems to work for me.
    >
    > Later,
    > -Alex
    >
    > On 4/19/18, 2:46 PM, "carlos.rovira@gmail.com on behalf of Carlos Rovira"
    > <carlos.rovira@gmail.com on behalf of carlosrovira@apache.org> wrote:
    >
    > >Piotr,
    > >
    > >just fix SampleAmfWebApp. It was not working until now. Steps to do:
    > >
    > >1) build "examples/RemoteObjectAMFTest" with standard "mvn clean install"
    > >
    > >2) build "amf/SampleAmfWebApp" with standard "mvn clean install"
    > >
    > >3) in "amf/SampleAmfWebApp" run embedded jetty webserver with "mvn spring-
    > >boot:run". (this creates a jetty instance with the web app running in
    > >http://localhost:8080
    > >
    > >At this point although I fix the overlay of RemoteObjectAMFTest over Sa
    > >mpleAmfWebApp (the plugin had a bug that was setting wrong slashes that
    > >prevents to copy root resources to the war), I don't find the right
    > >contextPath to write in browser...or maybe something more is needed in the
    > >war.
    > >
    > >Anyway,
    > >
    > >4) Go to "examples/RemoteObjectAMFTest/target/bin" and then to  js-debug
    > >or
    > >js-release, depending on what you build and run "index.html"
    > >
    > >that opens the sample in your browser
    > >
    > >Since you're not inside the right context, you'll need to remove access
    > >restrictions. I did this in Safari and I was able to communicate
    > >successfully against SampleAmfWebApp and send and receive all AMF data
    > >that
    > >we have in the example.
    > >
    > >Now, to end this, I only need to find why localhost:8080 is not
    > >showing RemoteObjectAMFTest
    > >in the browser. With this I think we have the example finished, and we can
    > >make more kinds of AMF calls and try what could be failing, or if all kind
    > >of communications are working
    > >
    > >
    > >
    > >2018-04-17 23:32 GMT+02:00 Carlos Rovira <ca...@apache.org>:
    > >
    > >> Hi Piotr,
    > >>
    > >> in order to provide you with instructions I should try to reproduce it
    > >> myself now, a year has passed without touching anything and sincerely
    > >>can't
    > >> remember the tricks, ins and outs of the process. I think tomcat didn't
    > >> work for me. Chris made a web app with spring root that was launching a
    > >> jetty instance if I can recall correctly. I'll try it now and report
    > >>here
    > >>
    > >> 2018-04-17 21:10 GMT+02:00 Piotr Zarzycki <pi...@gmail.com>:
    > >>
    > >>> Hi Carlos,
    > >>>
    > >>> I looked into your old post on flex dev list, but I cannot understand
    > >>>your
    > >>> instruction. [1].
    > >>>
    > >>> I don't have to much idea about Java. I have Tomcat server up and
    > >>>running.
    > >>> Can you describe step by step what should I do in order to run example
    > >>>?
    > >>>
    > >>> 1) SampleAmfWebApp - This is building for me, but when I run it on
    > >>>Tomcat
    > >>> it's showing some exceptions.
    > >>> 2) I see that you mention some operation copy in post [1], but what and
    > >>> where ?
    > >>>
    > >>> Describe it here or on Wiki page - How to run that AMF example.
    > >>>
    > >>> [1]
    > >>>
    > >>>https://na01.safelinks.protection.outlook.com/?url=
    > http%3A%2F%2Fapache-f
    > >>>lex-development.2333347.n4.nabble.com%2FFlexJS-&data=02%
    > 7C01%7Caharui%40
    > >>>adobe.com%7C2f695b7d96bf4b2e93ab08d5a63f1d79%
    > 7Cfa7b1b5a7b34438794aed2c17
    > >>>8decee1%7C0%7C0%7C636597712369628361&sdata=
    > aSjquDnbHThQx4awMCz7pMLkW4ci2
    > >>>FppQyq%2FYQ17yy0%3D&reserved=0
    > >>> AMF-branch-feature-amf-Starting-the-effort-Special-Thanks-
    > >>> to-PKumar-td59640.html#a63860
    > >>>
    > >>> Thanks in advance!
    > >>> --
    > >>>
    > >>> Piotr Zarzycki
    > >>>
    > >>> Patreon:
    > >>>*https://na01.safelinks.protection.outlook.com/?url=
    > https%3A%2F%2Fwww.pa
    > >>>treon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
    > %7C2f695b7d96
    > >>>bf4b2e93ab08d5a63f1d79%7Cfa7b1b5a7b34438794aed2c178de
    > cee1%7C0%7C0%7C6365
    > >>>97712369628361&sdata=IgdHVt4xZx53PGvq%2B%2B20W87WhFMFqkF2ZC7mLO9HtEI%
    > 3D&
    > >>>reserved=0
    > >>>
    > >>><https://na01.safelinks.protection.outlook.com/?url=
    > https%3A%2F%2Fwww.pa
    > >>>treon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
    > %7C2f695b7d96
    > >>>bf4b2e93ab08d5a63f1d79%7Cfa7b1b5a7b34438794aed2c178de
    > cee1%7C0%7C0%7C6365
    > >>>97712369628361&sdata=IgdHVt4xZx53PGvq%2B%2B20W87WhFMFqkF2ZC7mLO9HtEI%
    > 3D&
    > >>>reserved=0>*
    > >>>
    > >>
    > >>
    > >>
    > >> --
    > >> Carlos Rovira
    > >>
    > >>https://na01.safelinks.protection.outlook.com/?url=
    > http%3A%2F%2Fabout.me%
    > >>2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%
    > 7C2f695b7d96bf4b2e93ab08
    > >>d5a63f1d79%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
    > 7C63659771236962836
    > >>1&sdata=OVlULJ9%2B3A9VIj5F3SGMgtLV3cMo0jZgTQIIwqcGukA%3D&reserved=0
    > >>
    > >>
    >
    >
    
    
    -- 
    Carlos Rovira
    https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%7Cd4e1dd6773084acae49a08d5a6a664f8%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636598155971030308&sdata=Ey7Ai7YIgZWjQu%2B451QhYu1sdmETLeqr%2BzJSsIRHFrY%3D&reserved=0
    


Re: [AMF] How to setup RemoteObjectAMFTest

Posted by Carlos Rovira <ca...@apache.org>.
Hi Alex,

I'm trying this but I don't get localhost:808/index.html to work. Is
working for you in jetty embedded server? or you try it in an external
tomcat maybe?

if is in jetty, I think is not working, maybe in tomcat is ok

Could you share how are you doing or some steps so I can reproduce it? I'd
like to close this a continue with other things.

thanks!


2018-04-20 1:58 GMT+02:00 Alex Harui <ah...@adobe.com.invalid>:

> Hi Carlos,
>
> Thanks for figuring out the server side.  I just pushed a change that puts
> the RemoteObjectAMFTest into a public folder in the SampleAmfWebApp WAR
> which then allows the -exec.WAR to show the RemoteObjectAMFTest in the
> browser as localhost:8080/index.html
>
> And then a test of the release output for issue #189 seems to work for me.
>
> Later,
> -Alex
>
> On 4/19/18, 2:46 PM, "carlos.rovira@gmail.com on behalf of Carlos Rovira"
> <carlos.rovira@gmail.com on behalf of carlosrovira@apache.org> wrote:
>
> >Piotr,
> >
> >just fix SampleAmfWebApp. It was not working until now. Steps to do:
> >
> >1) build "examples/RemoteObjectAMFTest" with standard "mvn clean install"
> >
> >2) build "amf/SampleAmfWebApp" with standard "mvn clean install"
> >
> >3) in "amf/SampleAmfWebApp" run embedded jetty webserver with "mvn spring-
> >boot:run". (this creates a jetty instance with the web app running in
> >http://localhost:8080
> >
> >At this point although I fix the overlay of RemoteObjectAMFTest over Sa
> >mpleAmfWebApp (the plugin had a bug that was setting wrong slashes that
> >prevents to copy root resources to the war), I don't find the right
> >contextPath to write in browser...or maybe something more is needed in the
> >war.
> >
> >Anyway,
> >
> >4) Go to "examples/RemoteObjectAMFTest/target/bin" and then to  js-debug
> >or
> >js-release, depending on what you build and run "index.html"
> >
> >that opens the sample in your browser
> >
> >Since you're not inside the right context, you'll need to remove access
> >restrictions. I did this in Safari and I was able to communicate
> >successfully against SampleAmfWebApp and send and receive all AMF data
> >that
> >we have in the example.
> >
> >Now, to end this, I only need to find why localhost:8080 is not
> >showing RemoteObjectAMFTest
> >in the browser. With this I think we have the example finished, and we can
> >make more kinds of AMF calls and try what could be failing, or if all kind
> >of communications are working
> >
> >
> >
> >2018-04-17 23:32 GMT+02:00 Carlos Rovira <ca...@apache.org>:
> >
> >> Hi Piotr,
> >>
> >> in order to provide you with instructions I should try to reproduce it
> >> myself now, a year has passed without touching anything and sincerely
> >>can't
> >> remember the tricks, ins and outs of the process. I think tomcat didn't
> >> work for me. Chris made a web app with spring root that was launching a
> >> jetty instance if I can recall correctly. I'll try it now and report
> >>here
> >>
> >> 2018-04-17 21:10 GMT+02:00 Piotr Zarzycki <pi...@gmail.com>:
> >>
> >>> Hi Carlos,
> >>>
> >>> I looked into your old post on flex dev list, but I cannot understand
> >>>your
> >>> instruction. [1].
> >>>
> >>> I don't have to much idea about Java. I have Tomcat server up and
> >>>running.
> >>> Can you describe step by step what should I do in order to run example
> >>>?
> >>>
> >>> 1) SampleAmfWebApp - This is building for me, but when I run it on
> >>>Tomcat
> >>> it's showing some exceptions.
> >>> 2) I see that you mention some operation copy in post [1], but what and
> >>> where ?
> >>>
> >>> Describe it here or on Wiki page - How to run that AMF example.
> >>>
> >>> [1]
> >>>
> >>>https://na01.safelinks.protection.outlook.com/?url=
> http%3A%2F%2Fapache-f
> >>>lex-development.2333347.n4.nabble.com%2FFlexJS-&data=02%
> 7C01%7Caharui%40
> >>>adobe.com%7C2f695b7d96bf4b2e93ab08d5a63f1d79%
> 7Cfa7b1b5a7b34438794aed2c17
> >>>8decee1%7C0%7C0%7C636597712369628361&sdata=
> aSjquDnbHThQx4awMCz7pMLkW4ci2
> >>>FppQyq%2FYQ17yy0%3D&reserved=0
> >>> AMF-branch-feature-amf-Starting-the-effort-Special-Thanks-
> >>> to-PKumar-td59640.html#a63860
> >>>
> >>> Thanks in advance!
> >>> --
> >>>
> >>> Piotr Zarzycki
> >>>
> >>> Patreon:
> >>>*https://na01.safelinks.protection.outlook.com/?url=
> https%3A%2F%2Fwww.pa
> >>>treon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
> %7C2f695b7d96
> >>>bf4b2e93ab08d5a63f1d79%7Cfa7b1b5a7b34438794aed2c178de
> cee1%7C0%7C0%7C6365
> >>>97712369628361&sdata=IgdHVt4xZx53PGvq%2B%2B20W87WhFMFqkF2ZC7mLO9HtEI%
> 3D&
> >>>reserved=0
> >>>
> >>><https://na01.safelinks.protection.outlook.com/?url=
> https%3A%2F%2Fwww.pa
> >>>treon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com
> %7C2f695b7d96
> >>>bf4b2e93ab08d5a63f1d79%7Cfa7b1b5a7b34438794aed2c178de
> cee1%7C0%7C0%7C6365
> >>>97712369628361&sdata=IgdHVt4xZx53PGvq%2B%2B20W87WhFMFqkF2ZC7mLO9HtEI%
> 3D&
> >>>reserved=0>*
> >>>
> >>
> >>
> >>
> >> --
> >> Carlos Rovira
> >>
> >>https://na01.safelinks.protection.outlook.com/?url=
> http%3A%2F%2Fabout.me%
> >>2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%
> 7C2f695b7d96bf4b2e93ab08
> >>d5a63f1d79%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
> 7C63659771236962836
> >>1&sdata=OVlULJ9%2B3A9VIj5F3SGMgtLV3cMo0jZgTQIIwqcGukA%3D&reserved=0
> >>
> >>
>
>


-- 
Carlos Rovira
http://about.me/carlosrovira

Re: [AMF] How to setup RemoteObjectAMFTest

Posted by Alex Harui <ah...@adobe.com.INVALID>.
Hi Carlos,

Thanks for figuring out the server side.  I just pushed a change that puts
the RemoteObjectAMFTest into a public folder in the SampleAmfWebApp WAR
which then allows the -exec.WAR to show the RemoteObjectAMFTest in the
browser as localhost:8080/index.html

And then a test of the release output for issue #189 seems to work for me.

Later,
-Alex

On 4/19/18, 2:46 PM, "carlos.rovira@gmail.com on behalf of Carlos Rovira"
<carlos.rovira@gmail.com on behalf of carlosrovira@apache.org> wrote:

>Piotr,
>
>just fix SampleAmfWebApp. It was not working until now. Steps to do:
>
>1) build "examples/RemoteObjectAMFTest" with standard "mvn clean install"
>
>2) build "amf/SampleAmfWebApp" with standard "mvn clean install"
>
>3) in "amf/SampleAmfWebApp" run embedded jetty webserver with "mvn spring-
>boot:run". (this creates a jetty instance with the web app running in
>http://localhost:8080
>
>At this point although I fix the overlay of RemoteObjectAMFTest over Sa
>mpleAmfWebApp (the plugin had a bug that was setting wrong slashes that
>prevents to copy root resources to the war), I don't find the right
>contextPath to write in browser...or maybe something more is needed in the
>war.
>
>Anyway,
>
>4) Go to "examples/RemoteObjectAMFTest/target/bin" and then to  js-debug
>or
>js-release, depending on what you build and run "index.html"
>
>that opens the sample in your browser
>
>Since you're not inside the right context, you'll need to remove access
>restrictions. I did this in Safari and I was able to communicate
>successfully against SampleAmfWebApp and send and receive all AMF data
>that
>we have in the example.
>
>Now, to end this, I only need to find why localhost:8080 is not
>showing RemoteObjectAMFTest
>in the browser. With this I think we have the example finished, and we can
>make more kinds of AMF calls and try what could be failing, or if all kind
>of communications are working
>
>
>
>2018-04-17 23:32 GMT+02:00 Carlos Rovira <ca...@apache.org>:
>
>> Hi Piotr,
>>
>> in order to provide you with instructions I should try to reproduce it
>> myself now, a year has passed without touching anything and sincerely
>>can't
>> remember the tricks, ins and outs of the process. I think tomcat didn't
>> work for me. Chris made a web app with spring root that was launching a
>> jetty instance if I can recall correctly. I'll try it now and report
>>here
>>
>> 2018-04-17 21:10 GMT+02:00 Piotr Zarzycki <pi...@gmail.com>:
>>
>>> Hi Carlos,
>>>
>>> I looked into your old post on flex dev list, but I cannot understand
>>>your
>>> instruction. [1].
>>>
>>> I don't have to much idea about Java. I have Tomcat server up and
>>>running.
>>> Can you describe step by step what should I do in order to run example
>>>?
>>>
>>> 1) SampleAmfWebApp - This is building for me, but when I run it on
>>>Tomcat
>>> it's showing some exceptions.
>>> 2) I see that you mention some operation copy in post [1], but what and
>>> where ?
>>>
>>> Describe it here or on Wiki page - How to run that AMF example.
>>>
>>> [1]
>>> 
>>>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-f
>>>lex-development.2333347.n4.nabble.com%2FFlexJS-&data=02%7C01%7Caharui%40
>>>adobe.com%7C2f695b7d96bf4b2e93ab08d5a63f1d79%7Cfa7b1b5a7b34438794aed2c17
>>>8decee1%7C0%7C0%7C636597712369628361&sdata=aSjquDnbHThQx4awMCz7pMLkW4ci2
>>>FppQyq%2FYQ17yy0%3D&reserved=0
>>> AMF-branch-feature-amf-Starting-the-effort-Special-Thanks-
>>> to-PKumar-td59640.html#a63860
>>>
>>> Thanks in advance!
>>> --
>>>
>>> Piotr Zarzycki
>>>
>>> Patreon: 
>>>*https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.pa
>>>treon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com%7C2f695b7d96
>>>bf4b2e93ab08d5a63f1d79%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6365
>>>97712369628361&sdata=IgdHVt4xZx53PGvq%2B%2B20W87WhFMFqkF2ZC7mLO9HtEI%3D&
>>>reserved=0
>>> 
>>><https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.pa
>>>treon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com%7C2f695b7d96
>>>bf4b2e93ab08d5a63f1d79%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6365
>>>97712369628361&sdata=IgdHVt4xZx53PGvq%2B%2B20W87WhFMFqkF2ZC7mLO9HtEI%3D&
>>>reserved=0>*
>>>
>>
>>
>>
>> --
>> Carlos Rovira
>> 
>>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%
>>2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%7C2f695b7d96bf4b2e93ab08
>>d5a63f1d79%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C63659771236962836
>>1&sdata=OVlULJ9%2B3A9VIj5F3SGMgtLV3cMo0jZgTQIIwqcGukA%3D&reserved=0
>>
>>


Re: [AMF] How to setup RemoteObjectAMFTest

Posted by Carlos Rovira <ca...@apache.org>.
Hi Radu,

yes, AMF / RemoteObject is ready in Apache Royale.

please check this [1]

and check the two example projects in our repo for client [2] and [3]
server:

Just let you know that ChannelSet does not exists in Apache Royale, but you
don't needed. For example something like this

<js:RemoteObject id="loginService"
                         result="onLoginResult(event)" fault=
"onFault(event)"
                         endPoint = "
http://localhost:8080/mycontext/messagebroker/login"
                         destination = "loginService"/>


is what you will use in Apache Royale.

As well as is stated in [1] remember to turn off small message

[1]
https://github.com/apache/royale-asjs/wiki/Apache-Royale-communication-with-AMF-and-RemoteObject
[2] RemoteObjectAMFTest
<https://github.com/apache/royale-asjs/tree/develop/examples/royale/RemoteObjectAMFTest>
[3] SampleAmfWebApp
<https://github.com/apache/royale-asjs/tree/develop/examples/amf/SampleAmfWebApp>



2018-07-27 16:59 GMT+02:00 radu.flash@gmail.com <ra...@gmail.com>:

> Hello people,
>
>    I have a client a flash player swf that connects to Blaze DS like this:
>
> public var serverSTUB:String = "https://voip-manager.spherecom.com:9443"
> public static var cs:ChannelSet=null;
>
> public function main():void
>                         {
>                                 cs = new ChannelSet();
>                                         streaminAMFChannel = new
> SecureStreamingAMFChannel("my-secure-amf-stream", serverSTUB +
> "/RiaService"
> + "/messagebroker/securestreamingamf");
>                                         amfChannel = new
> SecureAMFChannel("my-secure-amf",serverSTUB +
> "/RiaService" + "/messagebroker/amflongpolling");
>
>                                 amfChannel.requestTimeout = 45;
>                                 //amfChannel.addEventListener(MessageEvent.MESSAGE,
> handleMessageTest);
>                                 cs.heartbeatInterval = 30000;
>                                 cs.addChannel(streaminAMFChannel);
>                                 cs.addChannel(amfChannel);
>
>                         }
>
> protected function onClick(event:MouseEvent=null):void
>                         {
>                                 var user:String = "rbirsan"
>                                 var token:AsyncToken =
> cs.login(user.toUpperCase(), "ThisISWork!");
>                                 token.addResponder(     new AsyncResponder(
> checkAPIVersion,
> handleReauthenticateFault));
>                         }
>
>
>
> Can I make the login process work with Apache Royale JS?
> I have no experience working with it and would appreciate any help.
> Willing to pay,
> Thank you in advance
>
> P.S:
> Service config XML:
> <?xml version="1.0" encoding="UTF-8"?>
> <services-config>
>
>     <services>
>         <default-channels>
>                    <channel ref="my-streaming-amf"/>
>                    <channel ref="my-longpolling-amf"/>
>                    <channel ref="my-amf"/>
>         </default-channels>
>     </services>
>
>     <channels>
>
>         <channel-definition id="my-amf"
> class="mx.messaging.channels.AMFChannel">
>             <endpoint
> url="http://{server.name}:{server.port}/{context.root}/messagebroker/amf"
> class="flex.messaging.endpoints.AMFEndpoint"/>
>         </channel-definition>
>
>
>         <channel-definition id="my-secure-amf"
> class="mx.messaging.channels.SecureAMFChannel">
>             <endpoint
> url="https://{server.name}:{server.port}/{context.root}/
> messagebroker/amfsecure"
> class="flex.messaging.endpoints.SecureAMFEndpoint"/>
>             <properties>
>                 <add-no-cache-headers>false</add-no-cache-headers>
>             </properties>
>         </channel-definition>
>
>
>         <channel-definition id="my-polling-amf"
> class="mx.messaging.channels.AMFChannel">
>             <endpoint
> url="http://{server.name}:{server.port}/{context.root}/
> messagebroker/amfpolling"
> class="flex.messaging.endpoints.AMFEndpoint"/>
>             <properties>
>                 <polling-enabled>true</polling-enabled>
>                 <polling-interval-seconds>4</polling-interval-seconds>
>             </properties>
>         </channel-definition>
>
>
>                 <channel-definition id="my-longpolling-amf"
> class="mx.messaging.channels.AMFChannel">
>                         <endpoint
> url="http://{server.name}:{server.port}/{context.root}/
> messagebroker/amflongpolling"
> class="flex.messaging.endpoints.AMFEndpoint"/>
>                         <properties>
>                                 <polling-enabled>true</polling-enabled>
>                                 <polling-interval-millis>1</
> polling-interval-millis>
>                                 <wait-interval-millis>30000</
> wait-interval-millis>
>                                 <client-wait-interval-millis>
> 1</client-wait-interval-millis>
>                                 <max-waiting-poll-requests>
> 3000</max-waiting-poll-requests>
>                         </properties>
>                 </channel-definition>
>
>
>                  <channel-definition id="my-secure-amf-stream"
>                         class="mx.messaging.channels.
> SecureStreamingAMFChannel">
>                         <endpoint
> url="https://{server.name}:{server.port}/{context.root}/messagebroker/securestreamingamf"
>
>                                 class="flex.messaging.endpoints.
> SecureStreamingAMFEndpoint"/>
>                                 <properties>
>                                         <add-no-cache-headers>false</
> add-no-cache-headers>
>                                         <max-streaming-clients>10000</
> max-streaming-clients>
>
> <server-to-client-heartbeat-millis>5000</server-to-client-
> heartbeat-millis>
>                                         <connect-timeout-seconds>50</
> connect-timeout-seconds>
>                                 </properties>
>                 </channel-definition>
>
>
>         <channel-definition id="my-streaming-amf"
> class="mx.messaging.channels.StreamingAMFChannel">
>             <endpoint
> url="http://{server.name}:{server.port}/{context.root}/
> messagebroker/streamingamf"
> class="flex.messaging.endpoints.StreamingAMFEndpoint"/>
>             <properties>
>                                 <max-streaming-clients>10000</
> max-streaming-clients>
>
> <server-to-client-heartbeat-millis>5000</server-to-client-
> heartbeat-millis>
>                                 <connect-timeout-seconds>50</
> connect-timeout-seconds>
>                         </properties>
>         </channel-definition>
>
>     </channels>
>
>     <security>
>         <security-constraint id="trusted">
>             <roles>
>                 <role>ROLE_USER</role>
>                 <role>ROLE_ADMIN</role>
>             </roles>
>         </security-constraint>
>     </security>
>
>     <logging>
>         <target class="flex.messaging.log.ConsoleTarget" level="Warn">
>             <properties>
>                 <prefix>[BlazeDS] </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>false</enabled>
>         </redeploy>
>     </system>
>
> </services-config>
>
>
>
>
>
>
>
>
>
> --
> Sent from: http://apache-royale-development.20373.n8.nabble.com/
>



-- 
Carlos Rovira
http://about.me/carlosrovira

Re: [AMF] How to setup RemoteObjectAMFTest

Posted by "radu.flash@gmail.com" <ra...@gmail.com>.
Hello people,

   I have a client a flash player swf that connects to Blaze DS like this:

public var serverSTUB:String = "https://voip-manager.spherecom.com:9443"
public static var cs:ChannelSet=null;

public function main():void
			{
				cs = new ChannelSet();
					streaminAMFChannel = new
SecureStreamingAMFChannel("my-secure-amf-stream", serverSTUB + "/RiaService"
+ "/messagebroker/securestreamingamf");
					amfChannel = new SecureAMFChannel("my-secure-amf",serverSTUB +
"/RiaService" + "/messagebroker/amflongpolling");
				
				amfChannel.requestTimeout = 45;
				//amfChannel.addEventListener(MessageEvent.MESSAGE, handleMessageTest);
				cs.heartbeatInterval = 30000;
				cs.addChannel(streaminAMFChannel);
				cs.addChannel(amfChannel);
				
			}

protected function onClick(event:MouseEvent=null):void
			{
				var user:String = "rbirsan"
				var token:AsyncToken = cs.login(user.toUpperCase(), "ThisISWork!");
				token.addResponder(	new AsyncResponder(checkAPIVersion,
handleReauthenticateFault));
			}



Can I make the login process work with Apache Royale JS?
I have no experience working with it and would appreciate any help.
Willing to pay,
Thank you in advance 

P.S: 
Service config XML:
<?xml version="1.0" encoding="UTF-8"?>
<services-config>

    <services>
        <default-channels>
		   <channel ref="my-streaming-amf"/>
		   <channel ref="my-longpolling-amf"/>
		   <channel ref="my-amf"/>
        </default-channels>
    </services>

    <channels>
		
        <channel-definition id="my-amf"
class="mx.messaging.channels.AMFChannel">
            <endpoint
url="http://{server.name}:{server.port}/{context.root}/messagebroker/amf"
class="flex.messaging.endpoints.AMFEndpoint"/>
        </channel-definition>
		
		
        <channel-definition id="my-secure-amf"
class="mx.messaging.channels.SecureAMFChannel">
            <endpoint
url="https://{server.name}:{server.port}/{context.root}/messagebroker/amfsecure"
class="flex.messaging.endpoints.SecureAMFEndpoint"/>
            <properties>
                <add-no-cache-headers>false</add-no-cache-headers>
            </properties>
        </channel-definition>
		
		
        <channel-definition id="my-polling-amf"
class="mx.messaging.channels.AMFChannel">
            <endpoint
url="http://{server.name}:{server.port}/{context.root}/messagebroker/amfpolling"
class="flex.messaging.endpoints.AMFEndpoint"/>
            <properties>
                <polling-enabled>true</polling-enabled>
                <polling-interval-seconds>4</polling-interval-seconds>
            </properties>
        </channel-definition>
        
		
		<channel-definition id="my-longpolling-amf"
class="mx.messaging.channels.AMFChannel">
			<endpoint
url="http://{server.name}:{server.port}/{context.root}/messagebroker/amflongpolling"
class="flex.messaging.endpoints.AMFEndpoint"/>
			<properties>
				<polling-enabled>true</polling-enabled>
				<polling-interval-millis>1</polling-interval-millis>
				<wait-interval-millis>30000</wait-interval-millis>
				<client-wait-interval-millis>1</client-wait-interval-millis>
				<max-waiting-poll-requests>3000</max-waiting-poll-requests>
			</properties>
		</channel-definition>        
		
		
		 <channel-definition id="my-secure-amf-stream"
			class="mx.messaging.channels.SecureStreamingAMFChannel">
			<endpoint
url="https://{server.name}:{server.port}/{context.root}/messagebroker/securestreamingamf" 
				class="flex.messaging.endpoints.SecureStreamingAMFEndpoint"/>
				<properties>
					<add-no-cache-headers>false</add-no-cache-headers>
					<max-streaming-clients>10000</max-streaming-clients>
				
<server-to-client-heartbeat-millis>5000</server-to-client-heartbeat-millis>
					<connect-timeout-seconds>50</connect-timeout-seconds>
				</properties>
		</channel-definition> 
		
		
        <channel-definition id="my-streaming-amf"
class="mx.messaging.channels.StreamingAMFChannel">
            <endpoint
url="http://{server.name}:{server.port}/{context.root}/messagebroker/streamingamf"
class="flex.messaging.endpoints.StreamingAMFEndpoint"/>
            <properties>
				<max-streaming-clients>10000</max-streaming-clients>
			
<server-to-client-heartbeat-millis>5000</server-to-client-heartbeat-millis>
				<connect-timeout-seconds>50</connect-timeout-seconds>
			</properties>
        </channel-definition>

    </channels>
    
    <security>
    	<security-constraint id="trusted">
            <roles>
                <role>ROLE_USER</role>
                <role>ROLE_ADMIN</role>
            </roles>
        </security-constraint>
    </security>

    <logging>
        <target class="flex.messaging.log.ConsoleTarget" level="Warn">
            <properties>
                <prefix>[BlazeDS] </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>false</enabled>
        </redeploy>
    </system>

</services-config>





    



--
Sent from: http://apache-royale-development.20373.n8.nabble.com/

Re: [AMF] How to setup RemoteObjectAMFTest

Posted by Carlos Rovira <ca...@apache.org>.
Hi Piotr,

in our SampleAmfWebApp I want to write in the wiki but as Alex said you
should do in target:

java -jar sampleamfwebapp-0.9.3-SNAPSHOT-exec.war

This will run jetty and deploy the war with the example overplayed. Then in
a browser put http://localhost:8080, and you'll see the example working.

So avoid mvn spring-boot:run, since it doesn't work as expected. As I'm not
a jetty user (I'm more familiar with tomcat), I don't know exactly why.

For Java or PHP (with AMFPHP) you need always to run the client within the
same context that your AMF backend due to how things work and restrictions.
You can disable that restrictions for testing in the browser, but that's a
dev trick ;)
So if your royale app can't communicate with amf running in local, that's
totally ok since is how things should work due to normal restrictions.

If you want you can drop work on AMF, I'll be adding more communication
examples as I have time.

Thanks!


2018-04-23 22:48 GMT+02:00 piotrz <pi...@apache.org>:

> Hi Carlos,
>
> I followed your instruction.
>
> 1) I run spring-boot server
> 2) I have it looks like similar problem as you had with restriction. I have
> no idea how overcome them.
> The second issue is with Access-Control-Allow-Origin.
>
> I have AMF PHP working and I had the same issue with cross origin - I
> couldn't fixed it differently than deploying Example application to place
> where AMF is running.
>
> Anyone have idea how I can fix both issue for JAVA? If it is time consuming
> I will drop work on AMF. I have checked many cases in AMF PHP, so I can
> assume that they should work in connection with JAVA.
>
> Screenshot:
> <http://apache-royale-development.20373.n8.nabble.
> com/file/t1/issues_cross_origin.png>
>
> Thanks,
> Piotr
>
>
>
> --
> Sent from: http://apache-royale-development.20373.n8.nabble.com/
>



-- 
Carlos Rovira
http://about.me/carlosrovira

Re: [AMF] How to setup RemoteObjectAMFTest

Posted by piotrz <pi...@apache.org>.
Hi Carlos,

I followed your instruction. 

1) I run spring-boot server
2) I have it looks like similar problem as you had with restriction. I have
no idea how overcome them. 
The second issue is with Access-Control-Allow-Origin.

I have AMF PHP working and I had the same issue with cross origin - I
couldn't fixed it differently than deploying Example application to place
where AMF is running.

Anyone have idea how I can fix both issue for JAVA? If it is time consuming
I will drop work on AMF. I have checked many cases in AMF PHP, so I can
assume that they should work in connection with JAVA. 

Screenshot:
<http://apache-royale-development.20373.n8.nabble.com/file/t1/issues_cross_origin.png> 

Thanks,
Piotr



--
Sent from: http://apache-royale-development.20373.n8.nabble.com/

Re: [AMF] How to setup RemoteObjectAMFTest

Posted by Carlos Rovira <ca...@apache.org>.
Piotr,

just fix SampleAmfWebApp. It was not working until now. Steps to do:

1) build "examples/RemoteObjectAMFTest" with standard "mvn clean install"

2) build "amf/SampleAmfWebApp" with standard "mvn clean install"

3) in "amf/SampleAmfWebApp" run embedded jetty webserver with "mvn spring-
boot:run". (this creates a jetty instance with the web app running in
http://localhost:8080

At this point although I fix the overlay of RemoteObjectAMFTest over Sa
mpleAmfWebApp (the plugin had a bug that was setting wrong slashes that
prevents to copy root resources to the war), I don't find the right
contextPath to write in browser...or maybe something more is needed in the
war.

Anyway,

4) Go to "examples/RemoteObjectAMFTest/target/bin" and then to  js-debug or
js-release, depending on what you build and run "index.html"

that opens the sample in your browser

Since you're not inside the right context, you'll need to remove access
restrictions. I did this in Safari and I was able to communicate
successfully against SampleAmfWebApp and send and receive all AMF data that
we have in the example.

Now, to end this, I only need to find why localhost:8080 is not
showing RemoteObjectAMFTest
in the browser. With this I think we have the example finished, and we can
make more kinds of AMF calls and try what could be failing, or if all kind
of communications are working



2018-04-17 23:32 GMT+02:00 Carlos Rovira <ca...@apache.org>:

> Hi Piotr,
>
> in order to provide you with instructions I should try to reproduce it
> myself now, a year has passed without touching anything and sincerely can't
> remember the tricks, ins and outs of the process. I think tomcat didn't
> work for me. Chris made a web app with spring root that was launching a
> jetty instance if I can recall correctly. I'll try it now and report here
>
> 2018-04-17 21:10 GMT+02:00 Piotr Zarzycki <pi...@gmail.com>:
>
>> Hi Carlos,
>>
>> I looked into your old post on flex dev list, but I cannot understand your
>> instruction. [1].
>>
>> I don't have to much idea about Java. I have Tomcat server up and running.
>> Can you describe step by step what should I do in order to run example ?
>>
>> 1) SampleAmfWebApp - This is building for me, but when I run it on Tomcat
>> it's showing some exceptions.
>> 2) I see that you mention some operation copy in post [1], but what and
>> where ?
>>
>> Describe it here or on Wiki page - How to run that AMF example.
>>
>> [1]
>> http://apache-flex-development.2333347.n4.nabble.com/FlexJS-
>> AMF-branch-feature-amf-Starting-the-effort-Special-Thanks-
>> to-PKumar-td59640.html#a63860
>>
>> Thanks in advance!
>> --
>>
>> Piotr Zarzycki
>>
>> Patreon: *https://www.patreon.com/piotrzarzycki
>> <https://www.patreon.com/piotrzarzycki>*
>>
>
>
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>
>

Re: [AMF] How to setup RemoteObjectAMFTest

Posted by Carlos Rovira <ca...@apache.org>.
Hi Piotr,

in order to provide you with instructions I should try to reproduce it
myself now, a year has passed without touching anything and sincerely can't
remember the tricks, ins and outs of the process. I think tomcat didn't
work for me. Chris made a web app with spring root that was launching a
jetty instance if I can recall correctly. I'll try it now and report here

2018-04-17 21:10 GMT+02:00 Piotr Zarzycki <pi...@gmail.com>:

> Hi Carlos,
>
> I looked into your old post on flex dev list, but I cannot understand your
> instruction. [1].
>
> I don't have to much idea about Java. I have Tomcat server up and running.
> Can you describe step by step what should I do in order to run example ?
>
> 1) SampleAmfWebApp - This is building for me, but when I run it on Tomcat
> it's showing some exceptions.
> 2) I see that you mention some operation copy in post [1], but what and
> where ?
>
> Describe it here or on Wiki page - How to run that AMF example.
>
> [1]
> http://apache-flex-development.2333347.n4.nabble.
> com/FlexJS-AMF-branch-feature-amf-Starting-the-effort-
> Special-Thanks-to-PKumar-td59640.html#a63860
>
> Thanks in advance!
> --
>
> Piotr Zarzycki
>
> Patreon: *https://www.patreon.com/piotrzarzycki
> <https://www.patreon.com/piotrzarzycki>*
>



-- 
Carlos Rovira
http://about.me/carlosrovira