【发布时间】:2014-08-21 15:36:44
【问题描述】:
我已经将一个包含 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.
【问题讨论】:
标签: java jakarta-ee glassfish