升级到Spring 5.1.0,遇到BeanFactoryLocator的NoClassDefFoundError。
Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jbpmConfiguration': Lookup method resolution failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class [org.springmodules.workflow.jbpm31.LocalJbpmConfigurationFactoryBean] from ClassLoader [ParallelWebappClassLoader
context: xxxxx
delegate: false
----------> Parent Classloader:
java.net.URLClassLoader@123456789a
----------> Class file transformers:
org.springframework.context.weaving.AspectJWeavingEnabler$AspectJClassBypassingClassFileTransformer@48fc217b
]
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:767) ~[spring-beans-5.1.0.RELEASE.jar:5.1.0.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:218) ~[spring-beans-5.1.0.RELEASE.jar:5.1.0.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1307) ~[spring-beans-5.1.0.RELEASE.jar:5.1.0.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1153) ~[spring-beans-5.1.0.RELEASE.jar:5.1.0.RELEASE]
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jbpmConfiguration': Lookup method resolution failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class [org.springmodules.workflow.jbpm31.LocalJbpmConfigurationFactoryBean] from ClassLoader [ParallelWebappClassLoader
org.springframework.context.weaving.AspectJWeavingEnabler$AspectJClassBypassingClassFileTransformer@48fc217b
]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:267) ~[spring-beans-5.1.0.RELEASE.jar:5.1.0.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineConstructorsFromBeanPostProcessors(AbstractAutowireCapableBeanFactory.java:1235) ~[spring-beans-5.1.0.RELEASE.jar:5.1.0.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1150) ~[spring-beans-5.1.0.RELEASE.jar:5.1.0.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getSingletonFactoryBeanForTypeCheck(AbstractAutowireCapableBeanFactory.java:973) ~[spring-beans-5.1.0.RELEASE.jar:5.1.0.RELEASE]
Caused by: java.lang.IllegalStateException: Failed to introspect Class [org.springmodules.workflow.jbpm31.LocalJbpmConfigurationFactoryBean] from ClassLoader [ParallelWebappClassLoader
context: xxxxx
delegate: false
----------> Parent Classloader:
java.net.URLClassLoader@123456789a
----------> Class file transformers:
org.springframework.context.weaving.AspectJWeavingEnabler$AspectJClassBypassingClassFileTransformer@48fc217b
]
at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:680) ~[spring-core-5.1.0.RELEASE.jar:5.1.0.RELEASE]
at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:577) ~[spring-core-5.1.0.RELEASE.jar:5.1.0.RELEASE]
at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:562) ~[spring-core-5.1.0.RELEASE.jar:5.1.0.RELEASE]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:250) ~[spring-beans-5.1.0.RELEASE.jar:5.1.0.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineConstructorsFromBeanPostProcessors(AbstractAutowireCapableBeanFactory.java:1235) ~[spring-beans-5.1.0.RELEASE.jar:5.1.0.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1150) ~[spring-beans-5.1.0.RELEASE.jar:5.1.0.RELEASE]
Caused by: java.lang.NoClassDefFoundError: org/springframework/beans/factory/access/BeanFactoryLocator
at java.lang.ClassLoader.defineClass1(Native Method) ~[?:1.8.0_65]
at java.lang.ClassLoader.defineClass(ClassLoader.java:760) ~[?:1.8.0_65]
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) ~[?:1.8.0_65]
at org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:2268) ~[catalina.jar:?]
at org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:811) ~[catalina.jar:?]
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1254) ~[catalina.jar:?]
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1119) ~[catalina.jar:?]
at java.lang.Class.getDeclaredMethods0(Native Method) ~[?:1.8.0_65]
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) ~[?:1.8.0_65]
at java.lang.Class.getDeclaredMethods(Class.java:1975) ~[?:1.8.0_65]
at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:662) ~[spring-core-5.1.0.RELEASE.jar:5.1.0.RELEASE]