org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [cn.edu.hzu.cas.web.DepartmentAction] for bean with name 'departmentAction' defined in file [D:\Tool\tomcat\tomcat-6.0.29\webapps\cas\WEB-INF\classes\applicationContext-service.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: com/opensymphony/xwork2/ActionSupport

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

This means you're missing a class that Java needs for this program. Check if you're not missing the jsr305-1.3.7.jar from your classpath, it's the jar that contains the class javax.annotation.Nullable.

,

If JVM throws ClassNotFoundException the class is not found in classpath. It means that something is not configured correctly. So check the relevant class is in the classpath. If the class is packaged into a jar, the jar should also in the classpath.

Solutions on the web

via csdn.net by Unknown author, 11 months ago
Error loading class [cn.edu.hzu.cas.web.DepartmentAction] for bean with name 'departmentAction' defined in file [D:\Tool\tomcat\tomcat-6.0.29\webapps\cas\WEB-INF\classes\applicationContext-service.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: com/opensymphony/xwork2/ActionSupport
via Coderanch by R. Grimes, 11 months ago
Error loading class [com.soc.ds.dao.CardTypeDaoImpl] for bean with name 'cardTypeDao' defined in class path resource [applicationContext.xml]: problem with class file or dependent class; nested exception is java.lang.ClassFormatError: Truncated class file
via Stack Overflow by user2827318
, 2 years ago
Cannot find class [af.backend.service.InitService2] for bean with name 'initService' defined in class path resource [spring-configuration.xml]; nested exception is java.lang.ClassNotFoundException: af.backend.service.InitService2
via Stack Overflow by gnomosblack
, 1 year ago
Cannot find class [org.springframework.jdbc.datasource.DriverManagerDataSource] for bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/applicationContext.xml]; nested exception is java.lang.ClassNotFoundException: org.springframework.jdbc.datasource.DriverManagerDataSource
via Stack Overflow by Chris
, 2 years ago
Cannot find class [example.jersey.spring.dao] for bean with name 'testDAO' defined in class path resource [ApplicationContext.xml]; nested exception is java.lang.ClassNotFoundException: example.jersey.spring.dao
via dluat.com by Unknown author, 2 years ago
Cannot find class [com.gesfor.portlet.controller.ViewController] for bean with name 'viewController' defined in ServletContext resource [/WEB-INF/context/applicationContext.xml]; nested exception is java.lang.ClassNotFoundException: com.gesfor.portlet.controller.ViewController
java.lang.ClassNotFoundException: com.opensymphony.xwork2.ActionSupport
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1645)

Users with the same issue

Once, 1 month ago
Once, 4 months ago
2 times, 10 months ago
2 times, 1 year ago
8061 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.