Weblogic失败并出现错误:org.springframework.beans.factory.BeanCreationException:使用名称创建bean时出错

问题描述 投票:0回答:2

当应用程序部署在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

为应用部署的已验证弹簧批次:

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
2个回答
0
投票

引发者: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)

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

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


0
投票

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>
© www.soinside.com 2019 - 2024. All rights reserved.