org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'classpathCommands' defined in URL [jar:file:/Volumes/Development/misc/roo-1.0.0.A2/dist/roo-classpath-1.0.0.A2.jar!/org/springframework/roo/classpath/operations/ClasspathCommands.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.springframework.roo.classpath.operations.ClasspathOperations]: : Error creating bean with name 'classpathOperations' defined in URL [jar:file:/Volumes/Development/misc/roo-1.0.0.A2/dist/roo-classpath-1.0.0.A2.jar!/org/springframework/roo/classpath/operations/ClasspathOperations.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.springframework.roo.project.ProjectOperations]: : No unique bean of type [org.springframework.roo.project.ProjectOperations] is defined: Unsatisfied dependency of type [class org.springframework.roo.project.ProjectOperations]: expected at least 1 matching bean; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [org.springframework.roo.project.ProjectOperations] is defined: Unsatisfied dependency of type [class org.springframework.roo.project.ProjectOperations]: expected at least 1 matching bean; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'classpathOperations' defined in URL [jar:file:/Volumes/Development/misc/roo-1.0.0.A2/dist/roo-classpath-1.0.0.A2.jar!/org/springframework/roo/classpath/operations/ClasspathOperations.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.springframework.roo.project.ProjectOperations]: : No unique bean of type [org.springframework.roo.project.ProjectOperations] is defined: Unsatisfied dependency of type [class org.springframework.roo.project.ProjectOperations]: expected at least 1 matching bean; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [org.springframework.roo.project.ProjectOperations] is defined: Unsatisfied dependency of type [class org.springframework.roo.project.ProjectOperations]: expected at least 1 matching bean

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

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Spring JIRA by Scott Andrews, 1 year ago
expressed through constructor argument with index 0 of type [org.springframework.roo.classpath.operations.ClasspathOperations]: : Error creating bean with name 'classpathOperations' defined in URL [jar:file:/Volumes/Development/misc/roo-1.0.0.A2/dist/roo
via Spring JIRA by Scott Andrews, 1 year ago
expressed through constructor argument with index 0 of type [org.springframework.roo.classpath.operations.ClasspathOperations]: : Error creating bean with name 'classpathOperations' defined in URL [jar:file:/Volumes/Development/misc/roo-1.0.0.A2/dist/roo
via atlassian.com by Unknown author, 1 year ago
Error creating bean with name 'soapService' defined in URL [bundle://99.0:0/META-INF/spring/atlassian-plugins-components.xml]: Unsatisfied dependency expressed through constructor argument with index 0 of type
via Stack Overflow by const.grigoryev
, 2 years ago
Error creating bean with name 'consumer' defined in file [C:\Test\context.xml]: Unsatisfied dependency expressed through constructor argument with index 0 of type [java.io.InputStream]: Could not convert constructor argument value of type
via YouTrack by Unknown author, 1 year ago
Error creating bean with name 'dbSettings' defined in URL [jar:file:/C:/Work/TeamCity/webapps/ROOT/WEB-INF/lib/server.jar!/META-INF/buildServerSpring.xml]: Unsatisfied dependency expressed through constructor argument with index 0 of type
via YouTrack by Unknown author, 1 year ago
Error creating bean with name 'dbSettings' defined in URL [jar:file:/C:/Work/TeamCity-10170/webapps/tc/WEB-INF/lib/server.jar!/META-INF/buildServerSpring.xml]: Unsatisfied dependency expressed through constructor argument with index 0 of type
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'classpathCommands' defined in URL [jar:file:/Volumes/Development/misc/roo-1.0.0.A2/dist/roo-classpath-1.0.0.A2.jar!/org/springframework/roo/classpath/operations/ClasspathCommands.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.springframework.roo.classpath.operations.ClasspathOperations]: : Error creating bean with name 'classpathOperations' defined in URL [jar:file:/Volumes/Development/misc/roo-1.0.0.A2/dist/roo-classpath-1.0.0.A2.jar!/org/springframework/roo/classpath/operations/ClasspathOperations.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.springframework.roo.project.ProjectOperations]: : No unique bean of type [org.springframework.roo.project.ProjectOperations] is defined: Unsatisfied dependency of type [class org.springframework.roo.project.ProjectOperations]: expected at least 1 matching bean; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [org.springframework.roo.project.ProjectOperations] is defined: Unsatisfied dependency of type [class org.springframework.roo.project.ProjectOperations]: expected at least 1 matching bean; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'classpathOperations' defined in URL [jar:file:/Volumes/Development/misc/roo-1.0.0.A2/dist/roo-classpath-1.0.0.A2.jar!/org/springframework/roo/classpath/operations/ClasspathOperations.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.springframework.roo.project.ProjectOperations]: : No unique bean of type [org.springframework.roo.project.ProjectOperations] is defined: Unsatisfied dependency of type [class org.springframework.roo.project.ProjectOperations]: expected at least 1 matching bean; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [org.springframework.roo.project.ProjectOperations] is defined: Unsatisfied dependency of type [class org.springframework.roo.project.ProjectOperations]: expected at least 1 matching bean
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:680)
at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:679)
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:600)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:186)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:928)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:839)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:443)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:383)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:276)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:273)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:175)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:738)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:677)
at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:679)
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:600)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:186)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:928)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:839)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:443)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:383)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:276)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:273)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:175)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:716)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:377)
at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:139)
at org.springframework.roo.bootstrap.Bootstrap.(Bootstrap.java:59)
at org.springframework.roo.bootstrap.Bootstrap.main(Bootstrap.java:47)

Users with the same issue

4 times, 11 months ago

Write tip

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