JAVA maven项目,通过maven打包放在tomcat运行,没有任何问题。在eclipse当中用tomcat运行报错
org.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwithname'shi...
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shiroFilter' defined in class path resource [spring/permission/spring-shiro.xml]: Cannot resolve reference to bean 'securityManager' while setting bean property 'securityManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'securityManager' defined in class path resource [spring/permission/spring-shiro.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: Lcom/ebidding/crm/permission/service/PmsOperatorRoleService;
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'securityManager' defined in class path resource [spring/permission/spring-shiro.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: Lcom/ebidding/crm/permission/service/PmsOperatorRoleService;
Caused by: java.lang.NoClassDefFoundError: Lcom/ebidding/crm/permission/service/PmsOperatorRoleService;
Caused by: java.lang.ClassNotFoundException: com.ebidding.crm.permission.service.PmsOperatorRoleService
两边jar都一模一样,没有缺少jar的问题 展开
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'securityManager' defined in class path resource [spring/permission/spring-shiro.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: Lcom/ebidding/crm/permission/service/PmsOperatorRoleService;
Caused by: java.lang.NoClassDefFoundError: Lcom/ebidding/crm/permission/service/PmsOperatorRoleService;
Caused by: java.lang.ClassNotFoundException: com.ebidding.crm.permission.service.PmsOperatorRoleService
两边jar都一模一样,没有缺少jar的问题 展开
2个回答
展开全部
在Eclipse里把项目从tomcat里删除了,然后清理一下tomcat,再清理一下工程,把项目重新添加到tomcat里试试,有时候tomcat就是会报莫名其妙的错误,重新试一下吧。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
浙江启扬智能科技有限公司
2023-08-23 广告
2023-08-23 广告
作为浙江启扬智能科技有限公司的工作人员,回答如下:ARM开发板通常使用Linux系统,这是因为Linux在嵌入式系统开发中有着广泛的应用和丰富的资源。在Linux环境下开发可以更好地支持ARM架构,并且Linux具有强大的工具链和开源的软件...
点击进入详情页
本回答由浙江启扬智能科技有限公司提供
2017-02-28
展开全部
报错上显示是NoClassDefFoundError,我隐隐觉得还是某些包没有编译到。你先清理一下你的项目重新编译一下,统一编译和发布的环境JDK。再试一下。
追问
没有用,都试过了
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询