CAS 4.1.3 Shibboleth IdP integration

32 views
Skip to first unread message

Gang Wang

unread,
Jan 6, 2016, 3:18:08 PM1/6/16
to CAS Community
I try to follow the instruction, http://jasig.github.io/cas/4.1.x/integration/Shibboleth.htm, and use the external option.  But when the cas.war is deployed and the login page is accessed, there is a runtime exception.  Looks like it's caused by the static metadata source configuration.  Before this changes, I have already enabled SAML 2.0 Google Account.  Don't know if that could the the cause.  The stacktrace is provided below.  Any help would be greatly appreciated.  Thanks!

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'metadataAdapter': Invocation of init method failed; nested exception is java.lang.RuntimeException: org.quartz.ObjectAlreadyExistsException: Unable to store Job : 'DEFAULT.StaticMetadataResolverAdapter', because one already exists with this identification.
	org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:136)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:408)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1564)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
	org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
	org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
	org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
	org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
	org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351)
	org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
	org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:648)
	org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:140)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1137)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1040)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)
	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
	org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
	org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
	org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
	org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
	org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:755)
	org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:759)
	org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)
	org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:664)
	org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:630)
	org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:678)
	org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:549)
	org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:490)
	org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)
	javax.servlet.GenericServlet.init(GenericServlet.java:158)
	org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
	org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
	org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
	org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:521)
	org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1096)
	org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:674)
	org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500)
	org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456)
	java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	java.lang.Thread.run(Thread.java:745)

Misagh Moayyed

unread,
Jan 6, 2016, 3:32:56 PM1/6/16
to CAS Community

Sounds like a bug. Open up an issue please, and attach your configuration there.

 

--
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.

Christopher Myers

unread,
Jan 6, 2016, 4:17:12 PM1/6/16
to cas-...@apereo.org
When you do, please let the list know what the issue number is so that we can follow it too; I'm going to be doing an upgrade from Shib 2.x to 3.x here sometime this spring since 2.x is being desupported. Our Shib instance points to our CAS instance for authentication, so we'll need to make sure all is ok :)




>>> "Misagh Moayyed" <mmoa...@unicon.net> 01/06/16 2:33 PM >>>

Gang Wang

unread,
Jan 6, 2016, 4:36:39 PM1/6/16
to CAS Community, cmy...@mail.millikin.edu
here is the issue, https://github.com/Jasig/cas/issues/1423
thanks!

Christopher Myers

unread,
Jan 6, 2016, 4:43:14 PM1/6/16
to cas-...@apereo.org
Awesome, thanks much! Watching it now :)

>>> Gang Wang <wang...@gmail.com> 01/06/16 3:36 PM >>>

Liang Shao

unread,
Apr 20, 2016, 11:59:12 PM4/20/16
to CAS Community, wang...@gmail.com
Hi,
Did you fix this issue? I fail into the same issue.

在 2016年1月7日星期四 UTC+8上午4:18:08,Gang Wang写道:
Reply all
Reply to author
Forward
0 new messages