Spring Security plugin throws error 500 No thread request found (possibly due to plugin)

Maybe someone can help me. I just use the simple spring-security-plugin kernel and execute the s2-quickstart command, the command runs fine until you start the application and produce this error:

Error 500: Servlet: Default URI: / jeepnee / Exception message: stream binding request not found: are you referring to the request attributes outside the actual web request or are processing the request outside the source stream? If you really work in a web request and still get this message, your code probably works outside of DispatcherServlet / DispatcherPortlet

Maybe something is wrong with the plugins:

plugins.bubbling = 2.1.3
plugins.class chart = 0.5.2
plugins.cloud-foundry = 1.2
plugins.cloud support = 1.0.6
plugins.flash player = 1.4
plugins.grails-Ui = 1.2.2
plugins.hibernate = 1.3.7
plugins.navigation = 1.3.2
plugins.resources = 1.1.1
plugins.richui = 0.8
plugins.swfobject = 2.2.1
plugins.tomcat = 1.3.7
plugins.yui = 2.8.2.1

Can someone enlighten me?

I am stuck on this issue. Perhaps the plugin conflicts with spring protection, which also performs web.xml manipulations through the runtime.

+4
source share
3 answers

The problem is the old version of the resource plugin. You need the latest versions of this and Spring Security Core, which use the webxml plugin to organize filter filter elements in web.xml accordingly.

+3
source

For me, this problem still persists with the latest versions of the plugin:

runtime ":spring-security-core:1.2.7.1" runtime ":resources:1.1.6" 

As a workaround, I rejected the suggestion on the mailing list (BuildConfig.groovy)

 runtime ":spring-security-core:1.2.4" 

Please vote for this JIRA that I created:

http://jira.grails.org/browse/GPCLOUDFOUNDRY-32

+1
source

I had this problem in Grails 2.2.0 when running the application through maven mvn grails: clean grails: run the application, while "grails run-app" worked fine and resolved it as follows:

If you are using Maven, make sure you have this on your pom.xml:

 <dependency> <groupId>org.grails.plugins</groupId> <artifactId>webxml</artifactId> <version>1.4.1</version> <scope>runtime</scope> <type>zip</type> </dependency> 

and in BuildConfig, groovy:

 runtime ":webxml:1.4.1" 

This solved the problem for me with Grails 2.2.0.

+1
source

Source: https://habr.com/ru/post/1386660/


All Articles