Как устранить эту ошибку Servlet.init () для сервлета [dispatcher] сгенерировал исключение - PullRequest
0 голосов
/ 19 октября 2019

avax.servlet.ServletException: Servlet.init () для сервлета [диспетчер] вызвал исключение org.apache.catalina.authenticator.AuthenticatorBase.invoke (AuthenticatorBase.java:528) org.apache.catalina.valves.ErrorRevoValveve(ErrorReportValve.java:81) org.apache.catalina.valves.AbstractAccessLogValve.invoke (AbstractAccessLogValve.java:678) org.apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter.java:343coy.hap.ache.h.hap. .Http11Processor.service (Http11Processor.java:798) org.apache.coyote.AbstractProcessorLight.process (AbstractProcessorLight.java:66) org.apache.coyote.AbstractProtocol $ ConnectionHandler.process (AbstractProtocol.java:810tg.at.util.net.NioEndpoint $ SocketProcessor.doRun (NioEndpoint.java:1498) org.apache.tomcat.util.net.SocketProcessorBase.run (SocketProcessorBase.java:49) java.util.concurrent.ThreadPoolExecutor.runorker: 1149) java.util.concurrent.ThreadPoolExecutor $ Worker.run (ThreadPoolExecutor.java:624) org.apache.tomcat.util.threads.TaskThread $ WrappingRunnable.run (TaskThread.java:61) java.lang.Thread.run (Thread.java:748) Основная причина

org.springframework.beans.factory. BeanCreationException: Ошибка создания бина с именем 'requestMappingHandlerAdapter', определенного в org.springframework.web.servlet.config.annotation.DelegatingWebMvcConfiguration: сбой создания экземпляра бина с помощью метода фабрики;вложенным исключением является org.springframework.beans.BeanInstantiationException: не удалось создать экземпляр [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter]: метод фабрики 'requestMappingHandlerAdapter' вызвал исключение;Вложенное исключение - java.lang.NoClassDefFoundError: com / fastxml / jackson / databind / exc / InvalidDefinitionException org.springframework.beans.factory.support.ConstructorResolver.instantiate (ConstructorResolver.java:6ingpp.work..forme.workfe.workfe..s. ConstructorResolver.instantiateUsingFactoryMethod (ConstructorResolver.java:456) org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod (AbstractAutowireCapableBeanFactory.java:1321) org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance (AbstractAutowireCapableBeanFactory.java:1160)org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:555) org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:515) org.springframework.beans.factory.support. AbstractBeanFactory.lambda $ doGetBean $ 0 (AbstractBeanFactory.java:320) org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton (DefaultSingletonBeanRegistry.java:222) org.springframework.beans.factory.support. beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:199) org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons (по умолчаниюJava: 877) org.springframework.context.support.AbstractApplicationContext.refresh (AbstractApplicationContext.java:549) org.springframework.web.servlet. initWebApplicationContext (FrameworkServlet.java:577) org.springframework.web.servlet.FrameworkServlet.initServletBean (FrameworkServlet.java:529) org.springframework.web.servlet.HttpServletBean.init (HttpServletBean.java:169) javax.servlet.GenericServlet.init (GenericServlet.java:158)org.apache.catalina.authenticator.AuthenticatorBase.invoke (AuthenticatorBase.java:528) org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:81) org.apache.catalina.valves.VogccessAvalL.LogJava: 678) org.apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter.java:343) org.apache.coyote.http11.Http11Processor.service (Http11Processor.java:798) org.apache.coyote.LproProProAbstractProcessorLight.java:66) org.apache.coyote.AbstractProtocol $ ConnectionHandler.process (AbstractProtocol.java:810) org.apache.tomcat.util.net.NioEndpoint $ SocketProcessor.doRun (NioEndpoint.java:1498) org.apache. tomcat.util.net.SocketProcessorBase.run (SocketProcessorBase.java:49) java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1149) java.util.concurrent.ThreadPoolExecutor:r) .jpgorg.apache.tomcat.util.threads.TaskThread $ WrappingRunnable.run (TaskThread.java:61) java.lang.Thread.run (Thread.java:748) Корневая причина

org.springframework.beans.BeanInstantiationException: Не удалось создать экземпляр [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter]: запрос метода фабрики и методаHandlerMapбросил исключение;Вложенное исключение - java.lang.NoClassDefFoundError: com / fastxml / jackson / databind / exc / InvalidDefinitionException org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate (SimpleInstantiationStrategy.jory.spr.18.pr.pr. 18)ConstructorResolver.instantiate (ConstructorResolver.java:622) org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod (ConstructorResolver.java:456) org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod (AbstractAutowireCapableBeanFactory.java:1321)org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance (AbstractAutowireCapableBeanFactory.java:1160) org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:555) org.springframework.beans.factory.support. AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:515) org.springframework.beans.factory.support.AbstractBeanFactory.lambda $ doGetBean $ 0 (AbstractBeanFactory.java:320) org.springframework.beans.factory.support.getang.springframework.beans.factory.support. .preInstantiateSingletons (DefaultListableBeanFactory.java:845) org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization (AbstractApplicationContext.java:877) org.springframework.pp. .servlet.FrameworkServlet.configureAndRefreshWebApplicationContext (FrameworkServlet.java:701) org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext (FrameworkServlet.java:577) org.springframework.web.servlet.FrameworkServlet.initServletBean (FrameworkServlet.java:529) org.springframework.web.servlet.Httt.ServletBean.ervlet.jetinit (GenericServlet.java:158) org.apache.catalina.authenticator.AuthenticatorBase.invoke (AuthenticatorBase.java:528) org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.jap:cat.cat.cat. org. org. valves.AbstractAccessLogValve.invoke (AbstractAccessLogValve.java:678)org.apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter.java:343) org.apache.coyote.http11.Http11Processor.service (Http11Processor.java:798) org.apache.coyote.AbstractProcessorProcessLight66) org.apache.coyote.AbstractProtocol $ ConnectionHandler.process (AbstractProtocol.java:810) org.apache.tomcat.util.net.NioEndpoint $ SocketProcessor.doRun (NioEndpoint.java:1498) org.apache.tomcat.util. net.SocketProcessorBase.run (SocketProcessorBase.java:49) java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1149) java.util.concurrent.ThreadPoolExecutor $ Worker.run24. tomcat.util.threads.TaskThread $ WrappingRunnable.run (TaskThread.java:61) java.lang.Thread.run (Thread.java:748) Основная причина

java.lang.NoClassDefFoundError: com / rapidxml /jackson / databind / exc / InvalidDefinitionException org.springframework.http.converter.support.AllEncompassingFormHttpMessageConverter. (AllEncompassingFormHttpMessageConverter.java:76) org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter. (RequestMappingHandlerAdapter.java:208) org.springframework.web.servlet.config.annotation.WebMupport) org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport.requestMappingHandlerAdapter (WebMvcConfigurationSupport.java:561) org.springframework.wef.servlet.config $ $.springframework.web.servlet.config.annotation. context.annotation.ConfigurationClassEnhancer $ BeanMethodInterceptor.intercept (ConfigurationClassEnhancer.java:363) org.springframework.web.servlet.config.annotation.DelegatingWebMvcConfiguration $$ EnhancerBySpringCGLIB $$ 4a921ec9.requestMappingHandlerAdapter () sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method. Instantiate (ConstructorResolver.java:622) org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod (ConstructorResolver.java:456) org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod (AbstractAutowireCapableBeanFactory.java:1321) орг. springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance (AbstractAutowireCapableBeanFactory.jAVA: 1160) org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:555) org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:515) org.springframework.beans. factory.support. (AbstractBeanFactory.java:318) org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:199) org.springframework.beans.factory.support.DefstanLacttableBeanFactorg.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization (AbstractApplicationContext.java:877) org.springframework.context.support.AbstractApplicationContext.refresh (AbstractApplicationContext.java:549) org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext (FrameworkServlet. Java: 701) org.springframework.web.servlet. init (HttpServletBean.java:169) javax.servlet.GenericServlet.init (GenericServlet.java:158) org.apache.catalina.authenticator.AuthenticatorBase.invoke (AuthenticatorBase.java:528.al.Real. invoke (ErrorReportValve.java:81) org.apache.catalina.valves.AbstractAccessLogValve.invoke (AbstractAccessLogValve.java:678) org.apache.catalina.connector.CoyoteAdapter.service (койотeAdapter.java:343) org.apache.coyote.http11.Http11Processor.service (Http11Processor.java:798) org.apache.coyote.AbstractProcessorLight.process (AbstractProcessorLight.java:66) org.apache.coyote $. процесс (AbstractProtocol.java:810) org.apache.tomcat.util.net.NioEndpoint $ SocketProcessor.doRun (NioEndpoint.java:1498) org.apache.tomcat.util.net.SocketProcessorBase.run (SocketProcessorBase.java:49)java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1149) java.util.concurrent.ThreadPoolExecutor $ Worker.run (ThreadPoolExecutor.java:624) org.apache.tomcat.utilrunreadTaskThread.java:61) java.lang.Thread.run (Thread.java:748) Основная причина

java.lang.ClassNotFoundException: com.fasterxml.jackson.databind.exc.InvalidDefinitionException org.apache.catalina.loader.WebappClassLoaderBase.loadClass (WebappClassLoaderBase.java:1360) org.apache.catalina.loader.WebappClassLoaderBase.loadClass (WebappClassLoaderBase. Java: 1182) org.springframework.http.converter.support.AllEncompassingFormHttpMessageConverter. (AllEncompassingFormHttpMessageConverter.java:76) org.springframework.web.servest.mvc.metReandAPweb.servlet.config.annotation.WebMvcConfigurationSupport.createRequestMappingHandlerAdapter (WebMvcConfigurationSupport.java:593) org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport.requestMappingHandlerAdapter (WebMvcConfigurationSupport.java:561) org.springframework.web.servlet.config. annotation.DelegatingWebMvcConfiguration $$ EnhancerBySpringCGLIB $$ 4a921ec9.CGLIB $ requestMappingHandlerAdapter $ 34 () org.springframework.web.servlet.config.annotation.DelegatingWebMvcConfiguration $$ EnhancerBySpringCGLIB $$ 4a921ec9 $$ FastClassBySpringCGLIB $$ 2f824eb8.invoke () org.springframework.cglib.proxy.MethodProxy.invokeSuper (MethodProxy.java:244) org.springframework.context.annotation.ConfigurationClassEnhancer $ BeanMethodInterceptor.intercept (ConfigurationClassEnhancer.java:363) org.springframework.web.servlet.config.annotation.DelegatingWebMvcConfiguration $$ EnhancerBySpringCGLIB $$ методNativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.java. SimpleInstantiationStrategy.instantiate (SimpleInstantiationStrategy.java:154) org.springframework.beans.factory.support.ConstructorResolver.instantiate (ConstructorResolver.java:622) org.springframework.bees. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod (AbstractAutowireCapableBeanFactory.java:1321) org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance (AbstractAutowireCapableBeanFactory.java:1160) org.springframework.beans.factory.support. AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:555) org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:515) org.springframework.beans.factory.support.AbstractBeanFactory.lambda $ doGetBean $ 0 (AbstractBeanFactory.java: 320) org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton (DefaultSingletonBeanRegistry.java:222) org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean. .support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:199) org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons (DefaultListableBeanFactory.java:845) org.springframework.context.support.AbstractApplicationContext. AbstractApplicationContext.java:549) org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext (FrameworkServlet.java:701) org.springframework.web.servlet. FrameworkServlet.initServletBean (FrameworkServlet.java:529) org.springframework.web.servlet.HttpServletBean.init (HttpServletBean.java:169) javax.servlet.GenericServlet.inap.h. AuthenticatorBase.invoke (AuthenticatorBase.java:528) org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:81) org.apache.catalina.valves.AbstractAccessLogValve.invoke (AbstractAccessLogValve.java:678) org.apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter.java:343) org.apache.coyote.http11.Http11Processor.service: 98org.apache.coyote.AbstractProcessorLight.process (AbstractProcessorLight.java:66) org.apache.coyote.AbstractProtocol $ ConnectionHandler.process (AbstractProtocol.java:810) org.apache.tomcat.util.net.NioEndpoint $ SocketProcessor.RunNioEndpoint.java:1498) org.apache.tomcat.util.net.SocketProcessorBase.run (SocketProcessorBase.java:49) java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1149) javao.Ex. Worker.run (ThreadPoolExecutor.java:624) org.apache.tomcat.util.threads.TaskThread $ WrappingRunnable.run (TaskThread.java:61) java.lang.Thread.run (Thread.java:748)

1 Ответ

0 голосов
/ 19 октября 2019

кажется, что где-то у вас есть классы, созданные в jaxb, и они не найдены в classpath во время инициализации. проверьте типы данных ввода / вывода и импорт для этого компонента.

...