Changing to 8.5.5.10 can solve this.

On Wednesday, November 9, 2016 at 10:29:06 AM UTC+8, Adrian Chong wrote:
>
> Exception when deploy CAS 4.2.1 on WAS 8.5.5
>
>
> [11/8/16 18:01:32:036 CST] 00000041 webapp        E 
> com.ibm.ws.webcontainer.webapp.WebApp commonInitializationFinally 
> SRVE0266E: Error occured while initializing servlets: {0}
>                                  javax.servlet.ServletException: 
> SRVE0207E: Uncaught initialization exception created by servlet
> at 
> com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:400)
> at 
> com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.init(ServletWrapperImpl.java:168)
> at 
> com.ibm.ws.webcontainer.servlet.ServletWrapper.loadOnStartupCheck(ServletWrapper.java:1363)
> at 
> com.ibm.ws.webcontainer.webapp.WebApp.doLoadOnStartupActions(WebApp.java:606)
> at 
> com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinally(WebApp.java:576)
> at 
> com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:425)
> at 
> com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:88)
> at 
> com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:169)
> at 
> com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:749)
> at 
> com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:634)
> at 
> com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:426)
> at 
> com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:718)
> at 
> com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1175)
> at 
> com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1370)
> at 
> com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:639)
> at 
> com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:968)
> at 
> com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:774)
> at 
> com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2182)
> at 
> com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:445)
> at 
> com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123)
> at 
> com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:388)
> at 
> com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$500(CompositionUnitMgrImpl.java:116)
> at 
> com.ibm.ws.runtime.component.CompositionUnitMgrImpl$CUInitializer.run(CompositionUnitMgrImpl.java:994)
> at 
> com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:502)
> at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1862)
> Caused by: org.springframework.beans.factory.BeanCreationException: Error 
> creating bean with name 'builder': Cannot resolve reference to bean 
> 'viewFactoryCreator' while setting bean property 'viewFactoryCreator'; 
> nested exception is 
> org.springframework.beans.factory.BeanCreationException: Error creating 
> bean with name 'viewFactoryCreator' defined in ServletContext resource 
> [/WEB-INF/spring-configuration/webflowContext.xml]: Cannot create inner 
> bean 'util:list#754aa69' of type 
> [org.springframework.beans.factory.config.ListFactoryBean] while setting 
> bean property 'viewResolvers'; nested exception is 
> org.springframework.beans.factory.BeanCreationException: Error creating 
> bean with name 'util:list#754aa69': Cannot resolve reference to bean 
> 'internalViewResolver' while setting bean property 'sourceList' with key 
> [1]; nested exception is 
> org.springframework.beans.factory.BeanCreationException: Error creating 
> bean with name 'internalViewResolver' defined in ServletContext resource 
> [/WEB-INF/spring-configuration/webflowContext.xml]: Cannot resolve 
> reference to bean 'servicesManager' while setting constructor argument; 
> nested exception is 
> org.springframework.beans.factory.UnsatisfiedDependencyException: Error 
> creating bean with name 'servicesManager' defined in URL 
> [wsjar:file:/C:/Program%20Files%20(x86)/IBM/WebSphere/AppServer/profiles/clrHost01/installedApps/SYD-049Node01Cell/cas_was_war.ear/cas_was.war/WEB-INF/lib/cas-server-core-services-4.2.6.jar!/org/jasig/cas/services/DefaultServicesManagerImpl.class]:
>  
> Unsatisfied dependency expressed through constructor argument with index 0 
> of type [org.jasig.cas.services.ServiceRegistryDao]: Error creating bean 
> with name 'httpClient' defined in URL 
> [wsjar:file:/C:/Program%20Files%20(x86)/IBM/WebSphere/AppServer/profiles/clrHost01/installedApps/SYD-049Node01Cell/cas_was_war.ear/cas_was.war/WEB-INF/lib/cas-server-core-util-4.2.6.jar!/org/jasig/cas/util/http/SimpleHttpClientFactoryBean$DefaultHttpClient.class]:
>  
> Instantiation of bean failed; nested exception is 
> org.springframework.beans.BeanInstantiationException: Failed to instantiate 
> [org.jasig.cas.util.http.SimpleHttpClientFactoryBean$DefaultHttpClient]: 
> Constructor threw exception; nested exception is 
> java.lang.NoSuchFieldError: 
> org/apache/http/conn/ssl/AllowAllHostnameVerifier.INSTANCE; nested 
> exception is org.springframework.beans.factory.BeanCreationException: Error 
> creating bean with name 'httpClient' defined in URL 
> [wsjar:file:/C:/Program%20Files%20(x86)/IBM/WebSphere/AppServer/profiles/clrHost01/installedApps/SYD-049Node01Cell/cas_was_war.ear/cas_was.war/WEB-INF/lib/cas-server-core-util-4.2.6.jar!/org/jasig/cas/util/http/SimpleHttpClientFactoryBean$DefaultHttpClient.class]:
>  
> Instantiation of bean failed; nested exception is 
> org.springframework.beans.BeanInstantiationException: Failed to instantiate 
> [org.jasig.cas.util.http.SimpleHttpClientFactoryBean$DefaultHttpClient]: 
> Constructor threw exception; nested exception is 
> java.lang.NoSuchFieldError: 
> org/apache/http/conn/ssl/AllowAllHostnameVerifier.INSTANCE
> at 
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359)
> at 
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
> at 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1485)
> at 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1230)
> at 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543)
> at 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
> at 
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
> at 
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
> at 
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
> at 
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
> at 
> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:778)
> at 
> org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:839)
> at 
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:538)
> at 
> org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:444)
> at 
> org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:326)
> at 
> org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
> at 
> com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:1678)
> at 
> com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:414)
> ... 19 more
> Caused by: org.springframework.beans.factory.BeanCreationException: Error 
> creating bean with name 'viewFactoryCreator' defined in ServletContext 
> resource [/WEB-INF/spring-configuration/webflowContext.xml]: Cannot create 
> inner bean 'util:list#754aa69' of type 
> [org.springframework.beans.factory.config.ListFactoryBean] while setting 
> bean property 'viewResolvers'; nested exception is 
> org.springframework.beans.factory.BeanCreationException: Error creating 
> bean with name 'util:list#754aa69': Cannot resolve reference to bean 
> 'internalViewResolver' while setting bean property 'sourceList' with key 
> [1]; nested exception is 
> org.springframework.beans.factory.BeanCreationException: Error creating 
> bean with name 'internalViewResolver' defined in ServletContext resource 
> [/WEB-INF/spring-configuration/webflowContext.xml]: Cannot resolve 
> reference to bean 'servicesManager' while setting constructor argument; 
> nested exception is 
> org.springframework.beans.factory.UnsatisfiedDependencyException: Error 
> creating bean with name 'servicesManager' defined in URL 
> [wsjar:file:/C:/Program%20Files%20(x86)/IBM/WebSphere/AppServer/profiles/clrHost01/installedApps/SYD-049Node01Cell/cas_was_war.ear/cas_was.war/WEB-INF/lib/cas-server-core-services-4.2.6.jar!/org/jasig/cas/services/DefaultServicesManagerImpl.class]:
>  
> Unsatisfied dependency expressed through constructor argument with index 0 
> of type [org.jasig.cas.services.ServiceRegistryDao]: Error creating bean 
> with name 'httpClient' defined in URL 
> [wsjar:file:/C:/Program%20Files%20(x86)/IBM/WebSphere/AppServer/profiles/clrHost01/installedApps/SYD-049Node01Cell/cas_was_war.ear/cas_was.war/WEB-INF/lib/cas-server-core-util-4.2.6.jar!/org/jasig/cas/util/http/SimpleHttpClientFactoryBean$DefaultHttpClient.class]:
>  
> Instantiation of bean failed; nested exception is 
> org.springframework.beans.BeanInstantiationException: Failed to instantiate 
> [org.jasig.cas.util.http.SimpleHttpClientFactoryBean$DefaultHttpClient]: 
> Constructor threw exception; nested exception is 
> java.lang.NoSuchFieldError: 
> org/apache/http/conn/ssl/AllowAllHostnameVerifier.INSTANCE; nested 
> exception is org.springframework.beans.factory.BeanCreationException: Error 
> creating bean with name 'httpClient' defined in URL 
> [wsjar:file:/C:/Program%20Files%20(x86)/IBM/WebSphere/AppServer/profiles/clrHost01/installedApps/SYD-049Node01Cell/cas_was_war.ear/cas_was.war/WEB-INF/lib/cas-server-core-util-4.2.6.jar!/org/jasig/cas/util/http/SimpleHttpClientFactoryBean$DefaultHttpClient.class]:
>  
> Instantiation of bean failed; nested exception is 
> org.springframework.beans.BeanInstantiationException: Failed to instantiate 
> [org.jasig.cas.util.http.SimpleHttpClientFactoryBean$DefaultHttpClient]: 
> Constructor threw exception; nested exception is 
> java.lang.NoSuchFieldError: 
> org/apache/http/conn/ssl/AllowAllHostnameVerifier.INSTANCE
> at 
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:313)
> at 
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122)
> at 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1485)
> at 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1230)
> at 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543)
> at 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
> at 
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
> at 
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
> at 
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
> at 
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
> at 
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351)
> ... 36 more
> Caused by: org.springframework.beans.factory.BeanCreationException: Error 
> creating bean with name 'util:list#754aa69': Cannot resolve reference to 
> bean 'internalViewResolver' while setting bean property 'sourceList' with 
> key [1]; nested exception is 
> org.springframework.beans.factory.BeanCreationException: Error creating 
> bean with name 'internalViewResolver' defined in ServletContext resource 
> [/WEB-INF/spring-configuration/webflowContext.xml]: Cannot resolve 
> reference to bean 'servicesManager' while setting constructor argument; 
> nested exception is 
> org.springframework.beans.factory.UnsatisfiedDependencyException: Error 
> creating bean with name 'servicesManager' defined in URL 
> [wsjar:file:/C:/Program%20Files%20(x86)/IBM/WebSphere/AppServer/profiles/clrHost01/installedApps/SYD-049Node01Cell/cas_was_war.ear/cas_was.war/WEB-INF/lib/cas-server-core-services-4.2.6.jar!/org/jasig/cas/services/DefaultServicesManagerImpl.class]:
>  
> Unsatisfied dependency expressed through constructor argument with index 0 
> of type [org.jasig.cas.services.ServiceRegistryDao]: Error creating bean 
> with name 'httpClient' defined in URL 
> [wsjar:file:/C:/Program%20Files%20(x86)/IBM/WebSphere/AppServer/profiles/clrHost01/installedApps/SYD-049Node01Cell/cas_was_war.ear/cas_was.war/WEB-INF/lib/cas-server-core-util-4.2.6.jar!/org/jasig/cas/util/http/SimpleHttpClientFactoryBean$DefaultHttpClient.class]:
>  
> Instantiation of bean failed; nested exception is 
> org.springframework.beans.BeanInstantiationException: Failed to instantiate 
> [org.jasig.cas.util.http.SimpleHttpClientFactoryBean$DefaultHttpClient]: 
> Constructor threw exception; nested exception is 
> java.lang.NoSuchFieldError: 
> org/apache/http/conn/ssl/AllowAllHostnameVerifier.INSTANCE; nested 
> exception is org.springframework.beans.factory.BeanCreationException: Error 
> creating bean with name 'httpClient' defined in URL 
> [wsjar:file:/C:/Program%20Files%20(x86)/IBM/WebSphere/AppServer/profiles/clrHost01/installedApps/SYD-049Node01Cell/cas_was_war.ear/cas_was.war/WEB-INF/lib/cas-server-core-util-4.2.6.jar!/org/jasig/cas/util/http/SimpleHttpClientFactoryBean$DefaultHttpClient.class]:
>  
> Instantiation of bean failed; nested exception is 
> org.springframework.beans.BeanInstantiationException: Failed to instantiate 
> [org.jasig.cas.util.http.SimpleHttpClientFactoryBean$DefaultHttpClient]: 
> Constructor threw exception; nested exception is 
> java.lang.NoSuchFieldError: 
> org/apache/http/conn/ssl/AllowAllHostnameVerifier.INSTANCE
> at 
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359)
> at 
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
> at 
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:382)
> at 
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:157)
> at 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1485)
> at 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1230)
> at 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543)
> at 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
> at 
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:299)
> ... 46 more
> Caused by: org.springframework.beans.factory.BeanCreationException: Error 
> creating bean with name 'internalViewResolver' defined in ServletContext 
> resource [/WEB-INF/spring-configuration/webflowContext.xml]: Cannot resolve 
> reference to bean 'servicesManager' while setting constructor argument; 
> nested exception is 
> org.springframework.beans.factory.UnsatisfiedDependencyException: Error 
> creating bean with name 'servicesManager' defined in URL 
> [wsjar:file:/C:/Program%20Files%20(x86)/IBM/WebSphere/AppServer/profiles/clrHost01/installedApps/SYD-049Node01Cell/cas_was_war.ear/cas_was.war/WEB-INF/lib/cas-server-core-services-4.2.6.jar!/org/jasig/cas/services/DefaultServicesManagerImpl.class]:
>  
> Unsatisfied dependency expressed through constructor argument with index 0 
> of type [org.jasig.cas.services.ServiceRegistryDao]: Error creating bean 
> with name 'httpClient' defined in URL 
> [wsjar:file:/C:/Program%20Files%20(x86)/IBM/WebSphere/AppServer/profiles/clrHost01/installedApps/SYD-049Node01Cell/cas_was_war.ear/cas_was.war/WEB-INF/lib/cas-server-core-util-4.2.6.jar!/org/jasig/cas/util/http/SimpleHttpClientFactoryBean$DefaultHttpClient.class]:
>  
> Instantiation of bean failed; nested exception is 
> org.springframework.beans.BeanInstantiationException: Failed to instantiate 
> [org.jasig.cas.util.http.SimpleHttpClientFactoryBean$DefaultHttpClient]: 
> Constructor threw exception; nested exception is 
> java.lang.NoSuchFieldError: 
> org/apache/http/conn/ssl/AllowAllHostnameVerifier.INSTANCE; nested 
> exception is org.springframework.beans.factory.BeanCreationException: Error 
> creating bean with name 'httpClient' defined in URL 
> [wsjar:file:/C:/Program%20Files%20(x86)/IBM/WebSphere/AppServer/profiles/clrHost01/installedApps/SYD-049Node01Cell/cas_was_war.ear/cas_was.war/WEB-INF/lib/cas-server-core-util-4.2.6.jar!/org/jasig/cas/util/http/SimpleHttpClientFactoryBean$DefaultHttpClient.class]:
>  
> Instantiation of bean failed; nested exception is 
> org.springframework.beans.BeanInstantiationException: Failed to instantiate 
> [org.jasig.cas.util.http.SimpleHttpClientFactoryBean$DefaultHttpClient]: 
> Constructor threw exception; nested exception is 
> java.lang.NoSuchFieldError: 
> org/apache/http/conn/ssl/AllowAllHostnameVerifier.INSTANCE
> at 
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359)
> at 
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
> at 
> org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:648)
> at 
> org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:140)
> at 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1147)
> at 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1050)
> at 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510)
> at 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
> at 
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
> at 
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
> at 
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
> at 
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
> at 
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351)
> ... 54 more
> Caused by: 
> org.springframework.beans.factory.UnsatisfiedDependencyException: Error 
> creating bean with name 'servicesManager' defined in URL 
> [wsjar:file:/C:/Program%20Files%20(x86)/IBM/WebSphere/AppServer/profiles/clrHost01/installedApps/SYD-049Node01Cell/cas_was_war.ear/cas_was.war/WEB-INF/lib/cas-server-core-services-4.2.6.jar!/org/jasig/cas/services/DefaultServicesManagerImpl.class]:
>  
> Unsatisfied dependency expressed through constructor argument with index 0 
> of type [org.jasig.cas.services.ServiceRegistryDao]: Error creating bean 
> with name 'httpClient' defined in URL 
> [wsjar:file:/C:/Program%20Files%20(x86)/IBM/WebSphere/AppServer/profiles/clrHost01/installedApps/SYD-049Node01Cell/cas_was_war.ear/cas_was.war/WEB-INF/lib/cas-server-core-util-4.2.6.jar!/org/jasig/cas/util/http/SimpleHttpClientFactoryBean$DefaultHttpClient.class]:
>  
> Instantiation of bean failed; nested exception is 
> org.springframework.beans.BeanInstantiationException: Failed to instantiate 
> [org.jasig.cas.util.http.SimpleHttpClientFactoryBean$DefaultHttpClient]: 
> Constructor threw exception; nested exception is 
> java.lang.NoSuchFieldError: 
> org/apache/http/conn/ssl/AllowAllHostnameVerifier.INSTANCE; nested 
> exception is org.springframework.beans.factory.BeanCreationException: Error 
> creating bean with name 'httpClient' defined in URL 
> [wsjar:file:/C:/Program%20Files%20(x86)/IBM/WebSphere/AppServer/profiles/clrHost01/installedApps/SYD-049Node01Cell/cas_was_war.ear/cas_was.war/WEB-INF/lib/cas-server-core-util-4.2.6.jar!/org/jasig/cas/util/http/SimpleHttpClientFactoryBean$DefaultHttpClient.class]:
>  
> Instantiation of bean failed; nested exception is 
> org.springframework.beans.BeanInstantiationException: Failed to instantiate 
> [org.jasig.cas.util.http.SimpleHttpClientFactoryBean$DefaultHttpClient]: 
> Constructor threw exception; nested exception is 
> java.lang.NoSuchFieldError: 
> org/apache/http/conn/ssl/AllowAllHostnameVerifier.INSTANCE
> at 
> org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:749)
> at 
> org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:185)
> at 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1147)
> at 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1050)
> at 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510)
> at 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
> at 
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
> at 
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
> at 
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
> at 
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
> at 
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351)
> ... 66 more
> Caused by: org.springframework.beans.factory.BeanCreationException: Error 
> creating bean with name 'httpClient' defined in URL 
> [wsjar:file:/C:/Program%20Files%20(x86)/IBM/WebSphere/AppServer/profiles/clrHost01/installedApps/SYD-049Node01Cell/cas_was_war.ear/cas_was.war/WEB-INF/lib/cas-server-core-util-4.2.6.jar!/org/jasig/cas/util/http/SimpleHttpClientFactoryBean$DefaultHttpClient.class]:
>  
> Instantiation of bean failed; nested exception is 
> org.springframework.beans.BeanInstantiationException: Failed to instantiate 
> [org.jasig.cas.util.http.SimpleHttpClientFactoryBean$DefaultHttpClient]: 
> Constructor threw exception; nested exception is 
> java.lang.NoSuchFieldError: 
> org/apache/http/conn/ssl/AllowAllHostnameVerifier.INSTANCE
> at 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1109)
> at 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1054)
> at 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getSingletonFactoryBeanForTypeCheck(AbstractAutowireCapableBeanFactory.java:869)
> at 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:796)
> at 
> org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:544)
> at 
> org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:449)
> at 
> org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:425)
> at 
> org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(BeanFactoryUtils.java:220)
> at 
> org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1184)
> at 
> org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1123)
> at 
> org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1021)
> at 
> org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:814)
> at 
> org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:741)
> ... 76 more
> Caused by: org.springframework.beans.BeanInstantiationException: Failed to 
> instantiate 
> [org.jasig.cas.util.http.SimpleHttpClientFactoryBean$DefaultHttpClient]: 
> Constructor threw exception; nested exception is 
> java.lang.NoSuchFieldError: 
> org/apache/http/conn/ssl/AllowAllHostnameVerifier.INSTANCE
> at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:163)
> at 
> org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:89)
> at 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1102)
> ... 88 more
> Caused by: java.lang.NoSuchFieldError: 
> org/apache/http/conn/ssl/AllowAllHostnameVerifier.INSTANCE
> at 
> org.apache.http.conn.ssl.SSLConnectionSocketFactory.<clinit>(SSLConnectionSocketFactory.java:144)
> at java.lang.J9VMInternals.initializeImpl(Native Method)
> at java.lang.J9VMInternals.initialize(J9VMInternals.java:228)
> at 
> org.jasig.cas.util.http.SimpleHttpClientFactoryBean.<init>(SimpleHttpClientFactoryBean.java:112)
> at 
> org.jasig.cas.util.http.SimpleHttpClientFactoryBean$DefaultHttpClient.<init>(SimpleHttpClientFactoryBean.java:441)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:80)
> at 
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:57)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:539)
> at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147)
> ... 90 more
>
> But, in Classloader Viewer of WAS admin console, there is only one jar 
> containing the class. So is it unlikely due to version conflict of apache 
> http client? Any hint to solve it?
>
> Thanks
>

-- 
- CAS gitter chatroom: https://gitter.im/apereo/cas
- CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html
- CAS documentation website: https://apereo.github.io/cas
- CAS project website: https://github.com/apereo/cas
--- 
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 view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/51a992d1-de9b-428b-96dc-efe88fced87b%40apereo.org.

Reply via email to