Danny,
You may need to include some of these in build.gradle:
compile
"org.apereo.cas:cas-server-core-api-configuration-model:${casServerVersion}"
compile "org.apereo.cas:cas-server-core-configuration:${casServerVersion}"
compile "org.apereo.cas:cas-server-core-webflow-api:${casServerVersion}"
compile "org.apereo.cas:cas-server-core-web-api:${casServerVersion}"
compile "org.apereo.cas:cas-server-core-util:${casServerVersion}"
The overlay process only adds the classes (war) after the build process, so
build has no knowledge of them.
A style note; instead of CustomLoginFlow, use CustomLoginWebflowConfigurer. It
will make it easier for you to look at the class name and know what it is
supposed to do.
Ray
On Wed, 2020-06-24 at 03:40 -0700, Danny Tung wrote:
Hi all,
I would like to modify the login webflow according to the document
https://apereo.github.io/cas/6.1.x/webflow/Webflow-Customization-Extensions.html
. However, I cannot compile the SomethingWebflowConfigurer and
SomethingConfiguration cause it cannot find the class I extend. It said :
package org.apereo.cas.web.flow.configurer does not exist. Anyone has the
similar problem??
> Task :compileJava
Custom actions are attached to task ':compileJava'.
Caching disabled for task ':compileJava' because:
Build cache is disabled
Task ':compileJava' is not up-to-date because:
Task has failed previously.
All input files are considered out-of-date for incremental task ':compileJava'.
Full recompilation is required because no incremental change information is
available. This is usually caused by clean builds or changing compiler
arguments.
Compiling with JDK Java compiler API.
D:\JavaProject_UL_20200601\cas\src\main\java\com\abc\dd\cas\spring\webflow\CustomLoginFlow.java:4:
error: package org.apereo.cas.web.flow.configurer does not exist
import org.apereo.cas.web.flow.configurer.AbstractCasWebflowConfigurer;
^
D:\JavaProject_UL_20200601\cas\src\main\java\com\abc\dd\cas\spring\webflow\CustomLoginFlow.java:10:
error: cannot find symbol
public class CustomLoginFlow extends AbstractCasWebflowConfigurer{
^
symbol: class AbstractCasWebflowConfigurer
D:\JavaProject_UL_20200601\cas\src\main\java\com\abc\dd\cas\spring\webflow\config\CustomLoginWebflowConfig.java:39:
error: incompatible types: CustomLoginFlow cannot be converted to
CasWebflowConfigurer
return new CustomLoginFlow(flowBuilderServices,
^
D:\JavaProject_UL_20200601\cas\src\main\java\com\abc\dd\cas\spring\webflow\CustomLoginFlow.java:18:
error: method does not override or implement a method from a supertype
@Override
^
D:\JavaProject_UL_20200601\cas\src\main\java\com\abc\dd\cas\spring\webflow\CustomLoginFlow.java:21:
error: cannot find symbol
final Flow flow = super.getLoginFlow();
^
symbol: variable super
location: class CustomLoginFlow
5 errors
> Task :compileJava FAILED
:compileJava (Thread[Execution worker for ':' Thread 2,5,main]) completed. Took
3.878 secs.
--
Ray Bon
Programmer Analyst
Development Services, University Systems
2507218831 | CLE 019 | [email protected]<mailto:[email protected]>
I respectfully acknowledge that my place of work is located within the
ancestral, traditional and unceded territory of the Songhees, Esquimalt and
WSÁNEĆ Nations.
--
- 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 [email protected].
To view this discussion on the web visit
https://groups.google.com/a/apereo.org/d/msgid/cas-user/78503de5fb2640d2c701eac3ae28c29101f8c494.camel%40uvic.ca.