eclipse中部署maven管理的web项目,tomcat打开其他web项目的jsp没问题,但是打不开这个项目中的jsp 求解 在线等

时间:2020-12-13 20:05:12
eclipse中部署maven管理的web项目,tomcat打开其他web项目的jsp没问题,但是打不开这个项目中的jsp 求解 在线等
如图,第一个项目即为问题项目,
console报错如下(截取部分)
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.dnake.cloudparking.timetask.SyncBookServiceOrderTask] for bean with name 'syncBookServiceOrderJob' defined in file [D:\apache-tomcat-7.0.53\webapps\cloudparking\WEB-INF\classes\applicationContext-quartz.xml]; nested exception is java.lang.ClassNotFoundException: com.dnake.cloudparking.timetask.SyncBookServiceOrderTask
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.dnake.cloudparking.timetask.SyncParkingRecordTask] for bean with name 'syncParkingRecordJob' defined in file [D:\apache-tomcat-7.0.53\webapps\cloudparking\WEB-INF\classes\applicationContext-quartz.xml]; nested exception is java.lang.ClassNotFoundException: com.dnake.cloudparking.timetask.SyncParkingRecordTask
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
严重: Error listenerStart
严重: Context [/cloudparking] startup failed due to previous errors
严重: The web application [/cloudparking] appears to have started a thread named [FileWatchdog] but has failed to stop it. This is very likely to create a memory leak.
目录结构如下
eclipse中部署maven管理的web项目,tomcat打开其他web项目的jsp没问题,但是打不开这个项目中的jsp 求解 在线等

9 个解决方案

#1


你看看
com.dnake.cloudparking.timetask.SyncBookServiceOrderTask
这个类是否已经在你编译好的 classpath 下面了

#2


引用 1 楼 defonds 的回复:
你看看
com.dnake.cloudparking.timetask.SyncBookServiceOrderTask
这个类是否已经在你编译好的 classpath 下面了


怎么看啊。。 eclipse中部署maven管理的web项目,tomcat打开其他web项目的jsp没问题,但是打不开这个项目中的jsp 求解 在线等

#3


引用 1 楼 defonds 的回复:
你看看
com.dnake.cloudparking.timetask.SyncBookServiceOrderTask
这个类是否已经在你编译好的 classpath 下面了


编译文件是在D:\apache-tomcat-7.0.53\webapps\cloudparking\WEB-INF\classes\com\dnake\cloudparking\timetask下吗,没有文件,别的同级的文件夹里也没有
eclipse中部署maven管理的web项目,tomcat打开其他web项目的jsp没问题,但是打不开这个项目中的jsp 求解 在线等

#4


javaresource 上报着红感叹号呢,去build path里看看具体的内容

#5


少jar包~~~~

#6


引用 5 楼 u010890358 的回复:
少jar包~~~~


能看出来少什么jar包吗。web-inf下的lib里应该是包含了工程所需的所有jar包了。

#7


引用 4 楼 qnmdcsdn 的回复:
javaresource 上报着红感叹号呢,去build path里看看具体的内容


eclipse中部署maven管理的web项目,tomcat打开其他web项目的jsp没问题,但是打不开这个项目中的jsp 求解 在线等
build path在哪看 需要看什么 能详细说一下吗 eclipse中部署maven管理的web项目,tomcat打开其他web项目的jsp没问题,但是打不开这个项目中的jsp 求解 在线等

#8


Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.dnake.cloudparking.timetask.ChinapayBatchTask] for bean with name 'chinapayBatchJob' defined in file [D:\EclipseEEWorkSpace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\cloudparking\WEB-INF\classes\applicationContext-quartz.xml]; nested exception is java.lang.ClassNotFoundException: com.dnake.cloudparking.timetask.ChinapayBatchTask
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.dnake.cloudparking.timetask.ChinapayDownloadTask] for bean with name 'chinapayDownloadJob' defined in file [D:\EclipseEEWorkSpace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\cloudparking\WEB-INF\classes\applicationContext-quartz.xml]; nested exception is java.lang.ClassNotFoundException: com.dnake.cloudparking.timetask.ChinapayDownloadTask
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.dnake.cloudparking.timetask.DTUTask] for bean with name 'DTUJob' defined in file [D:\EclipseEEWorkSpace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\cloudparking\WEB-INF\classes\applicationContext-quartz.xml]; nested exception is java.lang.ClassNotFoundException: com.dnake.cloudparking.timetask.DTUTask
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.dnake.cloudparking.timetask.ParkingEndUseRemindTask] for bean with name 'parkingEndUseRemindJob' defined in file [D:\EclipseEEWorkSpace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\cloudparking\WEB-INF\classes\applicationContext-quartz.xml]; nested exception is java.lang.ClassNotFoundException: com.dnake.cloudparking.timetask.ParkingEndUseRemindTask
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.dnake.cloudparking.timetask.SyncBookServiceOrderTask] for bean with name 'syncBookServiceOrderJob' defined in file [D:\EclipseEEWorkSpace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\cloudparking\WEB-INF\classes\applicationContext-quartz.xml]; nested exception is java.lang.ClassNotFoundException: com.dnake.cloudparking.timetask.SyncBookServiceOrderTask
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.dnake.cloudparking.timetask.SyncParkingRecordTask] for bean with name 'syncParkingRecordJob' defined in file [D:\EclipseEEWorkSpace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\cloudparking\WEB-INF\classes\applicationContext-quartz.xml]; nested exception is java.lang.ClassNotFoundException: com.dnake.cloudparking.timetask.SyncParkingRecordTask
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.dnake.cloudparking.auth.AuthRealm] for bean with name 'shiroDbRealm' defined in file [D:\EclipseEEWorkSpace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\cloudparking\WEB-INF\classes\applicationContext-shiro.xml]; nested exception is java.lang.ClassNotFoundException: com.dnake.cloudparking.auth.AuthRealm
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.dnake.cloudparking.dao.JdbcQueryDao] for bean with name 'jdbcQueryDao' defined in file [D:\EclipseEEWorkSpace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\cloudparking\WEB-INF\classes\applicationContext.xml]; nested exception is java.lang.ClassNotFoundException: com.dnake.cloudparking.dao.JdbcQueryDao
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.dnake.cloudparking.service.ParkingQuartzService] for bean with name 'parkingQuartzService' defined in file [D:\EclipseEEWorkSpace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\cloudparking\WEB-INF\classes\applicationContext.xml]; nested exception is java.lang.ClassNotFoundException: com.dnake.cloudparking.service.ParkingQuartzService
详细报错信息如上所示

#9


引用 6楼我是你的主体 的回复:
Quote: 引用 5 楼 u010890358 的回复:

少jar包~~~~


能看出来少什么jar包吗。web-inf下的lib里应该是包含了工程所需的所有jar包了。
红色地方右键构建路径或者build path

#1


你看看
com.dnake.cloudparking.timetask.SyncBookServiceOrderTask
这个类是否已经在你编译好的 classpath 下面了

#2


引用 1 楼 defonds 的回复:
你看看
com.dnake.cloudparking.timetask.SyncBookServiceOrderTask
这个类是否已经在你编译好的 classpath 下面了


怎么看啊。。 eclipse中部署maven管理的web项目,tomcat打开其他web项目的jsp没问题,但是打不开这个项目中的jsp 求解 在线等

#3


引用 1 楼 defonds 的回复:
你看看
com.dnake.cloudparking.timetask.SyncBookServiceOrderTask
这个类是否已经在你编译好的 classpath 下面了


编译文件是在D:\apache-tomcat-7.0.53\webapps\cloudparking\WEB-INF\classes\com\dnake\cloudparking\timetask下吗,没有文件,别的同级的文件夹里也没有
eclipse中部署maven管理的web项目,tomcat打开其他web项目的jsp没问题,但是打不开这个项目中的jsp 求解 在线等

#4


javaresource 上报着红感叹号呢,去build path里看看具体的内容

#5


少jar包~~~~

#6


引用 5 楼 u010890358 的回复:
少jar包~~~~


能看出来少什么jar包吗。web-inf下的lib里应该是包含了工程所需的所有jar包了。

#7


引用 4 楼 qnmdcsdn 的回复:
javaresource 上报着红感叹号呢,去build path里看看具体的内容


eclipse中部署maven管理的web项目,tomcat打开其他web项目的jsp没问题,但是打不开这个项目中的jsp 求解 在线等
build path在哪看 需要看什么 能详细说一下吗 eclipse中部署maven管理的web项目,tomcat打开其他web项目的jsp没问题,但是打不开这个项目中的jsp 求解 在线等

#8


Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.dnake.cloudparking.timetask.ChinapayBatchTask] for bean with name 'chinapayBatchJob' defined in file [D:\EclipseEEWorkSpace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\cloudparking\WEB-INF\classes\applicationContext-quartz.xml]; nested exception is java.lang.ClassNotFoundException: com.dnake.cloudparking.timetask.ChinapayBatchTask
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.dnake.cloudparking.timetask.ChinapayDownloadTask] for bean with name 'chinapayDownloadJob' defined in file [D:\EclipseEEWorkSpace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\cloudparking\WEB-INF\classes\applicationContext-quartz.xml]; nested exception is java.lang.ClassNotFoundException: com.dnake.cloudparking.timetask.ChinapayDownloadTask
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.dnake.cloudparking.timetask.DTUTask] for bean with name 'DTUJob' defined in file [D:\EclipseEEWorkSpace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\cloudparking\WEB-INF\classes\applicationContext-quartz.xml]; nested exception is java.lang.ClassNotFoundException: com.dnake.cloudparking.timetask.DTUTask
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.dnake.cloudparking.timetask.ParkingEndUseRemindTask] for bean with name 'parkingEndUseRemindJob' defined in file [D:\EclipseEEWorkSpace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\cloudparking\WEB-INF\classes\applicationContext-quartz.xml]; nested exception is java.lang.ClassNotFoundException: com.dnake.cloudparking.timetask.ParkingEndUseRemindTask
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.dnake.cloudparking.timetask.SyncBookServiceOrderTask] for bean with name 'syncBookServiceOrderJob' defined in file [D:\EclipseEEWorkSpace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\cloudparking\WEB-INF\classes\applicationContext-quartz.xml]; nested exception is java.lang.ClassNotFoundException: com.dnake.cloudparking.timetask.SyncBookServiceOrderTask
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.dnake.cloudparking.timetask.SyncParkingRecordTask] for bean with name 'syncParkingRecordJob' defined in file [D:\EclipseEEWorkSpace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\cloudparking\WEB-INF\classes\applicationContext-quartz.xml]; nested exception is java.lang.ClassNotFoundException: com.dnake.cloudparking.timetask.SyncParkingRecordTask
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.dnake.cloudparking.auth.AuthRealm] for bean with name 'shiroDbRealm' defined in file [D:\EclipseEEWorkSpace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\cloudparking\WEB-INF\classes\applicationContext-shiro.xml]; nested exception is java.lang.ClassNotFoundException: com.dnake.cloudparking.auth.AuthRealm
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.dnake.cloudparking.dao.JdbcQueryDao] for bean with name 'jdbcQueryDao' defined in file [D:\EclipseEEWorkSpace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\cloudparking\WEB-INF\classes\applicationContext.xml]; nested exception is java.lang.ClassNotFoundException: com.dnake.cloudparking.dao.JdbcQueryDao
Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.dnake.cloudparking.service.ParkingQuartzService] for bean with name 'parkingQuartzService' defined in file [D:\EclipseEEWorkSpace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\cloudparking\WEB-INF\classes\applicationContext.xml]; nested exception is java.lang.ClassNotFoundException: com.dnake.cloudparking.service.ParkingQuartzService
详细报错信息如上所示

#9


引用 6楼我是你的主体 的回复:
Quote: 引用 5 楼 u010890358 的回复:

少jar包~~~~


能看出来少什么jar包吗。web-inf下的lib里应该是包含了工程所需的所有jar包了。
红色地方右键构建路径或者build path