casshib
Krish
krish.v at gmail.com
Tue Nov 10 18:10:23 EST 2015
HI Kevin,
Sorry i forgot to include the 'aop' namespace. I got past it. But i am
getting some other error. Hope you can help. I am using CAS 3.4.11
INFO: Deploying web application archive C:\Program Files\Apache Software
Foundation\Tomcat 7.0\webapps\cas.war
Nov 10, 2015 3:04:53 PM org.apache.catalina.core.ContainerBase
addChildInternal
SEVERE: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/cas]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1095)
at
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1960)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.IllegalArgumentException: Filter mapping specifies an
unknown filter name requestAttributeSourceFilter
at
org.apache.catalina.core.StandardContext.validateFilterMap(StandardContext.java:3106)
at
org.apache.catalina.core.StandardContext.addFilterMap(StandardContext.java:3071)
at org.apache.catalina.deploy.WebXml.configureContext(WebXml.java:1343)
at
org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1357)
at
org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:889)
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:386)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5405)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 11 more
Nov 10, 2015 3:04:53 PM org.apache.catalina.startup.HostConfig deployWAR
SEVERE: Error deploying web application archive C:\Program Files\Apache
Software Foundation\Tomcat 7.0\webapps\cas.war
java.lang.IllegalStateException: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/cas]]
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:905)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1095)
at
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1960)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Below is my mapping in Deployerconfigcontext.
<bean id="currentUserProvider"
class="org.jasig.cas.adaptors.trusted.authentication.handler.support.PrincipalBearingCredentialsAuthenticationHandler"/>
<bean id="usernameAttributeProvider"
class="org.jasig.services.persondir.support.SimpleUsernameAttributeProvider">
<property name="usernameAttribute" value="username" />
</bean>
<bean id="requestAttributeSourceFilter"
class="org.jasig.services.persondir.support.web.RequestAttributeSourceFilter">
<property name="usernameAttribute" value="userName" />
<property name="additionalDescriptors"
ref="requestAdditionalDescriptors" />
<property name="remoteUserAttribute" value="userName" />
<property name="serverNameAttribute" value="serverName" />
<property name="processingPosition" value="BOTH" />
<property name="headerAttributeMapping">
<map>
<entry key="eppa" value="eduPersonPrimaryAffiliation" />
<entry key="uid" value="uid" />
<entry key="eppn" value="eduPersonPrincipalName" />
</map>
</property>
</bean>
<bean id="requestAdditionalDescriptors"
class="org.jasig.services.persondir.support.MediatingAdditionalDescriptors">
<property name="delegateDescriptors">
<list>
<bean
class="org.jasig.services.persondir.support.AdditionalDescriptors"
scope="globalSession">
<aop:scoped-proxy />
</bean>
<bean
class="org.jasig.services.persondir.support.AdditionalDescriptors"
scope="request">
<aop:scoped-proxy />
</bean>
</list>
</property>
</bean>
<bean id="requestAttributesDao"
class="org.jasig.services.persondir.support.AdditionalDescriptorsPersonAttributeDao">
<property name="descriptors" ref="requestAdditionalDescriptors" />
<property name="usernameAttributeProvider"
ref="usernameAttributeProvider" />
</bean>
<!--
END building attributes
-->
On Tue, Nov 10, 2015 at 10:48 AM, Krish <krish.v at gmail.com> wrote:
> Kevin,
>
> I never knew i could use the shibboleth SP to directly protect CAS. This
> is great. I tried to configure the CAS trusted auth handler and followed
> your instructions. I got the below error in my tomcat. Have you seen this
> error?
>
> Here is my deployerconfigcontext.xml. I have this as per your
> documentation.
>
> <aop:scoped-proxy />
> </bean>
> <bean
> class="org.jasig.services.persondir.support.AdditionalDescriptors"
> scope="request">
> <aop:scoped-proxy />
>
> and i see below error.
>
>
>
> t.Executors$RunnableAdapter.call(Unknown Source)
> at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
> at java.util.concurrent.FutureTask.run(Unknown Source)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
> at java.lang.Thread.run(Unknown Source)
> Caused by: org.xml.sax.SAXParseException; lineNumber: 137; columnNumber:
> 36; The prefix "aop" for element "aop:scoped-proxy" is not bound.
> at
> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
> Source)
> at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown
> Source)
> at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown
> Source)
> at
> org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75)
> at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388)
> ... 30 more
>
>
> On Mon, Nov 9, 2015 at 9:57 AM, Kevin Foote <kpfoote at uoregon.edu> wrote:
>
>>
>> > On Nov 8, 2015, at 10:55 PM, Krish <krish.v at gmail.com> wrote:
>> >
>> > Does any one have worked with casshib. I am trying to shibbolize my CAS
>> server and i need some help.
>>
>> No I have not .. but this can be done with standard of the shelf CAS and
>> OOB Shib-SP [1].
>>
>> > I have my cas deployed in tomcat server. My CAS server is integrated
>> with Active directory
>>
>> why?
>>
>> What are your goals in this venture? The Shibboleth IdP works fine when
>> using CAS as the authentication portion. There
>> is no harm in leaving your CAS presence intact and integrating the IdP
>> this way.
>>
>>
>> [1] https://wiki.shibboleth.net/confluence/x/vwHN
>>
>>
>> --------
>> thanks
>> kevin.foote
>>
>>
>> --
>> To unsubscribe from this list send an email to
>> users-unsubscribe at shibboleth.net
>>
>
>
>
> --
> Krish
>
--
Krish
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20151110/bbd84852/attachment-0001.html>
More information about the users
mailing list