Announcement Announcement Module
Collapse
No announcement yet.
Error configuring Spring Security Kerberos extension Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Error configuring Spring Security Kerberos extension

    I am trying to configure Spring Security Kerberos extension following the instructions given in this blog:http://blog.springsource.com/2009/09...rity-kerberos/ and running into issues. Below is the error from server log:

    Code:
    15:30:32,482 ERROR [StackTrace] (MSC service thread 1-3) Sanitizing stacktrace:: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 31 in XML document from file [/opt/jboss-as-7.1.1.Final/modules/ozone/configuration/main/./OWFsecurityContext_kerberos.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-enumeration-valid: Value 'BASIC_PROCESSING_FILTER' is not facet-valid with respect to enumeration '[FIRST, CHANNEL_FILTER, CONCURRENT_SESSION_FILTER, SECURITY_CONTEXT_FILTER, LOGOUT_FILTER, X509_FILTER, PRE_AUTH_FILTER, CAS_FILTER, FORM_LOGIN_FILTER, OPENID_FILTER, BASIC_AUTH_FILTER, SERVLET_API_SUPPORT_FILTER, REMEMBER_ME_FILTER, ANONYMOUS_FILTER, EXCEPTION_TRANSLATION_FILTER, SESSION_MANAGEMENT_FILTER, FILTER_SECURITY_INTERCEPTOR, SWITCH_USER_FILTER, LAST]'. It must be a value from the enumeration.
    	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396) [org.springframework.beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
    	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334) [org.springframework.beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
    	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302) [org.springframework.beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
    	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143) [org.springframework.beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
    	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178) [org.springframework.beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
    	at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource(DefaultBeanDefinitionDocumentReader.java:186) [org.springframework.beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
    	at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseDefaultElement(DefaultBeanDefinitionDocumentReader.java:147) [org.springframework.beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
    	at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:132) [org.springframework.beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
    	at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:93) [org.springframework.beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
    	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:493) [org.springframework.beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
    	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:390) [org.springframework.beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
    	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334) [org.springframework.beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
    	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302) [org.springframework.beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
    	at org.springframework.beans.factory.xml.XmlBeanFactory.<init>(XmlBeanFactory.java:73) [org.springframework.beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
    	at org.springframework.beans.factory.xml.XmlBeanFactory.<init>(XmlBeanFactory.java:61) [org.springframework.beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
    	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [rt.jar:1.6.0_31]
    	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) [rt.jar:1.6.0_31]
    	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) [rt.jar:1.6.0_31]
    	at java.lang.reflect.Constructor.newInstance(Constructor.java:513) [rt.jar:1.6.0_31]
    	at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:77) [groovy-all-1.7.8.jar:1.7.8]
    	at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:102) [groovy-all-1.7.8.jar:1.7.8]
    	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:52) [groovy-all-1.7.8.jar:1.7.8]
    	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:190) [groovy-all-1.7.8.jar:1.7.8]
    	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:198) [groovy-all-1.7.8.jar:1.7.8]
    	at org.codehaus.groovy.grails.plugins.orm.hibernate.HibernatePluginSupport.checkExternalBeans(HibernatePluginSupport.groovy:1029) [grails-gorm-1.3.7.jar:1.3.7]
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_31]
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [rt.jar:1.6.0_31]
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [rt.jar:1.6.0_31]
    	at java.lang.reflect.Method.invoke(Method.java:597) [rt.jar:1.6.0_31]
    	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) [groovy-all-1.7.8.jar:1.7.8]
    	at org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite$StaticMetaMethodSiteNoUnwrapNoCoerce.invoke(StaticMetaMethodSite.java:148) [groovy-all-1.7.8.jar:1.7.8]
    	at org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite.call(StaticMetaMethodSite.java:88) [groovy-all-1.7.8.jar:1.7.8]
    	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40) [groovy-all-1.7.8.jar:1.7.8]
    	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116) [groovy-all-1.7.8.jar:1.7.8]
    	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124) [groovy-all-1.7.8.jar:1.7.8]
    	at org.codehaus.groovy.grails.plugins.orm.hibernate.HibernatePluginSupport$__clinit__closure92.doCall(HibernatePluginSupport.groovy:116) [grails-gorm-1.3.7.jar:1.3.7]
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_31]
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [rt.jar:1.6.0_31]
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [rt.jar:1.6.0_31]
    	at java.lang.reflect.Method.invoke(Method.java:597) [rt.jar:1.6.0_31]
    	at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSite.invoke(PogoMetaMethodSite.java:225) [groovy-all-1.7.8.jar:1.7.8]
    	at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:51) [groovy-all-1.7.8.jar:1.7.8]
    	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:44) [groovy-all-1.7.8.jar:1.7.8]
    	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141) [groovy-all-1.7.8.jar:1.7.8]
    	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:149) [groovy-all-1.7.8.jar:1.7.8]
    	at org.codehaus.groovy.grails.plugins.orm.hibernate.HibernatePluginSupport$__clinit__closure92.doCall(HibernatePluginSupport.groovy) [grails-gorm-1.3.7.jar:1.3.7]
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_31]
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [rt.jar:1.6.0_31]
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [rt.jar:1.6.0_31]
    	at java.lang.reflect.Method.invoke(Method.java:597) [rt.jar:1.6.0_31]
    	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) [groovy-all-1.7.8.jar:1.7.8]
    	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233) [groovy-all-1.7.8.jar:1.7.8]
    	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1058) [groovy-all-1.7.8.jar:1.7.8]
    	at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1070) [groovy-all-1.7.8.jar:1.7.8]
    	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886) [groovy-all-1.7.8.jar:1.7.8]
    	at groovy.lang.Closure.call(Closure.java:282) [groovy-all-1.7.8.jar:1.7.8]
    	at groovy.lang.Closure.call(Closure.java:277) [groovy-all-1.7.8.jar:1.7.8]
    	at grails.spring.BeanBuilder.invokeBeanDefiningClosure(BeanBuilder.java:723) [grails-spring-1.3.7.jar:1.3.7]
    	at grails.spring.BeanBuilder.beans(BeanBuilder.java:573) [grails-spring-1.3.7.jar:1.3.7]
    	at grails.spring.BeanBuilder.invokeMethod(BeanBuilder.java:519) [grails-spring-1.3.7.jar:1.3.7]

    I am seeing this error while bringing up the server (JBoss AS 7.1.1) where the application Ozone Widget Framework(owf.war) is deployed. Any help would be greatly appreciated.
    Thanks.
    Last edited by Rob Winch; Jun 4th, 2013, 09:27 AM. Reason: Format

  • #2
    It looks like the blog has a typo. It should use BASIC_AUTH_FILTER and not BASIC_PROCESSING_FILTER. You might want to look at the spring-security-kerberos-sample project included with the Kerberos project which is quite a bit more up to date.

    Comment


    • #3
      Thanks for the quick reply. I went past the above said issue and found out that we have openjdk on our linux box where we have jboss running. I am in the process of getting oracle jdk installed. I will let you know how it goes.

      Thanks.

      Comment


      • #4
        We have oracle jdk 1.6 installed on our linux box as that is required for spring kerberos extension. But, still I see the below error when I bring up the server:

        22:15:52,930 ERROR [StackTrace] (MSC service thread 1-4) Sanitizing stacktrace:: org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name '_authenticationManager': Cannot resolve reference to bean 'kerberosServiceAuthenticationProvider' while setting bean property 'providers' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'kerberosServiceAuthenticationProvider' defined in file [/opt/jboss-as-7.1.1.Final/modules/ozone/configuration/main/./OWFsecurityContext_kerberos.xml]: Cannot create inner bean 'org.springframework.security.extensions.kerberos. SunJaasKerberosTicketValidator#48454bc7' of type [org.springframework.security.extensions.kerberos.S unJaasKerberosTicketValidator] while setting bean property 'ticketValidator'; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'org.springframework.security.extensions.kerberos. SunJaasKerberosTicketValidator#48454bc7' defined in file [/opt/jboss-as-7.1.1.Final/modules/ozone/configuration/main/./OWFsecurityContext_kerberos.xml]: Invocation of init method failed; nested exception is javax.security.auth.login.LoginException: Unable to obtain password from user
        at org.springframework.beans.factory.support.BeanDefi nitionValueResolver.resolveReference(BeanDefinitio nValueResolver.java:315) [org.springframework.beans-3.0.0.M4.jar:3.0.0.M4]
        at org.springframework.beans.factory.support.BeanDefi nitionValueResolver.resolveValueIfNecessary(BeanDe finitionValueResolver.java:106) [org.springframework.beans-3.0.0.M4.jar:3.0.0.M4]
        at org.springframework.beans.factory.support.BeanDefi nitionValueResolver.resolveManagedList(BeanDefinit ionValueResolver.java:342) [org.springframework.beans-3.0.0.M4.jar:3.0.0.M4]
        at org.springframework.beans.factory.support.BeanDefi nitionValueResolver.resolveValueIfNecessary(BeanDe finitionValueResolver.java:153) [org.springframework.beans-3.0.0.M4.jar:3.0.0.M4]
        at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.applyPropertyValues(Abs tractAutowireCapableBeanFactory.java:1298) [org.springframework.beans-3.0.0.M4.jar:3.0.0.M4]
        at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.populateBean(AbstractAu towireCapableBeanFactory.java:1060) [org.springframework.beans-3.0.0.M4.jar:3.0.0.M4]
        at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.doCreateBean(AbstractAu towireCapableBeanFactory.java:510) [org.springframework.beans-3.0.0.M4.jar:3.0.0.M4]
        at org.codehaus.groovy.grails.commons.spring.ReloadAw areAutowireCapableBeanFactory.doCreateBean(ReloadA wareAutowireCapableBeanFactory.java:135) [grails-spring-1.3.7.jar:1.3.7]
        at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:449) [org.springframework.beans-3.0.0.M4.jar:3.0.0.M4]
        at org.springframework.beans.factory.support.Abstract BeanFactory$1.getObject(AbstractBeanFactory.java:2 89) [org.springframework.beans-3.0.0.M4.jar:3.0.0.M4]
        at org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry.getSingleton(DefaultSingleton BeanRegistry.java:222) [org.springframework.beans-3.0.0.M4.jar:3.0.0.M4]
        at org.springframework.beans.factory.support.Abstract BeanFactory.doGetBean(AbstractBeanFactory.java:286 ) [org.springframework.beans-3.0.0.M4.jar:3.0.0.M4]
        at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:188) [org.springframework.beans-3.0.0.M4.jar:3.0.0.M4]
        at org.springframework.beans.factory.support.BeanDefi nitionValueResolver.resolveReference(BeanDefinitio nValueResolver.java:309) [org.springframework.beans-3.0.0.M4.jar:3.0.0.M4]
        at org.springframework.beans.factory.support.BeanDefi nitionValueResolver.resolveValueIfNecessary(BeanDe finitionValueResolver.java:106) [org.springframework.beans-3.0.0.M4.jar:3.0.0.M4]
        at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.applyPropertyValues(Abs tractAutowireCapableBeanFactory.java:1298) [org.springframework.beans-3.0.0.M4.jar:3.0.0.M4]
        at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.populateBean(AbstractAu towireCapableBeanFactory.java:1060) [org.springframework.beans-3.0.0.M4.jar:3.0.0.M4]
        at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.doCreateBean(AbstractAu towireCapableBeanFactory.java:510) [org.springframework.beans-3.0.0.M4.jar:3.0.0.M4]
        at org.codehaus.groovy.grails.commons.spring.ReloadAw areAutowireCapableBeanFactory.doCreateBean(ReloadA wareAutowireCapableBeanFactory.java:135) [grails-spring-1.3.7.jar:1.3.7]
        at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:449) [org.springframework.beans-3.0.0.M4.jar:3.0.0.M4]
        at org.springframework.beans.factory.support.Abstract BeanFactory$1.getObject(AbstractBeanFactory.java:2 89) [org.springframework.beans-3.0.0.M4.jar:3.0.0.M4]
        at org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry.getSingleton(DefaultSingleton BeanRegistry.java:222) [org.springframework.beans-3.0.0.M4.jar:3.0.0.M4]
        at org.springframework.beans.factory.support.Abstract BeanFactory.doGetBean(AbstractBeanFactory.java:286 ) [org.springframework.beans-3.0.0.M4.jar:3.0.0.M4]
        at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:188) [org.springframework.beans-3.0.0.M4.jar:3.0.0.M4]
        at org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListableBeanFactory.java:528) [org.springframework.beans-3.0.0.M4.jar:3.0.0.M4]
        at org.springframework.context.support.AbstractApplic ationContext.finishBeanFactoryInitialization(Abstr actApplicationContext.java:716) [org.springframework.context-3.0.0.M4.jar:3.0.0.M4]
        at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:383) [org.springframework.context-3.0.0.M4.jar:3.0.0.M4]
        at org.codehaus.groovy.grails.commons.spring.DefaultR untimeSpringConfiguration.getApplicationContext(De faultRuntimeSpringConfiguration.java:154) [grails-spring-1.3.7.jar:1.3.7]
        at org.codehaus.groovy.grails.commons.spring.GrailsRu ntimeConfigurator.configure(GrailsRuntimeConfigura tor.java:164) [grails-spring-1.3.7.jar:1.3.7]
        at org.codehaus.groovy.grails.commons.spring.GrailsRu ntimeConfigurator.configure(GrailsRuntimeConfigura tor.java:124) [grails-spring-1.3.7.jar:1.3.7]
        at org.codehaus.groovy.grails.web.context.GrailsConfi gUtils.configureWebApplicationContext(GrailsConfig Utils.java:120) [grails-web-1.3.7.jar:1.3.7]
        at org.codehaus.groovy.grails.web.context.GrailsConte xtLoader.createWebApplicationContext(GrailsContext Loader.java:73) [grails-web-1.3.7.jar:1.3.7]
        at org.springframework.web.context.ContextLoader.init WebApplicationContext(ContextLoader.java:197) [org.springframework.web-3.0.0.M4.jar:3.0.0.M4]
        at org.springframework.web.context.ContextLoaderListe ner.contextInitialized(ContextLoaderListener.java: 47) [org.springframework.web-3.0.0.M4.jar:3.0.0.M4]
        at org.apache.catalina.core.StandardContext.contextLi stenerStart(StandardContext.java:3392) [jbossweb-7.0.13.Final.jar:]
        at org.apache.catalina.core.StandardContext.start(Sta ndardContext.java:3850) [jbossweb-7.0.13.Final.jar:]
        at org.jboss.as.web.deployment.WebDeploymentService.s tart(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
        at org.jboss.msc.service.ServiceControllerImpl$StartT ask.startService(ServiceControllerImpl.java:1811)
        at org.jboss.msc.service.ServiceControllerImpl$StartT ask.run(ServiceControllerImpl.java:1746)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run Task(ThreadPoolExecutor.java:895) [rt.jar:1.6.0_45]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:918) [rt.jar:1.6.0_45]
        at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_45]
        Caused by: org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'kerberosServiceAuthenticationProvider' defined in file [/opt/jboss-as-7.1.1.Final/modules/ozone/configuration/main/./OWFsecurityContext_kerberos.xml]: Cannot create inner bean 'org.springframework.security.extensions.kerberos. SunJaasKerberosTicketValidator#48454bc7' of type [org.springframework.security.extensions.kerberos.S unJaasKerberosTicketValidator] while setting bean property 'ticketValidator'; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'org.springframework.security.extensions.kerberos. SunJaasKerberosTicketValidator#48454bc7' defined in file [/opt/jboss-as-7.1.1.Final/modules/ozone/configuration/main/./OWFsecurityContext_kerberos.xml]: Invocation of init method failed; nested exception is javax.security.auth.login.LoginException: Unable to obtain password from user
        at org.springframework.beans.factory.support.BeanDefi nitionValueResolver.resolveInnerBean(BeanDefinitio nValueResolver.java:268) [org.springframework.beans-3.0.0.M4.jar:3.0.0.M4]
        at org.springframework.beans.factory.support.BeanDefi nitionValueResolver.resolveValueIfNecessary(BeanDe finitionValueResolver.java:120) [org.springframework.beans-3.0.0.M4.jar:3.0.0.M4]
        at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.applyPropertyValues(Abs tractAutowireCapableBeanFactory.java:1298) [org.springframework.beans-3.0.0.M4.jar:3.0.0.M4]
        at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.populateBean(AbstractAu towireCapableBeanFactory.java:1060) [org.springframework.beans-3.0.0.M4.jar:3.0.0.M4]


        Any help would be greatly appreciated.
        Thanks.

        Comment


        • #5
          I had turned on the DEBUG and I see the below in my log:

          12:47:39,261 INFO [stdout] (MSC service thread 1-4) Debug is true storeKey true useTicketCache false useKeyTab true doNotPrompt true ticketCache is null isInitiator false KeyTab is vfs:/opt/jboss-as-7.1.1.Final/standalone/deployments/owf.war/WEB-INF/classes/ssbox8-host.keytab refreshKrb5Config is false principal is HTTP/ssbox8.enterpriselabs.mycompany.com tryFirstPass is false useFirstPass is false storePass is false clearPass is false
          12:47:39,262 INFO [stdout] (MSC service thread 1-4) Key for the principal HTTP/ssbox8.enterpriselabs.mycompany.com@ENTERPRISELABS .MYCOMPANY.COM not available in vfs:/opt/jboss-as-7.1.1.Final/standalone/deployments/owf.war/WEB-INF/classes/ssbox8-host.keytab
          12:47:39,263 INFO [stdout] (MSC service thread 1-4) [Krb5LoginModule] authentication failed
          12:47:39,263 INFO [stdout] (MSC service thread 1-4) Unable to obtain password from user

          Thanks.

          Comment


          • #6
            This problem was fixed. I changed my config file entry from
            <property name="keyTabLocation" value="classpath:http-web.keytab" />
            to
            <property name="keyTabLocation" value="file:/opt/jboss-as-7.1.1.Final/standalone/deployments/owf.war/WEB-INF/classes/http-web.keytab" />
            and everything seems to work so far as reading from the keytab file.

            Thanks.

            Comment


            • #7
              I am now seeing thr following error when I bring up mu server (jboss as 7.1.1):

              13:20:04,938 ERROR [StackTrace] (MSC service thread 1-4) Sanitizing stacktrace:: java.lang.NoSuchMethodError: org.springframework.context.ApplicationContext.get Bean(Ljava/lang/ClassLjava/lang/Object;
              at org.codehaus.groovy.grails.web.servlet.mvc.Command ObjectEnablingPostProcessor.setApplicationContext( CommandObjectEnablingPostProcessor.java:76) [grails-web-1.3.7.jar:1.3.7]
              at org.codehaus.groovy.grails.web.servlet.mvc.Command ObjectEnablingPostProcessor.<init>(CommandObjectEn ablingPostProcessor.java:44) [grails-web-1.3.7.jar:1.3.7]
              at sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native Method) [rt.jar:1.6.0_45]
              at sun.reflect.NativeConstructorAccessorImpl.newInsta nce(NativeConstructorAccessorImpl.java:39) [rt.jar:1.6.0_45]
              at sun.reflect.DelegatingConstructorAccessorImpl.newI nstance(DelegatingConstructorAccessorImpl.java:27) [rt.jar:1.6.0_45]
              at java.lang.reflect.Constructor.newInstance(Construc tor.java:513) [rt.jar:1.6.0_45]
              at org.codehaus.groovy.reflection.CachedConstructor.i nvoke(CachedConstructor.java:77) [groovy-all-1.7.8.jar:1.7.8]
              at org.codehaus.groovy.runtime.callsite.ConstructorSi te$ConstructorSiteNoUnwrapNoCoerce.callConstructor (ConstructorSite.java:102) [groovy-all-1.7.8.jar:1.7.8]
              at org.codehaus.groovy.runtime.callsite.CallSiteArray .defaultCallConstructor(CallSiteArray.java:52) [groovy-all-1.7.8.jar:1.7.8]
              at org.codehaus.groovy.runtime.callsite.AbstractCallS ite.callConstructor(AbstractCallSite.java:190) [groovy-all-1.7.8.jar:1.7.8]
              at org.codehaus.groovy.runtime.callsite.AbstractCallS ite.callConstructor(AbstractCallSite.java:198) [groovy-all-1.7.8.jar:1.7.8]
              at org.codehaus.groovy.grails.plugins.web.Controllers GrailsPlugin$_closure3.doCall(ControllersGrailsPlu gin.groovy:189) [grails-web-1.3.7.jar:1.3.7]
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method) [rt.jar:1.6.0_45]
              at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39) [rt.jar:1.6.0_45]
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25) [rt.jar:1.6.0_45]
              at java.lang.reflect.Method.invoke(Method.java:597) [rt.jar:1.6.0_45]
              at org.codehaus.groovy.reflection.CachedMethod.invoke (CachedMethod.java:90) [groovy-all-1.7.8.jar:1.7.8]
              at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.j ava:233) [groovy-all-1.7.8.jar:1.7.8]
              at groovy.lang.MetaClassImpl.invokeMethod(MetaClassIm pl.java:1058) [groovy-all-1.7.8.jar:1.7.8]
              at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoM etaClass.java:1070) [groovy-all-1.7.8.jar:1.7.8]
              at groovy.lang.MetaClassImpl.invokeMethod(MetaClassIm pl.java:886) [groovy-all-1.7.8.jar:1.7.8]
              at groovy.lang.Closure.call(Closure.java:282) [groovy-all-1.7.8.jar:1.7.8]
              at org.codehaus.groovy.grails.plugins.DefaultGrailsPl ugin.doWithDynamicMethods(DefaultGrailsPlugin.java :994) [grails-core-1.3.7.jar:1.3.7]
              at org.codehaus.groovy.grails.plugins.DefaultGrailsPl uginManager.doDynamicMethods(DefaultGrailsPluginMa nager.java:814) [grails-core-1.3.7.jar:1.3.7]
              at org.codehaus.groovy.grails.commons.spring.GrailsRu ntimeConfigurator.configure(GrailsRuntimeConfigura tor.java:168) [grails-spring-1.3.7.jar:1.3.7]
              at org.codehaus.groovy.grails.commons.spring.GrailsRu ntimeConfigurator.configure(GrailsRuntimeConfigura tor.java:124) [grails-spring-1.3.7.jar:1.3.7]
              at org.codehaus.groovy.grails.web.context.GrailsConfi gUtils.configureWebApplicationContext(GrailsConfig Utils.java:120) [grails-web-1.3.7.jar:1.3.7]
              at org.codehaus.groovy.grails.web.context.GrailsConte xtLoader.createWebApplicationContext(GrailsContext Loader.java:73) [grails-web-1.3.7.jar:1.3.7]
              at org.springframework.web.context.ContextLoader.init WebApplicationContext(ContextLoader.java:197) [org.springframework.web-3.0.5.RELEASE.jar:3.0.5.RELEASE]
              at org.springframework.web.context.ContextLoaderListe ner.contextInitialized(ContextLoaderListener.java: 47) [org.springframework.web-3.0.5.RELEASE.jar:3.0.5.RELEASE]
              at org.apache.catalina.core.StandardContext.contextLi stenerStart(StandardContext.java:3392) [jbossweb-7.0.13.Final.jar:]
              at org.apache.catalina.core.StandardContext.start(Sta ndardContext.java:3850) [jbossweb-7.0.13.Final.jar:]
              at org.jboss.as.web.deployment.WebDeploymentService.s tart(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
              at org.jboss.msc.service.ServiceControllerImpl$StartT ask.startService(ServiceControllerImpl.java:1811)
              at org.jboss.msc.service.ServiceControllerImpl$StartT ask.run(ServiceControllerImpl.java:1746)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run Task(ThreadPoolExecutor.java:895) [rt.jar:1.6.0_45]
              at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:918) [rt.jar:1.6.0_45]
              at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_45]

              I tried copying groovy-all, gails-core, grails-spring and grails-web jar files (1.3.5 release). But, that doesn't help.
              Any help would be greatly appreciated.
              Thanks.

              Comment

              Working...
              X