gradlew run OK - tomcat FAIL

25 views
Skip to first unread message

Vittore Zen

unread,
Oct 19, 2021, 2:21:56 AM10/19/21
to CAS Community
Hi,

a strange (newbie?) problem. 
When I run "gradlew run" all work fine: no error and users can authenticate using ldap.
When I copy cas.war inside tomcat webapps folder server parsed correctly, start cas application, but in logs I don't see "registering LDAP" message and users can't authenticate. 

Someone can help me?
Thanks in advance.
v.

Ray Bon

unread,
Oct 19, 2021, 12:25:50 PM10/19/21
to cas-...@apereo.org
Vittore,

It could be that your cas.properties file is not being read.
The default location is under /etc/cas/config

You can pass a different location on tomcat start
-Dcas.standalone.configurationDirectory=/home/uvtomcat/config

or add it to setenv.sh in TOMCAT_HOME/bin
CATALINA_OPTS="$CATALINA_OPTS -Dcas.standalone.configurationDirectory=/home/uvtomcat/config"


Ray

On Mon, 2021-10-18 at 23:21 -0700, Vittore Zen 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.

Vittore Zen

unread,
Oct 20, 2021, 1:52:46 AM10/20/21
to cas-...@apereo.org
It was my own conclusion, so  
first I checked files with:
 diff /opt/cas-overlay-template/etc/cas/config/cas.properties /etc/cas/config/cas.properties
Result: same files
After I have created an executable file /usr/share/tomcat9/bin/setenv.sh:

CATALINA_OPTS="$CATALINA_OPTS -Dcas.standalone.configurationDirectory=/etc/cas/config"
export CATALINA_OPTS
JAVA_OPTS="-Dcas.standalone.configurationDirectory=/etc/cas/config"
export JAVA_OPTS

run /usr/share/tomcat9/bin/catalina.sh run
Same problem:

2021-10-20 07:47:28,168 INFO [org.apereo.cas.configuration.DefaultCasConfigurationPropertiesSourceLocator] - <Configuration files found at [/etc/cas/config] are [[file [/etc/cas/config/cas.properties]]] under profile(s) [[standalone]]>
2021-10-20 07:47:28,291 INFO [org.apereo.cas.web.CasWebApplicationServletInitializer] - <The following profiles are active: standalone>

:( Vittore :(


--
- 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/7ca1ba9ee671b2c9ae6b5c8c00bfb418758085fd.camel%40uvic.ca.

Misagh

unread,
Oct 20, 2021, 2:21:38 AM10/20/21
to CAS Community
Your deployment is crashing. That's why you get no logs from CAS. Look
into Tomcat/Catalina logs and you'll find a stacktrace or an
indication of what the problem may be.
> To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAO79vSBjrqg9Cx%3DzbYaBJ4cm7cMXrvvxhpn8sYTj-gjwbm_Qmw%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages