Error:
Caused by: java.net.MalformedURLException: no protocol: login.unila.ac.id/casat java.base/java.net.URL.<init>(URL.java:627)at java.base/java.net.URL.<init>(URL.java:523)at java.base/java.net.URL.<init>(URL.java:470)at org.apereo.cas.config.SamlIdPMetadataConfiguration.samlSelfSignedCertificateWriter(SamlIdPMetadataConfiguration.java:154)at org.apereo.cas.config.SamlIdPMetadataConfiguration$$EnhancerBySpringCGLIB$$150398bf.CGLIB$samlSelfSignedCertificateWriter$3(<generated>)at org.apereo.cas.config.SamlIdPMetadataConfiguration$$EnhancerBySpringCGLIB$$150398bf$$FastClassBySpringCGLIB$$4511572f.invoke(<generated>)at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244)at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:363)at org.apereo.cas.config.SamlIdPMetadataConfiguration$$EnhancerBySpringCGLIB$$150398bf.samlSelfSignedCertificateWriter(<generated>)at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at java.base/java.lang.reflect.Method.invoke(Method.java:566)at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154)... 111 more
So you are missing the protocol (https://) bit from that value. Digging through the code, that comes from:
val url = new URL(casProperties.getServer().getPrefix());
In my CAS config I have:
cas.server.prefix=${cas.server.name}/cas
which is what it is trying to read.
I then have:
cas.server.name=https://<hostname>.ndsu.edu
So look in that area of your config to add the protocol.
Obligatory note that 6.1 is old and you should upgrade.
Notice: This message was sent from outside the University of Victoria email system. Please be cautious with links and sensitive information.
i have an error implementing cas 6.1 as saml idp for google. please help me to tell what should i do
Config:cas.authn.saml-idp.entity-id=https://cas.example.com/idp
Build.gradle:// Other CAS dependencies/modules may be listed here...implementation "org.apereo.cas:cas-server-webapp-tomcat:${project.'cas.version'}"implementation "org.apereo.cas:cas-server-support-jdbc:${project.'cas.version'}"implementation "org.apereo.cas:cas-server-support-jdbc-drivers:${project.'cas.version'}"// compile "org.apereo.cas:cas-server-support-ldap:${project.'cas.version'}"implementation "org.apereo.cas:cas-server-support-jpa-service-registry:${project.'cas.version'}"compile "org.apereo.cas:cas-server-support-json-service-registry:${project.'cas.version'}"// compile "org.apereo.cas:cas-server-support-gauth:${project.'cas.version'}"// implementation "org.apereo.cas:cas-server-support-saml:${project.'cas.version'}"implementation "org.apereo.cas:cas-server-support-saml-idp:${project.'cas.version'}"// implementation "org.apereo.cas:cas-server-support-saml-idp-metadata:${project.'cas.version'}"// implementation "org.apereo.cas:cas-server-support-saml-idp-web:${project.'cas.version'}"// implementation "org.apereo.cas:cas-server-support-saml-idp-core:${project.'cas.version'}"// implementation "org.apereo.cas:cas-server-support-saml-googleapps:${project.'cas.version'}"
Error:27-Jul-202309:37:27.526 SEVERE [main] org.apache.catalina.startup.HostConfig.deployWAR Error deploying web application archive [C:\Program Files\Apache Software Foundation\Tomcat9.0\webapps\cas.war]
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'samlIdPObjectSignatureValidator' defined in class path resource [org/apereo/cas/config/SamlIdPEndpointsConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apereo.cas.support.saml.web.idp.profile.builders.enc.validate.SamlObjectSignatureValidator]: Factory method'samlIdPObjectSignatureValidator' threw exception; nested exception isorg.springframework.beans.factory.BeanCreationException:Error creating bean with name'samlIdPMetadataGenerator' defined in class path resource [org/apereo/cas/config/SamlIdPMetadataConfiguration.class]: Bean instantiation via factory method failed; nested exception isorg.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apereo.cas.support.saml.idp.metadata.generator.SamlIdPMetadataGenerator]: Factory method 'samlIdPMetadataGenerator' threw exception; nested exception isorg.springframework.beans.factory.BeanCreationException:Error creating bean with name'samlSelfSignedCertificateWriter' defined in class path resource [org/apereo/cas/config/SamlIdPMetadataConfiguration.class]: Bean instantiation via factory method failed; nested exception isorg.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apereo.cas.support.saml.idp.metadata.writer.SamlIdPCertificateAndKeyWriter]: Factory method 'samlSelfSignedCertificateWriter' threw exception; nested exception isjava.net.MalformedURLException: no protocol:login.unila.ac.id/cas
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:645)at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:475)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1338)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1177)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:557)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:517)at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:323)at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:321)at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:879)at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:878)at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550)at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141)at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747)at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)at org.springframework.boot.SpringApplication.run(SpringApplication.java:315)at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:152)at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:132)at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:92)at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:172)at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5211)at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)... 38 more
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apereo.cas.support.saml.web.idp.profile.builders.enc.validate.SamlObjectSignatureValidator]: Factory method'samlIdPObjectSignatureValidator' threw exception; nested exception isorg.springframework.beans.factory.BeanCreationException:Error creating bean with name'samlIdPMetadataGenerator' defined in class path resource [org/apereo/cas/config/SamlIdPMetadataConfiguration.class]: Bean instantiation via factory method failed; nested exception isorg.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apereo.cas.support.saml.idp.metadata.generator.SamlIdPMetadataGenerator]: Factory method 'samlIdPMetadataGenerator' threw exception; nested exception isorg.springframework.beans.factory.BeanCreationException:Error creating bean with name'samlSelfSignedCertificateWriter' defined in class path resource [org/apereo/cas/config/SamlIdPMetadataConfiguration.class]: Bean instantiation via factory method failed; nested exception isorg.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apereo.cas.support.saml.idp.metadata.writer.SamlIdPCertificateAndKeyWriter]: Factory method 'samlSelfSignedCertificateWriter' threw exception; nested exception isjava.net.MalformedURLException: no protocol:login.unila.ac.id/cas
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185)at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:640)... 60 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'samlIdPMetadataGenerator' defined in class path resource [org/apereo/cas/config/SamlIdPMetadataConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apereo.cas.support.saml.idp.metadata.generator.SamlIdPMetadataGenerator]: Factory method 'samlIdPMetadataGenerator' threw exception; nested exception isorg.springframework.beans.factory.BeanCreationException:Error creating bean with name'samlSelfSignedCertificateWriter' defined in class path resource [org/apereo/cas/config/SamlIdPMetadataConfiguration.class]: Bean instantiation via factory method failed; nested exception isorg.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apereo.cas.support.saml.idp.metadata.writer.SamlIdPCertificateAndKeyWriter]: Factory method 'samlSelfSignedCertificateWriter' threw exception; nested exception isjava.net.MalformedURLException: no protocol:login.unila.ac.id/cas
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apereo.cas.support.saml.idp.metadata.generator.SamlIdPMetadataGenerator]: Factory method'samlIdPMetadataGenerator' threw exception; nested exception isorg.springframework.beans.factory.BeanCreationException:Error creating bean with name'samlSelfSignedCertificateWriter' defined in class path resource [org/apereo/cas/config/SamlIdPMetadataConfiguration.class]: Bean instantiation via factory method failed; nested exception isorg.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apereo.cas.support.saml.idp.metadata.writer.SamlIdPCertificateAndKeyWriter]: Factory method 'samlSelfSignedCertificateWriter' threw exception; nested exception isjava.net.MalformedURLException: no protocol:login.unila.ac.id/cas
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185)at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:640)... 86 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'samlSelfSignedCertificateWriter' defined in class path resource [org/apereo/cas/config/SamlIdPMetadataConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apereo.cas.support.saml.idp.metadata.writer.SamlIdPCertificateAndKeyWriter]: Factory method 'samlSelfSignedCertificateWriter' threw exception; nested exception isjava.net.MalformedURLException: no protocol:login.unila.ac.id/cas
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apereo.cas.support.saml.idp.metadata.writer.SamlIdPCertificateAndKeyWriter]: Factory method'samlSelfSignedCertificateWriter' threw exception; nested exception isjava.net.MalformedURLException: no protocol:login.unila.ac.id/cas
Notice: This message was sent from outside the University of Victoria email system. Please be cautious with links and sensitive information.