Project

General

Profile

java.io.FileNotFoundException: C:\eu\webtoolkit\jwt\wt-resources\themes\bootstrap\3\bootstrap.css

Added by Vladimir Savchik about 7 years ago

After change to 3.3.8 from 3.3.7 I have found exeptions when reading bootstrap files

7518 [1351651241@qtp-1071917290-0] INFO eu.webtoolkit.jwt.WtServlet - Session exiting: 1v8dugh0sgmba1xqcqmlkj5p6t (#sessions = 1)

java.io.FileNotFoundException: C:\eu\webtoolkit\jwt\wt-resources\themes\bootstrap\3\wt.css (...)

at java.io.FileInputStream.open(Native Method)

at java.io.FileInputStream.(Unknown Source)

at java.io.FileInputStream.(Unknown Source)

at sun.net.www.protocol.file.FileURLConnection.connect(Unknown Source)

at sun.net.www.protocol.file.FileURLConnection.getInputStream(Unknown Source)

at java.net.URL.openStream(Unknown Source)

at eu.webtoolkit.jwt.FileUtils.getResourceAsStream(FileUtils.java:74)

at eu.webtoolkit.jwt.WtServlet.getResourceStream(WtServlet.java:536)

...

To be sure it is not my problem, I have copied from examples widgetgallery-3.3.7 and widgetgallery-3.3.8 and launched in Jetty in Eclipse (with corresponding libs).

The same issue - 3.3.7 works fine, 3.3.8 raises exceptions.

Probably the answer is very simple and obvious for experienced web programmer, but it looks like a bit changed behaviour and I would be very happy if you show me how to sort it out.


Replies (2)

RE: java.io.FileNotFoundException: C:\eu\webtoolkit\jwt\wt-resources\themes\bootstrap\3\bootstrap.css - Added by Korneel Dumon about 7 years ago

Hi,

this is a regression which breaks apps using servlet version less than 3.0, it will be fixed in future releases. I think your options here are to upgrade your server software or go back to using 3.3.7. For jetty, version 8 and higher support servlet 3.0.

The reason we moved the resources to META-INF is because servlet 3.0 and higher will automatically serve files from this folder, and it makes it easy to add an overriding folder in your own docroot.

Korneel

    (1-2/2)