My application excutes successfully when I run it in eclipse. Widgetset got compiled successfully. All pages get loaded as expected. But when I create a war file in eclipse and deployed it in the Tomcat 7.0/webapps folder and then run Tomcat, I'm getting the following error messages:
SEVERE: Exception fixing docBase for context [/SampleResponsiveApp]
java.io.FileNotFoundException: C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\SampleResonsiveApp\VAADIN\widgetsets\com.example.sampleresponsiveapp.widgetset.SampleresponsiveappWidgetset\3A3F399A095112F8B58229BB835C5B7E.cache.js (Access is denied).
SampleResponsiveApp.war has the following contents:
1. META-INF
2. VAADIN
2.1 themes
2.1.1 sampleresponsiveapptheme
---- sampleresponsiveapptheme.scss
---- styles.scss
2.2 widgetsets
2.2.1 com.example.sampleresponsiveapp.widgetset.SampleresponsiveappWidgetset
2.3 images
3. WEB-INF
3.1 classes
3.2 lib
--- responsive-1.0.0.alpha1.jar [is the only jar file added and used by me]
--- other jar files got generated while exporting the war from eclipse
3.3 web.xml
And following is the servlet configuration in web.xml
<servlet>
<servlet-name>Sampleresponsiveapp Application</servlet-name>
<servlet-class>com.example.sampleresponsiveapp.SampleResponsiveAppServlet</servlet-class>
<init-param>
<description>Vaadin UI class to use</description>
<param-name>UI</param-name>
<param-value>com.example.sampleresponsiveapp.SampleresponsiveappUI</param-value>
</init-param>
<init-param>
<description>Application widgetset</description>
<param-name>widgetset</param-name>
<param-value>com.example.sampleresponsiveapp.widgetset.SampleresponsiveappWidgetset</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>Sampleresponsiveapp Application</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Sampleresponsiveapp Application</servlet-name>
<url-pattern>/VAADIN/*</url-pattern>
</servlet-mapping>
Please let me know how to get my application war file run successfully in Tomcat 7.