Replies: 17 comments 11 replies
-
do you have that file in |
Beta Was this translation helpful? Give feedback.
-
If you're using maven or gradle, that file should get copied to your build dir (which is what's actually on the classpath at runtime). Assuming maven, does |
Beta Was this translation helpful? Give feedback.
-
There must be something off in your environment because that looks right to me. |
Beta Was this translation helpful? Give feedback.
-
I don't understand what I have to do with reproducer |
Beta Was this translation helpful? Give feedback.
-
Create a new project using that as template (there's a big green button for that) and then recreate the problem in that new project. It uses maven so if you don't you'll want to recreate your environment as best you can. |
Beta Was this translation helpful? Give feedback.
-
I've migrated from:
Configuration: META-INF/morphia-config.properties See: https://morphia.dev/morphia/3.0/configuration.html Deployed: Sample config files Complete with defaults:
Using Gradle 8.3: JAR:
MongoDB 7.0.0 with:
@LuuckA21 It all works fine for me You say your using: Morphia Version: 2.4.2 Says: "Configuration - Starting in Morphia 3.0, configuration will be driven via a configuration file rather than programmatic configuration." |
Beta Was this translation helpful? Give feedback.
-
Thanks for confirming, @NOTiFYcouk it should be |
Beta Was this translation helpful? Give feedback.
-
I upload my project to github I have update morphia-core to 2.4.3 but give me this warning [20:31:16 WARN]: [dev.morphia.config.MorphiaConfig] The configuration file META-INF/morphia-config.properties could not be found. Using default values; |
Beta Was this translation helpful? Give feedback.
-
Still not working @evanchooly |
Beta Was this translation helpful? Give feedback.
-
I try 2.4.2 but still give dev.morphia.mapping.MappingException: The configuration file META-INF/morphia-config.properties could not be found. |
Beta Was this translation helpful? Give feedback.
-
I put META-INF/morphia-config.properties under resources folder and try to put under java folder but nothing change |
Beta Was this translation helpful? Give feedback.
-
Testing using reproduce is no sense, I need to use morphia in minecraft plugin and still not working Reproducer: |
Beta Was this translation helpful? Give feedback.
-
I try with reproducer and works well, but this not help me. I put the same code used in reproducer in my minecraft plugin but still not working. |
Beta Was this translation helpful? Give feedback.
-
@evanchooly I downgrade to v2.3.8 because v2.4.x and v3.x snapshot with config file still not working, and after two weeks of discussion nothing has changed |
Beta Was this translation helpful? Give feedback.
-
Everything looks right to me but without a way to reproduce locally there's not much else i can do. |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
Configuration file not found, see error:
dev.morphia.mapping.MappingException: The configuration file META-INF/morphia-config.properties could not be found. at dev.morphia.config.MorphiaConfigHelper.loadConfig(MorphiaConfigHelper.java:105) ~[?:?] at dev.morphia.config.MorphiaConfigHelper.loadConfig(MorphiaConfigHelper.java:92) ~[?:?] at dev.morphia.Morphia.createDatastore(Morphia.java:93) ~[?:?] at me.luucka.moria.DBManager.<init>(DBManager.java:21) ~[moria-0.0.1.jar:?] at me.luucka.moria.MoriaPlugin.onEnable(MoriaPlugin.java:9) ~[moria-0.0.1.jar:?] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:281) ~[paper-api-1.20.1-R0.1-SNAPSHOT.jar:?] at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:189) ~[paper-1.20.1.jar:git-Paper-164] at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:104) ~[paper-1.20.1.jar:git-Paper-164] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:507) ~[paper-api-1.20.1-R0.1-SNAPSHOT.jar:?] at org.bukkit.craftbukkit.v1_20_R1.CraftServer.enablePlugin(CraftServer.java:640) ~[paper-1.20.1.jar:git-Paper-164] at org.bukkit.craftbukkit.v1_20_R1.CraftServer.enablePlugins(CraftServer.java:551) ~[paper-1.20.1.jar:git-Paper-164] at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:636) ~[paper-1.20.1.jar:git-Paper-164] at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:435) ~[paper-1.20.1.jar:git-Paper-164] at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:308) ~[paper-1.20.1.jar:git-Paper-164] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1101) ~[paper-1.20.1.jar:git-Paper-164] at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:318) ~[paper-1.20.1.jar:git-Paper-164] at java.lang.Thread.run(Thread.java:833) ~[?:?]
** Please complete the following information: **
Beta Was this translation helpful? Give feedback.
All reactions