如何在Glassfish的Web服务应用程序中解决“ HTTP状态500-内部服务器错误”?

vt97john

我已经将一个包含EJB(RESTFul Web服务)的Web应用程序从Netbwans 8部署到了Glassfish 4中。这包括一个跨源资源共享过滤器。当我尝试查看Web服务的输出(直接从Web服务路径而不是从客户端本身)时,在浏览器中收到“ HTTP状态500-内部服务器错误”错误。我在一个论坛上看到,我可能会尝试在Netbeans的项目属性中取消选中“ Jersey”选项,但没有看到这样的选项。我在日志中找到的唯一内容是:

Info:   WELD-000900 2.0.0 (SP1)
Warning:   Class 'javax.ejb.PostActivate' not found, interception based on it is not enabled
Warning:   Class 'javax.ejb.PrePassivate' not found, interception based on it is not enabled
Info:   Registering the Jersey servlet application, named com.mycompany.enterprisesample.service.ApplicationConfig, at the servlet mapping /webresources/*, with the Application class of the same name.


Aug 21, 2014 11:31:10 AM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner$DefaultCustomizer getLocations
WARNING: Skipping entry  because it is not an absolute URI.
Aug 21, 2014 11:31:10 AM com.sun.enterprise.glassfish.bootstrap.osgi.BundleProvisioner$DefaultCustomizer getLocations
WARNING: Skipping entry  because it is not an absolute URI.
Registered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishRuntime@5c8edb94 in service registry.
毒蛇

添加

<jvm-options>-Djavax.xml.accessExternalSchema=all</jvm-options> 

domain.xml文件glassfish4\glassfish\domains\domain1\config\domain.xml文件中的代码行

内部<java-config> </java-config>标签为:-

<java-config>
.
.
<jvm-options>-Djavax.xml.accessExternalSchema=all</jvm-options>
</java-config>

注意:-将以上代码行添加到domain.xml文件的–D .....代码的末尾。将其添加到随机位置可能无法保证这会起作用。

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

GlassFish Http状态500-内部服务器错误

来自分类Dev

HTTP状态500-内部服务器错误-JSP-Glass Fish服务器

来自分类Dev

Android中的Http 500内部服务器错误

来自分类Dev

Android中的Http 500内部服务器错误

来自分类Dev

CakePHP 500内部服务器错误

来自分类Dev

javascript 500内部服务器错误

来自分类Dev

500内部服务器错误Heroku

来自分类Dev

内部服务器500错误-Django

来自分类Dev

Ajax:500内部服务器错误

来自分类Dev

AJAX 500(内部服务器错误)

来自分类Dev

POST 500(内部服务器错误)

来自分类Dev

AJax内部服务器错误500

来自分类Dev

nginx 500内部服务器错误

来自分类Dev

AJAX 500(内部服务器错误)

来自分类Dev

得到500内部服务器错误?

来自分类Dev

unity 500内部服务器错误

来自分类Dev

Laravel 500内部服务器错误?

来自分类Dev

500内部服务器错误Heroku

来自分类Dev

htacces 500内部服务器错误

来自分类Dev

phpMyadmin 内部服务器错误 500

来自分类Dev

POST 500 内部服务器错误

来自分类Dev

500 内部服务器错误托管

来自分类Dev

内部服务器错误 (500)

来自分类Dev

POST 请求上的 Http 500 内部服务器错误

来自分类Dev

ibm http服务器内部服务器错误

来自分类Dev

使用Ajax时,服务器的状态为500(内部服务器错误)

来自分类Dev

加载资源失败:服务器响应状态为 500(内部服务器错误)

来自分类Dev

Angularjs对REST服务器的GET http请求返回500(内部服务器错误)

来自分类Dev

如何解决tigris :: call_geolocator()内部服务器错误(HTTP 500)错误?