340 Star 10.2K Fork 833

赤龙ERP / 赤龙ERP

 / 详情

tomcat启动项目报错

待办的
创建于  
2021-05-27 17:05

2021-05-27 15:15:20.611 |-INFO [RMI TCP Connection(2)-127.0.0.1] com.springboot.main.SpringBootMain [55] -| Starting SpringBootMain on biwentaodeMacBook-Pro.local with PID 17775 (/Users/biwentao/Downloads/redragon-erp/erp-parent/erp-webapp/target/erp/WEB-INF/lib/erp-springboot-0.9.jar started by biwentao in /Users/biwentao/fileZip/tomcat/apache-tomcat-8.5.43/bin)
2021-05-27 15:15:20.620 |-INFO [RMI TCP Connection(2)-127.0.0.1] com.springboot.main.SpringBootMain [655] -| The following profiles are active: dev,dev-dataBase
2021-05-27 15:15:22.401 |-WARN [RMI TCP Connection(2)-127.0.0.1] org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext [558] -| Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [com.springboot.main.SpringBootMain]; nested exception is java.io.FileNotFoundException: class path resource [com/framework/api/DaoCRUDIF.class] cannot be opened because it does not exist
2021-05-27 15:15:22.414 |-ERROR [RMI TCP Connection(2)-127.0.0.1] org.springframework.boot.SpringApplication [837] -| Application run failed
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [com.springboot.main.SpringBootMain]; nested exception is java.io.FileNotFoundException: class path resource [com/framework/api/DaoCRUDIF.class] cannot be opened because it does not exist
at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:188)
at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:319)
at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:236)
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:280)
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:96)
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:706)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:532)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:143)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:758)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:750)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:315)
at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:191)
at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:171)
at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:95)
at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:172)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5154)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:743)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:719)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:714)

评论 (1)

毕文涛 创建了任务
毕文涛 关联仓库设置为赤龙ERP/赤龙ERP
展开全部操作日志

报错是因为你打包编译时有问题。用release版本的war看是否有问题。如果没有问题,对比你本地的应用

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(2)
407485 redragon 1598602643
Java
1
https://gitee.com/redragon/redragon-erp.git
git@gitee.com:redragon/redragon-erp.git
redragon
redragon-erp
赤龙ERP

搜索帮助