Why adding org.slf4j.api to dependencies causes Application not found in the registry error?

点点圈 提交于 2019-12-10 12:02:14

问题


I am absolutely don't understand if there is any logic in RCP behavior.

I am experimenting with logging inside views.

My application was running fine until I added dependency on org.slf4j.api

Nothing else was changed in the code.

But this dependency change caused that absurdic error

!ENTRY org.eclipse.osgi 4 0 2014-01-10 17:25:08.072
!MESSAGE Application error
!STACK 1
java.lang.RuntimeException: Application "Try_EclipseRCPView_03.application" could not be found in the registry. The applications available are: org.eclipse.e4.ui.workbench.swt.E4Application, org.eclipse.e4.ui.workbench.swt.GenTopic, org.eclipse.equinox.app.error, org.eclipse.ant.core.antRunner.
    at org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:248)
    at org.eclipse.equinox.internal.app.MainApplicationLauncher.run(MainApplicationLauncher.java:29)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLaunche
...

If I remove dependency, error disappears.

Why?????

UPDATE

Finally Eclipse crashed and deleted all my files (wiped out, it's not a joke). I was not thinking it is even possible. Be careful Eclipse platform is written by idiots. I am very very sad.

来源:https://stackoverflow.com/questions/21045536/why-adding-org-slf4j-api-to-dependencies-causes-application-not-found-in-the-reg

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!