产生此异常“ HTTP 500 Erreur Interne de Servlet”的可能原因是什么?

时间:2019-06-15 12:26:08

标签: java rest web-services jersey

我正在开发Web服务。我经常有这种观念:

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.

谢谢。

1 个答案:

答案 0 :(得分:0)

好像没有正确加载项目构面,请尝试卸载该构面并重新安装,这可能类似于JPA错误。转到项目属性,项目构面,然后取消选中该构面应用并关闭,然后再次检查它应用并关闭,告诉我是否可行。