Spring security does not work with Grails project on JBoss application server

I have a large (several custom plugins) Grails project that works fine on a Tomcat server.

Now for the new client, we need to deploy it to the JBoss application server. It seems to work fine without any errors, but when I try to enter the first page, which is implemented using the Spring Security Plugin. He does not register me. I tried going to a valid url to check if there is a redirect problem, but that is not the case.

Please note that it does not show any errors in the log. And since it is not properly executable in the development environment, so every time I need to create a WAR file to check it.

Grails Version: 2.4.4

Spring Security Version: ': spring -security-core: 2.0-RC4'

JBoss Version: wildfly 9.0.2.Final

+6
source share
1 answer

I tried some settings and they all worked as a simple new project.

I used grails 2.4.4 and spring-security 2.0-RC4.

Here are a few things you could try:

  • Use the latest version of spring-security version 2.0.0

    compile "org.grails.plugins:spring-security-core:2.0.0" 
  • Add jboss plugin and generate xmls deployment (this is necessary for grails 2.5.4)

     build ':jbossas:1.0' $grails generate-boss-deploy 6 
  • Create a new Wildfly and install it.

I can only think about the infrastructure problem, since I have no problems with the same setup. I am running on Mac, with java 8 and Wildfly 9.0.2 final. Tested rake 2.4.4 and 2.5.4, spring security 2.0-RC4 and 2.0.0.

Best, Eder

0
source

All Articles