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


Samebug tips1

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.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.


Solutions on the web612

Solution icon of web
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

Solution icon of googlegroups
via Google Groups by KurenaiShiki, 2 months ago
Error loading class [com.example.connector.HelloWorldConnectorType] for bean with name 'Test-connector' defined in URL [jar:file:/D:/GSAConnector/apache-tomcat-6.0.36/webapps/connector-manager/WEB-INF/lib/HelloWorld.jar!/config/connectorType.xml

Solution icon of web
Error loading class [org.cyclos.server.rpc.access.LoginRemoteServiceImpl] for bean with name 'loginService' defined in URL [jar:file:/opt/tomcat/webapps/cyclos/WEB-INF/lib/cyclos-impl.jar!/org/cyclos/server/rpc/access/LoginRemoteServiceImpl.class

Solution icon of stackexchange-gis
via Geographic Information Systems by vermesser123
, 1 year ago
Error loading class [org.geoserver.wps.gs.HelloWPS] for bean with name 'helloWPS' defined in URL [jar:file:/C:/Program%20Files/apache-tomcat-7.0.33-windows-x86/apache-tomcat-7.0.33/webapps/geoserver/WEB-INF/lib/hello_wps-2.2-SNAPSHOT.jar

Solution icon of github
Error loading class [com.parashift.onlyoffice.CallBack] for bean with name 'webscript.onlyoffice.callback.post' defined in URL [jar:file:/opt/alfresco-5.0.c/tomcat/webapps/alfresco/WEB-INF/lib/onlyoffice-alfresco-repo-1.0.2.jar!/com/parashift

Solution icon of stackoverflow
Error loading class [org.thymeleaf.spring3.SpringTemplateEngine] for bean with name 'templateEngine' defined in ServletContext resource [/WEB-INF/Resources/applicationContext-config.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: org/thymeleaf/TemplateEngine

Solution icon of stackoverflow
via Stack Overflow by hloughrey
, 3 months ago
Error loading class [org.geoserver.wps.ppio.DXFPPIO] for bean with name 'DXFPPIO' defined in URL [jar:file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%208.5/webapps/geoserver/WEB-INF/lib/gs-dxf-wps-2.11.0.jar!/applicationContext.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: org/geoserver/wps/ppio/CDataPPIO

Solution icon of github
Error loading class [com.oneops.sensor.listeners.ChannelDownListener] for bean with name 'channelDownListener' defined in ServletContext resource [/WEB-INF/application-context.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: com/espertech/esper/client/UpdateListener

Solution icon of googlegroups
via Google Groups by pankaj, 7 months ago
Error loading class [org.gwtwidgets.server.spring.test.serverimpl.ServiceTestImpl] for bean with name 'ServiceTestImpl' defined in ServletContext resource [/ WEB-INF/applicationContext.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: com/google/ gwt/user/client/rpc/RemoteService

Solution icon of stackoverflow
Error loading class [com.myco.mydata.controller.ShowmydataController] for bean with name 'showmydataController' defined in file [/var/lib/tomcat7/webapps/my_app/WEB-INF/classes/com/myco/mydata/controller/ShowmydataController.class]: problem with

Stack trace

  • 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 at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1253) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:576) at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1319) at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:885) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:562) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4135) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4630) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:905) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:740) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:500) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:785) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445) at org.apache.catalina.core.StandardService.start(StandardService.java:519) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:581) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) Caused by: java.lang.NoClassDefFoundError: com/opensymphony/xwork2/ActionSupport at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632) at java.lang.ClassLoader.defineClass(ClassLoader.java:616) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2733) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1124) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1612) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1491) at org.springframework.util.ClassUtils.forName(ClassUtils.java:257) at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:408) at org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1271) at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1242) ... 33 more Caused by: java.lang.ClassNotFoundException: com.opensymphony.xwork2.ActionSupport at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1645) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1491)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
446 more bugmates