org.jboss.deployment.DeploymentException: Error creating bean with name 'ProductDao' defined in class path resource [spring/service1-spring.xml]: Instantiation of bean failed; nested exception is java.lang.IllegalStateException: No bean class specified on bean definition; - nested throwable: (org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ProductDao' defined in class path resource [spring/service1-spring.xml]: Instantiation of bean failed; nested exception is java.lang.IllegalStateException: No bean class specified on bean definition)

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

Solutions on the web

via terracotta.org by Unknown author, 2 years ago
Error creating bean with name 'ProductDao' defined in class path resource [spring/service1-spring.xml]: Instantiation of bean failed; nested exception is java.lang.IllegalStateException: No bean class specified on bean definition; - nested throwable
via terracotta.org by Unknown author, 2 years ago
Error creating bean with name 'ProductDao' defined in class path resource [spring/service1-spring.xml]: Instantiation of bean failed; nested exception is java.lang.IllegalStateException: No bean class specified on bean definition; - nested throwable
via Terracotta by jpori, 1 year ago
Error creating bean with name 'ProductDao' defined in class path resource [spring/service1-spring.xml]: Instantiation of bean failed; nested exception is java.lang.IllegalStateException: No bean class specified on bean definition; - nested throwable
org.jboss.deployment.DeploymentException: Error creating bean with name 'ProductDao' defined in class path resource [spring/service1-spring.xml]: Instantiation of bean failed; nested exception is java.lang.IllegalStateException: No bean class specified on bean definition; - nested throwable: (org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ProductDao' defined in class path resource [spring/service1-spring.xml]: Instantiation of bean failed; nested exception is java.lang.IllegalStateException: No bean class specified on bean definition)
at org.jboss.spring.deployment.SpringDeployer.create(SpringDeployer.java:138)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:959)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

Users with the same issue

You are the first who have seen this exception.

Write tip

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