在Eclipse中调试Errai应用程序时出错

在Eclipse中调试Errai应用程序时出错,eclipse,errai,Eclipse,Errai,当我尝试在Eclipse中调试Errai应用程序时,会出现以下错误: [WARN] Failed startup of context org.jboss.errai.cdi.server.gwt.JettyLauncher$WebAppContextWithReload@a9acff{/,/home/matthew/git/PressGangCCMSUI/src/main/webapp} javax.naming.NoInitialContextException: Need to spec

当我尝试在Eclipse中调试Errai应用程序时,会出现以下错误:

 [WARN] Failed startup of context org.jboss.errai.cdi.server.gwt.JettyLauncher$WebAppContextWithReload@a9acff{/,/home/matthew/git/PressGangCCMSUI/src/main/webapp}
javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file:  java.naming.factory.initial

如何修复此问题?

我不知道具体原因,但在清理项目时,我无法在Eclipse中以调试模式运行它。为了解决这个问题,我使用

mvn gwt:run

一旦启动程序启动,我就可以在Eclipse中再次在debug中运行项目。

有趣的是,运行mvn gwt:debug确实允许我运行应用程序,即使Eclipse中存在此错误。