CAS 6.4.x, windows only Bind exception on cas.properties

80 views
Skip to first unread message

Yan Zhou

unread,
Dec 6, 2023, 11:02:45 AM12/6/23
to CAS Community
Hi there,

this is very odd, but I cannot figure this out.  I am setting up SAML and Delegated AuthN on CAS.

I am on CAS 6.4.6.6, it works on Linux servers, but on my Windows laptop, CAS starts up with this error. 

I confirmed that it is loading the right cas.properties on Windows,  as long as I remove the following values, it starts up just fine, but once I put them back, I got this error.  My cas WEB-INF/lib does have:  cas-server-core-api-configuration-model-6.4.6.6.jar, which contains: Pac4jSamlClientProperties, it looks correct to me the way I define cas properties below. 

how can I debug this?   for instance, how do I set ignoreInvalidFields to false so that I can still more?  right now, it says: 'CasConfigurationProperties' : prefix=cas, ignoreInvalidFields=false, ignoreUnknownFields=true.  I cannot find anywhere that is defined. 

here is the relevant portion of cas.properties, I do Not see anything wrong, it works well on Linux. 

thanks in advanc!
Yan

cas.authn.saml-idp.core.entity-id=https://localhost:8443/idp
cas.authn.saml-idp.metadata.fileSystem.location=file:///C:/apereocas66x/config/idpmetadata
#
###cas.authn.pac4j.core.discovery-selection.selection-type=DYNAMIC

cas.authn.pac4j.saml[0].keystorePath=file:///C:/apereocas66x/config/casas-samlsp/samlkeystore
cas.authn.pac4j.saml[0].keystorePassword=changeit
cas.authn.pac4j.saml[0].keystoreAlias=cas-samlsp
cas.authn.pac4j.saml[0].privateKeyPassword=changeit
cas.authn.pac4j.saml[0].serviceProviderEntityId=https://localhost:8443/cas/samlsp
cas.authn.pac4j.saml[0].clientName=Okta
cas.authn.pac4j.saml[0].forceAuth=false
cas.authn.pac4j.saml[0].passive=false
cas.authn.pac4j.saml[0].maximumAuthenticationLifetime=3600
cas.authn.pac4j.saml[0].serviceProviderMetadataPath=file:///C:/apereocas66x/config/casas-samlsp/sp-metadata.xml
cas.authn.pac4j.saml[0].identityProviderMetadataPath=https://dev-1xxxxxx8.okta.com/app/exxxxxxxxx7/sso/saml/metadata
cas.authn.pac4j.saml[0].useNameQualifier=false
#####cas.authn.pac4j.saml[0].autoRedirectType=CLIENT
cas.authn.pac4j.saml[0].signAuthnRequest=true
cas.authn.pac4j.saml[0].signServiceProviderLogoutRequest=true


***************************
APPLICATION FAILED TO START
***************************

Description:

Failed to bind properties under 'cas.authn.pac4j.saml[0]' to org.apereo.cas.configuration.model.support.pac4j.saml.Pac4jSamlClientProperties:

    Property: cas.authn.pac4j.saml[0].force-auth
    Value: false
    Origin: "cas.authn.pac4j.saml[0].force-auth" from property source "bootstrapProperties-applicationProfilesCompositeProperties"
    Reason: java.io.IOException: The system cannot find the path specified

Action:

Update your application's configuration
>

Yan Zhou

unread,
Dec 6, 2023, 9:50:52 PM12/6/23
to CAS Community, Yan Zhou
well, figured out after careful reading of the console logs.

I accidentally deleted the temp folder under tomcat, the initial start-up failed.  

Yan

Reply all
Reply to author
Forward
0 new messages