Issue with compiling CAS 7.x.x

359 views
Skip to first unread message

stonej

unread,
Aug 12, 2024, 5:07:51 AM8/12/24
to CAS Community
Hello All,

Having to move to CAS 7 due to shibboleth idp only working on tomcat 10 now.  Tried to compile.  Its fine until I add implementation "org.apereo.cas:cas-server-core-scripting"

When I run the compile I get the error:
Could not find org.apereo.cas:cas-server-core-scripting

Is this not available yet for 7.x ?
Thanks
Jeff


Frovarp, Richard

unread,
Aug 12, 2024, 9:10:23 PM8/12/24
to cas-...@apereo.org
I just deployed Shibboleth IdP 5.x to Jetty 12.


From: 'stonej' via CAS Community <cas-...@apereo.org>
Sent: Monday, August 12, 2024 2:25:41 AM
To: CAS Community <cas-...@apereo.org>
Subject: [cas-user] Issue with compiling CAS 7.x.x
 
--
- Website: https://apereo.github.io/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/b702e8d4-381b-4698-a689-3e01dc16d0dfn%40apereo.org.

Jeff Stone

unread,
Aug 13, 2024, 7:12:51 AM8/13/24
to cas-...@apereo.org
Hi Richard,
sorry about this, I've never used jetty before.  Can I run cas on jetty 12 as well as idp 5 ?



--
Jeff Stone BSc MCSE MCP CNA
=====================
IT Technical Architect

IT Services
Liverpool Hope University
Hope Park
Liverpool
L16 9JD

T: 0151 291 3753
F: 0151 291 3757
E: STO...@HOPE.AC.UK





Richard Frovarp

unread,
Aug 13, 2024, 3:33:23 PM8/13/24
to cas-...@apereo.org
Documentation indicates that you can run CAS 7 on Jetty 12. I wouldn't run them both in the same container. I would run them in separate containers. I just use the default embedded container in CAS 6.

Matthew Gordon

unread,
Aug 16, 2024, 1:30:12 PM8/16/24
to CAS Community, stonej
I just tired this as my other fix didn't have the desired result and using the overlay method to build generates the same error when trying to include: core-scripting


> Configure project :
Using ORACLE as the JVM vendor for the Java toolchain
Building CAS version 7.0.6 with application server -tomcat

> Task :compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileJava'.
> Could not resolve all files for configuration ':compileClasspath'.
   > Could not find org.apereo.cas:cas-server-core-scripting:.
     Required by:
         project :

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

Ray Bon

unread,
Aug 25, 2024, 1:11:05 PM8/25/24
to cas-...@apereo.org
Jeff,

Where do you see cas-server-core-scripting being recommended?

There is no package by that name in versions 7, 6, nor 5.

Ray

Jeff Stone

unread,
Aug 28, 2024, 5:07:20 AM8/28/24
to cas-...@apereo.org
Hi Ray,

I added scripting a while ago now, I was testing using groovy scripts to only enabled MFA for a single dept.  That was in version 6.  If you use the CAS Initializr and add groovy scripting it adds that package

Thanks
Jeff

--
- Website: https://apereo.github.io/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.

Ray Bon

unread,
Aug 28, 2024, 2:08:20 PM8/28/24
to cas-...@apereo.org
Jeff,

I do have some scripting, but no package (I work from a cloned overlay).
Does your script still work if you remove the dependency?

Ray

Petr Bodnár

unread,
Aug 29, 2024, 10:55:36 AM8/29/24
to CAS Community, Ray Bon
Matthew, the cas-server-core-scripting module has apparently been added only just recently, see move groovy support into its own module. So you can't probably use it for building CAS 7.0.6, as it seems to be available since 7.1.0-RC5 only.

Petr

Matthew Gordon

unread,
Sep 3, 2024, 4:37:10 PM9/3/24
to CAS Community, Petr Bodnár, Ray Bon
Hi Petr,

it was stonej that had the original issue, I just tested as well, since they had contacted me because of a groovy issue I mentioned.

It does look like 7.0.7 does resolve the issue though, so thank you for saying something.

Thank you,
Matt
Reply all
Reply to author
Forward
0 new messages