Speculation: but I have a feeling it has to do with different processor 
architectures mismatches e.g. the keystore was built/produced on one processor 
architecture and when deployed on AIX (ppc64-64) and was tried to be read - 
Caused by: java.io.IOException: 
com.sun.crypto.provider.SealedObjectForKeyProtector

D.

> On May 26, 2016, at 8:51 AM, Robert <[email protected]> wrote:
> 
> CAS Server WAR fails to deploy on WildFly 9.0.2 App Server when running on 
> AIX OS
> 
> OS: AIX
> 
> App Server: WildFly 9.0.2
> 
> java version "1.8.0" 
> Java(TM) SE Runtime Environment (build pap6480sr2-20151023_01(SR2)) 
> IBM J9 VM (build 2.8, JRE 1.8.0 AIX ppc64-64 Compressed References 
> 20151019_272764 (JIT enabled, AOT enabled) 
> J9VM - R28_Java8_SR2_20151019_2144_B272764 
> JIT  - tr.r14.java_20151006_102517.04 
> GC   - R28_Java8_SR2_20151019_2144_B272764_CMPRSS 
> J9CL - 20151019_272764) 
> JCL - 20151022_01 based on Oracle jdk8u65-b17
> 
>  
> 
> Error Stack trace:
> 
> Caused by: org.springframework.beans.factory.BeanCreationException: Error 
> creating bean with name 'loginFlowCipherKeystore' defined in ServletContext 
> resource [/WEB-INF/cas-servlet.xml]: Bean instantiation via factory method 
> failed; nested exception is 
> org.springframework.beans.BeanInstantiationException: Failed to instantiate 
> [java.security.KeyStore]: Factory method 'newInstance' threw exception; 
> nested exception is java.lang.RuntimeException: Error loading keystore
> 
>             at 
> org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599)
> 
>             at 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1117)
> 
>             at 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1012)
> 
>             at 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)
> 
>             at 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
> 
>             at 
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
> 
>             at 
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
> 
>             at 
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
> 
>             at 
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
> 
>             at 
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351)
> 
>             ... 89 more
> 
> Caused by: org.springframework.beans.BeanInstantiationException: Failed to 
> instantiate [java.security.KeyStore]: Factory method 'newInstance' threw 
> exception; nested exception is java.lang.RuntimeException: Error loading 
> keystore
> 
>             at 
> org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189)
> 
>             at 
> org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588)
> 
>             ... 98 more
> 
> Caused by: java.lang.RuntimeException: Error loading keystore
> 
>             at 
> org.cryptacular.bean.KeyStoreFactoryBean.newInstance(KeyStoreFactoryBean.java:120)
> 
>             at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 
>             at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
> 
>             at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
> 
>             at java.lang.reflect.Method.invoke(Method.java:507)
> 
>             at 
> org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162)
> 
>             ... 99 more
> 
> Caused by: java.io.IOException: 
> com.sun.crypto.provider.SealedObjectForKeyProtector
> 
>             at com.ibm.crypto.provider.JceKeyStore.engineLoad(Unknown Source)
> 
>             at java.security.KeyStore.load(KeyStore.java:1456)
> 
>             at 
> org.cryptacular.bean.KeyStoreFactoryBean.newInstance(KeyStoreFactoryBean.java:118)
> 
>             ... 104 more
> 
>  
> 
> Thanks!
> 
> 
> -- 
> 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 [email protected] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/ 
> <https://groups.google.com/a/apereo.org/group/cas-user/>.
> To view this discussion on the web visit 
> https://groups.google.com/a/apereo.org/d/msgid/cas-user/9a727925-05f5-4a8d-9890-a589219dd5d0%40apereo.org
>  
> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/9a727925-05f5-4a8d-9890-a589219dd5d0%40apereo.org?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/a/apereo.org/d/optout 
> <https://groups.google.com/a/apereo.org/d/optout>.

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/99511D8F-A5BF-4552-B2E9-074328023CBE%40unicon.net.
For more options, visit https://groups.google.com/a/apereo.org/d/optout.

Reply via email to