/VAADIN/vaadinPush.debug.js not found

Hi all,

I am migrating my app from vaadin 7.0.1 to 7.1.11, and I am trying to make websockets working. I am running my app with Tomcat in an OSGi environment.

When my application starts, and after Spring security authentication, the following message is displayed:

There is no stacktrace and no error. The server’s logs shows that Atmospere is starting;

=================================================================
Vaadin is running in DEBUG MODE.
Add productionMode=true to web.xml to disable debug features.
To show debug window, add ?debug to your application URL.
=================================================================
[2014-02-24 16:32:58.663]
 INFO  http-bio-8080-exec-48        org.atmosphere.cpr.AtmosphereFramework                            Installed AtmosphereHandler com.vaadin.server.communication.PushHandler mapped to context-path: /*
[2014-02-24 16:32:58.666]
 INFO  http-bio-8080-exec-48        org.atmosphere.cpr.AtmosphereFramework                            Auto detecting WebSocketHandler in /WEB-INF/classes/
[2014-02-24 16:32:58.783]
 INFO  http-bio-8080-exec-48        org.atmosphere.cpr.AtmosphereFramework                            Installed WebSocketProtocol org.atmosphere.websocket.protocol.SimpleHttpProtocol
[2014-02-24 16:32:58.785]
 INFO  http-bio-8080-exec-48        org.atmosphere.cpr.AtmosphereFramework                            Atmosphere is using async support: org.atmosphere.container.Tomcat7Servlet30SupportWithWebSocket running under container: Apache Tomcat/7.0.32 using javax.servlet/3.0
[2014-02-24 16:32:58.786]
 INFO  http-bio-8080-exec-48        org.atmosphere.cpr.AtmosphereFramework                            Installed Default AtmosphereInterceptor [Android Interceptor Support, SSE Interceptor Support, JSONP Interceptor Support, Long-Polling Padding Interceptor Support, Atmosphere JavaScript Protocol, Browser disconnection detection]
. Set org.atmosphere.cpr.AtmosphereInterceptor.disableDefaults in your xml to disable them.
[2014-02-24 16:32:58.786]
 WARN  http-bio-8080-exec-48        org.atmosphere.cpr.AtmosphereFramework                            No BroadcasterCache configured. Broadcasted message between client reconnection will be LOST. It is recommended to configure the org.atmosphere.cache.UUIDBroadcasterCache
[2014-02-24 16:32:58.786]
 INFO  http-bio-8080-exec-48        org.atmosphere.cpr.AtmosphereFramework                            Shared ExecutorService supported: true
[2014-02-24 16:32:58.786]
 INFO  http-bio-8080-exec-48        org.atmosphere.cpr.AtmosphereFramework                            HttpSession supported: true
[2014-02-24 16:32:58.786]
 INFO  http-bio-8080-exec-48        org.atmosphere.cpr.AtmosphereFramework                            Using BroadcasterFactory: org.atmosphere.cpr.DefaultBroadcasterFactory
[2014-02-24 16:32:58.786]
 INFO  http-bio-8080-exec-48        org.atmosphere.cpr.AtmosphereFramework                            Using WebSocketProcessor: org.atmosphere.websocket.DefaultWebSocketProcessor
[2014-02-24 16:32:58.786]
 INFO  http-bio-8080-exec-48        org.atmosphere.cpr.AtmosphereFramework                            Using Broadcaster: org.atmosphere.cpr.DefaultBroadcaster
[2014-02-24 16:32:58.787]
 INFO  http-bio-8080-exec-48        org.atmosphere.cpr.AtmosphereFramework                            Atmosphere Framework 1.0.18.vaadin1 started.
[2014-02-24 16:32:58.787]
 INFO  http-bio-8080-exec-48        org.atmosphere.cpr.AtmosphereFramework                            Installed AtmosphereInterceptor  Track Message Size Interceptor using |.
[2014-02-24 16:32:58.787]
 WARN  http-bio-8080-exec-48        org.eclipse.virgo.snaps.core.OsgiSnapRegistry                     No snap found for context path '/openBio'
[2014-02-24 16:32:58.798]
 WARN  http-bio-8080-exec-43        org.eclipse.virgo.snaps.core.OsgiSnapRegistry                     No snap found for context path '/login.jsp'
[2014-02-24 16:32:59.143]
 WARN  http-bio-8080-exec-43        org.eclipse.virgo.snaps.core.OsgiSnapRegistry                     No snap found for context path '/login'
[2014-02-24 16:33:01.521]
 WARN  http-bio-8080-exec-43        org.eclipse.virgo.snaps.core.OsgiSnapRegistry                     No snap found for context path '/j_spring_security_check'
[2014-02-24 16:33:01.548]
 WARN  http-bio-8080-exec-47        org.eclipse.virgo.snaps.core.OsgiSnapRegistry                     No snap found for context path '/openBio'
[2014-02-24 16:33:01.623]
 WARN  http-bio-8080-exec-47        org.eclipse.virgo.snaps.core.OsgiSnapRegistry                     No snap found for context path '/VAADIN'
[2014-02-24 16:33:01.625]
 INFO  http-bio-8080-exec-47        com.vaadin.server.VaadinServlet                                   Requested resource 
[/VAADIN/vaadinPush.debug.js] not found from filesystem or through class loader. Add widgetset and/or theme JAR to your classpath or add files to WebContent/VAADIN folder.
[2014-02-24 16:33:01.663]
 WARN  http-bio-8080-exec-47        org.eclipse.virgo.snaps.core.OsgiSnapRegistry                     No snap found for context path '/openBio'

Here is my web.xml:[code]

<?xml version="1.0" encoding="ISO-8859-1"?> MyProfile Vaadin production mode productionMode false contextConfigLocation /WEB-INF/applicationContext.xml /WEB-INF/springSecurity.xml /WEB-INF/patcherContext.xml org.springframework.web.util.Log4jConfigListener contextClass org.eclipse.virgo.web.dm.ServerOsgiBundleXmlWebApplicationContext slice-filter org.eclipse.virgo.snaps.core.SnapHostFilter slice-filter /* INCLUDE FORWARD REQUEST springSecurityFilterChain org.springframework.web.filter.DelegatingFilterProxy springSecurityFilterChain /* org.springframework.web.context.ContextLoaderListener openbio_core com.openbio.core.myprofile.provider.OSGiApplicationServlet UI com.openbio.core.myprofile.provider.InitAppClass Application widgetset widgetset com.openbio.core.myprofile.provider.InitAppClassWidgetset pushmode automatic org.atmosphere.useWebSocketAndServlet3 true true
 <!--  -->
openbio_core /VAADIN/* openbio_core /openBio/* openbio_core /APP/* ... [/code]

Any hints ?

Thanks !

Whoups, forgot to say that my UI class was @Push annoted.

Found a quick and dirty fix:

Copying vaadinPush.debug.js and vaadinPush.js to the folder /VAADIN/ of my Vaadin webapp and everyting is working fine. => This is an OSGI classloader problem, and it comes from me. This should not be Vaadin related.

I think this post sould be closed.

Regards.

where can i find both files?

ok, you need to include vaadin-push-x.x.x.jar