使用外置tomcat启动项目代码生成器部分报错

Blade 未结 1 228
845028863
845028863 剑童 2024-06-07 10:21

 Error creating bean with name 'modelController': Lookup method resolution failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class [org.springblade.modules.develop.controller.ModelController] from ClassLoader [ParallelWebappClassLoader

  context: pallet

  delegate: false

----------> Parent Classloader:

java.net.URLClassLoader@6433a2

]

2024-06-07 10:23:48.652  INFO 728 --- [           main] o.d.x.f.storage.core.FileStorageService  : 閿€姣佸瓨鍌ㄥ钩鍙?minio-1 鎴愬姛


2024-06-07 10:23:48.665  INFO 728 --- [           main] com.alibaba.druid.pool.DruidDataSource   : {dataSource-1} closing ...

2024-06-07 10:23:48.670  INFO 728 --- [           main] com.alibaba.druid.pool.DruidDataSource   : {dataSource-1} closed

2024-06-07 10:23:48.700  INFO 728 --- [           main] ConditionEvaluationReportLoggingListener :


Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.

2024-06-07 10:23:48.741 ERROR 728 --- [           main] o.s.boot.SpringApplication               : Application run failed


org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'modelController': Lookup method resolution failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class [org.springblade.modules.develop.controller.ModelController] from ClassLoader [ParallelWebappClassLoader

  context: pallet

  delegate: false

----------> Parent Classloader:

java.net.URLClassLoader@6433a2

]

        at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:289)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineConstructorsFromBeanPostProcessors(AbstractAutowireCapableBeanFactory.java:1302)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1219)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)

        at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)

        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)

        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)

        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)

        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:955)

        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:921)

        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)

        at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:147)

        at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:731)

        at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:408)

        at org.springframework.boot.SpringApplication.run(SpringApplication.java:307)

        at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:175)

        at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:155)

        at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:97)

        at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:174)

        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4438)

        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)

        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:599)

        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:571)

        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:603)

        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1014)

        at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1866)

        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

        at java.util.concurrent.FutureTask.run(FutureTask.java:266)

        at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)

        at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112)

        at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:816)

        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:468)

        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1584)

        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:312)

        at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:114)

        at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)

        at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:345)

        at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:776)

        at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:721)

        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)

        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1203)

        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1193)

        at java.util.concurrent.FutureTask.run(FutureTask.java:266)

        at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)

        at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)

        at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:749)

        at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:211)

        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)

        at org.apache.catalina.core.StandardService.startInternal(StandardService.java:415)

        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)

        at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:878)

        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)

        at org.apache.catalina.startup.Catalina.start(Catalina.java:735)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.lang.reflect.Method.invoke(Method.java:498)

        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:345)

        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:473)

Caused by: java.lang.IllegalStateException: Failed to introspect Class [org.springblade.modules.develop.controller.ModelController] from ClassLoader [ParallelWebappClassLoader

  context: pallet

  delegate: false

----------> Parent Classloader:

java.net.URLClassLoader@6433a2

]

        at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:485)

        at org.springframework.util.ReflectionUtils.doWithLocalMethods(ReflectionUtils.java:321)

        at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:267)

        ... 59 common frames omitted

Caused by: java.lang.NoClassDefFoundError: com/baomidou/mybatisplus/generator/config/po/TableInfo

        at java.lang.Class.getDeclaredMethods0(Native Method)

        at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)

        at java.lang.Class.getDeclaredMethods(Class.java:1975)

        at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:467)

        ... 61 common frames omitted

Caused by: java.lang.ClassNotFoundException: com.baomidou.mybatisplus.generator.config.po.TableInfo

        at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1308)

        at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1120)

        ... 65 common frames omitted


07-Jun-2024 10:23:48.743 严重 [main] org.apache.catalina.startup.HostConfig.deployWAR 部署 Web 应用程序 archive [D:\installApp\tomcat\apache-tomcat-9.0.89-windows-x64\apache-tomcat-9.0.89\webapps\pallet.war] 时出错

        java.lang.IllegalStateException: 启动子级时出错

                at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:602)

                at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:571)

                at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:603)

                at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1014)

                at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1866)

                at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

                at java.util.concurrent.FutureTask.run(FutureTask.java:266)

                at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)

                at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112)

                at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:816)

                at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:468)

                at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1584)

                at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:312)

                at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:114)

                at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)

                at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:345)

                at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:776)

                at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:721)

                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)

                at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1203)

                at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1193)

                at java.util.concurrent.FutureTask.run(FutureTask.java:266)

                at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)

                at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)

                at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:749)

                at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:211)

                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)

                at org.apache.catalina.core.StandardService.startInternal(StandardService.java:415)

                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)

                at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:878)

                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)

                at org.apache.catalina.startup.Catalina.start(Catalina.java:735)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                at java.lang.reflect.Method.invoke(Method.java:498)

                at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:345)

                at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:473)

        Caused by: org.apache.catalina.LifecycleException: 无法启动组件[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/pallet]]

                at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:419)

                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:186)

                at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:599)

                ... 37 more

        Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'modelController': Lookup method resolution failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class [org.springblade.modules.develop.controller.ModelController] from ClassLoader [ParallelWebappClassLoader

  context: pallet

  delegate: false

----------> Parent Classloader:

java.net.URLClassLoader@6433a2

]

                at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:289)

                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineConstructorsFromBeanPostProcessors(AbstractAutowireCapableBeanFactory.java:1302)

                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1219)

                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)

                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)

                at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)

                at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)

                at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)

                at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)

                at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:955)

                at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:921)

                at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)

                at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:147)

                at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:731)

                at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:408)

                at org.springframework.boot.SpringApplication.run(SpringApplication.java:307)

                at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:175)

                at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:155)

                at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:97)

                at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:174)

                at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4438)

                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)

                ... 38 more

        Caused by: java.lang.IllegalStateException: Failed to introspect Class [org.springblade.modules.develop.controller.ModelController] from ClassLoader [ParallelWebappClassLoader

  context: pallet

  delegate: false

----------> Parent Classloader:

java.net.URLClassLoader@6433a2

]

                at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:485)

                at org.springframework.util.ReflectionUtils.doWithLocalMethods(ReflectionUtils.java:321)

                at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:267)

                ... 59 more

        Caused by: java.lang.NoClassDefFoundError: com/baomidou/mybatisplus/generator/config/po/TableInfo

                at java.lang.Class.getDeclaredMethods0(Native Method)

                at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)

                at java.lang.Class.getDeclaredMethods(Class.java:1975)

                at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:467)

                ... 61 more

        Caused by: java.lang.ClassNotFoundException: com.baomidou.mybatisplus.generator.config.po.TableInfo

                at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1308)

                at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1120)

                ... 65 more


1条回答
  • 2024-06-07 10:45

    已解决:

       <!-- Mybatis-Plus -->

            <dependency>

                <groupId>com.baomidou</groupId>

                <artifactId>mybatis-plus-generator</artifactId>

    <!--            <scope>provided</scope>-->

            </dependency>


    0 讨论(0)
提交回复