Re: Tynamo-Conversations + Tapestry-Atmosphere

2014-09-10 Thread Lance Java
> Now it works perfectly. Great! I'll add an issue to copy the isSecure() flag from the async request. > how can I override your "tapesty-atmosphere.js"? stick it in the right path under WEB-IBF/classes and your container's classloader will give it precedence.

Re: Tynamo-Conversations + Tapestry-Atmosphere

2014-09-10 Thread Semen Vishniakov
Thank you, Lance! Now it works perfectly. And one more question: I would like to push custom javascript using atmosphere. I've seen this https://github.com/uklance/tapestry-atmosphere/issues/5 and my question is, how can I override your "tapesty-atmosphere.js"? Thanks, Sem --

Re: Tynamo-Conversations + Tapestry-Atmosphere

2014-09-09 Thread Lance Java
Hi Sem, it looks like RequestSecurityManagerImpl is trying to redirect the async request. Obviously redirecting an async request doesn't make sense, hence the UnsupportedOperationException. I can only guess that you have the @Secure annotation on the page. Correct? Ultimately, we want Request.isS

Re: Tynamo-Conversations + Tapestry-Atmosphere

2014-09-09 Thread Semen Vishniakov
Thanks, I just stored Subject in the session and retrieved in the filter. Not ideal, but ok. Much to my regret, there are another exceptions: first was with the not defined tapestry-online symbols and after I defined them I have another one: [ERROR] 2014-09-09 17:18:39,077 - internal.PerRequestBr

Re: Tynamo-Conversations + Tapestry-Atmosphere

2014-09-09 Thread Lance Java
Youre correct, the HttpServletRequest and HttpServletResponse are not available. This was a design decision made by tapestry-offline. I guess I could make this pluggable. But the Request and Response tapestry wrappers ARE available. Also, the ApplicationStateManager is available. I felt that these

Re: Tynamo-Conversations + Tapestry-Atmosphere

2014-09-09 Thread Semen Vishniakov
>So it sounds like you'll need to contribute a ComponentRequestFilter. Make >sure you order it "before:" the tynamo filter. Yes, this is the right place, but I don't have HttpServletRequest and HttpServletResponse and I can't initialize security subject like here: https://github.com/tynamo/tapest

Re: Tynamo-Conversations + Tapestry-Atmosphere

2014-09-05 Thread Lance Java
> Lance, I'm also starting to use your work in my application. Cool! > your code on github works with atmosphere-runtime-native 2.1.0-RC2. Later versions of Atmosphere fails. Pull requests accepted! > Since we're not using build profiles like in your example, I've had to manually include atmos

Re: Tynamo-Conversations + Tapestry-Atmosphere

2014-09-05 Thread Lance Java
I notice from the exception that the error originates from SecurityComponentRequestFilter So it sounds like you'll need to contribute a ComponentRequestFilter. Make sure you order it "before:" the tynamo filter. On 5 Sep 2014 22:10, "Lance Java" wrote: > I'm not familiar with tynamo security bu

Re: Tynamo-Conversations + Tapestry-Atmosphere

2014-09-05 Thread Lance Java
I'm not familiar with tynamo security but Kalle has pointed out it uses a HttpServletFilter to initialise some per thread values. tapestry-atmosphere uses tapestry-offline to render component events. Unlike a normal request / response this doesn't go through the HttpServletRequestFilters etc. Tak

Re: Tynamo-Conversations + Tapestry-Atmosphere

2014-09-05 Thread Semen Vishniakov
>That said, I'm not sure what would be the best invocation point to make it happen with atmosphere/tapestry-offline. Thank you for the reply. Yes, that is the problem for me: I don't know where to bind SecurityManager. Sem - To

Re: Tynamo-Conversations + Tapestry-Atmosphere

2014-09-05 Thread Daniel Jue
Lance, I'm also starting to use your work in my application. I think it's important to note that your code on github works with atmosphere-runtime-native 2.1.0-RC2 from Dec 2013. Later versions of Atmosphere seem to need different dependencies included, and also the contribute method fails becaus

Re: Tynamo-Conversations + Tapestry-Atmosphere

2014-09-05 Thread Kalle Korhonen
On Fri, Sep 5, 2014 at 10:21 AM, Semen Vishniakov wrote: > Seems that SecurityManager is not accessible because of component > "offline" rendering. Are there any solutions to fix it? > I haven't paid close attention to this thread but the securitymanager certainly isn't accessible. It's perhaps

Re: Tynamo-Conversations + Tapestry-Atmosphere

2014-09-05 Thread Semen Vishniakov
I'm sorry for the inconvenience, but there is another exception that I cannot overcome: when I turn https on and add secure=true to the container component, the following exception is thrown: [WARN] 2014-09-05 18:56:12,711 - TapestryModule.ComponentRequestHandler - Unable to add 'PageGlobals' as

Re: Tynamo-Conversations + Tapestry-Atmosphere

2014-09-03 Thread Semen Vishniakov
Thanks for your help. I just changed the port from 8080 to 8081 and it works now. Sem - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org

Re: Tynamo-Conversations + Tapestry-Atmosphere

2014-09-02 Thread Lance Java
Wrong link, make sure your dependencies match the table here https://github.com/Atmosphere/atmosphere/wiki/Installing-AtmosphereServlet-with-or-without-native-support#quick-dependency-reference On 2 Sep 2014 19:31, "Lance Java" wrote: > Run "mvn:dependency tree" from the command line and make su

Re: Tynamo-Conversations + Tapestry-Atmosphere

2014-09-02 Thread Lance Java
Run "mvn:dependency tree" from the command line and make sure your dependencies match the table here http://tapestry-atmosphere.uklance.cloudbees.net/. You might need to a dependency? Not sure. I had troubles with tomcat and apache on cloudbees and had to upgrade to http 1.1. Does it work on jett

Re: Tynamo-Conversations + Tapestry-Atmosphere

2014-09-02 Thread Semen Vishniakov
Yes, the exception is gone now, thank you! But I have another question now: The demo and my project work perfectly with cometd long-polling connection. But when I try to change it to WebSocket, the event is not triggered. There is no errors or exceptions, in browser console I have "Websocket succ

Re: Tynamo-Conversations + Tapestry-Atmosphere

2014-08-25 Thread Semen Vishniakov
Wow, thank you for your work Lance! I can't test it this week, but I will try it next week and write here how it works for me. Sem - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail:

Re: Tynamo-Conversations + Tapestry-Atmosphere

2014-08-23 Thread Lance Java
I've just fixed the issue in tapestry-atmosphere 0.0.4 (tapestry-offline 0.0.2) Please try with the latest version of tapestry-atmosphere. Cheers, Lance

Re: Tynamo-Conversations + Tapestry-Atmosphere

2014-08-23 Thread Lance Java
Hi Sem, Taking a look into this, I was surprised to see that tapestry's request does not have a getCookies() method http://tapestry.apache.org/5.3/apidocs/org/apache/tapestry5/services/Request.html Instead, the CookieSource has to go directly to the HttpServletRequest https://github.com/apache/ta