Weather binding layout error

since yesterday I’m migration from OH1.9 to OH2.0. Lots of binding work already. I used to have the weather binding html layout located in the webapp folder of OH1. This worked fine for OH1, but I don’t know, where to place it in OH2. I copied it to /etc/openhab2/html/weather-data/ which was recommended in the migration tutorial. But my browser just shows this error:


Problem accessing /weather. Reason:
Server Error
Caused by:

javax.servlet.ServletException: File with weather layout ‘weather.html’ does not exist, make sure it is in the layouts folder ./webapps/weather-data/layouts at rvlet.doGet( at javax.servlet.http.HttpServlet.service(HttpServlet .java:687) at javax.servlet.http.HttpServlet.service(HttpServlet .java:790) at org.eclipse.jetty.servlet.ServletHolder.handle(Ser at org.eclipse.jetty.servlet.ServletHandler.doHandle( …

Because of this message I placed the content from html/weather-data/ to html/webapps/weather-data/, this didn’t solve my problem. Now I’m here to kindly request any hint, I’ve no idea, what goes wrong.
The file html/weather-data/layouts/weather.html exists and belongs to the user openhab and is readable. My weather items get weather data from wunderground, so in general the binding works.

Kind regards,

1 Like

What URL are you using to access the webview? I think it needs to be


I just set this up as well. In OH2, it is different.

See this topic here and particularly read posts # 28 on setting up a webapps folder in /var/lib/openhab2 and on modding the example.html file.

Your url should like this when your done.


1 Like

This helped a lot, thanks!
Wouldn’t it be worth, to extend the migration manual, as there is just mentioned, that all webapps content should be moved to html folder, which definitely not work in this case.


  1. Edit weather.html (or example.html by default) so that all directories start with “static/” e.g. . Find “weather-data/” and replace it by “static/weather-data/”
  2. move this weather.html (or example.html by default) to /var/lib/openhab2/webapps/weather-data/layouts/
  3. move the rest of the complete directory “weather-data” with the subfolders “images” and “layouts” to “/etc/openhab2/html”.

That easy, if known :wink:


March '18 and this is still the solution! Thanks Michael.