geoserver.log: Could not lookup context gwc as a workspace, trying as group - geoserver

I've using Geoserver 2.20 downloaded from official site, I have configured gwc cache system and enabled layer for cache and global services over OGC Services on global settings.
When I try this URL I get this:
$ curl 'http://myserver/geoserver/geoserver/gwc/service/wms?SERVICE=WMS&REQUEST=GetMap&BBOX=-180,-90,0,80.33032694475760138&SRS=EPSG:4326&WIDTH=846&HEIGHT=800&LAYERS=ws:mylayer&FORMAT=image/png'
<html>
<head>
<title>GWC Error</title>
<link rel="stylesheet" href="../rest/web/gwc.css" type="text/css"/>
</head>
<body>
<div id="pageHeader"><a id="logo" href="../"><img src="../rest/web/geowebcache_logo.png"/></a></div>
<h4>400: class org.geowebcache.mime.ApplicationMime cannot be cast to class org.geowebcache.mime.ImageMime (org.geowebcache.mime.ApplicationMime and org.geowebcache.mime.ImageMime are in unnamed module of loader org.apache.catalina.loader.ParallelWebappClassLoader #3524ee20)</h4></body></html>
Looking in geoserver.log for this request, I get:
2022-04-27 11:47:04,484 DEBUG [security.IncludeQueryStringAntPathRequestMatcher] - Request matched by universal pattern '/**'
2022-04-27 11:47:04,484 DEBUG [security.IncludeQueryStringAntPathRequestMatcher] - Matched Path: /gwc/service/wms, QueryString: SERVICE=WMS&REQUEST=GetMap&BBOX=-180,-90,0,80.33032694475760138&SRS=EPSG:4326&WIDTH=846&HEIGHT=800&LAYERS=ws:mylayer&FORMAT=image/png with /**
2022-04-27 11:47:04,485 TRACE [ows.OWSHandlerMapping] - Mapped to HandlerExecutionChain with [org.geoserver.ows.Dispatcher#318ec7d2] and 1 interceptors
2022-04-27 11:47:04,486 DEBUG [geoserver.ows] - Could not lookup context gwc as a workspace, trying as group
2022-04-27 11:47:04,486 DEBUG [geoserver.ows] - Could not lookup context gwc as a layer group either
2022-04-27 11:47:04,486 DEBUG [wms.WMSService] - Recombinining tiles to respond to WMS request
2022-04-27 11:47:04,487 ERROR [geowebcache.GeoWebCacheDispatcher] - class org.geowebcache.mime.ApplicationMime cannot be cast to class org.geowebcache.mime.ImageMime (org.geowebcache.mime.ApplicationMime and org.geowebcache.mime.ImageMime are in unnamed module of loader org.apache.catalina.loader.ParallelWebappClassLoader #3524ee20) http://myserver/geoserver/gwc/service/wms
2022-04-27 11:47:04,487 DEBUG [util.ResponseUtils] - class org.geowebcache.mime.ApplicationMime cannot be cast to class org.geowebcache.mime.ImageMime (org.geowebcache.mime.ApplicationMime and org.geowebcache.mime.ImageMime are in unnamed module of loader org.apache.catalina.loader.ParallelWebappClassLoader #3524ee20)
2022-04-27 11:47:04,487 ERROR [geowebcache.GeoWebCacheDispatcher] - Request failed
java.lang.ClassCastException: class org.geowebcache.mime.ApplicationMime cannot be cast to class org.geowebcache.mime.ImageMime (org.geowebcache.mime.ApplicationMime and org.geowebcache.mime.ImageMime are in unnamed module of loader org.apache.catalina.loader.ParallelWebappClassLoader #3524ee20)
at org.geowebcache.service.wms.WMSTileFuser.<init>(WMSTileFuser.java:325)
at org.geowebcache.service.wms.WMSService.getFuser(WMSService.java:356)
...
I've try with this other URL http://myserver/geoserver/geoserver/ws/gwc/service/wms?SERVICE=WMS&REQUEST=GetMap&BBOX=-180,-90,0,80.33032694475760138&SRS=EPSG:4326&WIDTH=846&HEIGHT=800&LAYERS=ws:mylayer&FORMAT=image/png and don't runs too.
But this other URL for same sever and layer (with) runs ok: http://mysever/geoserver/gwc/demo/ws:mylayer?gridSet=EPSG:4326&format=image/png.
I've looked for this related question (Geoserver:No such workspace 'gwc/service') but do not solve my problem.
How can I solve it?
Regards.

The problem is the URL. It is incorrect.
Correct URL must refer to wmts service and not wms.
So it should be (for this example):
http://myserver/geoserver/geoserver/gwc/service/wmts?SERVICE=WMS&REQUEST=GetMap&BBOX=-180,-90,0,80.33032694475760138&SRS=EPSG:4326&WIDTH=846&HEIGHT=800&LAYERS=ws:mylayer&FORMAT=image/png
Available layers:
http://myserver/geoserver/geoserver/gwc/service/wmts?
Regards.

Related

Spring Boot 2.2.2 RELEASE - Could not locate PropertySource : Could not extract response

With Spring Boot 2.2.2.RELEASE
I am seeing below error
27 Jan 2020;21:45:43.870 [main] WARN o.s.c.c.c.ConfigServicePropertySourceLocator - Could not locate PropertySource: Could not extract response: no suitable HttpMessageConverter found for response type [class org.springframework.cloud.config.environment.Environment] and content type [text/html;charset=UTF-8]
Using below versions
implementation 'org.springframework.boot:spring-boot-starter-batch:2.2.2.RELEASE'
implementation 'org.springframework.batch:spring-batch-integration:2.2.2.RELEASE'
implementation 'org.springframework.cloud:spring-cloud-starter-config:2.2.0.RELEASE'
implementation 'org.springframework.cloud:spring-cloud-starter-security:2.1.5.RELEASE'
Surprisingly, i don't see this problem when i am running application in IDE, But seeing this error when running after build.

Spring Framework: mvc:resources does not work

In my Spring Web Application project I've already configured an mvc:resources tag in order to exclude CSS, JS, images ... from DispatcherServlet mapping
Now I need to exclude also a foobar.txt and is placed under /webapp directory like the other static resources but ... It doesn't work.
Here my code snippet
<mvc:resources mapping="/assets/**" location="/assets/" />
<mvc:resources mapping="/foobar.txt" location="/foobar.txt" />
my folder structure is:
/webapp
/webapp/assets
/webapp/foobar.txt
/webapp/...
It's seems like the the first mvc:resources tag (assets) works but the second one (version.txt) doesn't.
I get a 404 page.
These are the difference in console log.
2018-07-12 13:58:25,093 DEBUG [http-nio-8080-exec-6] (DispatcherServlet.java:845) - DispatcherServlet with name 'dispatcher' processing GET request for [/mscbackend/foobar.txt]
2018-07-12 13:58:25,093 DEBUG [http-nio-8080-exec-6] (AbstractHandlerMethodMapping.java:297) - Looking up handler method for path /foobar.txt
2018-07-12 13:58:25,096 DEBUG [http-nio-8080-exec-6] (AbstractHandlerMethodMapping.java:305) - Did not find handler method for [/foobar.txt]
2018-07-12 13:58:25,097 DEBUG [http-nio-8080-exec-6] (AbstractUrlHandlerMapping.java:123) - Mapping [/foobar.txt] to HandlerExecutionChain with handler [ResourceHttpRequestHandler [locations=[ServletContext resource [/foobar.txt]], resolvers=[org.springframework.web.servlet.resource.PathResourceResolver#66894a78]]] and 1 interceptor
2018-07-12 14:08:27,165 DEBUG [http-nio-8080-exec-7] (DispatcherServlet.java:845) - DispatcherServlet with name 'dispatcher' processing GET request for [/mscbackend/assets/css/style.css]
2018-07-12 14:08:27,165 DEBUG [http-nio-8080-exec-7] (AbstractHandlerMethodMapping.java:297) - Looking up handler method for path /assets/css/style.css
2018-07-12 14:08:27,169 DEBUG [http-nio-8080-exec-7] (AbstractHandlerMethodMapping.java:305) - Did not find handler method for [/assets/css/style.css]
2018-07-12 14:08:27,169 DEBUG [http-nio-8080-exec-7] (AbstractUrlHandlerMapping.java:168) - Matching patterns for request [/assets/css/style.css] are [/assets/**]
The weird thing is that in another similar project same configuration works without problems.
Thanks in advance for your support.
Try below configuration.
<mvc:resources location="/", mapping="/resources/**"/>
OR if you want to give classpath for a particular location use below.
<mvc:resources location="/, classpath:/META-INF/web-resources/" mapping="/resources/**"/>
Try this configuration.
<mvc:resources mapping="/resources/**" location="/resources/" />
I don't why, but sometimes it works. you can give a try.

JSP page not rendering with Spring Boot in Spring Tool Suite IDE

I ended up getting this log as a result of running my Spring Boot App with a jsp.
2017-12-29 13:30:52.412 WARN 12631 --- [nio-8080-exec-2]
o.s.web.servlet.PageNotFound No mapping found for HTTP
request with URI [/SpringBootTrial/] in DispatcherServlet with name
'dispatcherServlet'
2017-12-29 13:30:56.463 WARN 12631 --- [nio-8080-exec-3]
o.s.web.servlet.PageNotFound No mapping found for HTTP
request with URI [/SpringBootTrial/display] in DispatcherServlet with
name 'dispatcherServlet'
2017-12-29 13:30:56.464 ERROR 12631 --- [nio-8080-exec-3]
o.s.boot.web.support.ErrorPageFilter : Cannot forward to error
page for request [/welcome] as the response has already been
committed. As a result, the response may have the wrong status code.
If your application is running on WebSphere Application Server you may
be able to resolve this problem by setting
com.ibm.ws.webcontainer.invokeFlushAfterService to false
It's evident that in Spring Boot, manual configuration is not needed. So, how should I fix this error?
I am clueless how to fix. I configured the jsp resolver in application.properties.
spring.mvc.view.prefix=/WEB-INF/view/
spring.mvc.view.suffix=.jsp
I have tomcat-embedded-jasper in the pom.xml.

Spring Boot Actuator DataSourceHealthIndicator not working for auto-configured DataSource

I'm using an auto-configured DataSource in Spring Boot 1.3.6 and I'm using Actuator's health endpoint. However, the health endpoint does not include any database component in the output.
My application.properties is as follows:
spring.datasource.url=jdbc:oracle:thin:#localhost:1521:local
spring.datasource.username=vagrant
spring.datasource.password=vagrant
spring.datasource.driver-class-name=oracle.jdbc.driver.OracleDriver
endpoints.enabled=false
endpoints.health.enabled=true
The output from the /health endpoint is:
{"status":"UP","diskSpace":{"status":"UP","total":499863515136,"free":121851781120,"threshold":10485760}}
I enabled trace logging and it looks like Spring Boot is autoconfiguring the health indicators before the datasource. Here is an excerpt from the trace log (note the timestamps):
2016-07-22 10:07:20.976 TRACE 7628 --- [restartedMain] o.s.b.a.condition.OnClassCondition : Condition OnClassCondition on org.springframework.boot.actuate.autoconfigure.HealthIndicatorAutoConfiguration$DataSourcesHealthIndicatorConfiguration matched due to #ConditionalOnClass classes found: org.springframework.jdbc.core.JdbcTemplate
2016-07-22 10:07:20.977 TRACE 7628 --- [restartedMain] .b.a.a.OnEnabledHealthIndicatorCondition : Condition OnEnabledHealthIndicatorCondition on org.springframework.boot.actuate.autoconfigure.HealthIndicatorAutoConfiguration$DataSourcesHealthIndicatorConfiguration matched due to All default health indicators are enabled by default
2016-07-22 10:07:23.304 TRACE 7628 --- [restartedMain] o.s.b.a.condition.OnClassCondition : Condition OnClassCondition on org.springframework.boot.actuate.autoconfigure.HealthIndicatorAutoConfiguration$DataSourcesHealthIndicatorConfiguration matched due to #ConditionalOnClass classes found: org.springframework.jdbc.core.JdbcTemplate
2016-07-22 10:07:23.305 TRACE 7628 --- [restartedMain] o.s.b.a.condition.OnBeanCondition : Condition OnBeanCondition on org.springframework.boot.actuate.autoconfigure.HealthIndicatorAutoConfiguration$DataSourcesHealthIndicatorConfiguration did not match due to #ConditionalOnBean (types: javax.sql.DataSource; SearchStrategy: all) found no beans
2016-07-22 10:07:23.577 TRACE 7628 --- [restartedMain] o.s.b.a.condition.OnBeanCondition : Condition OnBeanCondition on org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration$NonEmbeddedConfiguration matched due to #ConditionalOnMissingBean (types: javax.sql.DataSource,javax.sql.XADataSource; SearchStrategy: all) found no beans
2016-07-22 10:07:23.578 DEBUG 7628 --- [restartedMain] a.ConfigurationClassBeanDefinitionReader : Registered bean definition for imported class 'org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration$NonEmbeddedConfiguration'
2016-07-22 10:07:23.578 DEBUG 7628 --- [restartedMain] a.ConfigurationClassBeanDefinitionReader : Registering bean definition for #Bean method org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration$NonEmbeddedConfiguration.dataSource()
Am I doing something wrong, or is this a bug in Spring Boot? Is there a way to change the order so that the datasource is initialised first?
My problem was caused by running the app from Eclipse. I also had a TestApplication class in src/test/java which had an exclusion for DataSourceAutoConfiguration. I excluded the TestApplication class from the component scanning (via excludeFilter on #ComponentScan) and the health endpoint worked as expected (i.e. it included database information).

Spring boot application deployed in STS works fine, but not in IntelliJ Idea

I have Spring-boot application which is built with Maven. When I deploy it with STS( Run as Spring Boot App) it works fine, but when I use IntelliJ Idea it doesn't work.
There is no error in log during deployment process. But when I try to refresh page I got this:
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing
this as a fallback. Mon Aug 04 14:48:38 CEST 2014 There was an
unexpected error (type=Not Found, status=404).
I've added Spring module to project. After I added this I have added some XML's XML based configurations and my Application.java class to Code based configurations.
I've changed logging to FINEST and noticed that when I reload page there are some differences in logs between working and not working version.
Not working version
DEBUG [org.springframework.web.servlet.view.JstlView] - Forwarding to resource [/WEB-INF/jsp/layouts/default.jsp] in InternalResourceView 'layouts/default'
DEBUG [org.springframework.web.servlet.DispatcherServlet] - DispatcherServlet with name 'dispatcherServlet' processing GET request for [/WEB-INF/jsp/layouts/default.jsp]
DEBUG [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] - Looking up handler method for path /WEB-INF/jsp/layouts/default.jsp
DEBUG [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] - Did not find handler method for [/WEB-INF/jsp/layouts/default.jsp]
DEBUG [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] - Matching patterns for request [/WEB-INF/jsp/layouts/default.jsp] are [/**]
DEBUG [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] - URI Template variables for request [/WEB-INF/jsp/layouts/default.jsp] are {}
DEBUG [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] - Mapping [/WEB-INF/jsp/layouts/default.jsp] to HandlerExecutionChain with handler [org.springframework.web.servlet.resource.ResourceHttpRequestHandler#29a502a0] and 1 interceptor
DEBUG [org.springframework.web.servlet.DispatcherServlet] - Last-Modified value for [/WEB-INF/jsp/layouts/default.jsp] is: -1
DEBUG [org.springframework.web.servlet.resource.ResourceHttpRequestHandler] - Ignoring invalid resource path [WEB-INF/jsp/layouts/default.jsp]
DEBUG [org.springframework.web.servlet.resource.ResourceHttpRequestHandler] - No matching resource found - returning 404
DEBUG [org.springframework.web.servlet.DispatcherServlet] - Null ModelAndView returned to DispatcherServlet with name 'dispatcherServlet': assuming HandlerAdapter completed request handling
DEBUG [org.springframework.web.servlet.DispatcherServlet] - Successfully completed request
DEBUG [org.springframework.web.servlet.DispatcherServlet] - Successfully completed request
DEBUG [org.springframework.web.servlet.DispatcherServlet] - DispatcherServlet with name 'dispatcherServlet' processing GET request for [/error]
DEBUG [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] - Looking up handler method for path /error
DEBUG [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] - Returning handler method [public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest)]
DEBUG [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Returning cached instance of singleton bean 'basicErrorController'
DEBUG [org.springframework.web.servlet.DispatcherServlet] - Last-Modified value for [/error] is: -1
DEBUG [org.springframework.web.servlet.view.ContentNegotiatingViewResolver] - Requested media types are [text/html, text/html;q=0.8] based on Accept header types and producible media types [text/html])
DEBUG [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Returning cached instance of singleton bean 'error'
DEBUG [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Invoking afterPropertiesSet() on bean with name 'error'
TRACE [class which inherates from UrlBasedViewResolver] - Cached view [error]
TRACE [class which inherates from UrlBasedViewResolver] - Cached view [error]
DEBUG [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Invoking afterPropertiesSet() on bean with name 'error'
DEBUG [org.springframework.web.servlet.view.ContentNegotiatingViewResolver] - Returning [org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration$SpelView#758e2ae8] based on requested media type 'text/html'
DEBUG [org.springframework.web.servlet.DispatcherServlet] - Rendering view [org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration$SpelView#758e2ae8] in DispatcherServlet with name 'dispatcherServlet'
DEBUG [org.springframework.web.servlet.DispatcherServlet] - Successfully completed request
Working version
DEBUG [org.springframework.web.servlet.view.JstlView] - Forwarding to resource [/WEB-INF/jsp/layouts/default.jsp] in InternalResourceView 'layouts/default'
INFO [org.apache.jasper.compiler.TldLocationsCache] - At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
DEBUG [org.springframework.web.servlet.DispatcherServlet] - Successfully completed request
DEBUG [org.springframework.web.servlet.DispatcherServlet] - DispatcherServlet with name 'dispatcherServlet' processing GET request for [/bootstrap/css/bootstrap.min.css]
DEBUG [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] - Looking up handler method for path /bootstrap/css/bootstrap.min.css
DEBUG [org.springframework.web.servlet.DispatcherServlet] - DispatcherServlet with name 'dispatcherServlet' processing GET request for [/css/bootstrap-fix.css]
DEBUG [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] - Looking up handler method for path /css/bootstrap-fix.css
DEBUG [org.springframework.web.servlet.DispatcherServlet] - DispatcherServlet with name 'dispatcherServlet' processing GET request for [/bootstrap/js/bootstrap.min.js]
DEBUG [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] - Looking up handler method for path /bootstrap/js/bootstrap.min.js
DEBUG [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] - Did not find handler method for [/bootstrap/css/bootstrap.min.css]
DEBUG [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] - Did not find handler method for [/css/bootstrap-fix.css]
DEBUG [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] - Matching patterns for request [/css/bootstrap-fix.css] are [/**]
DEBUG [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] - URI Template variables for request [/css/bootstrap-fix.css] are {}
DEBUG [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] - Did not find handler method for [/bootstrap/js/bootstrap.min.js]
DEBUG [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] - Matching patterns for request [/bootstrap/js/bootstrap.min.js] are [/**]
DEBUG [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] - URI Template variables for request [/bootstrap/js/bootstrap.min.js] are {}
DEBUG [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] - Matching patterns for request [/bootstrap/css/bootstrap.min.css] are [/**]
DEBUG [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] - URI Template variables for request [/bootstrap/css/bootstrap.min.css] are {}
DEBUG [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] - Mapping [/css/bootstrap-fix.css] to HandlerExecutionChain with handler [org.springframework.web.servlet.resource.ResourceHttpRequestHandler#ff47cbc] and 1 interceptor
DEBUG [org.springframework.web.servlet.DispatcherServlet] - Last-Modified value for [/css/bootstrap-fix.css] is: -1
DEBUG [org.springframework.web.servlet.resource.ResourceHttpRequestHandler] - Trying relative path [css/bootstrap-fix.css] against base location: ServletContext resource [/]
DEBUG [org.springframework.web.servlet.resource.ResourceHttpRequestHandler] - Trying relative path [css/bootstrap-fix.css] against base location: class path resource [META-INF/resources/]
DEBUG [org.springframework.web.servlet.resource.ResourceHttpRequestHandler] - Trying relative path [css/bootstrap-fix.css] against base location: class path resource [resources/]
DEBUG [org.springframework.web.servlet.resource.ResourceHttpRequestHandler] - Trying relative path [css/bootstrap-fix.css] against base location: class path resource [static/]
DEBUG [org.springframework.web.servlet.resource.ResourceHttpRequestHandler] - Found matching resource: class path resource [static/css/bootstrap-fix.css]
DEBUG [org.springframework.web.servlet.resource.ResourceHttpRequestHandler] - Determined media type 'text/css' for class path resource [static/css/bootstrap-fix.css]
DEBUG [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] - Mapping [/bootstrap/css/bootstrap.min.css] to HandlerExecutionChain with handler [org.springframework.web.servlet.resource.ResourceHttpRequestHandler#ff47cbc] and 1 interceptor
DEBUG [org.springframework.web.servlet.DispatcherServlet] - Last-Modified value for [/bootstrap/css/bootstrap.min.css] is: -1
DEBUG [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] - Mapping [/bootstrap/js/bootstrap.min.js] to HandlerExecutionChain with handler [org.springframework.web.servlet.resource.ResourceHttpRequestHandler#ff47cbc] and 1 interceptor
DEBUG [org.springframework.web.servlet.DispatcherServlet] - Last-Modified value for [/bootstrap/js/bootstrap.min.js] is: -1
DEBUG [org.springframework.web.servlet.resource.ResourceHttpRequestHandler] - Trying relative path [bootstrap/css/bootstrap.min.css] against base location: ServletContext resource [/]
DEBUG [org.springframework.web.servlet.resource.ResourceHttpRequestHandler] - Trying relative path [bootstrap/css/bootstrap.min.css] against base location: class path resource [META-INF/resources/]
DEBUG [org.springframework.web.servlet.resource.ResourceHttpRequestHandler] - Trying relative path [bootstrap/css/bootstrap.min.css] against base location: class path resource [resources/]
DEBUG [org.springframework.web.servlet.resource.ResourceHttpRequestHandler] - Trying relative path [bootstrap/css/bootstrap.min.css] against base location: class path resource [static/]
DEBUG [org.springframework.web.servlet.resource.ResourceHttpRequestHandler] - Found matching resource: class path resource [static/bootstrap/css/bootstrap.min.css]
DEBUG [org.springframework.web.servlet.resource.ResourceHttpRequestHandler] - Determined media type 'text/css' for class path resource [static/bootstrap/css/bootstrap.min.css]
DEBUG [org.springframework.web.servlet.resource.ResourceHttpRequestHandler] - Trying relative path [bootstrap/js/bootstrap.min.js] against base location: ServletContext resource [/]
DEBUG [org.springframework.web.servlet.resource.ResourceHttpRequestHandler] - Trying relative path [bootstrap/js/bootstrap.min.js] against base location: class path resource [META-INF/resources/]
DEBUG [org.springframework.web.servlet.resource.ResourceHttpRequestHandler] - Trying relative path [bootstrap/js/bootstrap.min.js] against base location: class path resource [resources/]
DEBUG [org.springframework.web.servlet.resource.ResourceHttpRequestHandler] - Trying relative path [bootstrap/js/bootstrap.min.js] against base location: class path resource [static/]
DEBUG [org.springframework.web.servlet.resource.ResourceHttpRequestHandler] - Found matching resource: class path resource [static/bootstrap/js/bootstrap.min.js]
DEBUG [org.springframework.web.servlet.resource.ResourceHttpRequestHandler] - Determined media type 'application/javascript' for class path resource [static/bootstrap/js/bootstrap.min.js]
DEBUG [org.springframework.web.servlet.DispatcherServlet] - Null ModelAndView returned to DispatcherServlet with name 'dispatcherServlet': assuming HandlerAdapter completed request handling
DEBUG [org.springframework.web.servlet.DispatcherServlet] - Successfully completed request
DEBUG [org.springframework.web.servlet.DispatcherServlet] - Null ModelAndView returned to DispatcherServlet with name 'dispatcherServlet': assuming HandlerAdapter completed request handling
DEBUG [org.springframework.web.servlet.DispatcherServlet] - Successfully completed request
DEBUG [org.springframework.web.servlet.DispatcherServlet] - Null ModelAndView returned to DispatcherServlet with name 'dispatcherServlet': assuming HandlerAdapter completed request handling
DEBUG [org.springframework.web.servlet.DispatcherServlet] - Successfully completed request
DEBUG [org.springframework.web.servlet.DispatcherServlet] - DispatcherServlet with name 'dispatcherServlet' processing GET request for [/javascript/jquery-1.8.3.min.js]
DEBUG [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] - Looking up handler method for path /javascript/jquery-1.8.3.min.js
DEBUG [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] - Did not find handler method for [/javascript/jquery-1.8.3.min.js]
DEBUG [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] - Matching patterns for request [/javascript/jquery-1.8.3.min.js] are [/**]
DEBUG [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] - URI Template variables for request [/javascript/jquery-1.8.3.min.js] are {}
DEBUG [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] - Mapping [/javascript/jquery-1.8.3.min.js] to HandlerExecutionChain with handler [org.springframework.web.servlet.resource.ResourceHttpRequestHandler#ff47cbc] and 1 interceptor
DEBUG [org.springframework.web.servlet.DispatcherServlet] - Last-Modified value for [/javascript/jquery-1.8.3.min.js] is: -1
DEBUG [org.springframework.web.servlet.resource.ResourceHttpRequestHandler] - Trying relative path [javascript/jquery-1.8.3.min.js] against base location: ServletContext resource [/]
DEBUG [org.springframework.web.servlet.resource.ResourceHttpRequestHandler] - Trying relative path [javascript/jquery-1.8.3.min.js] against base location: class path resource [META-INF/resources/]
DEBUG [org.springframework.web.servlet.resource.ResourceHttpRequestHandler] - Trying relative path [javascript/jquery-1.8.3.min.js] against base location: class path resource [resources/]
DEBUG [org.springframework.web.servlet.resource.ResourceHttpRequestHandler] - Trying relative path [javascript/jquery-1.8.3.min.js] against base location: class path resource [static/]
DEBUG [org.springframework.web.servlet.resource.ResourceHttpRequestHandler] - Found matching resource: class path resource [static/javascript/jquery-1.8.3.min.js]
DEBUG [org.springframework.web.servlet.resource.ResourceHttpRequestHandler] - Determined media type 'application/javascript' for class path resource [static/javascript/jquery-1.8.3.min.js]
DEBUG [org.springframework.web.servlet.DispatcherServlet] - Null ModelAndView returned to DispatcherServlet with name 'dispatcherServlet': assuming HandlerAdapter completed request handling
DEBUG [org.springframework.web.servlet.DispatcherServlet] - Successfully completed request
Class which is giving some error inherates from UrlBasedViewResolver, but I have no idea what can I do with that. Cached view [error] gives me no clue.
What might cause this problems?
EDIT
I forgot to mention:
STS 3.5.1
IntelliJ Idea 13.1
STS has a number of Eclipse plugins that you won't find in IntelliJ. To get a Spring Boot application running from IntelliJ, you need to create a Maven run configuration with the command "spring-boot:run" and make sure it points at the correct module, if your app has multiple modules in it.

Resources