Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Vaadin with Maven on Google App Engine (GAE)
i have created a vaadin project with should be deployed to google app engine. And as i like maven, i used it to manage dependencies and so on.
Everything seems to work fine: Even the deployment to app engine or devserver (of app engine) is working. Sadly, if i access the webpage, i get the following exception on the console (extract).
[INFO] Okt 14, 2013 11:23:42 AM com.google.appengine.tools.development.DevAppServerImpl doStart [INFO] INFO: Dev App Server is now running [INFO] Okt 14, 2013 11:23:55 AM com.vaadin.server.DefaultDeploymentConfiguration checkProductionMode [INFO] WARNING: [INFO] ================================================================= [INFO] Vaadin is running in DEBUG MODE. [INFO] Add productionMode=true to web.xml to disable debug features. [INFO] To show debug window, add ?debug to your application URL. [INFO] ================================================================= [INFO] Okt 14, 2013 11:23:55 AM org.atmosphere.cpr.AtmosphereFramework addAtmosphereHandler [INFO] INFO: Installed AtmosphereHandler com.vaadin.server.communication.PushHandler mapped to context-path: /* [INFO] Okt 14, 2013 11:23:55 AM org.atmosphere.cpr.DefaultBroadcaster <init> [INFO] INFO: /* support Out Of Order Broadcast: false [INFO] Okt 14, 2013 11:23:55 AM org.atmosphere.cpr.AtmosphereFramework configureBroadcaster [INFO] SEVERE: Unable to configure Broadcaster/Factory/Cache [INFO] org.atmosphere.cpr.DefaultBroadcasterFactory$BroadcasterCreationException: java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "modifyThreadGroup") [INFO] at org.atmosphere.cpr.DefaultBroadcasterFactory.createBroadcaster(DefaultBroadcasterFactory.java:189) [INFO] at org.atmosphere.cpr.DefaultBroadcasterFactory.lookup(DefaultBroadcasterFactory.java:263) [INFO] at org.atmosphere.cpr.DefaultBroadcasterFactory.get(DefaultBroadcasterFactory.java:162) [INFO] at org.atmosphere.cpr.DefaultBroadcasterFactory.get(DefaultBroadcasterFactory.java:147)
Could someone point me to direction how to fix the modifyThreadGroup problem? Possibly it is a simple issue, but i am not that experienced with vaadin.
Some more details:
Is there a resolution to this issue? I am running Vaadin 7.1.8 in GAE and I continue to get this error.
E2013-12-17 21:54:07.578 org.atmosphere.cpr.AtmosphereFramework configureBroadcaster: Unable to configure Broadcaster/Factory/Cache org.atmosphere.cpr.DefaultBroadcasterFactor
I2013-12-17 21:54:07.581 org.atmosphere.cpr.AtmosphereFramework autoDetectWebSocketHandler: Auto detecting WebSocketHandler in /WEB-INF/classes/
I2013-12-17 21:54:08.984 org.atmosphere.cpr.AtmosphereFramework initWebSocket: Installed WebSocketProtocol org.atmosphere.websocket.protocol.SimpleHttpProtocol
I2013-12-17 21:54:09.073 org.atmosphere.cpr.AtmosphereFramework autoDetectContainer: Atmosphere is using async support: org.atmosphere.container.BlockingIOCometSupport running
I2013-12-17 21:54:09.160 org.atmosphere.cpr.AtmosphereFramework configureAtmosphereInterceptor: Installed Default AtmosphereInterceptor [Android Interceptor Support, SSE Inter
I2013-12-17 21:54:09.160 org.atmosphere.cpr.AtmosphereFramework init: Shared ExecutorService supported: true
I2013-12-17 21:54:09.160 org.atmosphere.cpr.AtmosphereFramework init: HttpSession supported: true
I2013-12-17 21:54:09.160 org.atmosphere.cpr.AtmosphereFramework init: Using BroadcasterFactory: org.atmosphere.cpr.DefaultBroadcasterFactory
W2013-12-17 21:54:09.160 org.atmosphere.cpr.AtmosphereFramework init: No BroadcasterCache configured. Broadcasted message between client reconnection will be LOST. It is recom
I2013-12-17 21:54:09.161 org.atmosphere.cpr.AtmosphereFramework init: Using WebSocketProcessor: org.atmosphere.websocket.DefaultWebSocketProcessor
I2013-12-17 21:54:09.161 org.atmosphere.cpr.AtmosphereFramework init: Using Broadcaster: org.atmosphere.cpr.DefaultBroadcaster
I2013-12-17 21:54:09.161 org.atmosphere.cpr.AtmosphereFramework init: Atmosphere Framework 1.0.14.vaadin4 started.
I2013-12-17 21:54:09.164 org.atmosphere.cpr.AtmosphereFramework interceptor: Installed AtmosphereInterceptor Track Message Size Interceptor using |.
I2013-12-17 21:54:11.063 This request caused a new process to be started for your application, and thus caused your application code to be loaded for the first time. This requ
While there may well be other issues as well, this one might be resolvable by removing the dependency to vaadin-push.
The current push implementation does not support GAE (which has its own push APIs rather than using the standard ones) anyway.
Coud anyone provide a tutorial on how to work with Vaadin 7 + Maven + GAE. I haven't been able to make it work. More over, even if i did, it would be nice to see a full project working with these tools.
The best example would probably be the dashboard example. Let me know if such tutorial or a similar one is available. Every documentation or tutorial (even outside of Vaadin) is outdated. Refering either to the old gae plugin, to an earlier versión of vaadin or both.
I found this which could be helpful if it wasn't because its from 2010. http://www.streamhead.com/maven-spring-vaadin-appengine/
There is also this video, which is help and more updated but does not use Maven http://www.youtube.com/watch?v=oTAK-NGs9ng&list=UUVZnufT1ZTHVnyKxScRsSsA&index=1