org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.bnymellon.touchpoint.controller.TransactionBO] for bean with name 'BO' defined in ServletContext resource [/applicationContext.xml]; nested exception is java.lang.ClassNotFoundException: com.bnymellon.touchpoint.controller.TransactionBO


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.


5 months ago
Expert tip

Solutions on the web401

Solution icon of web
via mkyong.com by Unknown author, 8 months ago
Cannot find class [com.bnymellon.touchpoint.controller.TransactionBO] for bean with name 'BO' defined in ServletContext resource [/applicationContext.xml]; nested exception is java.lang.ClassNotFoundException: com.bnymellon.touchpoint.controller.TransactionBO

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

Solution icon of stackoverflow
Cannot find class [util.MyAuthenticationHandler] for bean with name 'myAuthenticationHandler' defined in ServletContext resource [/WEB-INF/applicationContext.xml]; nested exception is java.lang.ClassNotFoundException: util.MyAuthenticationHandler

Solution icon of coderanch
Cannot find class [com.vaannila.HelloWorld] for bean with name 'helloWorldClass' defined in ServletContext resource [/WEB-INF/applicationContext.xml]; nested exception is java.lang.ClassNotFoundException: com.vaannila.HelloWorld

Solution icon of stackoverflow
Cannot find class [services.MessageServiceImpl] for bean with name 'messageService' defined in ServletContext resource [/WEB-INF/applicationContext.xml]; nested exception is java.lang.ClassNotFoundException: services.MessageServiceImpl

Solution icon of stackoverflow
Cannot find class [org.springframework.orm.hibernate4.LocalSessionFactoryBean] for bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/resources/applicationContext.xml]; nested exception is java.lang.ClassNotFoundException: org.springframework.orm.hibernate4.LocalSessionFactoryBean

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

Solution icon of stackoverflow
Cannot find class [org.hibernate.jps.HibernatePersistenceProvider] for bean with name 'org.hibernate.jps.HibernatePersistenceProvider#57fe6f2d' defined in ServletContext resource [/WEB-INF/applicationContext.xml]; nested exception is java.lang.ClassNotFoundException: org.hibernate.jps.HibernatePersistenceProvider

Solution icon of stackoverflow
Cannot find class [org.apache.commons.dbcp.BasicDataSource] for bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/applicationContext.xml]; nested exception is java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSource

Solution icon of web
Cannot find class [com.mchange.v2.c3p0.ComboPooledDataSource] for bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/applicationContext.xml]; nested exception is java.lang.ClassNotFoundException: com.mchange.v2.c3p0.ComboPooledDataSource

Stack trace

org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.bnymellon.touchpoint.controller.TransactionBO] for bean with name 'BO' defined in ServletContext resource [/applicationContext.xml]; nested exception is java.lang.ClassNotFoundException: com.bnymellon.touchpoint.controller.TransactionBO
	at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1250)
	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:4723)
	at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5226)
	at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5221)
	at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: com.bnymellon.touchpoint.controller.TransactionBO
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1676)
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1521)
	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)
	... 17 more

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

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
Samebug visitor profile picture
Unknown user
2 times, 1 year ago
472 more bugmates