0 Replies Latest reply on Feb 1, 2015 3:24 PM by Anna Smith

    Requested resource not found error

    Anna Smith Newbie

      I've faced the next problem.

      I have a vaadin application which works perfectly ok after deployment, then after few days I see Requested resource not found error in log.

       

      And consequently client side doesn't work. There were no restarts during those days.

      And I'm confused that after initial start of jboss UI works, but after sometime I get this problem and the required static files are at the expected place.

       

      I searched in the internet, however in all topics this error occures just after start and is reproduced easily, which is not my case.

       

      What could be the the source of this error? What could affect the Vaadin Servlet suddently not to find the nocache.js and styles.css where they actually are?

      After restart of jboss UI works again.

      I use JBOSS 7.1.1, VAADIN and  JAAS form based authentication with jsp page, it seems the caching problem lies there.

       

      Thank you.

       

      Here are the logs:

       

      12:21:35,776 INFO  [com.vaadin.server.VaadinServlet] (http--0.0.0.0-443-1) Requested resource [/VAADIN/themes/mytheme/icon.ico] not found from filesystem or through class loader. Add widgetset and/or theme JAR to your classpath or add files to WebContent/VAADIN folder.

      12:21:35,779 DEBUG [org.apache.tomcat.util.http.Cookies] (http--0.0.0.0-443-1) Cookies: Parsing b[]: JSESSIONID=+qADR2JhQNgbNxGE0DpNZfT3.undefined; __utma=241266590.1425859180.1413802520.1418895651.1418978119.12; __utmz=241266590.1413802520.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)

      12:21:35,779 DEBUG [org.apache.catalina.authenticator.AuthenticatorBase] (http--0.0.0.0-443-1) Security checking request GET /myapp/VAADIN/themes/mytheme/styles.css

      12:21:35,779 DEBUG [org.apache.catalina.authenticator.AuthenticatorBase] (http--0.0.0.0-443-1) We have cached auth type FORM for principal GenericPrincipal[ADMIN(Viewer,)]

      12:21:35,779 DEBUG [org.apache.catalina.realm.RealmBase] (http--0.0.0.0-443-1)   Checking constraint 'SecurityConstraint[Vaadin application]' against GET /VAADIN/themes/mytheme/styles.css --> false

      12:21:35,780 DEBUG [org.apache.catalina.realm.RealmBase] (http--0.0.0.0-443-1)   Checking constraint 'SecurityConstraint' against GET /VAADIN/themes/mytheme/styles.css --> false

      12:21:35,780 DEBUG [org.apache.catalina.realm.RealmBase] (http--0.0.0.0-443-1)   Checking constraint 'SecurityConstraint' against GET /VAADIN/themes/mytheme/styles.css --> false

      12:21:35,780 DEBUG [org.apache.catalina.realm.RealmBase] (http--0.0.0.0-443-1)   Checking constraint 'SecurityConstraint[Vaadin application]' against GET /VAADIN/themes/mytheme/styles.css --> false

      12:21:35,780 DEBUG [org.apache.catalina.realm.RealmBase] (http--0.0.0.0-443-1)   Checking constraint 'SecurityConstraint' against GET /VAADIN/themes/mytheme/styles.css --> false

      12:21:35,780 DEBUG [org.apache.catalina.realm.RealmBase] (http--0.0.0.0-443-1)   Checking constraint 'SecurityConstraint' against GET /VAADIN/themes/mytheme/styles.css --> false

      12:21:35,781 DEBUG [org.apache.catalina.realm.RealmBase] (http--0.0.0.0-443-1)   Checking constraint 'SecurityConstraint[Vaadin application]' against GET /VAADIN/themes/mytheme/styles.css --> false

      12:21:35,781 DEBUG [org.apache.catalina.realm.RealmBase] (http--0.0.0.0-443-1)   Checking constraint 'SecurityConstraint' against GET /VAADIN/themes/mytheme/styles.css --> false

      12:21:35,781 DEBUG [org.apache.catalina.realm.RealmBase] (http--0.0.0.0-443-1)   Checking constraint 'SecurityConstraint' against GET /VAADIN/themes/mytheme/styles.css --> false

      12:21:35,781 DEBUG [org.apache.catalina.realm.RealmBase] (http--0.0.0.0-443-1)   Checking constraint 'SecurityConstraint[Vaadin application]' against GET /VAADIN/themes/mytheme/styles.css --> false

      12:21:35,781 DEBUG [org.apache.catalina.realm.RealmBase] (http--0.0.0.0-443-1)   Checking constraint 'SecurityConstraint' against GET /VAADIN/themes/mytheme/styles.css --> false

      12:21:35,782 DEBUG [org.apache.catalina.realm.RealmBase] (http--0.0.0.0-443-1)   Checking constraint 'SecurityConstraint' against GET /VAADIN/themes/mytheme/styles.css --> false

      12:21:35,782 DEBUG [org.apache.catalina.realm.RealmBase] (http--0.0.0.0-443-1)   No applicable constraint located

      12:21:35,782 DEBUG [org.apache.catalina.authenticator.AuthenticatorBase] (http--0.0.0.0-443-1)  Not subject to any constraint

      12:21:35,782 INFO  [com.vaadin.server.VaadinServlet] (http--0.0.0.0-443-1) Requested resource [/VAADIN/themes/mytheme/styles.css] not found from filesystem or through class loader. Add widgetset and/or theme JAR to your classpath or add files to WebContent/VAADIN folder.

      12:21:35,814 DEBUG [org.apache.tomcat.util.http.Cookies] (http--0.0.0.0-443-2) Cookies: Parsing b[]: JSESSIONID=+qADR2JhQNgbNxGE0DpNZfT3.undefined; __utma=241266590.1425859180.1413802520.1418895651.1418978119.12; __utmz=241266590.1413802520.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)

      12:21:35,815 DEBUG [org.apache.tomcat.util.http.Cookies] (http--0.0.0.0-443-1) Cookies: Parsing b[]: JSESSIONID=+qADR2JhQNgbNxGE0DpNZfT3.undefined; __utma=241266590.1425859180.1413802520.1418895651.1418978119.12; __utmz=241266590.1413802520.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)

      12:21:35,815 DEBUG [org.apache.catalina.authenticator.AuthenticatorBase] (http--0.0.0.0-443-2) Security checking request GET /myapp/VAADIN/widgetsets/en.myapp.AppWidgetSet/en.myapp.AppWidgetSet.nocache.js

      12:21:35,815 DEBUG [org.apache.catalina.authenticator.AuthenticatorBase] (http--0.0.0.0-443-1) Security checking request POST /myapp/secure/

      12:21:35,816 DEBUG [org.apache.catalina.authenticator.AuthenticatorBase] (http--0.0.0.0-443-2) We have cached auth type FORM for principal GenericPrincipal[ADMIN(Viewer,)]

      12:21:35,816 DEBUG [org.apache.catalina.authenticator.AuthenticatorBase] (http--0.0.0.0-443-1) We have cached auth type FORM for principal GenericPrincipal[ADMIN(Viewer,)]

      12:21:35,816 DEBUG [org.apache.catalina.realm.RealmBase] (http--0.0.0.0-443-2)   Checking constraint 'SecurityConstraint[Vaadin application]' against GET /VAADIN/widgetsets/en.myapp.AppWidgetSet/en.myapp.AppWidgetSet.nocache.js --> false

      12:21:35,816 DEBUG [org.apache.catalina.realm.RealmBase] (http--0.0.0.0-443-1)   Checking constraint 'SecurityConstraint[Vaadin application]' against POST /secure/ --> true

      12:21:35,816 DEBUG [org.apache.catalina.realm.RealmBase] (http--0.0.0.0-443-2)   Checking constraint 'SecurityConstraint' against GET /VAADIN/widgetsets/en.myapp.AppWidgetSet/en.myapp.AppWidgetSet.nocache.js --> false

      12:21:35,817 DEBUG [org.apache.catalina.realm.RealmBase] (http--0.0.0.0-443-1)   Checking constraint 'SecurityConstraint' against POST /secure/ --> false

      12:21:35,817 DEBUG [org.apache.catalina.realm.RealmBase] (http--0.0.0.0-443-2)   Checking constraint 'SecurityConstraint' against GET /VAADIN/widgetsets/en.myapp.AppWidgetSet/en.myapp.AppWidgetSet.nocache.js --> false

      12:21:35,817 DEBUG [org.apache.catalina.realm.RealmBase] (http--0.0.0.0-443-1)   Checking constraint 'SecurityConstraint' against POST /secure/ --> false

      12:21:35,817 DEBUG [org.apache.catalina.realm.RealmBase] (http--0.0.0.0-443-2)   Checking constraint 'SecurityConstraint[Vaadin application]' against GET /VAADIN/widgetsets/en.myapp.AppWidgetSet/en.myapp.AppWidgetSet.nocache.js --> false

      12:21:35,817 DEBUG [org.apache.catalina.realm.RealmBase] (http--0.0.0.0-443-1)   Checking constraint 'SecurityConstraint[Vaadin application]' against POST /secure/ --> true

      12:21:35,818 DEBUG [org.apache.catalina.realm.RealmBase] (http--0.0.0.0-443-2)   Checking constraint 'SecurityConstraint' against GET /VAADIN/widgetsets/en.myapp.AppWidgetSet/en.myapp.AppWidgetSet.nocache.js --> false

      12:21:35,818 DEBUG [org.apache.catalina.realm.RealmBase] (http--0.0.0.0-443-1)   Checking constraint 'SecurityConstraint' against POST /secure/ --> false

      12:21:35,818 DEBUG [org.apache.catalina.realm.RealmBase] (http--0.0.0.0-443-2)   Checking constraint 'SecurityConstraint' against GET /VAADIN/widgetsets/en.myapp.AppWidgetSet/en.myapp.AppWidgetSet.nocache.js --> false

      12:21:35,818 DEBUG [org.apache.catalina.realm.RealmBase] (http--0.0.0.0-443-1)   Checking constraint 'SecurityConstraint' against POST /secure/ --> false

      12:21:35,819 DEBUG [org.apache.catalina.realm.RealmBase] (http--0.0.0.0-443-2)   Checking constraint 'SecurityConstraint[Vaadin application]' against GET /VAADIN/widgetsets/en.myapp.AppWidgetSet/en.myapp.AppWidgetSet.nocache.js --> false

      12:21:35,819 DEBUG [org.apache.catalina.authenticator.AuthenticatorBase] (http--0.0.0.0-443-1)  Calling hasUserDataPermission()

      12:21:35,819 DEBUG [org.apache.catalina.realm.RealmBase] (http--0.0.0.0-443-2)   Checking constraint 'SecurityConstraint' against GET /VAADIN/widgetsets/en.myapp.AppWidgetSet/en.myapp.AppWidgetSet.nocache.js --> false

      12:21:35,819 DEBUG [org.apache.catalina.realm.RealmBase] (http--0.0.0.0-443-1)   User data constraint has no restrictions