Search code examples
maven-2glassfish-3tomcat7netbeans-7atmosphere

How to use the Atmosphere framework with GlassFish 3.1.2?


I just try the Atmosphere framework. I made the chat sample running in Tomcat 7.0.27 but when I want to run it with GlassFish 3.1.2 then I only get the message:

"org.apache.catalina.LifecycleException: java.lang.NoClassDefFoundError: org/apache/catalina/comet/CometProcessor".

What am I doing wrong? I use the built-in GlassFish from NetBeans IDE 7.1.2.

Kindly regards,

Benny


Solution

  • Ok. I found the solution! In NetBeans you have to click on "Enable Comet Support" in "Tools" - "Servers" - "GlassFish":

    Enable Comet Support in GlassFish