zoukankan      html  css  js  c++  java
  • Could not initialize class org.jasig.cas.web.view.Saml10SuccessResponseView at

    服务已启动无报错,登录Weblogic控制台,点击》》部署》》点开服务,里面有个测试项 ,点击测试项里的连接 ,报正在在努力加载请求》请重试,查看日志文件报如下错误 :

    1.<Dec 29, 2016 3:48:52 PM CST> <Error><[ServletContext@2130204450[app:isc_sso module:isc_sso path:/isc_sso spec-version:2.5]] Root cause of ServletException. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'casSamlServiceSuccessView': Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class org.jasig.cas.web.view.Saml10SuccessResponseView at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:997) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:943) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294) Truncated. see log file for complete stacktrace Caused By: java.lang.NoClassDefFoundError: Could not initialize class org.jasig.cas.web.view.Saml10SuccessResponseView at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

    注意到日志中有org.jasig.cas.web.view.Saml10SuccessResponseView,而weblogic和cas sso的lib中都包含有sam的jar包,因此采纳了包冲突的解决方案。

    [root@k8s-node2 ~]# find /weblogic/ -name "*sam*.jar"      #  搜索包含sam的jar包,
    /weblogic/Oracle/Middleware/wlserver_10.3/server/lib/mbeantypes/saml2CredentialMapper.jar
    /weblogic/Oracle/Middleware/wlserver_10.3/server/lib/mbeantypes/saml2IdentityAsserter.jar
    /weblogic/Oracle/Middleware/modules/features/weblogic.saml2.modules_10.3.6.0.jar
    /weblogic/Oracle/Middleware/modules/com.bea.core.common.security.saml2.utils_1.0.0.0_6-2-0-0.jar
    /weblogic/Oracle/Middleware/modules/com.bea.core.common.security.saml2_1.0.0.0_6-2-0-0.jar
    /weblogic/Oracle/Middleware/modules/com.bea.core.common.security.saml2.manage_1.0.0.0_6-2-0-0.jar
    /weblogic/Oracle/Middleware/modules/com.bea.core.common.security.saml.utils_1.0.0.0_6-2-0-0.jar
    /weblogic/Oracle/Middleware/modules/com.bea.core.bea.opensaml_1.0.0.0_6-2-0-0.jar
    /weblogic/Oracle/Middleware/modules/com.bea.core.bea.opensaml2_1.0.0.0_6-2-0-0.jar
    /weblogic/Oracle/Middleware/modules/com.bea.core.common.security.saml2.ja_1.0.0.0_6-2-0-0.jar

    [root@k8s-node2 modules]# ll  com.bea.core.bea.opensaml2_1.0.0.0_6-2-0-0.jar

    [root@k8s-node2 modules]# ll  com.bea.core.bea.opensaml_1.0.0.0_6-2-0-0.jar

    将2两个jar 包删除或者重命名,清weblogic 缓存重启。

  • 相关阅读:
    如何看linux是32位还是64位
    Linux下,命令 wget 的使用
    express框架目录结构
    怎么在centos中查看某个目录的树结构?
    CentOS minimal版安装图形界面的步骤(自动获取IP)
    微信小程序项目,实现图书搜索组件完善
    微信小程序项目,实现图书搜索高阶组件:
    微信小程序中使用音频组件以及wx:if和hidden的区别
    微信小程序绑定数据以及自定义指令
    微信小程序定义一个组件
  • 原文地址:https://www.cnblogs.com/vzhangxk/p/14373346.html
Copyright © 2011-2022 走看看