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 <[email protected]>:

> 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" <[email protected]> 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 <[email protected]>:
>
>     > 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, "[email protected] on behalf of Carlos
> Rovira"
>     > <[email protected] on behalf of [email protected]>
> 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 <[email protected]>:
>     > >
>     > >> 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 <
> [email protected]>:
>     > >>
>     > >>> 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

Reply via email to