Home > development > Redeploying Atmosphere on Glassfish v3.x

Redeploying Atmosphere on Glassfish v3.x

September 6th, 2010 devylon Leave a comment Go to comments

It took me half a day to figure out, why redeploying a Atmosphere war bundle always fails with a stacktrace. Atmosphere packages, e.g. the jersey into the war archive. This behavior could be changed by setting a JVM environment variable in Glassfish.

In the GF admin console, going to:

Configuration->JVM Settings

switch to the JVM Options tab and add this option:

-Dcom.sun.enterprise.overrideablejavaxpackages
=javax.ws.rs,javax.ws.rs.core,javax.ws.rs.ext
Categories: development Tags: ,
  1. kiRach
    June 14th, 2011 at 10:41 | #1

    And could you provide other settings for right configuration of Glassfish for executing atmosphere examples? For example, I know about -Dv3.grizzly.cometSupport=true
    in domain.xml.
    May be there is anything else?

  2. November 3rd, 2011 at 05:30 | #2

    Very interesting information!Perfect just what I was searching for!

  1. March 9th, 2012 at 11:45 | #1