Httpt 404 Error while trying to access CAS login page

32 views
Skip to first unread message

Emmanuel Chukwu

unread,
Dec 5, 2018, 12:31:37 PM12/5/18
to CAS Community
Dear all,
Please I need help.

I tried to access the login page through https://<my-server>:8443/cas/login but it is giving 404 error

HTTP Status 404 – Not Found


Type Status Report

Message /cas/login

Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.


Apache Tomcat/8.5.35



Tomcat is installed and loading very well at
https://<my-server>:8443

What could be the problem?

David Curry

unread,
Dec 5, 2018, 12:37:36 PM12/5/18
to cas-...@apereo.org
Check your Tomcat logs (especially catalina.out) -- did the CAS server successfully start?

--

DAVID A. CURRY, CISSP
DIRECTOR OF INFORMATION SECURITY
THE NEW SCHOOL  INFORMATION TECHNOLOGY

71 FIFTH AVE., 9TH FL., NEW YORK, NY 10003
+1 212 229-5300 x4728david...@newschool.edu



--
- 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/c0512ade-5c93-4a58-a759-56cb3db9356c%40apereo.org.

Emmanuel Chukwu

unread,
Dec 6, 2018, 12:53:07 AM12/6/18
to cas-...@apereo.org
Thanks David.
I just check catalina.out and noticed CAS didn't start successfully. There was a severe error " Failed to initialize connector [Connector[HTTP/1.1-8443]". But I don't know how to troubleshoot it. Please could you help me interpret below the errors from catalina.out and cas.log?
Thanks

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
05-Dec-2018 17:18:44.450 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["https-jsse-nio-8443"]
05-Dec-2018 17:18:44.469 SEVERE [main] org.apache.catalina.core.StandardService.initInternal Failed to initialize connector [Connector[HTTP/1.1-8443]]
 org.apache.catalina.LifecycleException: Failed to initialize component [Connector[HTTP/1.1-8443]]
        at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:112)
        at org.apache.catalina.core.StandardService.initInternal(StandardService.java:552)
        at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
        at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:875)
        at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
        at org.apache.catalina.startup.Catalina.load(Catalina.java:638)
        at org.apache.catalina.startup.Catalina.load(Catalina.java:661)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:309)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:492)

Caused by: org.apache.catalina.LifecycleException: Protocol handler initialization failed
        at org.apache.catalina.connector.Connector.initInternal(Connector.java:995)
        at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
        ... 12 more
Caused by: java.net.BindException: Address already in use
        at sun.nio.ch.Net.bind0(Native Method)
        at sun.nio.ch.Net.bind(Net.java:433)
        at sun.nio.ch.Net.bind(Net.java:425)
        at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
        at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
        at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:219)
        at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:1087)
        at org.apache.tomcat.util.net.AbstractJsseEndpoint.init(AbstractJsseEndpoint.java:265)
        at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:581)
        at org.apache.coyote.http11.AbstractHttp11Protocol.init(AbstractHttp11Protocol.java:68)
        at org.apache.catalina.connector.Connector.initInternal(Connector.java:993)
        ... 13 more

05-Dec-2018 17:18:44.472 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 1098 ms
05-Dec-2018 17:18:44.524 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
05-Dec-2018 17:18:44.525 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.5.35
05-Dec-2018 17:18:44.549 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/opt/tomcat/webapps/cas]
05-Dec-2018 17:18:57.330 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logge$
^[[36m

  / /  / ___|    / \    / ___|  \ \
 | |  | |       / _ \   \___ \   | |
 | |  | |___   / ___ \   ___) |  | |
 | |   \____| /_/   \_\ |____/   | |
  \_\                           /_/

CAS Version: 5.3.6
CAS Commit Id: e2bdca06fe0229afcf624700e1617a3841364d11
CAS Build Date/Time: 2018-11-21T10:00:18Z
Spring Boot Version: 1.5.16.RELEASE
Spring Version: 4.3.20.RELEASE
Java Home: /usr/lib/jvm/java-8-openjdk-amd64/jre
Java Vendor: Oracle Corporation
Java Version: 1.8.0_191
JVM Free Memory: 25 MB
JVM Maximum Memory: 237 MB
JVM Total Memory: 94 MB
JCE Installed: Yes
Node Version: N/A
NPM Version: N/A
OS Architecture: amd64
OS Name: Linux
OS Version: 4.15.0-1021-aws
OS Date/Time: 2018-12-05T17:19:05.144
OS Temp Directory: /opt/tomcat/temp
------------------------------------------------------------
Apache Tomcat Version: Apache Tomcat/8.5.35
--------------------------------------------------------
^[[0m
2018-12-05 17:19:05,247 INFO [org.apereo.cas.configuration.DefaultCasConfigurationPropertiesSourceLocator] - <Configuration files found at [/etc/cas/config] are [[/etc/cas/config/cas.properties]] $
2018-12-05 17:19:05,292 INFO [org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration] - <Located property source: CompositePropertySource [name='casCompositePropertySource$
2018-12-05 17:19:12,787 WARN [org.apereo.cas.config.CasCoreTicketsConfiguration] - <Runtime memory is used as the persistence storage for retrieving and managing tickets. Tickets that are issued d$
2018-12-05 17:19:24,885 WARN [org.apereo.cas.config.support.authentication.AcceptUsersAuthenticationEventExecutionPlanConfiguration] - <^[[36m>
2018-12-05 17:19:24,896 WARN [org.apereo.cas.config.support.authentication.AcceptUsersAuthenticationEventExecutionPlanConfiguration] - <

  ____    _____    ___    ____    _
 / ___|  |_   _|  / _ \  |  _ \  | |
 \___ \    | |   | | | | | |_) | | |
  ___) |   | |   | |_| | |  __/  |_|
 |____/    |_|    \___/  |_|     (_)


CAS is configured to accept a static list of credentials for authentication. While this is generally useful for demo purposes, it is STRONGLY recommended that you DISABLE this authentication metho$
2018-12-05 17:19:24,897 WARN [org.apereo.cas.config.support.authentication.AcceptUsersAuthenticationEventExecutionPlanConfiguration] - <^[[0m>

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


And below are the errors from cas.log

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2018-12-05 17:00:29,350 WARN [org.apereo.cas.config.CasCoreTicketsConfiguration] - <Runtime memory is used as the persistence storage for retrieving and managing tickets. Tickets that are issued d$
2018-12-05 17:00:40,856 WARN [org.apereo.cas.config.support.authentication.AcceptUsersAuthenticationEventExecutionPlanConfiguration] - <^[[36m>
2018-12-05 17:00:41,102 WARN [org.apereo.cas.config.support.authentication.AcceptUsersAuthenticationEventExecutionPlanConfiguration] - <

  ____    _____    ___    ____    _
 / ___|  |_   _|  / _ \  |  _ \  | |
 \___ \    | |   | | | | | |_) | | |
  ___) |   | |   | |_| | |  __/  |_|
 |____/    |_|    \___/  |_|     (_)


CAS is configured to accept a static list of credentials for authentication. While this is generally useful for demo purposes, it is STRONGLY recommended that you DISABLE this authentication metho$
2018-12-05 17:00:41,104 WARN [org.apereo.cas.config.support.authentication.AcceptUsersAuthenticationEventExecutionPlanConfiguration] - <^[[0m>
2018-12-05 17:00:54,534 WARN [org.apereo.cas.config.CasCoreServicesConfiguration] - <Runtime memory is used as the persistence storage for retrieving and persisting service definitions. Changes th$
2018-12-05 17:19:12,787 WARN [org.apereo.cas.config.CasCoreTicketsConfiguration] - <Runtime memory is used as the persistence storage for retrieving and managing tickets. Tickets that are issued d$
2018-12-05 17:19:24,885 WARN [org.apereo.cas.config.support.authentication.AcceptUsersAuthenticationEventExecutionPlanConfiguration] - <^[[36m>
2018-12-05 17:19:24,896 WARN [org.apereo.cas.config.support.authentication.AcceptUsersAuthenticationEventExecutionPlanConfiguration] - <

  ____    _____    ___    ____    _
 / ___|  |_   _|  / _ \  |  _ \  | |
 \___ \    | |   | | | | | |_) | | |
  ___) |   | |   | |_| | |  __/  |_|
 |____/    |_|    \___/  |_|     (_)


CAS is configured to accept a static list of credentials for authentication. While this is generally useful for demo purposes, it is STRONGLY recommended that you DISABLE this authentication metho$
2018-12-05 17:19:24,897 WARN [org.apereo.cas.config.support.authentication.AcceptUsersAuthenticationEventExecutionPlanConfiguration] - <^[[0m>

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Ramakrishna G

unread,
Dec 6, 2018, 12:55:40 AM12/6/18
to cas-...@apereo.org

It says “Address already in use”. Try different port or kill the process running on port 8443.

 

Thanks

Ramakrishna G

+91 8792114542

Type Status Report

Message /cas/login

Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.

Emmanuel Chukwu

unread,
Dec 6, 2018, 1:39:51 AM12/6/18
to CAS Community
Thanks Ramakrishna.
Please I need to understand some things:
Tomcat is running properly on port 8443.
1) Do I have to configure CAS on a different port from Tomcat or they must use the same port?
2) How do I configure a different port for CAS (if necessary)?
3) How do I identify and kill the process running on port 8443 in ubuntu (I am not an expert in LInux)?

Thanks

Ramakrishna G

unread,
Dec 6, 2018, 2:06:00 AM12/6/18
to cas-...@apereo.org
  1. Do I have to configure CAS on a different port from Tomcat or they must use the same port?

It can be on same port or different port. If you want to use 8443 then first stop tomcat and then start CAS.

 

  1. How do I configure a different port for CAS (if necessary)?

In cas.properties file you can specify the port you require for CAS. cas.server.name=https://youripordomain:<8443>

 

  1. How do I identify and kill the process running on port 8443 in ubuntu (I am not an expert in LInux)?

Try using netstat command. Eg. netstat -antup | grep 8443 will give the process id. Kill the process using kill -9 <processid> command.

 

 

From: Emmanuel Chukwu
Sent: Thursday, December 6, 2018 12:09 PM
To: CAS Community
Subject: [cas-user] Re: Httpt 404 Error while trying to access CAS login page

 

Thanks Ramakrishna.

Please I need to understand some things:

Tomcat is running properly on port 8443.

1) Do I have to configure CAS on a different port from Tomcat or they must use the same port?

2) How do I configure a different port for CAS (if necessary)?

3) How do I identify and kill the process running on port 8443 in ubuntu (I am not an expert in LInux)?

 

Thanks


On Wednesday, December 5, 2018 at 6:31:37 PM UTC+1, Emmanuel Chukwu wrote:

Dear all,

Please I need help.

 

I tried to access the login page through https://<my-server>:8443/cas/login but it is giving 404 error

 

HTTP Status 404 – Not Found

Type Status Report

Message /cas/login

Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.

Apache Tomcat/8.5.35

 

 

Tomcat is installed and loading very well at

https://<my-server>:8443

 

What could be the problem?

--

- 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.

Emmanuel Chukwu

unread,
Dec 6, 2018, 5:46:23 AM12/6/18
to cas-...@apereo.org
Thanks David, Ray, Andy and Ramakrishna.
My basic CAS installation is now working!
On to other configurations..



Reply all
Reply to author
Forward
0 new messages