CAS 6.4.4 won't deploy

83 views
Skip to first unread message

Sven Specker

unread,
Dec 15, 2021, 10:16:04 AM12/15/21
to CAS Community
Hi!

I have a strange problem.

While trying to upgrade one of my CAS-Servers from 6.1.x to 6.4.4 i run
into this

WARN
[org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext]
- <Exception encountered during context
initialization - cancelling refresh attempt:
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'redisReferenceResolver': Cannot resolve
reference to bean 'redisTemplate' while setting constructor argument;
nested exception is
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean
named 'redisTemplate' available>

The build of the WAR-File is ok and it deploys fine (configs, services,
LDAP integration) until it runs into this.

I realize that CAS 6.4 (for some reason) wants a redis "cluster" but I
got it standalone on the machine, since it is a testserver. It does not
complain about missing config-entries, so I thought all is well. It even
realizes that

DEBUG [org.apereo.cas.redis.core.RedisObjectFactory] - <Setting Redis
standalone configuration on host [127.0.0.1] and port [6379]

Any ideas what I can do to get this running? I tried to use the search
to get a hint but apart from some unrelated chatter on Spring (god I
hate Spring...) I did not find anything on the CAS side that helped me.

Best regards,

Sven Specker

--
__________________________________________________________________
*** Sven Specker -- University of Frankfurt Computing Center ***
*********** UNIX System Administration (Auth/IDM) ****************
***** spe...@rz.uni-frankfurt.de [Phone (+49)-69-798-15188] *****
******************************************************************
__________________________________________________________________
Johann Wolfgang Goethe Universitaet
- Hochschulrechenzentrum -
Theodor W. Adorno-Platz 1 (PA-1P16)

D-60323 Frankfurt/Main
__________________________________________________________________
______________ TeX-users do it in {groups}________________________

Sven Specker

unread,
Dec 15, 2021, 11:27:05 AM12/15/21
to CAS Community
On 12/15/21 16:15, Sven Specker wrote:

>
> I realize that CAS 6.4 (for some reason) wants a redis "cluster" but I
> got it standalone on the machine, since it is a testserver. It does not
> complain about missing config-entries, so I thought all is well. It even
> realizes that
>
> DEBUG [org.apereo.cas.redis.core.RedisObjectFactory] - <Setting Redis
> standalone configuration on host [127.0.0.1] and port [6379]
>

Of course, I did not see the "next" button in the documentation, my bad.

So basically, nothing in the config-requirements has changed (hence no
error about missing things), yet I get that error, which causes this
problem to be even more obscure.

Ray Bon

unread,
Dec 15, 2021, 8:30:33 PM12/15/21
to cas-...@apereo.org
Sven,

Some of the properties have changed names. Check release notes or manually compare them.
Also, I think cas now ignores unknown properties (maybe this is configurable).

Ray

On Wed, 2021-12-15 at 16:15 +0100, Sven Specker wrote:
Notice: This message was sent from outside the University of Victoria email system. Please be cautious with links and sensitive information.

-- 
Ray Bon
Programmer Analyst
Development Services, University Systems

I acknowledge and respect the lək̓ʷəŋən peoples on whose traditional territory the university stands, and the Songhees, Esquimalt and WSÁNEĆ peoples whose historical relationships with the land continue to this day.
Reply all
Reply to author
Forward
0 new messages