CAS 5.1.1 - enable AJP connectior

224 views
Skip to first unread message

Ondrej Kowalik

unread,
Jul 4, 2017, 5:13:32 AM7/4/17
to CAS Community
Hello,
I want to use AJP connector for CAS 5.1.1 for Embedded Tomcat Container.
As i read in documentation https://apereo.github.io/cas/5.1.x/installation/Configuration-Properties.html#ajp i set properties like this:
cas.server.ajp.secure=false
cas.server.ajp.enabled=true
cas.server.ajp.proxyPort=-1
cas.server.ajp.protocol=AJP/1.3
cas.server.ajp.asyncTimeout=5000
cas.server.ajp.scheme=http
cas.server.ajp.maxPostSize=20971520
cas.server.ajp.port=8009
cas.server.ajp.enableLookups=false
cas.server.ajp.redirectPort=-1
cas.server.ajp.allowTrace=false
cas.server.ajp.attributes.attributeName=attributeValue

In my log file i've got casProperties.getServer().getAjp().isEnabled() equal to true and casProperties.getServer().getAjp().getPort() equal to 8009.

Unfortunately tomcat doesn't listen on port 8009.

netstat -l
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State     
tcp        0      0 *:3389                  *:*                     LISTEN    
tcp        0      0 *:58719                 *:*                     LISTEN    
tcp        0      0 *:sunrpc                *:*                     LISTEN    
tcp        0      0 *:ssh                   *:*                     LISTEN    
tcp        0      0 localhost:3350          *:*                     LISTEN    
tcp        0      0 localhost:ipp           *:*                     LISTEN    
tcp        0      0 localhost:postgresql    *:*                     LISTEN    
tcp6       0      0 [::]:8443               [::]:*                  LISTEN    
tcp6       0      0 [::]:56574              [::]:*                  LISTEN    
tcp6       0      0 localhost:41519         [::]:*                  LISTEN    
tcp6       0      0 [::]:sunrpc             [::]:*                  LISTEN    
tcp6       0      0 [::]:http               [::]:*                  LISTEN    
tcp6       0      0 [::]:ssh                [::]:*                  LISTEN  


Can you help me to reslove this problem.

Best regards
Ondrej

adalbert...@googlemail.com

unread,
Jul 4, 2017, 4:32:08 PM7/4/17
to jasig-cas-user, cas-...@apereo.org, ondrej...@gmail.com
I am afraid I won't be able to help, but I can confirm that I have exactly the same problem. Documentation is not exactly enlightening either.

adalbert...@googlemail.com

unread,
Jul 4, 2017, 4:32:59 PM7/4/17
to jasig-cas-user, cas-...@apereo.org, ondrej...@gmail.com
I am afraid I won't be able to help, but I can confirm that I have exactly the same problem with 5.1.0. Documentation is not exactly enlightening either.

Jozef Kotlar - EEA.sk

unread,
Jul 10, 2017, 9:54:53 AM7/10/17
to CAS Community
I can confirm that putting following snippet in application.yml have switched AJP port on

# embedded tomcat
cas.server.ajp:
  enabled: true
  port: 8409
  secure: true
  proxyPort: 443
  scheme: https


Jozef

Adalbert Schwafel

unread,
Jul 21, 2017, 5:00:29 AM7/21/17
to CAS Community
I am afraid this does not work for me. AJP port remains dead.

Robert Ohajda

unread,
Aug 27, 2017, 9:20:49 AM8/27/17
to CAS Community
Any luck to resovle AJP issue?

Jozef Kotlár

unread,
Sep 4, 2017, 11:13:24 AM9/4/17
to cas-...@apereo.org
I can only repeat what I wrote - I have CAS 5.1.3 started as standalone application - in log I see

2017-09-04 15:55:27,222 INFO [org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer] - <Tomcat initialized with port(s): 8480 (http) 8409 (https)>

and application.yml looks like:

server.port: 8480
server.ssl.enabled: false 
# embedded tomcat
cas.server.ajp:
  enabled: true
  port: 8409
  secure: true
  proxyPort: 443
  scheme: https

Best regards.
Jozef
Reply all
Reply to author
Forward
0 new messages