CAS Management Webapp not starting in Tomcat

833 views
Skip to first unread message

bobbintb

unread,
Apr 13, 2017, 5:31:44 PM4/13/17
to CAS Community
I got CAS configured with LDAP and working and now I am trying to get the management webapp working. I downloaded the Maven overlay, and added the LDAP dependency according to the documentation:

<dependency>
     <groupId>org.apereo.cas</groupId>
     <artifactId>cas-management-webapp-support-ldap</artifactId>
     <version>${cas.version}</version>
</dependency>

I built it and deployed the WAR to Tomcat but Tomcat will not start it. It keeps giving me this error:

FAIL - Application at context path /cas-services could not be started
FAIL - Encountered exception org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/cas-services]]

My CAS prefix is /cas-test and the management prefix is /cas-services. I left my management.properties mostly as is for the time being, just updating the existing values:

cas.server.name: https://localhost:8443
cas.server.prefix: https://localhost:8443/cas-test

cas.mgmt.adminRoles=ROLE_ADMIN
cas.mgmt.userPropertiesFile=file:/etc/cas/config/users.properties
cas.mgmt.serverName=https://localhost:8443

server.context-path=/cas-services
server.port=8443

spring.thymeleaf.mode=HTML
logging.config=file:/etc/cas/config/log4j2.xml

My cas.properties is also pretty minimal for now:

cas.server.name: https://localhost:8443
cas.server.prefix: https://localhost:8443/cas-test

cas.adminPagesSecurity.ip=127\.0\.0\.1

logging.config: file:/etc/cas/config/log4j2.xml

#LDAP connection info
cas.authn.accept.users=
cas.authn.ldap[0].type=AUTHENTICATED
cas.authn.ldap[0].ldapUrl=ldaps://my.ldap.org:636
cas.authn.ldap[0].useSsl=true
cas.authn.ldap[0].useStartTls=false
cas.authn.ldap[0].connectTimeout=5000
cas.authn.ldap[0].baseDn=ou=active,ou=users,ou=data,o=org
cas.authn.ldap[0].userFilter=cn={user}
cas.authn.ldap[0].subtreeSearch=true
cas.authn.ldap[0].usePasswordPolicy=true
cas.authn.ldap[0].bindDn=cn=userproxy,ou=services,o=org
cas.authn.ldap[0].bindCredential=*****

I had a similar issue with CAS but that was due to an incorrect setting in the bindDn. I don't think any of my settings are incorrect or missing. Any suggestions?

Nour Krichene

unread,
Apr 14, 2017, 3:58:29 AM4/14/17
to jasig-cas-user, cas-...@apereo.org, angl...@isu.edu
Hello,

I think that you don't need to add dependency when building the management CAS web app
Try to build it like it is by default and deploy the file .war in the server
If it does not work try to deploy it in another server (new one) and test it so that you can detect the source of the problem
What is your OS ?
--
- CAS gitter chatroom: https://gitter.im/apereo/cas
- CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html
- CAS documentation website: https://apereo.github.io/cas
- CAS project website: https://github.com/apereo/cas
---
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/b5cc0e3e-02c6-4fe9-95a0-287de422b121%40apereo.org.

Daniel M.

unread,
Apr 14, 2017, 10:00:29 AM4/14/17
to cas-...@apereo.org
This is what I am using in mine and it is working fine.  Make sure you have the current version, I had problems with earlier versions:  apereo/cas-services-management-overlay



cas.server.name=https://...
cas.server.prefix=${cas.server.name}/cas
cas.mgmt.serverName=${cas.server.name}
cas.mgmt.defaultLocale=en
server.context-path=/cas-management
server.port=8443
spring.thymeleaf.mode=HTML

# Security
cas.mgmt.adminRoles=ROLE_ADMIN
cas.mgmt.userPropertiesFile=file:/etc/cas/config/users.properties

# Service management
cas.serviceRegistry.config.location=file:/etc/cas/services

# Logging
logging.config=file:/etc/cas/config/log4j2-management.xml


--

bobbintb

unread,
Apr 14, 2017, 10:35:41 AM4/14/17
to CAS Community, jasig-c...@googlegroups.com, angl...@isu.edu
I was actually thinking about trying that. Deploying it as default worked. Thanks.
Reply all
Reply to author
Forward
0 new messages