Sitemap location

Hi

Where can I find the sitemap folder location in openhab2 snapshot

HTTP ERROR 500

Problem accessing /classicui/app. Reason:

    Server Error
Caused by:

javax.servlet.ServletException: Sitemap 'default' could not be found
	at org.eclipse.smarthome.ui.classic.internal.servlet.WebAppServlet.service(WebAppServlet.java:165)
	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:748)
Caused by: org.eclipse.smarthome.ui.classic.render.RenderException: Sitemap 'default' 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 'default' 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:748)
Powered by Jetty://

that’s the correct folder that you are looking at (/etc/openhab2/sitemaps)

The filename should be the same as your <sitemapname>.

Check the /etc/openhab2/sitemaps/default.sitemap file contents.
Maybe you modified the <sitemapname> within it (changed it from default to something else, and as a result ClassicUI can’t find the sitemap name)

The sitemap name comes from the first line in the contents of the file:

sitemap <sitemapname> label="<Some_Label>"
{
[...]
}

https://docs.openhab.org/configuration/sitemaps.html#special-element-sitemap

Also: If you want to change the default sitemap that ClassicUI and/or BasicUI will load, go to PaperUI->Configuration->Services->UI->Classic UI (or Basic) -> Configure -> Default Sitemap

it is

Looks good (maybe a space before { in the first line… but this shouldn’t be a problem)
I would try to troubleshoot the syntax of your sitemap file contents
A tool that you could use is: http://docs.openhab.org/installation/designer.html (v0.8)

or post the sitemap file contents here to check them

sitemap default label="Krovejen 9"{
    Frame label="Date" {
        Text item=Date icon="calendar"
       }
Frame label="" {
        Text label="Lys" icon="light" {
					Switch item=Lys_Stue_Skaenk
					Switch item=Lys_Hue_Spisebord label="Spisebord Lys"
					Slider item=Lys_Hue_Spisebord_Dimmer label="Spisebord Dimmer"
					Switch item=Lys_Fabaro_Lys_Terrasse
					Slider item=Lys_Fabaro_Lys_Terrasse_Dimmer
					}
        Text label="Temperatur" icon="temperature" {
				Text item=Temperatur_Udebygninger_Carportnord label="Temperatur Udvendig [%.1f °C]"
				Text item=Temperatur_Udebygninger_Carport label="Temperatur Carport [%.1f °C]"
				Text item=Temperatur_Udebygninger_Carportnord_Min label="Min temperatur carportnord [%s]"
				Text item=Temperatur_Udebygninger_Carportnord_Max label="Max temperatur carportnord [%s]"
				Text item=Temperatur_Udebygninger_Carport_Min label="Min temperatur carport [%s]"
				Text item=Temperatur_Udebygninger_Carport_Max label="Max temperatur carport [%s]"
				
						
			}}
						
Frame label="" {
		Text label="Brian Test" icon="test" {
					Frame label="Hello"
					Switch item=Presence_Knap_Ferie label="Ferie"
					Switch item=Presence_Iphone_Brian label="Brian´s Iphone"
					Switch item=Presence_Iphone_Nicolai label="Nicolai´s Iphone"
					Switch item=Presence_Iphone_Charlotte label="Charlotte´s Iphone"
					Switch item=PresenceBrian_PhoneMqttHome  label="Brian Hjemme"
					Switch item=PresenceCharlotte_PhoneMqttHome  label="Charlotte Hjemme"
					Switch item=PresenceNicolai_PhoneMqttHome  label="Nicolai Hjemme"
					Switch item=Tryk_Ringe_Fordor
					Switch item=Fuga_Stue_OH
					Frame label="Lys soveværelse" 
					Switch item=Lys_Hue_Charlotte label="Charlotte Lys"
					Switch item=Motion_Fabrio_Sovevaerelse label="Motion Soveværelse"
					Frame label="Lys" 
					Switch item=Nicolai_Skole label="Nicolai Skole"
					Switch item=Varme_Vaerksted label="Varme Værksted"
					Switch item=Knap_godmorgen
					Setpoint item=Sonos_Volume_Stuen
			
			
			}}
			
		Text label="Varmestyring" icon="heating" {
					Frame label="Varme"
					Text item=Thermostat_Danfoss_Stue2 label="Thermostat Stue ved Dør [%s °C]" icon="temperature"
					Text item=Thermostat_Danfoss_Kokken label="Thermostat Køkken [%s °C]" icon="temperature" 
					Text item=Thermostat_Danfoss_Nicolai label="Thermostat Nicolai [%s °C]" icon="temperature" 
					Text item=Thermostat_Danfoss_Annebell label="Thermostat Annebell [%s °C]" icon="temperature" 
					Text item=Thermostat_Danfoss_Sovevaerelse label="Thermostat Soveværelse [%s °C]" icon="temperature" 
					Text item=Temprature_Multisensor_Sovevaerelse label="Temperatur Soveværelse [%s °C]" icon="temperature"
					Text item=Temperature_Vaerksted label="Værksted temperature [%.2f °C]" icon="temperature"
				    Text item=Humidity_Vaerksted label="Værksted Humidity [%.1f %%]" icon="humidity"
					Frame label="Setpunkt for temperatur" 
                    Setpoint item=Setpunkt_Varksted minValue=5 maxValue=28 step=0.5
					Switch item=Knap_Ekster_Varme_Vaerksted
					Setpoint item=Setpunkt_Stue2 minValue=5 maxValue=28 step=0.5
					Setpoint item=Setpunkt_Kokken minValue=5 maxValue=28 step=0.5
					Setpoint item=Setpunkt_Annebell minValue=5 maxValue=28 step=0.5
					Setpoint item=Setpunkt_Nicolai minValue=5 maxValue=28 step=0.5
					Setpoint item=Setpunkt_Sovevaerelse minValue=5 maxValue=28 step=0.5
                   }}
Frame label="" {
        Text label="Location" icon="map" {
                        Webview url="http://192.168.0.242:8080/static/map.html" height=9
                        Frame label="Brian's Data"
                        Text item=BPLatitude
                        Text item=BPLongitude
                        Text item=BPAccuracy
                        Text item=BPBattery
						Frame label="Charlotte's Data"
                        Text item=CPLatitude
                        Text item=CPLongitude
                        Text item=CPAccuracy
                        Text item=CPBattery
						Frame label="Nicolai's Data"
                        Text item=NPLatitude
                        Text item=NPLongitude
                        Text item=NPAccuracy
                        Text item=NPBattery
                        
        }	   
			

Frame label="Batteri Level" icon="siren" {
 Group item=gBatteri
        }

Frame label="Kalender" {
 Text item=OfficeCalTime0 label=[item=OfficeCalName]
 Text item=OfficeCalName0
 Text item=OfficeCalTime1 
 Text item=OfficeCalName1
 Text item=OfficeCalTime2 
 Text item=OfficeCalName2
    }

but sitemap where working whem i was using oh2 stabel

I believe that the development team of OH2 has implemented “stricter” checks of the syntax in config files during snapshot releases.

Your sitemap file has some mistakes.
If I am not wrong, you are missing some ‘}’ to close off some sections.
Also, I don’t think that you can use Frame within a Frame (not sure about this)

I recommend to reconstruct it from scratch (section by section) and it will work.

at line 1 i have this mistakes extraneous input ‘’ expecting ‘sitemap’ but what is wrong

sitemap nysitemap label="ny sitemap"{
    Frame label="Date" {
        Text item=Date icon="calendar"
       }
Frame label="" {
        Text label="Lys" icon="light" {
					Switch item=Lys_Stue_Skaenk
					Switch item=Lys_Hue_Spisebord label="Spisebord Lys"
					Slider item=Lys_Hue_Spisebord_Dimmer label="Spisebord Dimmer"
					Switch item=Lys_Fabaro_Lys_Terrasse
					Slider item=Lys_Fabaro_Lys_Terrasse_Dimmer
					}
        Text label="Temperatur" icon="temperature" {
				Text item=Temperatur_Udebygninger_Carportnord label="Temperatur Udvendig [%.1f °C]"
				Text item=Temperatur_Udebygninger_Carport label="Temperatur Carport [%.1f °C]"
				Text item=Temperatur_Udebygninger_Carportnord_Min label="Min temperatur carportnord [%s]"
				Text item=Temperatur_Udebygninger_Carportnord_Max label="Max temperatur carportnord [%s]"
				Text item=Temperatur_Udebygninger_Carport_Min label="Min temperatur carport [%s]"
				Text item=Temperatur_Udebygninger_Carport_Max label="Max temperatur carport [%s]"
				
						
			}}}
					

try to change name and it si the same mistake

Since your file is called home.sitemap use the same for the <sitemapname>

sitemap home label="ny sitemap" {
[...]
}

also, use a space after the label and before the curly braces" {

it is the same

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:165)
	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:748)
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:748)
Powered by Jetty://

I don’t know what is going wrong here… your configs look good…

Try to create a completely new sitemap file (don’t reuse the existing one) with super minimal contents:

sitemap home label="home" {
      Frame label="Date" {
            Text item=Date icon="calendar"
      }
}

Or… maybe try a redeployment of the OH2 snapshot ?

1 Like

one curly bracket at the wrong position…
Line 66 is }} but has to be }
Line 100 is } but has to be }}

Another idea:

Your file is in the wrong encoding schema. An error at the very first character, as can be seen in your screenshot, is a common sign for that.

Another thread this was discussed in can be found here:

As @Dim said, please start with a fresh file. My suggestion would be to simply download the demo.sitemap from here and go from there.

1 Like

Did not work, I reinstalled it all

and after re-installing openHAB2… it worked or not? (i ask because you marked your reply as a solution)

yes it works fin now

I knew that Kim would help !

1 Like

tanks for all your help

1 Like

The problem is related to the encoding … if you are editing your files in Window environment you can open the file with notwpad and save using UNICODE.
Bye