Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI broken: aacli and status #65

Open
vwbusguy opened this issue Jun 18, 2019 · 6 comments
Open

CLI broken: aacli and status #65

vwbusguy opened this issue Jun 18, 2019 · 6 comments
Labels

Comments

@vwbusguy
Copy link

In the 3.4.3 image, attempting to run bin/aacli.sh, bin/status.sh, or version.sh returns an error: Error: Could not find or load main class net.shibboleth.idp.cli.CLI, even with just invoking help. I'm running these with Shibboleth running - I can fetch the metadata page remotely and the /status endpoint is live and appears normal.

We use aacli.sh as part of our integration testing. I additionally, verified that ResolverTest is enabled in the conf/admin/general-admin.xml file. The same config works in the 3.3.2 image.

@jtgasper3 jtgasper3 added the bug label Jun 18, 2019
@jtgasper3
Copy link
Contributor

@vwbusguy ,

You are correct. The 3.4.x shell script's classpath was updated to point libraries in a new location that the installer copies libs into. I haven't had a chance to move the libs into the same spot via the Dockerfile.

Definitely a todo. For now, you can mod the runclass.sh (guessing at the name) to remove dist (also guessing at the value) and saving the file. The utilities scripts should then work.

John

@vwbusguy
Copy link
Author

The missing dist might be related to Unicon/shib-cas-authn3#39 as well.

@vwbusguy
Copy link
Author

Removing dist still complains about the missing class. I assume I'll also need to update the classpath as well.

@jtgasper3
Copy link
Contributor

jtgasper3 commented Jun 18, 2019 via email

@vwbusguy
Copy link
Author

It looks like setting this in runclass.sh allowed it to work: LOCALCLASSPATH="$LOCATION/../webapp/WEB-INF/lib/*":$LOCALCLASSPATH

@vwbusguy
Copy link
Author

I was able to override it for now by overwriting the runclass.sh during docker build. Our automated tests against aacli.sh are working again. Many thanks. For now, we'll compare for changes with each tag change. Please let me know if you would like any help testing a more permanent fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants