Michal Klimczak
04/02/2022, 8:05 PMrouting {
val service by KoinJavaComponent.inject<PageService>(PageService::class.java)
...
Exception:
class com.xyz.PageService cannot be cast to class com.xyz.PageService (com.xyz.PageService is in unnamed module of loader 'app'; com.xyz.PageService is in unnamed module of loader io.ktor.server.engine.OverridingClassLoader$ChildURLClassLoader @55a88417)
Also it's injected fine at app startup, but fails with this exception when it's done in the routing
lambda. Works fine when I disable development mode, too. Any ideas?Sebastian Owodzin
04/03/2022, 5:55 PMMichal Klimczak
04/04/2022, 6:13 AM