-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not find any META-INF/persistence.xml file in the classpath #5819
Comments
You don't need to include it. I agree we should probably get rid of it somehow. |
A solution could be to remap log level of this message from INFO to DEBUG. |
If someone sends a PR to improve this I'll be happy to merge it.
A suggestion: It shouldn't confuse you as it's not yelling at you, nor stating anything which implies this is "wrong" in any way. It's just stating a fact, and as such it's stated as INFO. |
The message is irritating even with INFO, because it says quarkus cannot found something, so users think that something is missing.. I think, the message should be inverted. Instead of saying
it should say:
or better:
to indicate that quarkus uses the If no |
No need to discuss further, we already agreed that we should get rid of the message. Any volunteer? Or I can do it, just need to know. |
Well I'll just do it :) |
I would really to contribute but I am not such experienced with quarkus codebase and it will take some time..actually I use wildfly and learn the things around quarkus. I think, in a few month when having more free time and general quarkus knowledge, I will dig into the source code and can contribute..but actually this is not possible. |
no problem, I normally need to ask for such issues as we're having a lot of them, but this one will only take me a few minutes as I'm already making changes to Hibernate today. |
thanks @gsmet, right definitely connected. Not sure about having it as default but it's worth thinking. either way, I'm going to need this: hibernate/hibernate-orm#3205 |
Describe the bug
I added hibernate extension in quarkus and set up database/hibernate properties by
application.properties
. However, the following info is shown in the log when starting the application:Expected behavior
As
persistence.xml
is optional, the infoCould not find any META-INF/persistence.xml file in the classpath
is irritating. Should the user include this file or not? If the user includes it, then the set database properties ofapplication.properties
are ignored according to official documentation.Environment:
The text was updated successfully, but these errors were encountered: