Pablo,

It can be handy to have the cas project checked out. I use it for grepping and 
finding files like this.

rbon@rhea<mailto:rbon@rhea>:~/tmp/apereo/cas$ find . -name 
AbstractCasWebflowConfigurer.java
./core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/AbstractCasWebflowConfigurer.java

So you have to include cas-server-core-webflow-api

Sometimes custom config like this can become a rabbit hole, where you are 
including many extra packages. This is one of the reasons why Apereo suggests 
you commit/create pull requests for customizations.

Ray

On Fri, 2020-09-18 at 01:21 -0700, Pablo Vidaurri wrote:
Notice: This message was sent from outside the University of Victoria email 
system. Please be cautious with links and sensitive information.


I included the dependencies mentioned by Ray in addition to
  implementation 
"org.apereo.cas:cas-server-core-webflow:${project.'cas.version'}"
but still get :
Cannot resolve symbol 'AbstractCasWebflowConfigurer'
Where is this guy at?

On Friday, June 26, 2020 at 9:59:00 PM UTC-5 [email protected] wrote:
Ray,

Thankyou very much for your help. I missed "  compile 
"org.apereo.cas:cas-server-core-webflow-api:${casServerVersion}" . After added 
back, it works now. Thanks again,

Danny

On Wednesday, 24 June 2020 at 23:57:36 UTC+8 rbon wrote:
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<tel:(250)%20721-8831> | CLE 019 | [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.



--

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

Reply via email to