[ANN] Google App Engine now supported

9 messages Options
Embed this post
Permalink
Jeanfrancois Arcand

[ANN] Google App Engine now supported

Reply Threaded More More options
Print post
Permalink
Salut,

Google App Engine is now natively supported. The Atmosphere Framework
will auto-detect the Google Runtime and configure itself to properly
handle suspend/resume operation via the CometSupport SPI:

   * http://is.gd/4LAO8

I've added a sample under appengine-chat that can be downloaded from here:

   * http://is.gd/4LAV7

or checked out:

   /trunk/samples/appengine-chat

Note that a response could not get suspended more than 30 seconds (GAE
restriction), and delay/Scheduled broadcast are not supported(*). When
it start, you should see:

> 3-Nov-2009 1:35:49 AM com.google.apphosting.utils.jetty.JettyLogger info
> INFO: jetty-6.1.x
> 3-Nov-2009 1:37:54 AM org.atmosphere.cpr.AtmosphereServlet loadConfiguration
> WARNING: Missing META-INF/atmosphere.xml. Will try to autodetect AtmosphereHandler
> 3-Nov-2009 1:37:54 AM org.atmosphere.cpr.AtmosphereServlet autoDetectAtmosphereHandlers
> INFO: Sucessfully loaded org.atmosphere.samples.chat.AppEngineAtmosphereHandler@1f2cea2 mapped to context-path AppEngineAtmosphereHandler
> 3-Nov-2009 1:37:54 AM org.atmosphere.cpr.AtmosphereServlet autoDetectAtmosphereHandlers
> INFO: Atmosphere using Broadcaster org.atmosphere.util.gae.GAEDefaultBroadcaster
> 3-Nov-2009 1:37:54 AM org.atmosphere.cpr.AtmosphereServlet autoDetectContainer
> INFO: Atmosphere Framework running under container Google App Engine Development/1.2.5
> 3-Nov-2009 1:37:54 AM org.atmosphere.cpr.AtmosphereServlet init
> INFO: Atmosphere Framework 0.5-SNAPSHOT started.
> 3-Nov-2009 1:37:54 AM com.google.apphosting.utils.jetty.JettyLogger info
> INFO: Started [hidden email]:8080
> The server is running at http://192.168.0.100:8080/

I'm planning to release 0.4.1 with GAE support this week (will also fix
the GWT sample, which is broken with 0.4).

A+

--Jeanfrancois

(*) They probably could using GAE API.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

manalang

Re: [ANN] Google App Engine now supported

Reply Threaded More More options
Print post
Permalink
I believe using bayeux with Atmosphere on GAE gets around the 30 sec restriction since bayeux looks like it can terminate and restart long-polling requests if it lasts longer than ## seconds.  I'll test this out.

Thanks!!!

Rich

On Mon, Nov 2, 2009 at 6:31 PM, Jeanfrancois Arcand <[hidden email]> wrote:
Salut,

Google App Engine is now natively supported. The Atmosphere Framework will auto-detect the Google Runtime and configure itself to properly handle suspend/resume operation via the CometSupport SPI:

 * http://is.gd/4LAO8

I've added a sample under appengine-chat that can be downloaded from here:

 * http://is.gd/4LAV7

or checked out:

 /trunk/samples/appengine-chat

Note that a response could not get suspended more than 30 seconds (GAE restriction), and delay/Scheduled broadcast are not supported(*). When it start, you should see:

3-Nov-2009 1:35:49 AM com.google.apphosting.utils.jetty.JettyLogger info
INFO: jetty-6.1.x
3-Nov-2009 1:37:54 AM org.atmosphere.cpr.AtmosphereServlet loadConfiguration
WARNING: Missing META-INF/atmosphere.xml. Will try to autodetect AtmosphereHandler
3-Nov-2009 1:37:54 AM org.atmosphere.cpr.AtmosphereServlet autoDetectAtmosphereHandlers
INFO: Sucessfully loaded org.atmosphere.samples.chat.AppEngineAtmosphereHandler@1f2cea2 mapped to context-path AppEngineAtmosphereHandler
3-Nov-2009 1:37:54 AM org.atmosphere.cpr.AtmosphereServlet autoDetectAtmosphereHandlers
INFO: Atmosphere using Broadcaster org.atmosphere.util.gae.GAEDefaultBroadcaster
3-Nov-2009 1:37:54 AM org.atmosphere.cpr.AtmosphereServlet autoDetectContainer
INFO: Atmosphere Framework running under container Google App Engine Development/1.2.5
3-Nov-2009 1:37:54 AM org.atmosphere.cpr.AtmosphereServlet init
INFO: Atmosphere Framework 0.5-SNAPSHOT started.
3-Nov-2009 1:37:54 AM com.google.apphosting.utils.jetty.JettyLogger info
INFO: Started SelectChannelConnector@...:8080
The server is running at http://192.168.0.100:8080/

I'm planning to release 0.4.1 with GAE support this week (will also fix the GWT sample, which is broken with 0.4).

A+

--Jeanfrancois

(*) They probably could using GAE API.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]


Viktor Klang

Re: [ANN] Google App Engine now supported

Reply Threaded More More options
Print post
Permalink
In reply to this post by Jeanfrancois Arcand
Great work, JF!

On Tue, Nov 3, 2009 at 3:31 AM, Jeanfrancois Arcand <[hidden email]> wrote:
Salut,

Google App Engine is now natively supported. The Atmosphere Framework will auto-detect the Google Runtime and configure itself to properly handle suspend/resume operation via the CometSupport SPI:

 * http://is.gd/4LAO8

I've added a sample under appengine-chat that can be downloaded from here:

 * http://is.gd/4LAV7

or checked out:

 /trunk/samples/appengine-chat

Note that a response could not get suspended more than 30 seconds (GAE restriction), and delay/Scheduled broadcast are not supported(*). When it start, you should see:

3-Nov-2009 1:35:49 AM com.google.apphosting.utils.jetty.JettyLogger info
INFO: jetty-6.1.x
3-Nov-2009 1:37:54 AM org.atmosphere.cpr.AtmosphereServlet loadConfiguration
WARNING: Missing META-INF/atmosphere.xml. Will try to autodetect AtmosphereHandler
3-Nov-2009 1:37:54 AM org.atmosphere.cpr.AtmosphereServlet autoDetectAtmosphereHandlers
INFO: Sucessfully loaded org.atmosphere.samples.chat.AppEngineAtmosphereHandler@1f2cea2 mapped to context-path AppEngineAtmosphereHandler
3-Nov-2009 1:37:54 AM org.atmosphere.cpr.AtmosphereServlet autoDetectAtmosphereHandlers
INFO: Atmosphere using Broadcaster org.atmosphere.util.gae.GAEDefaultBroadcaster
3-Nov-2009 1:37:54 AM org.atmosphere.cpr.AtmosphereServlet autoDetectContainer
INFO: Atmosphere Framework running under container Google App Engine Development/1.2.5
3-Nov-2009 1:37:54 AM org.atmosphere.cpr.AtmosphereServlet init
INFO: Atmosphere Framework 0.5-SNAPSHOT started.
3-Nov-2009 1:37:54 AM com.google.apphosting.utils.jetty.JettyLogger info
INFO: Started SelectChannelConnector@...:8080
The server is running at http://192.168.0.100:8080/

I'm planning to release 0.4.1 with GAE support this week (will also fix the GWT sample, which is broken with 0.4).

A+

--Jeanfrancois

(*) They probably could using GAE API.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]




--
Viktor Klang
| "A complex system that works is invariably
| found to have evolved from a simple system
| that worked." - John Gall

Blog: klangism.blogspot.com
Twttr: viktorklang
Code: github.com/viktorklang
yaishb

Re: [ANN] Google App Engine now supported

Reply Threaded More More options
Print post
Permalink
In reply to this post by Jeanfrancois Arcand
Hi,

I'm trying to use the jar (taken from the sample app) that should support gae, as part of PrimeFaces webapp, but the following error occure:

SEVERE: access denied (java.lang.RuntimePermission modifyThreadGroup).

Primefaces uses a servlet that extends AtmosphereServlet:

public class PrimeFacesCometServlet extends AtmosphereServlet {          public PrimeFacesCometServlet() {                 super();         }                          @Override         public void init(ServletConfig config) throws ServletException {                 super.init(config);                                  atmosphereHandlers.put(CometContext.CHANNEL_PATH, new AtmosphereHandlerWrapper(new PrimeFacesCometHandler(), new DefaultBroadcaster()));         } }

Can you help how to solve that issue?

Thanks!

Jeanfrancois Arcand wrote:
Salut,

Google App Engine is now natively supported. The Atmosphere Framework
will auto-detect the Google Runtime and configure itself to properly
handle suspend/resume operation via the CometSupport SPI:

   * http://is.gd/4LAO8

I've added a sample under appengine-chat that can be downloaded from here:

   * http://is.gd/4LAV7

or checked out:

   /trunk/samples/appengine-chat

Note that a response could not get suspended more than 30 seconds (GAE
restriction), and delay/Scheduled broadcast are not supported(*). When
it start, you should see:

> 3-Nov-2009 1:35:49 AM com.google.apphosting.utils.jetty.JettyLogger info
> INFO: jetty-6.1.x
> 3-Nov-2009 1:37:54 AM org.atmosphere.cpr.AtmosphereServlet loadConfiguration
> WARNING: Missing META-INF/atmosphere.xml. Will try to autodetect AtmosphereHandler
> 3-Nov-2009 1:37:54 AM org.atmosphere.cpr.AtmosphereServlet autoDetectAtmosphereHandlers
> INFO: Sucessfully loaded org.atmosphere.samples.chat.AppEngineAtmosphereHandler@1f2cea2 mapped to context-path AppEngineAtmosphereHandler
> 3-Nov-2009 1:37:54 AM org.atmosphere.cpr.AtmosphereServlet autoDetectAtmosphereHandlers
> INFO: Atmosphere using Broadcaster org.atmosphere.util.gae.GAEDefaultBroadcaster
> 3-Nov-2009 1:37:54 AM org.atmosphere.cpr.AtmosphereServlet autoDetectContainer
> INFO: Atmosphere Framework running under container Google App Engine Development/1.2.5
> 3-Nov-2009 1:37:54 AM org.atmosphere.cpr.AtmosphereServlet init
> INFO: Atmosphere Framework 0.5-SNAPSHOT started.
> 3-Nov-2009 1:37:54 AM com.google.apphosting.utils.jetty.JettyLogger info
> INFO: Started SelectChannelConnector@192.168.0.100:8080
> The server is running at http://192.168.0.100:8080/

I'm planning to release 0.4.1 with GAE support this week (will also fix
the GWT sample, which is broken with 0.4).

A+

--Jeanfrancois

(*) They probably could using GAE API.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@atmosphere.dev.java.net
For additional commands, e-mail: users-help@atmosphere.dev.java.net
Jeanfrancois Arcand

Re: [ANN] Google App Engine now supported

Reply Threaded More More options
Print post
Permalink
Salut,

yaishb wrote:

> Hi,
>
> I'm trying to use the jar (taken from the sample app) that should support
> gae, as part of PrimeFaces webapp, but the following error occure:
>
> SEVERE: access denied (java.lang.RuntimePermission modifyThreadGroup).
>
> Primefaces uses a servlet that extends AtmosphereServlet:
>
> public class PrimeFacesCometServlet extends AtmosphereServlet {        
> public PrimeFacesCometServlet() {                 super();         }                        
> @Override         public void init(ServletConfig config) throws
> ServletException {                 super.init(config);                                
> atmosphereHandlers.put(CometContext.CHANNEL_PATH, new
> AtmosphereHandlerWrapper(new PrimeFacesCometHandler(), new
> DefaultBroadcaster()));         } }
>
> Can you help how to solve that issue?


Yes, can you send me some test case? Also can you copy what you see on
the log, e.g. are you seeing something like:

>>>> autoDetectAtmosphereHandlers
>>>> INFO: Atmosphere using Broadcaster
>>>> org.atmosphere.util.gae.GAEDefaultBroadcaster
>>>> 3-Nov-2009 1:37:54 AM org.atmosphere.cpr.AtmosphereServlet
>>>> autoDetectContainer
>>>> INFO: Atmosphere Framework running under container Google App Engine
>>>> Development/1.2.5

Finally, send the full stack trace (on the server.log)

Thanks!

-- Jeanfrancois



>
> Thanks!
>
>
> Jeanfrancois Arcand wrote:
>> Salut,
>>
>> Google App Engine is now natively supported. The Atmosphere Framework
>> will auto-detect the Google Runtime and configure itself to properly
>> handle suspend/resume operation via the CometSupport SPI:
>>
>>    * http://is.gd/4LAO8
>>
>> I've added a sample under appengine-chat that can be downloaded from here:
>>
>>    * http://is.gd/4LAV7
>>
>> or checked out:
>>
>>    /trunk/samples/appengine-chat
>>
>> Note that a response could not get suspended more than 30 seconds (GAE
>> restriction), and delay/Scheduled broadcast are not supported(*). When
>> it start, you should see:
>>
>>> 3-Nov-2009 1:35:49 AM com.google.apphosting.utils.jetty.JettyLogger info
>>> INFO: jetty-6.1.x
>>> 3-Nov-2009 1:37:54 AM org.atmosphere.cpr.AtmosphereServlet
>>> loadConfiguration
>>> WARNING: Missing META-INF/atmosphere.xml. Will try to autodetect
>>> AtmosphereHandler
>>> 3-Nov-2009 1:37:54 AM org.atmosphere.cpr.AtmosphereServlet
>>> autoDetectAtmosphereHandlers
>>> INFO: Sucessfully loaded
>>> org.atmosphere.samples.chat.AppEngineAtmosphereHandler@1f2cea2 mapped to
>>> context-path AppEngineAtmosphereHandler
>>> 3-Nov-2009 1:37:54 AM org.atmosphere.cpr.AtmosphereServlet
>>> autoDetectAtmosphereHandlers
>>> INFO: Atmosphere using Broadcaster
>>> org.atmosphere.util.gae.GAEDefaultBroadcaster
>>> 3-Nov-2009 1:37:54 AM org.atmosphere.cpr.AtmosphereServlet
>>> autoDetectContainer
>>> INFO: Atmosphere Framework running under container Google App Engine
>>> Development/1.2.5
>>> 3-Nov-2009 1:37:54 AM org.atmosphere.cpr.AtmosphereServlet init
>>> INFO: Atmosphere Framework 0.5-SNAPSHOT started.
>>> 3-Nov-2009 1:37:54 AM com.google.apphosting.utils.jetty.JettyLogger info
>>> INFO: Started [hidden email]:8080
>>> The server is running at http://192.168.0.100:8080/
>> I'm planning to release 0.4.1 with GAE support this week (will also fix
>> the GWT sample, which is broken with 0.4).
>>
>> A+
>>
>> --Jeanfrancois
>>
>> (*) They probably could using GAE API.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>>
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Cagatay Civici

Re: [ANN] Google App Engine now supported

Reply Threaded More More options
Print post
Permalink
In reply to this post by yaishb
Barak,

As Jean mentioned GAE support will be available in 0.4.1 whereas PrimeFaces is not migrated to Atmosphere 0.4 yet.

Regards,

Cagatay

On Tue, Nov 3, 2009 at 4:46 PM, yaishb <[hidden email]> wrote:

Hi,

I'm trying to use the jar (taken from the sample app) that should support
gae, as part of PrimeFaces webapp, but the following error occure:

SEVERE: access denied (java.lang.RuntimePermission modifyThreadGroup).

Primefaces uses a servlet that extends AtmosphereServlet:

public class PrimeFacesCometServlet extends AtmosphereServlet {
public PrimeFacesCometServlet() {                 super();         }
@Override         public void init(ServletConfig config) throws
ServletException {                 super.init(config);
atmosphereHandlers.put(CometContext.CHANNEL_PATH, new
AtmosphereHandlerWrapper(new PrimeFacesCometHandler(), new
DefaultBroadcaster()));         } }

Can you help how to solve that issue?

Thanks!


Jeanfrancois Arcand wrote:
>
> Salut,
>
> Google App Engine is now natively supported. The Atmosphere Framework
> will auto-detect the Google Runtime and configure itself to properly
> handle suspend/resume operation via the CometSupport SPI:
>
>    * http://is.gd/4LAO8
>
> I've added a sample under appengine-chat that can be downloaded from here:
>
>    * http://is.gd/4LAV7
>
> or checked out:
>
>    /trunk/samples/appengine-chat
>
> Note that a response could not get suspended more than 30 seconds (GAE
> restriction), and delay/Scheduled broadcast are not supported(*). When
> it start, you should see:
>
>> 3-Nov-2009 1:35:49 AM com.google.apphosting.utils.jetty.JettyLogger info
>> INFO: jetty-6.1.x
>> 3-Nov-2009 1:37:54 AM org.atmosphere.cpr.AtmosphereServlet
>> loadConfiguration
>> WARNING: Missing META-INF/atmosphere.xml. Will try to autodetect
>> AtmosphereHandler
>> 3-Nov-2009 1:37:54 AM org.atmosphere.cpr.AtmosphereServlet
>> autoDetectAtmosphereHandlers
>> INFO: Sucessfully loaded
>> org.atmosphere.samples.chat.AppEngineAtmosphereHandler@1f2cea2 mapped to
>> context-path AppEngineAtmosphereHandler
>> 3-Nov-2009 1:37:54 AM org.atmosphere.cpr.AtmosphereServlet
>> autoDetectAtmosphereHandlers
>> INFO: Atmosphere using Broadcaster
>> org.atmosphere.util.gae.GAEDefaultBroadcaster
>> 3-Nov-2009 1:37:54 AM org.atmosphere.cpr.AtmosphereServlet
>> autoDetectContainer
>> INFO: Atmosphere Framework running under container Google App Engine
>> Development/1.2.5
>> 3-Nov-2009 1:37:54 AM org.atmosphere.cpr.AtmosphereServlet init
>> INFO: Atmosphere Framework 0.5-SNAPSHOT started.
>> 3-Nov-2009 1:37:54 AM com.google.apphosting.utils.jetty.JettyLogger info
>> INFO: Started SelectChannelConnector@...:8080
>> The server is running at http://192.168.0.100:8080/
>
> I'm planning to release 0.4.1 with GAE support this week (will also fix
> the GWT sample, which is broken with 0.4).
>
> A+
>
> --Jeanfrancois
>
> (*) They probably could using GAE API.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>
>

--
View this message in context: http://n2.nabble.com/ANN-Google-App-Engine-now-supported-tp3936201p3939658.html
Sent from the Atmosphere users mailling list mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]


Jeanfrancois Arcand

Re: [ANN] Google App Engine now supported

Reply Threaded More More options
Print post
Permalink
Salut,

Cagatay Civici wrote:
> Barak,
>
> As Jean mentioned GAE support will be available in 0.4.1 whereas
> PrimeFaces is not migrated to Atmosphere 0.4 yet.

Oh I've missed that. Thanks!

-- Jeanfrancois


>
> Regards,
>
> Cagatay
>
> On Tue, Nov 3, 2009 at 4:46 PM, yaishb <[hidden email]
> <mailto:[hidden email]>> wrote:
>
>
>     Hi,
>
>     I'm trying to use the jar (taken from the sample app) that should
>     support
>     gae, as part of PrimeFaces webapp, but the following error occure:
>
>     SEVERE: access denied (java.lang.RuntimePermission modifyThreadGroup).
>
>     Primefaces uses a servlet that extends AtmosphereServlet:
>
>     public class PrimeFacesCometServlet extends AtmosphereServlet {
>     public PrimeFacesCometServlet() {                 super();         }
>     @Override         public void init(ServletConfig config) throws
>     ServletException {                 super.init(config);
>     atmosphereHandlers.put(CometContext.CHANNEL_PATH, new
>     AtmosphereHandlerWrapper(new PrimeFacesCometHandler(), new
>     DefaultBroadcaster()));         } }
>
>     Can you help how to solve that issue?
>
>     Thanks!
>
>
>     Jeanfrancois Arcand wrote:
>      >
>      > Salut,
>      >
>      > Google App Engine is now natively supported. The Atmosphere Framework
>      > will auto-detect the Google Runtime and configure itself to properly
>      > handle suspend/resume operation via the CometSupport SPI:
>      >
>      >    * http://is.gd/4LAO8
>      >
>      > I've added a sample under appengine-chat that can be downloaded
>     from here:
>      >
>      >    * http://is.gd/4LAV7
>      >
>      > or checked out:
>      >
>      >    /trunk/samples/appengine-chat
>      >
>      > Note that a response could not get suspended more than 30 seconds
>     (GAE
>      > restriction), and delay/Scheduled broadcast are not supported(*).
>     When
>      > it start, you should see:
>      >
>      >> 3-Nov-2009 1:35:49 AM
>     com.google.apphosting.utils.jetty.JettyLogger info
>      >> INFO: jetty-6.1.x
>      >> 3-Nov-2009 1:37:54 AM org.atmosphere.cpr.AtmosphereServlet
>      >> loadConfiguration
>      >> WARNING: Missing META-INF/atmosphere.xml. Will try to autodetect
>      >> AtmosphereHandler
>      >> 3-Nov-2009 1:37:54 AM org.atmosphere.cpr.AtmosphereServlet
>      >> autoDetectAtmosphereHandlers
>      >> INFO: Sucessfully loaded
>      >> org.atmosphere.samples.chat.AppEngineAtmosphereHandler@1f2cea2
>     mapped to
>      >> context-path AppEngineAtmosphereHandler
>      >> 3-Nov-2009 1:37:54 AM org.atmosphere.cpr.AtmosphereServlet
>      >> autoDetectAtmosphereHandlers
>      >> INFO: Atmosphere using Broadcaster
>      >> org.atmosphere.util.gae.GAEDefaultBroadcaster
>      >> 3-Nov-2009 1:37:54 AM org.atmosphere.cpr.AtmosphereServlet
>      >> autoDetectContainer
>      >> INFO: Atmosphere Framework running under container Google App Engine
>      >> Development/1.2.5
>      >> 3-Nov-2009 1:37:54 AM org.atmosphere.cpr.AtmosphereServlet init
>      >> INFO: Atmosphere Framework 0.5-SNAPSHOT started.
>      >> 3-Nov-2009 1:37:54 AM
>     com.google.apphosting.utils.jetty.JettyLogger info
>      >> INFO: Started [hidden email]:8080
>     <http://SelectChannelConnector@...:8080>
>      >> The server is running at http://192.168.0.100:8080/
>      >
>      > I'm planning to release 0.4.1 with GAE support this week (will
>     also fix
>      > the GWT sample, which is broken with 0.4).
>      >
>      > A+
>      >
>      > --Jeanfrancois
>      >
>      > (*) They probably could using GAE API.
>      >
>      > ---------------------------------------------------------------------
>      > To unsubscribe, e-mail: [hidden email]
>     <mailto:[hidden email]>
>      > For additional commands, e-mail:
>     [hidden email]
>     <mailto:[hidden email]>
>      >
>      >
>      >
>
>     --
>     View this message in context:
>     http://n2.nabble.com/ANN-Google-App-Engine-now-supported-tp3936201p3939658.html
>     Sent from the Atmosphere users mailling list mailing list archive at
>     Nabble.com.
>
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail: [hidden email]
>     <mailto:[hidden email]>
>     For additional commands, e-mail: [hidden email]
>     <mailto:[hidden email]>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

yaishb

Re: [ANN] Google App Engine now supported

Reply Threaded More More options
Print post
Permalink
In reply to this post by Cagatay Civici
Ok, I thought it could be simple as replacing jar... Will wait to the rc... :-)

Thanks.

Cagatay Civici wrote:
Barak,

As Jean mentioned GAE support will be available in 0.4.1 whereas PrimeFaces
is not migrated to Atmosphere 0.4 yet.

Regards,

Cagatay

On Tue, Nov 3, 2009 at 4:46 PM, yaishb <barak.yaish@gmail.com> wrote:

>
> Hi,
>
> I'm trying to use the jar (taken from the sample app) that should support
> gae, as part of PrimeFaces webapp, but the following error occure:
>
> SEVERE: access denied (java.lang.RuntimePermission modifyThreadGroup).
>
> Primefaces uses a servlet that extends AtmosphereServlet:
>
> public class PrimeFacesCometServlet extends AtmosphereServlet {
> public PrimeFacesCometServlet() {                 super();         }
> @Override         public void init(ServletConfig config) throws
> ServletException {                 super.init(config);
> atmosphereHandlers.put(CometContext.CHANNEL_PATH, new
> AtmosphereHandlerWrapper(new PrimeFacesCometHandler(), new
> DefaultBroadcaster()));         } }
>
> Can you help how to solve that issue?
>
> Thanks!
>
>
> Jeanfrancois Arcand wrote:
> >
> > Salut,
> >
> > Google App Engine is now natively supported. The Atmosphere Framework
> > will auto-detect the Google Runtime and configure itself to properly
> > handle suspend/resume operation via the CometSupport SPI:
> >
> >    * http://is.gd/4LAO8
> >
> > I've added a sample under appengine-chat that can be downloaded from
> here:
> >
> >    * http://is.gd/4LAV7
> >
> > or checked out:
> >
> >    /trunk/samples/appengine-chat
> >
> > Note that a response could not get suspended more than 30 seconds (GAE
> > restriction), and delay/Scheduled broadcast are not supported(*). When
> > it start, you should see:
> >
> >> 3-Nov-2009 1:35:49 AM com.google.apphosting.utils.jetty.JettyLogger info
> >> INFO: jetty-6.1.x
> >> 3-Nov-2009 1:37:54 AM org.atmosphere.cpr.AtmosphereServlet
> >> loadConfiguration
> >> WARNING: Missing META-INF/atmosphere.xml. Will try to autodetect
> >> AtmosphereHandler
> >> 3-Nov-2009 1:37:54 AM org.atmosphere.cpr.AtmosphereServlet
> >> autoDetectAtmosphereHandlers
> >> INFO: Sucessfully loaded
> >> org.atmosphere.samples.chat.AppEngineAtmosphereHandler@1f2cea2 mapped
> to
> >> context-path AppEngineAtmosphereHandler
> >> 3-Nov-2009 1:37:54 AM org.atmosphere.cpr.AtmosphereServlet
> >> autoDetectAtmosphereHandlers
> >> INFO: Atmosphere using Broadcaster
> >> org.atmosphere.util.gae.GAEDefaultBroadcaster
> >> 3-Nov-2009 1:37:54 AM org.atmosphere.cpr.AtmosphereServlet
> >> autoDetectContainer
> >> INFO: Atmosphere Framework running under container Google App Engine
> >> Development/1.2.5
> >> 3-Nov-2009 1:37:54 AM org.atmosphere.cpr.AtmosphereServlet init
> >> INFO: Atmosphere Framework 0.5-SNAPSHOT started.
> >> 3-Nov-2009 1:37:54 AM com.google.apphosting.utils.jetty.JettyLogger info
> >> INFO: Started SelectChannelConnector@192.168.0.100:8080
> >> The server is running at http://192.168.0.100:8080/
> >
> > I'm planning to release 0.4.1 with GAE support this week (will also fix
> > the GWT sample, which is broken with 0.4).
> >
> > A+
> >
> > --Jeanfrancois
> >
> > (*) They probably could using GAE API.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@atmosphere.dev.java.net
> > For additional commands, e-mail: users-help@atmosphere.dev.java.net
> >
> >
> >
>
> --
> View this message in context:
> http://n2.nabble.com/ANN-Google-App-Engine-now-supported-tp3936201p3939658.html
> Sent from the Atmosphere users mailling list mailing list archive at
> Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@atmosphere.dev.java.net
> For additional commands, e-mail: users-help@atmosphere.dev.java.net
>
>
Jeanfrancois Arcand

Re: [ANN] Google App Engine now supported

Reply Threaded More More options
Print post
Permalink


yaishb wrote:
> Ok, I thought it could be simple as replacing jar... Will wait to the rc...
> :-)

So you used 0.5-SNAPSHOT and you got that exception?

A+

-- Jeanfrancois


>
> Thanks.
>
>
> Cagatay Civici wrote:
>> Barak,
>>
>> As Jean mentioned GAE support will be available in 0.4.1 whereas
>> PrimeFaces
>> is not migrated to Atmosphere 0.4 yet.
>>
>> Regards,
>>
>> Cagatay
>>
>> On Tue, Nov 3, 2009 at 4:46 PM, yaishb <[hidden email]> wrote:
>>
>>> Hi,
>>>
>>> I'm trying to use the jar (taken from the sample app) that should support
>>> gae, as part of PrimeFaces webapp, but the following error occure:
>>>
>>> SEVERE: access denied (java.lang.RuntimePermission modifyThreadGroup).
>>>
>>> Primefaces uses a servlet that extends AtmosphereServlet:
>>>
>>> public class PrimeFacesCometServlet extends AtmosphereServlet {
>>> public PrimeFacesCometServlet() {                 super();         }
>>> @Override         public void init(ServletConfig config) throws
>>> ServletException {                 super.init(config);
>>> atmosphereHandlers.put(CometContext.CHANNEL_PATH, new
>>> AtmosphereHandlerWrapper(new PrimeFacesCometHandler(), new
>>> DefaultBroadcaster()));         } }
>>>
>>> Can you help how to solve that issue?
>>>
>>> Thanks!
>>>
>>>
>>> Jeanfrancois Arcand wrote:
>>>> Salut,
>>>>
>>>> Google App Engine is now natively supported. The Atmosphere Framework
>>>> will auto-detect the Google Runtime and configure itself to properly
>>>> handle suspend/resume operation via the CometSupport SPI:
>>>>
>>>>    * http://is.gd/4LAO8
>>>>
>>>> I've added a sample under appengine-chat that can be downloaded from
>>> here:
>>>>    * http://is.gd/4LAV7
>>>>
>>>> or checked out:
>>>>
>>>>    /trunk/samples/appengine-chat
>>>>
>>>> Note that a response could not get suspended more than 30 seconds (GAE
>>>> restriction), and delay/Scheduled broadcast are not supported(*). When
>>>> it start, you should see:
>>>>
>>>>> 3-Nov-2009 1:35:49 AM com.google.apphosting.utils.jetty.JettyLogger
>>> info
>>>>> INFO: jetty-6.1.x
>>>>> 3-Nov-2009 1:37:54 AM org.atmosphere.cpr.AtmosphereServlet
>>>>> loadConfiguration
>>>>> WARNING: Missing META-INF/atmosphere.xml. Will try to autodetect
>>>>> AtmosphereHandler
>>>>> 3-Nov-2009 1:37:54 AM org.atmosphere.cpr.AtmosphereServlet
>>>>> autoDetectAtmosphereHandlers
>>>>> INFO: Sucessfully loaded
>>>>> org.atmosphere.samples.chat.AppEngineAtmosphereHandler@1f2cea2 mapped
>>> to
>>>>> context-path AppEngineAtmosphereHandler
>>>>> 3-Nov-2009 1:37:54 AM org.atmosphere.cpr.AtmosphereServlet
>>>>> autoDetectAtmosphereHandlers
>>>>> INFO: Atmosphere using Broadcaster
>>>>> org.atmosphere.util.gae.GAEDefaultBroadcaster
>>>>> 3-Nov-2009 1:37:54 AM org.atmosphere.cpr.AtmosphereServlet
>>>>> autoDetectContainer
>>>>> INFO: Atmosphere Framework running under container Google App Engine
>>>>> Development/1.2.5
>>>>> 3-Nov-2009 1:37:54 AM org.atmosphere.cpr.AtmosphereServlet init
>>>>> INFO: Atmosphere Framework 0.5-SNAPSHOT started.
>>>>> 3-Nov-2009 1:37:54 AM com.google.apphosting.utils.jetty.JettyLogger
>>> info
>>>>> INFO: Started [hidden email]:8080
>>>>> The server is running at http://192.168.0.100:8080/
>>>> I'm planning to release 0.4.1 with GAE support this week (will also fix
>>>> the GWT sample, which is broken with 0.4).
>>>>
>>>> A+
>>>>
>>>> --Jeanfrancois
>>>>
>>>> (*) They probably could using GAE API.
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: [hidden email]
>>>> For additional commands, e-mail: [hidden email]
>>>>
>>>>
>>>>
>>> --
>>> View this message in context:
>>> http://n2.nabble.com/ANN-Google-App-Engine-now-supported-tp3936201p3939658.html
>>> Sent from the Atmosphere users mailling list mailing list archive at
>>> Nabble.com.
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [hidden email]
>>> For additional commands, e-mail: [hidden email]
>>>
>>>
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]