Re: [cas-user] Configuration Error

79 views
Skip to first unread message

Eugene Willis

unread,
May 22, 2023, 8:12:40 AM5/22/23
to cas-...@apereo.org
Sounds like it is looking for a cluster. So may need add another box and it’s ip address in your cas.properties hazelcast cluster

Eugene Willis Jr.
Post Creative strategist 
(P.C.S.)
BlackNerdNinja 
IndieboxKart Media
Gogotechsupport 

BlackNerdNinja.com

#Nerd #goninjago


On May 22, 2023, at 1:46 AM, fasr favk <favk...@gmail.com> wrote:

Hello, Am using the latest version of cas war overlay and i'am facing this problem after running the command: gradle bootRun. i tried to clean and rebuild but still having the same error :

2023-05-21 14:49:41,850 INFO [org.apereo.cas.configuration.DefaultCasConfigurationPropertiesSourceLocator] - <Configuration directory [null] is not a directory or cannot be found at the specific path>
2023-05-21 14:49:41,967 INFO [org.apereo.cas.configuration.CasConfigurationPropertiesValidator] - <Validated CAS property sources and configuration successfully.>
2023-05-21 14:49:41,967 INFO [org.apereo.cas.web.CasWebApplication] - <The following 1 profile is active: "standalone">
2023-05-21 14:49:47,865 WARN [org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext] - <Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server>
2023-05-21 14:49:47,993 ERROR [org.springframework.boot.SpringApplication] - <Application run failed>

--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
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.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/da23c2d9-53ee-40dd-86e1-a2c2e15bffabn%40apereo.org.

Maxwell, Gary

unread,
May 22, 2023, 1:21:06 PM5/22/23
to cas-...@apereo.org

 

 

Hello all –

 

Can someone tell me why cas management version 6.6 redirects me to cas.example.org/cas/login at login time? The management.properties file contains the following:

 

cas.server.name=https://xxx.xxx.edu

cas.server.prefix=${cas.server.name}/cas

 

What am I missing?

 

Thank You –

-Gary

Erik Mallory

unread,
May 24, 2023, 7:07:40 AM5/24/23
to cas-...@apereo.org
Are you sure it's reading the management.properties? Double check it's location, existence and permissions.

--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
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.


--
Erik Mallory
------------------------
"A happy man's paradise is his own good nature." - Edward Abbey

Petr Bodnár

unread,
Jul 2, 2023, 12:26:57 PM7/2/23
to CAS Community, eugene.w...@gmail.com
A tip to the original question (which was posted in a somewhat confusing format??):

You get just this line without any useful error details:

    ERROR [org.springframework.boot.SpringApplication] - <Application run failed>

This is because for some reasons, someone decided that logged stacktraces will go to a dedicated file by default - see the log4j2.xml of CAS webapp. So you should be able to find the associated error stacktrace inside "/tmp/logs/cas_stacktrace.log". The error might be for example caused by an incomplete setup for SSL ("server.ssl.enabled=true" is the default).

Jad Saad

unread,
Jun 12, 2024, 4:26:08 AMJun 12
to CAS Community, Petr Bodnár
Any idea how to force these stacktraces to appear under the normal log file?

Petr Bodnár

unread,
Jun 12, 2024, 5:09:06 AMJun 12
to CAS Community, Jad Saad, Petr Bodnár
Provided you are using log4j.xml like here, just look for the alwaysWriteExceptions attribute in that file, e.g.:

            <PatternLayout pattern="%highlight{%d %p [%c] - &lt;%m&gt;%n}"
                           alwaysWriteExceptions="${sys:log.file.stacktraces}" />

If you don't want to modify the file directly, you might add "-Dlog.file.stacktraces=true" to your CAS server JAVA_OPTS (or however you pass it the Java system properties).
Reply all
Reply to author
Forward
0 new messages