我正在开发Web服务rest。我经常有这样的例外:
Exception in thread "main" javax.ws.rs.InternalServerErrorException: HTTP 500 Erreur Interne de Servlet
此异常的可能原因是什么? 知道在"错误日志"窗口中,我发现了这个:
Project facet osgi.subsystem has not been defined. It is used in plugin com.ibm.ws.st.osgi.core.
Project facet osgi.fragment has not been defined. It is used in plugin com.ibm.ws.st.osgi.core.
Project facet osgi.bundle has not been defined. It is used in plugin com.ibm.ws.st.osgi.core.
Project facet osgi.app has not been defined. It is used in plugin com.ibm.ws.st.osgi.core.
Project facet com.ibm.etools.javaee.cdi has not been defined. It is used in plugin com.ibm.ws.st.jee.core.
提前谢谢。
看起来项目方面没有正确加载,请尝试卸载该方面并重新安装它,可能类似于 JPA 错误。 转到项目属性,项目方面,然后取消选中该方面应用并关闭,然后再次检查它应用并关闭,告诉我这是否有效。