【问题标题】:Weblogic failing with error : org.springframework.beans.factory.BeanCreationException: Error creating bean with nameWeblogic 失败并出现错误:org.springframework.beans.factory.BeanCreationException:创建带有名称的 bean 时出错
【发布时间】:2023-03-16 23:23:01
【问题描述】:

当应用程序部署在 Weblogic 12.1.3 上时,启动时出现以下错误

Feb 6, 2019 9:05:51,896 PM PST> <Warning> <HTTP> <BEA-101162> <User defined listener org.springframework.web.context.ContextLoaderListener failed: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'applicationEventMulticaster' defined in class path resource [META-INF/common.xml]: Cannot resolve reference to bean 'pool' while setting bean property 'taskExecutor'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pool': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.eqtechnologic.eqube.security.service.init.PolicyManager com.eqtechnologic.eqube.security.service.ThreadPoolExecutor.g; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'policyManager': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.eqtechnologic.eqube.security.service.central.services.schedulers.Scheduler com.eqtechnologic.eqube.security.service.init.PolicyManager.jF; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'scheduler': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: protected com.eqtechnologic.eqube.security.service.SecurityConfigurationObject com.eqtechnologic.eqube.security.service.central.services.schedulers.Scheduler.z; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'securityConfigurationObject': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.eqtechnologic.eqube.security.service.central.CentralAuthenticationService com.eqtechnologic.eqube.security.service.SecurityConfigurationObject.Q; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'centralAuthenticationService' defined in class path resource [META-INF/authentication.xml]: Instantiation of bean failed; nested exception is java.lang.ExceptionInInitializerError.
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'applicationEventMulticaster' defined in class path resource [META-INF/common.xml]: Cannot resolve reference to bean 'pool' while setting bean property 'taskExecutor'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pool': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.eqtechnologic.eqube.security.service.init.PolicyManager com.eqtechnologic.eqube.security.service.ThreadPoolExecutor.g; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'policyManager': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.eqtechnologic.eqube.security.service.central.services.schedulers.Scheduler com.eqtechnologic.eqube.security.service.init.PolicyManager.jF; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'scheduler': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: protected com.eqtechnologic.eqube.security.service.SecurityConfigurationObject com.eqtechnologic.eqube.security.service.central.services.schedulers.Scheduler.z; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'securityConfigurationObject': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.eqtechnologic.eqube.security.service.central.CentralAuthenticationService com.eqtechnologic.eqube.security.service.SecurityConfigurationObject.Q; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'centralAuthenticationService' defined in class path resource [META-INF/authentication.xml]: Instantiation of bean failed; nested exception is java.lang.ExceptionInInitializerError
        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:1475)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1220)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)
        Truncated. see log file for complete stacktrace
Caused By: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pool': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.eqtechnologic.eqube.security.service.init.PolicyManager com.eqtechnologic.eqube.security.service.ThreadPoolExecutor.g; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'policyManager': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.eqtechnologic.eqube.security.service.central.services.schedulers.Scheduler com.eqtechnologic.eqube.security.service.init.PolicyManager.jF; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'scheduler': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: protected com.eqtechnologic.eqube.security.service.SecurityConfigurationObject com.eqtechnologic.eqube.security.service.central.services.schedulers.Scheduler.z; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'securityConfigurationObject': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.eqtechnologic.eqube.security.service.central.CentralAuthenticationService com.eqtechnologic.eqube.security.service.SecurityConfigurationObject.Q; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'centralAuthenticationService' defined in class path resource [META-INF/authentication.xml]: Instantiation of bean failed; nested exception is java.lang.ExceptionInInitializerError
        at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1208)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
        Truncated. see log file for complete stacktrace
Caused By: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.eqtechnologic.eqube.security.service.init.PolicyManager com.eqtechnologic.eqube.security.service.ThreadPoolExecutor.g; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'policyManager': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.eqtechnologic.eqube.security.service.central.services.schedulers.Scheduler com.eqtechnologic.eqube.security.service.init.PolicyManager.jF; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'scheduler': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: protected com.eqtechnologic.eqube.security.service.SecurityConfigurationObject com.eqtechnologic.eqube.security.service.central.services.schedulers.Scheduler.z; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'securityConfigurationObject': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.eqtechnologic.eqube.security.service.central.CentralAuthenticationService com.eqtechnologic.eqube.security.service.SecurityConfigurationObject.Q; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'centralAuthenticationService' defined in class path resource [META-INF/authentication.xml]: Instantiation of bean failed; nested exception is java.lang.ExceptionInInitializerError
        at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:561)
        at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
        at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1208)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)
        Truncated. see log file for complete stacktrace
Caused By: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'policyManager': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.eqtechnologic.eqube.security.service.central.services.schedulers.Scheduler com.eqtechnologic.eqube.security.service.init.PolicyManager.jF; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'scheduler': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: protected com.eqtechnologic.eqube.security.service.SecurityConfigurationObject com.eqtechnologic.eqube.security.service.central.services.schedulers.Scheduler.z; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'securityConfigurationObject': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.eqtechnologic.eqube.security.service.central.CentralAuthenticationService com.eqtechnologic.eqube.security.service.SecurityConfigurationObject.Q; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'centralAuthenticationService' defined in class path resource [META-INF/authentication.xml]: Instantiation of bean failed; nested exception is java.lang.ExceptionInInitializerError
        at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1208)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
        Truncated. see log file for complete stacktrace
Caused By: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.eqtechnologic.eqube.security.service.central.services.schedulers.Scheduler com.eqtechnologic.eqube.security.service.init.PolicyManager.jF; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'scheduler': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: protected com.eqtechnologic.eqube.security.service.SecurityConfigurationObject com.eqtechnologic.eqube.security.service.central.services.schedulers.Scheduler.z; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'securityConfigurationObject': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.eqtechnologic.eqube.security.service.central.CentralAuthenticationService com.eqtechnologic.eqube.security.service.SecurityConfigurationObject.Q; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'centralAuthenticationService' defined in class path resource [META-INF/authentication.xml]: Instantiation of bean failed; nested exception is java.lang.ExceptionInInitializerError
        at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:561)
        at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
        at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1208)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)
        Truncated. see log file for complete stacktrace
Caused By: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'scheduler': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: protected com.eqtechnologic.eqube.security.service.SecurityConfigurationObject com.eqtechnologic.eqube.security.service.central.services.schedulers.Scheduler.z; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'securityConfigurationObject': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.eqtechnologic.eqube.security.service.central.CentralAuthenticationService com.eqtechnologic.eqube.security.service.SecurityConfigurationObject.Q; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'centralAuthenticationService' defined in class path resource [META-INF/authentication.xml]: Instantiation of bean failed; nested exception is java.lang.ExceptionInInitializerError
        at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1208)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
        Truncated. see log file for complete stacktrace
Caused By: org.springframework.beans.factory.BeanCreationException: Could not autowire field: protected com.eqtechnologic.eqube.security.service.SecurityConfigurationObject com.eqtechnologic.eqube.security.service.central.services.schedulers.Scheduler.z; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'securityConfigurationObject': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.eqtechnologic.eqube.security.service.central.CentralAuthenticationService com.eqtechnologic.eqube.security.service.SecurityConfigurationObject.Q; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'centralAuthenticationService' defined in class path resource [META-INF/authentication.xml]: Instantiation of bean failed; nested exception is java.lang.ExceptionInInitializerError
        at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:561)
        at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
        at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1208)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)
        Truncated. see log file for complete stacktrace
Caused By: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'securityConfigurationObject': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.eqtechnologic.eqube.security.service.central.CentralAuthenticationService com.eqtechnologic.eqube.security.service.SecurityConfigurationObject.Q; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'centralAuthenticationService' defined in class path resource [META-INF/authentication.xml]: Instantiation of bean failed; nested exception is java.lang.ExceptionInInitializerError
        at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1208)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
        Truncated. see log file for complete stacktrace
Caused By: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.eqtechnologic.eqube.security.service.central.CentralAuthenticationService com.eqtechnologic.eqube.security.service.SecurityConfigurationObject.Q; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'centralAuthenticationService' defined in class path resource [META-INF/authentication.xml]: Instantiation of bean failed; nested exception is java.lang.ExceptionInInitializerError
        at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:561)
        at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
        at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1208)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)
        Truncated. see log file for complete stacktrace
Caused By: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'centralAuthenticationService' defined in class path resource [META-INF/authentication.xml]: Instantiation of bean failed; nested exception is java.lang.ExceptionInInitializerError
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1099)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1044)
        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)
        Truncated. see log file for complete stacktrace
Caused By: java.lang.ExceptionInInitializerError
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147)
        Truncated. see log file for complete stacktrace
Caused By: java.lang.IllegalStateException: Error initializing OpenSAML library.
        at com.eqtechnologic.eqube.security.service.central.AbstractCentralAuthenticationService.<clinit>(AbstractCentralAuthenticationService.java:106)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        Truncated. see log file for complete stacktrace
Caused By: org.opensaml.xml.ConfigurationException: Can not create instance of org.opensaml.soap.soap11.impl.BodyBuilder
        at org.opensaml.xml.XMLConfigurator.createClassInstance(XMLConfigurator.java:359)
        at org.opensaml.xml.XMLConfigurator.initializeObjectProviders(XMLConfigurator.java:235)
        at org.opensaml.xml.XMLConfigurator.load(XMLConfigurator.java:181)
        at org.opensaml.xml.XMLConfigurator.load(XMLConfigurator.java:165)
        at org.opensaml.xml.XMLConfigurator.load(XMLConfigurator.java:142)
        Truncated. see log file for complete stacktrace
Caused By: java.lang.ClassNotFoundException: org.opensaml.soap.soap11.impl.BodyBuilder
        at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:1029)
        at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:990)
        at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:104)
        at weblogic.utils.classloaders.GenericClassLoader.doFindClass(GenericClassLoader.java:611)
        at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:543)
        Truncated. see log file for complete stacktrace

已验证为应用程序部署的 spring 批处理:

aopalliance-1.0.jar
commons-logging-1.1.1.jar
jettison-1.3.7.jar
spring-aop-4.1.9.RELEASE.jar
spring-beans-4.1.9.RELEASE.jar
spring-context-4.1.9.RELEASE.jar
spring-core-4.1.9.RELEASE.jar
spring-expression-4.1.9.RELEASE.jar
spring-tx-4.1.9.RELEASE.jar
spring-web-4.1.9.RELEASE.jar
spring-webmvc-4.1.9.RELEASE.jar
xpp3_min-1.1.4c.jar
xstream-1.4.8.jar

如以下线程中所述:https://stackoverflow.com/questions/33253498/error-while-deploying-spring-batch-in-weblogic-beancreationexception-error-crea

对于应用程序 Weblogic 显示以下错误:

**** Error occurred while destroying Security Service *****

<Feb 6, 2019 9:05:51,945 PM PST> <Warning> <HTTP> <BEA-101162> <User defined listener com.eqtechnologic.eqube.eQInitListener failed: java.lang.NullPointerException.
java.lang.NullPointerException
        at com.eqtechnologic.eqube.ServerStartupInitialization.destroySecurityService(ServerStartupInitialization.java:259)
        at com.eqtechnologic.eqube.eQInitListener.b(eQInitListener.java:70)
        at com.eqtechnologic.eqube.eQInitListener.contextDestroyed(eQInitListener.java:27)
        at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:706)
        at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:326)
        Truncated. see log file for complete stacktrace
>
<Feb 6, 2019 9:05:51,992 PM PST> <Error> <Deployer> <BEA-149231> <Unable to set the activation state to true for the application "eQubeMI".
weblogic.application.ModuleException: java.lang.ClassNotFoundException: org.opensaml.soap.soap11.impl.BodyBuilder
        at weblogic.application.internal.ExtensibleModuleWrapper.start(ExtensibleModuleWrapper.java:140)
        at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:124)
        at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:233)
        at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:228)
        at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:45)
        Truncated. see log file for complete stacktrace
Caused By: java.lang.ClassNotFoundException: org.opensaml.soap.soap11.impl.BodyBuilder
        at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:1029)
        at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:990)
        at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:104)
        at weblogic.utils.classloaders.GenericClassLoader.doFindClass(GenericClassLoader.java:611)
        at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:543)
        Truncated. see log file for complete stacktrace
>

如果相同的战争部署在另一台服务器上,那么这场战争正在运行,但仅在这台服务器上失败。

【问题讨论】:

    标签: java spring weblogic


    【解决方案1】:

    引起:java.lang.ClassNotFoundException: org.opensaml.soap.soap11.impl.BodyBuilder 在 weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:1029) 在 weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:990) 在 weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:104)

    似乎 Weblogic 的类加载器从其内部模块加载OpenSAML jar,而不是从 WAR 加载。显然,Weblogic 附带的OpenSAML jar 与您的应用程序所需的不兼容。

    您可以搜索如何使 Weblogic 从已部署的 WAR 中加载 JAR 优先级高于其内部模块。另一方面,trick 之一只是删除/重命名 Weblogic 附带的 OpenSAML jar。

    【讨论】:

      【解决方案2】:

      WebLogic Filtering Classloader Fails After Upgrade (Doc ID 2269375.1)

      使用应用程序的 weblogic-application.xml 文件中的部分来过滤要从应用程序而不是系统加载的任何需要的配置文件。例如,添加这些条目解决了 OpenSAML 问题:

      <prefer-application-resources>
      ...
        <resource-name>soap11-config.xml</resource-name>
        <resource-name>schema/xmltooling-config.xsd</resource-name>
      </prefer-application-resources>
      

      【讨论】:

        猜你喜欢
        • 2011-10-25
        • 1970-01-01
        • 2016-06-21
        • 1970-01-01
        • 2020-09-06
        • 1970-01-01
        • 2017-04-17
        相关资源
        最近更新 更多