Dear Lance, I am a bit lost with the Atmosphere Demo.
I am following the instructions here https://github.com/uklance/tapestry-atmosphere but there are several issues. As a starting point I use the Maven Archetype 5.4.3 for eclipse. Within eclipse I use jetty 6.1.16. Then I adjust the pom.xml with the given snipped setting the version to 0.0.6. If I just try to start the App without adding one line of atmosphere specific code it crashes with this error: [ERROR] failed app java.lang.NoClassDefFoundError: org/atmosphere/cpr/AtmosphereResourceFactory at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:348) at org.apache.tapestry5.ioc.RegistryBuilder.add(RegistryBuilder.java:159) at org.apache.tapestry5.ioc.IOCUtilities.addModulesInList(IOCUtilities.java:132) at org.apache.tapestry5.ioc.IOCUtilities.addModulesInManifest(IOCUtilities.java:105) at org.apache.tapestry5.ioc.IOCUtilities.addDefaultModules(IOCUtilities.java:76) [...] The next issue is that I can not add the <async-supported>true</async-supported> line to the web.xml because I get the following error massage. cvc-complex-type.2.4.a: Invalid content was found starting with element 'async-supported'. One of '{"http:// java.sun.com/xml/ns/j2ee":init-param}' is expected. This is probably because the new web-app definition looks like this: <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4"> So I am a bit lost. It looks like the description is geared toward older versions of tapestry. But it would be really wonderful if there would be a short explanation how to use this very advanced project in what I think is the "normal" starting point for a tapestry project. Thanks for your help Janko -----Ursprüngliche Nachricht----- Von: Lance Java [mailto:lance.j...@googlemail.com] Gesendet: Mittwoch, 26. Oktober 2016 23:27 An: Tapestry users <users@tapestry.apache.org> Betreff: Re: WebSocket enpoint as a tapestry service There's a chat demo in both tapestry-atmosphere and tapestry-cometd Atmosphere Demo: http://t5atmosphere-lazan.rhcloud.com/ Source: https://github.com/uklance/tapestry-atmosphere/tree/master/tapestry-atmosphere-demo Cometd Demo: http://t5cometd-lazan.rhcloud.com/chat Source: https://github.com/uklance/tapestry-cometd/tree/master/tapestry-cometd-demo On 26 Oct 2016 7:16 p.m., "Qbyte Consulting" <qbyteconsult...@gmail.com> wrote: > I want to develop a tapestry chat component that uses a WebSocket to > handle real time text messages. I need to integrate so that users can > see who is logged in to the Tapestry app. > > How would I make a class in a Tapestry app a WS endoint that can also > access my apps Tapestry services as well as handle the WS client? > > John >