Announcement Announcement Module
Collapse
No announcement yet.
Spring Security CAS plugin error when deploying to Tomcat Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring Security CAS plugin error when deploying to Tomcat

    When I deploy my Grails (version: 1.3.5) application war to a Tomcat (version: 6.0.26), I get the following error:
    Configuring Spring Security ...
    hierarchicalroles.RoleHierarchyImpl setHierarchy() - The following role hierarchy was set:
    context.ContextLoader Context initialization failed org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'casAuthenticationFilter': Cannot resolve reference to bean 'casServiceProperties' while setting bean property 'serviceProperties'; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'casServiceProperties': Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedEx ception: Failed to convert property value of type 'groovy.util.ConfigObject' to required type 'java.lang.String' for property 'artifactParameter'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [groovy.util.ConfigObject] to required type [java.lang.String] for property 'artifactParameter': no matching editors or conversion strategy found
    Oddly, when I run my app via: grails prod run-app or grails prod run-war everything works fine. I found this issue on JIRA (http://jira.codehaus.org/browse/GRAI...log-tabpanel); however, the suggested solution did not work in my case. Following is my Spring Security CAS configuration:
    Code:
    // Spring Security CAS configurations
    grails.plugins.springsecurity.cas.serverUrlPrefix = 'http://xxx.xxx.xxx.xxx:8080/myapp-cas'
    grails.plugins.springsecurity.cas.loginUri = '/login'
    grails.plugins.springsecurity.cas.sendRenew = false
    grails.plugins.springsecurity.cas.serviceUrl = 'http://xxx.xxx.xxx.xxx:8081/myapp-web/sign-in'
    grails.plugins.springsecurity.cas.key = 'faciler-auth'
    grails.plugins.springsecurity.cas.artifactParameter = 'ticket'
    grails.plugins.springsecurity.cas.serviceParameter = 'service'
    grails.plugins.springsecurity.cas.filterProcessesUrl = '/sign-in'
    grails.plugins.springsecurity.cas.proxyCallbackUrl = null
    grails.plugins.springsecurity.cas.proxyReceptorUrl = null
    grails.plugins.springsecurity.cas.useSingleSignout = true
    grails.plugins.springsecurity.logout.afterLogoutUrl = 'http://xxx.xxx.xxx.xxx:8080/myapp-cas/logout?url=http://xxx.xxx.xxx.xxx:8081/myapp-web'
    Anyone know how I can fix this deployment issue?
Working...
X