Getting Error While Using The Spring MVC with orm

15 Replies
JavaBot
JavaBot10mo ago
This post has been reserved for your question.
Hey @Danix! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
Danix
DanixOP10mo ago
hey @Peter Rader
Peter Rader
Peter Rader10mo ago
No qualifying bean of type 'com.controllersDatabase.DaoEntityImp' indicates that the repository is not instanticated throu spring. The xml-config misses the repository-configuration. Add the repository configuration to the xml-configuration.
Danix
DanixOP10mo ago
how to do it btw?
Peter Rader
Peter Rader10mo ago
Try to add <repositories base-package="com.controllersDatabase" />to the config (see https://docs.spring.io/spring-data/data-commons/docs/1.6.1.RELEASE/reference/html/repositories.html#title=
Danix
DanixOP10mo ago
it is giving syntax error
Danix
DanixOP10mo ago
No description
Peter Rader
Peter Rader10mo ago
Check the link I posted here. Check the xsi:schemaLocation settings.
Danix
DanixOP10mo ago
i am not using the Spring JPA i am using Spring Wth Orm
Peter Rader
Peter Rader10mo ago
Ah, ok. Then you dont need to add the xml-config. Your config sais spring should scan and instanticate types in com.controllersDatabase. For some reason spring does not create an object from the DaoEntityImp type. I dont know why but I can guess ... Try to add @Bean to the DaoEntityImp.
Danix
DanixOP10mo ago
but i am doing spring xml config @Peter Rader
Peter Rader
Peter Rader10mo ago
And your springxml sais it should scan the package com.controllersDatabase.
<!-- Enable component scanning -->
<context:component-scan
base-package="com.controllersDatabase , com.controllers" />
<!-- Enable component scanning -->
<context:component-scan
base-package="com.controllersDatabase , com.controllers" />
Danix
DanixOP10mo ago
bro still facing the same issue @Peter Rader
Peter Rader
Peter Rader10mo ago
The @Bean did not help?
JavaBot
JavaBot10mo ago
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one. In case your post is not getting any attention, you can try to use /help ping. Warning: abusing this will result in moderative actions taken against you.

Did you find this page helpful?