Closed rdev5 closed 7 years ago
Just to update, the following yields a successful build:
> git clone https://github.com/Unicon/shib-cas-authn3.git
> cd shib-cas-authn3
> git checkout tags/v3.2.0
> .\gradlew
...
:processTestResources UP-TO-DATE
:testClasses
:test
:check
:build
BUILD SUCCESSFUL
Total time: 23.207 secs
However, jetty.log still shows:
2017-08-18 11:12:57,984 - WARN [org.eclipse.jetty.deploy.DeploymentManager:506] - Unable to reach node goal: started
java.lang.NoClassDefFoundError: org/jasig/cas/client/validation/Cas20ServiceTicketValidator
...
Caused by: java.lang.ClassNotFoundException: org.jasig.cas.client.validation.Cas20ServiceTicketValidator
at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[na:1.8.0_144]
at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_144]
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_144]
at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:487) ~[jetty-webapp-9.3.9.v20160517.jar:9.3.9.v20160517]
at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:428) ~[jetty-webapp-9.3.9.v20160517.jar:9.3.9.v20160517]
... 50 common frames omitted
Missing JAR for this class appears to still be available here: https://github.com/Unicon/shib-cas-authn3/blob/v3.0.0/README.md#copy-the-librariesjars
FYI, I'm in the process of assembling these documentation fixes here: https://github.com/rdev5/shib-cas-authn3/blob/patch-1/README.md
This apparently was a result of testing multiple versions, none of them getting cleaned up in the output web-app
folder.
I removed the older versions and am now able to get this working (using the downloads in releases). Release version works, but build still fails so I'm going to leave this issue open.
@rdev5,
Sorry for the slow reply.
So running ./gradlew distTar distZip
should get you a couple of archives with the appropriate jar files in the IDP_HOME/edit-webapp/WEB-INF/lib/
directory.
Certainly using the official releases are the way to go, but if you do build locally that should take care of you.
John
This will be fixed when 3.2.3 is merged to master via https://github.com/Unicon/shib-cas-authn3/commit/9d9b5640ff9cd32ecbccd283efde47d0e3707166.
Docker Compose will not be invoked at clean-up unless one of the compose-specific commands where run before. Also the default tasks builds the distributables.
Where are the JAR files we're supposed to "copy into the IDP_HOME directory?"
Attempting to build them with
.\gradlew
on Windows also fails: