Configuration help for openHAB 2

Hello, i am new to the whole home automation thing, so I was following a Tutorial by MKSmartHouse on how to configure openHAB 2, and everything was working fine until I went to Paper UI > Configuration > Services > UI And then set the default sitemap for basic UI and classic UI to “home”. Something must have gotten messed up because when I went to the classic and basic UI pages, the classic UI showed this error message:


HTTP ERROR 500

Problem accessing /classicui/app. Reason:

Server Error

Caused by:

javax.servlet.ServletException: Sitemap ‘home’ could not be found
at org.eclipse.smarthome.ui.classic.internal.servlet.WebAppServlet.service(WebAppServlet.java:169)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)
at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:287)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
at org.eclipse.jetty.server.Server.handle(Server.java:499)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.eclipse.smarthome.ui.classic.render.RenderException: Sitemap ‘home’ could not be found
at org.eclipse.smarthome.ui.classic.internal.servlet.WebAppServlet.service(WebAppServlet.java:130)
… 21 more
Caused by:

org.eclipse.smarthome.ui.classic.render.RenderException: Sitemap ‘home’ could not be found
at org.eclipse.smarthome.ui.classic.internal.servlet.WebAppServlet.service(WebAppServlet.java:130)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)
at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:287)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
at org.eclipse.jetty.server.Server.handle(Server.java:499)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
at java.lang.Thread.run(Thread.java:745)
Powered by Jetty://


And when I tried going into Basic UI it just said "You have not defined any sitemaps yet!

Please help!!

I guess my first question is have you created your sitemap? If you are passing anything but “default” as a sitemap, you have to manually create your .sitemap file. According to the logs, it would seem that you have either not created the sitemap or it is named something different. Capitalization matters.

You never know it those tutorials are outdated or are targeted to a version different of yours, we have a nice official docs section, so why not sticking with that.
And: do you expect us to watch an 8 min video to find out what could maybe cause your problem?

http://docs.openhab.org/configuration/sitemaps.html

Have fun.

Hello ae_0017, yes, I have created my sitemap
210 - PuTTY 9_24_2017 8_50_16 AM
but, afterlooking through the docs ifound that I have yet to define my sitemap. Unfortunately for me, the docs make everything seem harder than it is, so I still am unclear on how to define my sitemap! If you could give some more info on how to do that, that would be great!

sitemap default label="Smart Home" {
     Frame label="Date and Weather" {
     Text item=Date
     Group item=Group_Wunderground
     }
     Frame label = Entrance {
     Switch item=Lock_FrontDoor label="Door Lock" mappings=[ON="locked", OFF="unlocked"] visibility=[Lock==ON]
     Text item=Battery_FrontDoor label="Lock Battery Level [%d %%]"
     Text item=FrontDoorSensor_BinarySensor label="Door Status [MAP(en.map):%s]"
     Text item=FrontDoorSensor_BatteryLevel label="Sensor Battery Level [%d %%]"
     }
}

It’s a small example, but it’s an example nonetheless. We aren’t going to be able to define your sitemap for you since it’s entirely dependent on your item definitions. The docs that were linked above are an incredible resource and is how I learned to develop my sitemaps. You do have to spend some time reading and if you are not a coder it will very much be trial and error. If you get stuck, I am happy to help.

1 Like