Vaadin 7 javascript on server can not call function?

I create AbstractJavaScriptExtension class where I call some javascript functions and everything works fine when I test this in localhost, but when I upload project on server javascript functions are never executed. How to solve this is there some restrictions?

It depends on what functions you are calling. JavaScript execution has some
same-origin policy
restrictions for calls to a different server than where the page was loaded.

It could also be some packaging or deployment problem, it’s really hard to say without knowing more details.