failed to load the bootstrap javascript ./vaadin/vaadin bootstrap.js

hello,

i had to add the vaadin framework to a existing servlet/jsp dynamic webproject with tomcat 7.
What I did:

  • put all the required libs in “WEB-INF\lib”
  • created a VAADIN folder under “Web Pages” in Netbeans. In VAADIN folder there is the theme folder and the compiled widgetset(using addons). The widgetset was compiled with eclipse plugin before and copy pasted here.
  • web.xml looks like followed:
<servlet>
         <servlet-name>testservlet</servlet-name>
        <servlet-class>
            com.vaadin.server.VaadinServlet
        </servlet-class>
        <init-param>
            <param-name>UI</param-name>
            <param-value>de.testUI</param-value>
        </init-param>
        <init-param>
            <description>
                Application widgetset</description>
            <param-name>widgetset</param-name>
            <param-value>de.testWidgetset</param-value>
        </init-param>
    </servlet>
 
    <servlet-mapping>
        <servlet-name>testservlet</servlet-name>
        <url-pattern>/servlet/testservlet/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>testservlet</servlet-name>
        <url-pattern>/VAADIN/*</url-pattern>
    </servlet-mapping>
    <servlet>

when i run the project under netbeans erverything works fine. but when i want to deploy the generated .war to the webserver i get the message: failed to load the bootstrap javascript ./vaadin/vaadin bootstrap.js
in unziped .war all the libs are under WEB-INF/lib

thanks!

Hello Robert,

Can you please check where is the Widgetset folder? It should be under the folder {war}/VAADIN/widgetsets/

Thanks,
Krishna.