CAS 5.0.0.RC4 - File auth failing when including cas-server-support-generic on file shiro.ini missing

30 views
Skip to first unread message

Eric Allen

unread,
Oct 24, 2016, 6:31:05 PM10/24/16
to jasig-cas-user
When I import cas-server-support-generic to get users/password from file, whitelist authentication  https://apereo.github.io/cas/development/installation/Whitelist-Authentication.html.  It fails trying to find shiro.ini.  I got the assumption from the config documents that I could use file based auth without shiro.  Is that not correct?

from cas.properties
cas.authn.file.separator=::
cas.authn.file.filename=file:/etc/cas/config/users.txt

error

2016-10-24 22:09:45,768 WARN [org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext] - <Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'scopedTarget.shiroAuthenticationHandler' defined in class path resource [org/apereo/cas/adaptors/generic/config/CasGenericConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apereo.cas.authentication.AuthenticationHandler]: Factory method 'shiroAuthenticationHandler' threw exception; nested exception is java.lang.RuntimeException: java.io.FileNotFoundException: class path resource [shiro.ini] cannot be resolved to URL because it does not exist>
24-Oct-2016 22:09:45.798 SEVERE [localhost-startStop-1] org.apache.catalina.core.ContainerBase.addChildInternal 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:162)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:940)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1816)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Reply all
Reply to author
Forward
0 new messages