JAX-RS Rest服务停止在Eclipse Glassfish上部署 [英] JAX-RS Rest services stopped deploying on Eclipse Glassfish

查看:377
本文介绍了JAX-RS Rest服务停止在Eclipse Glassfish上部署的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在Glassfish 4.1.1上使用Eclipse开发了Jersey JAX-RS应用程序大约一年了。今天早些时候,我正在对一些类进行一些正常的更改,但是当我尝试和构建时,Eclipse没有更新类。我在Stack Overflow上搜索过,并发现这个答案



所以我做了以下步骤:


  1. 项目>清洁在您正在开展的项目中。

  2. 项目>构建自动启用,以便代码在工作空间中重新生成保存的更改。

  3. 窗口>首选项,并确保您已安装的JRE和编译器与Java版本匹配$ / $
    $ b $ >我安装的jre是 jdk1.8.0_73 ,我的编译器合规级别是1.8



    现在,当我进行更改对于Java文件,下面的服务器选项卡仍然不会显示


    [开始,重新发布]


    < blockquote>

    喜欢,但应该停留在


    [开始,同步]。 >

    越来越糟现在,当我尝试使用POSTMAN和查询我使用了百万次的其余服务,返回一个404表示所请求的资源不可用。



    所以基本上由于某些原因,没有一个REST服务正常启动。



    如果我为我的应用程序打了index.html,它可以提供很好的服务,但是当AngularJS尝试从REST后端加载内容时,它会导致404错误。



    我没有对Eclipse / Glassfish进行任何更改,因为它昨天运行正常。这是完全停止发展。有谁知道可能出了什么问题?这是非常令人讨厌的烦恼。



    我不是Eclipse或Glassfish或者球衣的专家,所以请轻松一点:)



    这是启动服务器时的构建日志,也许有人可以注意到发生了什么....

     code> 2016-10-02T15:24:47.575 + 0100 |信息:Running GlassFish版本:GlassFish Server开源版4.1.1(build 1)
    2016-10-02T15:24:47.576 + 0100 |信息:服务器日志文件正在使用Formatter类:com.sun.enterprise.server.logging.ODLLogFormatter
    2016-10-02T15:24:47.664 + 0100 |信息:classtype [com的领域[admin-realm] .sun.enterprise.security.auth.realm.file.FileRealm]成功创建。
    2016-10-02T15:24:47.665 + 0100 |信息:成功创建classtype [com.sun.enterprise.security.auth.realm.file.FileRealm]的Realm [文件]。
    2016-10-02T15:24:47.670 + 0100 |信息:成功创建了classtype [com.sun.enterprise.security.auth.realm.certificate.CertificateRealm]的领域[证书]。
    2016-10-02T15:24:47.775 + 0100 |信息:授权服务已成功初始化。
    2016-10-02T15:24:47.825 + 0100 |信息:注册org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for persistence-type =在BackingStoreFactoryRegistry中复制
    2016-10-02T15: 24:47.948 + 0100 |信息:JTS5014:可恢复的JTS实例,serverId = [100]
    2016-10-02T15:24:47.965 + 0100 |警告:无法初始化实例。 Class = interface org.glassfish.grizzly.http.server.AddOn,name = http-listener-1,realClassName = org.glassfish.grizzly.http2.Http2AddOn
    2016-10-02T15:24:48.037 + 0100 |信息:Grizzly Framework 2.3.23开始于:54ms - 绑定到[/0.0.0.0:8080]
    2016-10-02T15:24:48.051 + 0100 |警告:无法初始化实例。 Class = interface org.glassfish.grizzly.http.server.AddOn,name = http-listener-2,realClassName = org.glassfish.grizzly.http2.Http2AddOn
    2016-10-02T15:24:48.055 + 0100 |信息:Grizzly Framework 2.3.23开始于:1ms - 绑定到[/0.0.0.0:8181]
    2016-10-02T15:24:48.057 + 0100 |警告:无法初始化实例。 Class = interface org.glassfish.grizzly.http.server.AddOn,name = admin-listener,realClassName = org.glassfish.grizzly.http2.Http2AddOn
    2016-10-02T15:24:48.062 + 0100 |信息: Grizzly Framework 2.3.23开始于:2ms - 绑定到[/0.0.0.0:4848]
    2016-10-02T15:24:48.093 + 0100 |信息:Grizzly Framework 2.3.23开始于:1ms - 绑定到[/0.0.0.0:3700]
    2016-10-02T15:24:48.316 + 0100 |信息:访问未参考引用
    2016-10-02T15:24:48.655 + 0100 |信息:Java安全管理器被禁用。
    2016-10-02T15:24:48.656 + 0100 |信息:进入安全启动服务。
    2016-10-02T15:24:48.658 + 0100 |信息:加载策略提供程序com.sun.enterprise.security.provider.PolicyWrapper。
    2016-10-02T15:24:48.677 + 0100 |信息:安全服务成功启动。
    2016-10-02T15:24:48.829 + 0100 |信息:在主机/端口上创建HTTP侦听器http-listener-1 0.0.0.0:8080
    2016-10-02T15:24:48.833 + 0100 | Info:在主机/端口上创建HTTP监听器http-listener-2 0.0.0.0:8181
    2016-10-02T15:24:48.835 + 0100 |信息:在主机/端口0.0上创建HTTP监听器管理监听器。 0.0:4848
    2016-10-02T15:24:48.849 + 0100 |信息:创建虚拟服务器服务器
    2016-10-02T15:24:48.851 + 0100 |信息:创建虚拟服务器__asadmin
    2016-10-02T15:24:48.995 + 0100 |信息:设置JAAS应用程序名称glassfish-web
    2016-10-02T15:24:48.996 + 0100 |信息:虚拟服务器服务器加载默认网络模块
    2016-10-02T15:24:49.419 + 0100 |信息:参观未参考参考
    2016-10-02T15:24:49.447 + 0100 |信息:访问未参考参考
    2016-10-02T15:24 :49.448 + 0100 |信息:访问未参考参考
    2016-10-02T15:24:49.449 + 0100 |信息:访问未参考参考
    2016-10-02T15:24:49.450 + 0100 |信息:访问参考文献
    2016-10-02T15:24:49.451 + 01 00 |信息:访问未参考参考
    2016-10-02T15:24:49.451 + 0100 |信息:访问未参考参考
    2016-10-02T15:24:49.452 + 0100 |信息:访问未访问的参考
    2016-10-02T15:24:49.453 + 0100 |信息:参观未参考参考
    2016-10-02T15:24:49.453 + 0100 |信息:访问未参考参考
    2016-10-02T15 :24:49.454 + 0100 |信息:访问未参考参考
    2016-10-02T15:24:49.471 + 0100 |信息:访问未参考参考
    2016-10-02T15:24:49.472 + 0100 |信息:访问未参考参考
    2016-10-02T15:24:49.473 + 0100 |信息:访问未参考参考
    2016-10-02T15:24:49.474 + 0100 |信息:访问未访问的参考
    2016-10-02T15:24:49.475 + 0100 |信息:参观未参考参考
    2016-10-02T15:24:49.476 + 0100 |信息:访问未参考参考
    2016-10-02T15:24: 49.477 + 0100 |信息:参观未参考参考
    2016-10-02T15:24:49.478 + 0100 |信息:访问未参考参考
    2016-10-02T15:24:49.479 + 0100 |信息:访问un参考参考
    2016-10-02T15:24:49.571 + 0100 |信息:WELD-000900:2.2.13(最终)
    2016-10-02T15:24:50.041 + 0100 |信息:HV000001: Hibernate验证器5.1.2.Final
    2016-10-02T15:24:50.250 + 0100 | WARN:WELD-001700:拦截器注释类javax.ejb.PostActivate未找到,基于它的拦截未启用
    2016-10-02T15:24:50.250 + 0100 | WARN:WELD-001700:没有找到拦截器注释类javax.ejb.PrePassivate,没有启用拦截
    2016-10-02T15:24:50.407 +0100 | WARN:WELD-000411:Observer方法[BackedAnnotatedMethod] private org.glassfish.jersey.ext.cdi1x.internal.CdiComponentProvider.processAnnotatedType(@Observes ProcessAnnotatedType< Object>)接收所有注释类型的事件。考虑使用@WithAnnotations或具有边界的泛型类型限制事件。
    2016-10-02T15:24:50.413 + 0100 | WARN:WELD-000411:观察者方法[BackedAnnotatedMethod] public org.glassfish.jms.injection.JMSCDIExtension.processAnnotatedType(@Observes ProcessAnnotatedType< Object>)接收事件所有注释类型。考虑使用@WithAnnotations或具有边界的泛型类型限制事件。
    2016-10-02T15:24:50.415 + 0100 | WARN:WELD-000411:观察者方法[BackedAnnotatedMethod] public org.glassfish.jms.injection.JMSCDIExtension.processAnnotatedType(@Observes ProcessAnnotatedType< Object>)接收事件所有注释类型。考虑使用@WithAnnotations或具有边界的泛型类型限制事件。
    2016-10-02T15:24:50.427 + 0100 | WARN:WELD-000411:观察者方法[BackedAnnotatedMethod] org.glassfish.sse.impl.ServerSentEventCdiExtension.processAnnotatedType(@Observes ProcessAnnotatedType< Object>,BeanManager)接收事件对于所有注释类型。考虑使用@WithAnnotations或具有边界的泛型类型限制事件。
    2016-10-02T15:24:50.428 + 0100 | WARN:WELD-000411:观察者方法[BackedAnnotatedMethod] org.glassfish.sse.impl.ServerSentEventCdiExtension.processAnnotatedType(@Observes ProcessAnnotatedType< Object>,BeanManager)接收事件对于所有注释类型。考虑使用@WithAnnotations或具有边界的泛型类型限制事件。
    2016-10-02T15:24:50.429 + 0100 | WARN:WELD-000411:观察者方法[BackedAnnotatedMethod] org.glassfish.sse.impl.ServerSentEventCdiExtension.processAnnotatedType(@Observes ProcessAnnotatedType< Object>,BeanManager)接收事件对于所有注释类型。考虑使用@WithAnnotations或具有边界的泛型类型限制事件。
    2016-10-02T15:24:50.430 + 0100 | WARN:WELD-000411:观察者方法[BackedAnnotatedMethod] private org.glassfish.jersey.ext.cdi1x.internal.CdiComponentProvider.processAnnotatedType(@Observes ProcessAnnotatedType< Object> )接收所有注释类型的事件。考虑使用@WithAnnotations或具有边界的泛型类型限制事件。
    2016-10-02T15:24:50.433 + 0100 | WARN:WELD-000411:观察者方法[BackedAnnotatedMethod] private org.glassfish.jersey.ext.cdi1x.internal.CdiComponentProvider.processAnnotatedType(@Observes ProcessAnnotatedType< Object> )接收所有注释类型的事件。考虑使用@WithAnnotations或具有边界的泛型类型限制事件。
    2016-10-02T15:24:50.436 + 0100 | WARN:WELD-000411:观察者方法[BackedAnnotatedMethod] public org.glassfish.jms.injection.JMSCDIExtension.processAnnotatedType(@Observes ProcessAnnotatedType< Object>)接收事件所有注释类型。考虑使用@WithAnnotations或具有边界的泛型类型限制事件。
    2016-10-02T15:24:50.437 + 0100 | WARN:WELD-000411:观察者方法[BackedAnnotatedMethod] public org.glassfish.jms.injection.JMSCDIExtension.processAnnotatedType(@Observes ProcessAnnotatedType< Object>)接收事件所有注释类型。考虑使用@WithAnnotations或具有边界的泛型类型限制事件。
    2016-10-02T15:24:50.438 + 0100 | WARN:WELD-000411:观察者方法[BackedAnnotatedMethod] org.glassfish.sse.impl.ServerSentEventCdiExtension.processAnnotatedType(@Observes ProcessAnnotatedType< Object>,BeanManager)接收事件对于所有注释类型。考虑使用@WithAnnotations或具有边界的泛型类型限制事件。
    2016-10-02T15:24:50.439 + 0100 | WARN:WELD-000411:观察者方法[BackedAnnotatedMethod] public org.glassfish.jms.injection.JMSCDIExtension.processAnnotatedType(@Observes ProcessAnnotatedType< Object>)接收事件所有注释类型。考虑使用@WithAnnotations或具有边界的泛型类型限制事件。
    2016-10-02T15:24:50.440 + 0100 | WARN:WELD-000411:观察者方法[BackedAnnotatedMethod] private org.glassfish.jersey.ext.cdi1x.internal.CdiComponentProvider.processAnnotatedType(@Observes ProcessAnnotatedType< Object> )接收所有注释类型的事件。考虑使用@WithAnnotations或具有边界的泛型类型限制事件。
    2016-10-02T15:24:50.441 + 0100 | WARN:WELD-000411:观察者方法[BackedAnnotatedMethod] private org.glassfish.jersey.ext.cdi1x.internal.CdiComponentProvider.processAnnotatedType(@Observes ProcessAnnotatedType< Object> )接收所有注释类型的事件。考虑使用@WithAnnotations或具有边界的泛型类型限制事件。
    2016-10-02T15:24:50.442 + 0100 | WARN:WELD-000411:观察者方法[BackedAnnotatedMethod] private org.glassfish.jersey.ext.cdi1x.internal.CdiComponentProvider.processAnnotatedType(@Observes ProcessAnnotatedType< Object> )接收所有注释类型的事件。考虑使用@WithAnnotations或具有边界的泛型类型限制事件。
    2016-10-02T15:24:50.444 + 0100 | WARN:WELD-000411:观察者方法[BackedAnnotatedMethod] org.glassfish.sse.impl.ServerSentEventCdiExtension.processAnnotatedType(@Observes ProcessAnnotatedType< Object>,BeanManager)接收事件对于所有注释类型。考虑使用@WithAnnotations或具有边界的泛型类型限制事件。
    2016-10-02T15:24:50.444 + 0100 | WARN:WELD-000411:观察者方法[BackedAnnotatedMethod] private org.glassfish.jersey.ext.cdi1x.internal.CdiComponentProvider.processAnnotatedType(@Observes ProcessAnnotatedType< Object> )接收所有注释类型的事件。考虑使用@WithAnnotations或具有边界的泛型类型限制事件。
    2016-10-02T15:24:50.445 + 0100 | WARN:WELD-000411:观察者方法[BackedAnnotatedMethod] private org.glassfish.jersey.ext.cdi1x.internal.CdiComponentProvider.processAnnotatedType(@Observes ProcessAnnotatedType< Object> )接收所有注释类型的事件。考虑使用@WithAnnotations或具有边界的泛型类型限制事件。
    2016-10-02T15:24:50.445 + 0100 | WARN:WELD-000411:观察者方法[BackedAnnotatedMethod] org.glassfish.sse.impl.ServerSentEventCdiExtension.processAnnotatedType(@Observes ProcessAnnotatedType< Object>,BeanManager)接收事件对于所有注释类型。考虑使用@WithAnnotations或具有边界的泛型类型限制事件。
    2016-10-02T15:24:50.447 + 0100 | WARN:WELD-000411:观察者方法[BackedAnnotatedMethod] public org.glassfish.jms.injection.JMSCDIExtension.processAnnotatedType(@Observes ProcessAnnotatedType< Object>)接收事件所有注释类型。考虑使用@WithAnnotations或具有边界的泛型类型限制事件。
    2016-10-02T15:24:50.448 + 0100 | WARN:WELD-000411:观察者方法[BackedAnnotatedMethod] org.glassfish.sse.impl.ServerSentEventCdiExtension.processAnnotatedType(@Observes ProcessAnnotatedType< Object>,BeanManager)接收事件对于所有注释类型。考虑使用@WithAnnotations或具有边界的泛型类型限制事件。
    2016-10-02T15:24:50.448 + 0100 | WARN:WELD-000411:观察者方法[BackedAnnotatedMethod] org.glassfish.sse.impl.ServerSentEventCdiExtension.processAnnotatedType(@Observes ProcessAnnotatedType< Object>,BeanManager)接收事件对于所有注释类型。考虑使用@WithAnnotations或具有边界的泛型类型限制事件。
    2016-10-02T15:24:50.450 + 0100 | WARN:WELD-000411:观察者方法[BackedAnnotatedMethod] public org.glassfish.jms.injection.JMSCDIExtension.processAnnotatedType(@Observes ProcessAnnotatedType< Object>)接收事件所有注释类型。考虑使用@WithAnnotations或具有边界的泛型类型限制事件。
    2016-10-02T15:24:50.451 + 0100 | WARN:WELD-000411:观察者方法[BackedAnnotatedMethod] public org.glassfish.jms.injection.JMSCDIExtension.processAnnotatedType(@Observes ProcessAnnotatedType< Object>)接收事件所有注释类型。考虑使用@WithAnnotations或具有边界的泛型类型限制事件。
    2016-10-02T15:24:51.764 + 0100 |信息:在[/ pododdle]载入应用程序[pododdle]
    2016-10-02T15:24:51.766 + 0100 |信息:加载应用程序pododdle完成在3,949 ms
    2016-10-02T15:24:51.766 + 0100 |信息:GlassFish Server开源版4.1.1(1)启动时间:Felix(1,264ms),启动服务(4,275ms),总计( 5,539ms)
    2016-10-02T15:24:51.821 + 0100 |信息:灰熊框架2.3.23开始:2ms - 绑定到[/0.0.0.0:7676]
    2016-10-02T15 :24:52.061 + 0100 |信息:注册com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishImpl@7bbbb6a8作为OSGi服务注册:org.apache.felix.framework.ServiceRegistrationImpl@b18c4。
    2016-10-02T15:24:52.082 + 0100 |信息:JMXStartupService已启动JMXService URL服务上的JMXConnector:jmx:rmi:// PododdlePC:8686 / jndi / rmi:// PododdlePC:8686 / jmxrmi


    解决方案

    看起来这个错误是由于项目建设不正确。检查buildpath后,似乎有两个jar文件被神秘地丢失!他们是:

      jersey-media-multipart-2.21.1.jar 
    mimepull-1.9.3.jar

    我不知道如何从glassfish服务器的/ lib目录中删除jar文件,也许我不应该喝多余的威士忌酒。一旦他们被添加回来,一切都突然间工作了笨蛋。有一点困惑的错误 - 我会以为这会给一个编译错误,如果jar不可用。无论如何,由于另一个令人讨厌的错误,5天内丢失。


    I've been developing a Jersey JAX-RS application on Glassfish 4.1.1 using Eclipse for about a year now. Earlier today, I was making some normal changes to some of the classes, but Eclipse was not updating the classes when I would try and do a build. I searched here on Stack Overflow, and found this answer.

    So I did the following steps:

    1. Project > Clean on the project you're working on.
    2. Project > Build Automatically - turned on so the code rebuilds in your workspace on saved changes.
    3. Window > Preferences and make sure your Installed JRE's and Compilers are matching Java versions

    My installed jre is jdk1.8.0_73 and my compiler compliance level is 1.8

    Now when I make a change to a Java file, the server tab below will still not show

    [Started, Republish]

    like it should but stays at

    [Started, Synchronized].

    It gets worse. Now when I try and hit the rest services using POSTMAN and queries that I've used a million times it returns a 404 saying the requested resource is not available.

    So basically none of the REST services are starting properly for some reason.

    If I hit the index.html for my application it gets served up fine, but when AngularJS tries to load stuff from the REST backend, it gets fed the 404 error.

    I've haven't made any changes to Eclipse/Glassfish, as it was working perfectly yesterday. This is totally stopping development. Anybody know what might have gone wrong? It is extremely mind-explodingly annoying.

    I'm no expert in Eclipse or Glassfish or jersey, so please go easy on me :)

    Here are the build logs for when I start the server, maybe somebody can notice whats going on....

    2016-10-02T15:24:47.575+0100|Info: Running GlassFish Version: GlassFish Server Open Source Edition  4.1.1  (build 1)
    2016-10-02T15:24:47.576+0100|Info: Server log file is using Formatter class: com.sun.enterprise.server.logging.ODLLogFormatter
    2016-10-02T15:24:47.664+0100|Info: Realm [admin-realm] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.
    2016-10-02T15:24:47.665+0100|Info: Realm [file] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.
    2016-10-02T15:24:47.670+0100|Info: Realm [certificate] of classtype [com.sun.enterprise.security.auth.realm.certificate.CertificateRealm] successfully created.
    2016-10-02T15:24:47.775+0100|Info: Authorization Service has successfully initialized.
    2016-10-02T15:24:47.825+0100|Info: Registered org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for persistence-type = replicated in BackingStoreFactoryRegistry
    2016-10-02T15:24:47.948+0100|Info: JTS5014: Recoverable JTS instance, serverId = [100]
    2016-10-02T15:24:47.965+0100|Warning: Instance could not be initialized. Class=interface org.glassfish.grizzly.http.server.AddOn, name=http-listener-1, realClassName=org.glassfish.grizzly.http2.Http2AddOn
    2016-10-02T15:24:48.037+0100|Info: Grizzly Framework 2.3.23 started in: 54ms - bound to [/0.0.0.0:8080]
    2016-10-02T15:24:48.051+0100|Warning: Instance could not be initialized. Class=interface org.glassfish.grizzly.http.server.AddOn, name=http-listener-2, realClassName=org.glassfish.grizzly.http2.Http2AddOn
    2016-10-02T15:24:48.055+0100|Info: Grizzly Framework 2.3.23 started in: 1ms - bound to [/0.0.0.0:8181]
    2016-10-02T15:24:48.057+0100|Warning: Instance could not be initialized. Class=interface org.glassfish.grizzly.http.server.AddOn, name=admin-listener, realClassName=org.glassfish.grizzly.http2.Http2AddOn
    2016-10-02T15:24:48.062+0100|Info: Grizzly Framework 2.3.23 started in: 2ms - bound to [/0.0.0.0:4848]
    2016-10-02T15:24:48.093+0100|Info: Grizzly Framework 2.3.23 started in: 1ms - bound to [/0.0.0.0:3700]
    2016-10-02T15:24:48.316+0100|Info: visiting unvisited references
    2016-10-02T15:24:48.655+0100|Info: Java security manager is disabled.
    2016-10-02T15:24:48.656+0100|Info: Entering Security Startup Service.
    2016-10-02T15:24:48.658+0100|Info: Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper.
    2016-10-02T15:24:48.677+0100|Info: Security Service(s) started successfully.
    2016-10-02T15:24:48.829+0100|Info: Created HTTP listener http-listener-1 on host/port 0.0.0.0:8080
    2016-10-02T15:24:48.833+0100|Info: Created HTTP listener http-listener-2 on host/port 0.0.0.0:8181
    2016-10-02T15:24:48.835+0100|Info: Created HTTP listener admin-listener on host/port 0.0.0.0:4848
    2016-10-02T15:24:48.849+0100|Info: Created virtual server server
    2016-10-02T15:24:48.851+0100|Info: Created virtual server __asadmin
    2016-10-02T15:24:48.995+0100|Info: Setting JAAS app name glassfish-web
    2016-10-02T15:24:48.996+0100|Info: Virtual server server loaded default web module 
    2016-10-02T15:24:49.419+0100|Info: visiting unvisited references
    2016-10-02T15:24:49.447+0100|Info: visiting unvisited references
    2016-10-02T15:24:49.448+0100|Info: visiting unvisited references
    2016-10-02T15:24:49.449+0100|Info: visiting unvisited references
    2016-10-02T15:24:49.450+0100|Info: visiting unvisited references
    2016-10-02T15:24:49.451+0100|Info: visiting unvisited references
    2016-10-02T15:24:49.451+0100|Info: visiting unvisited references
    2016-10-02T15:24:49.452+0100|Info: visiting unvisited references
    2016-10-02T15:24:49.453+0100|Info: visiting unvisited references
    2016-10-02T15:24:49.453+0100|Info: visiting unvisited references
    2016-10-02T15:24:49.454+0100|Info: visiting unvisited references
    2016-10-02T15:24:49.471+0100|Info: visiting unvisited references
    2016-10-02T15:24:49.472+0100|Info: visiting unvisited references
    2016-10-02T15:24:49.473+0100|Info: visiting unvisited references
    2016-10-02T15:24:49.474+0100|Info: visiting unvisited references
    2016-10-02T15:24:49.475+0100|Info: visiting unvisited references
    2016-10-02T15:24:49.476+0100|Info: visiting unvisited references
    2016-10-02T15:24:49.477+0100|Info: visiting unvisited references
    2016-10-02T15:24:49.478+0100|Info: visiting unvisited references
    2016-10-02T15:24:49.479+0100|Info: visiting unvisited references
    2016-10-02T15:24:49.571+0100|Info: WELD-000900: 2.2.13 (Final)
    2016-10-02T15:24:50.041+0100|Info: HV000001: Hibernate Validator 5.1.2.Final
    2016-10-02T15:24:50.250+0100|WARN: WELD-001700: Interceptor annotation class javax.ejb.PostActivate not found, interception based on it is not enabled
    2016-10-02T15:24:50.250+0100|WARN: WELD-001700: Interceptor annotation class javax.ejb.PrePassivate not found, interception based on it is not enabled
    2016-10-02T15:24:50.407+0100|WARN: WELD-000411: Observer method [BackedAnnotatedMethod] private org.glassfish.jersey.ext.cdi1x.internal.CdiComponentProvider.processAnnotatedType(@Observes ProcessAnnotatedType<Object>) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
    2016-10-02T15:24:50.413+0100|WARN: WELD-000411: Observer method [BackedAnnotatedMethod] public org.glassfish.jms.injection.JMSCDIExtension.processAnnotatedType(@Observes ProcessAnnotatedType<Object>) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
    2016-10-02T15:24:50.415+0100|WARN: WELD-000411: Observer method [BackedAnnotatedMethod] public org.glassfish.jms.injection.JMSCDIExtension.processAnnotatedType(@Observes ProcessAnnotatedType<Object>) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
    2016-10-02T15:24:50.427+0100|WARN: WELD-000411: Observer method [BackedAnnotatedMethod] org.glassfish.sse.impl.ServerSentEventCdiExtension.processAnnotatedType(@Observes ProcessAnnotatedType<Object>, BeanManager) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
    2016-10-02T15:24:50.428+0100|WARN: WELD-000411: Observer method [BackedAnnotatedMethod] org.glassfish.sse.impl.ServerSentEventCdiExtension.processAnnotatedType(@Observes ProcessAnnotatedType<Object>, BeanManager) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
    2016-10-02T15:24:50.429+0100|WARN: WELD-000411: Observer method [BackedAnnotatedMethod] org.glassfish.sse.impl.ServerSentEventCdiExtension.processAnnotatedType(@Observes ProcessAnnotatedType<Object>, BeanManager) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
    2016-10-02T15:24:50.430+0100|WARN: WELD-000411: Observer method [BackedAnnotatedMethod] private org.glassfish.jersey.ext.cdi1x.internal.CdiComponentProvider.processAnnotatedType(@Observes ProcessAnnotatedType<Object>) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
    2016-10-02T15:24:50.433+0100|WARN: WELD-000411: Observer method [BackedAnnotatedMethod] private org.glassfish.jersey.ext.cdi1x.internal.CdiComponentProvider.processAnnotatedType(@Observes ProcessAnnotatedType<Object>) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
    2016-10-02T15:24:50.436+0100|WARN: WELD-000411: Observer method [BackedAnnotatedMethod] public org.glassfish.jms.injection.JMSCDIExtension.processAnnotatedType(@Observes ProcessAnnotatedType<Object>) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
    2016-10-02T15:24:50.437+0100|WARN: WELD-000411: Observer method [BackedAnnotatedMethod] public org.glassfish.jms.injection.JMSCDIExtension.processAnnotatedType(@Observes ProcessAnnotatedType<Object>) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
    2016-10-02T15:24:50.438+0100|WARN: WELD-000411: Observer method [BackedAnnotatedMethod] org.glassfish.sse.impl.ServerSentEventCdiExtension.processAnnotatedType(@Observes ProcessAnnotatedType<Object>, BeanManager) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
    2016-10-02T15:24:50.439+0100|WARN: WELD-000411: Observer method [BackedAnnotatedMethod] public org.glassfish.jms.injection.JMSCDIExtension.processAnnotatedType(@Observes ProcessAnnotatedType<Object>) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
    2016-10-02T15:24:50.440+0100|WARN: WELD-000411: Observer method [BackedAnnotatedMethod] private org.glassfish.jersey.ext.cdi1x.internal.CdiComponentProvider.processAnnotatedType(@Observes ProcessAnnotatedType<Object>) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
    2016-10-02T15:24:50.441+0100|WARN: WELD-000411: Observer method [BackedAnnotatedMethod] private org.glassfish.jersey.ext.cdi1x.internal.CdiComponentProvider.processAnnotatedType(@Observes ProcessAnnotatedType<Object>) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
    2016-10-02T15:24:50.442+0100|WARN: WELD-000411: Observer method [BackedAnnotatedMethod] private org.glassfish.jersey.ext.cdi1x.internal.CdiComponentProvider.processAnnotatedType(@Observes ProcessAnnotatedType<Object>) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
    2016-10-02T15:24:50.444+0100|WARN: WELD-000411: Observer method [BackedAnnotatedMethod] org.glassfish.sse.impl.ServerSentEventCdiExtension.processAnnotatedType(@Observes ProcessAnnotatedType<Object>, BeanManager) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
    2016-10-02T15:24:50.444+0100|WARN: WELD-000411: Observer method [BackedAnnotatedMethod] private org.glassfish.jersey.ext.cdi1x.internal.CdiComponentProvider.processAnnotatedType(@Observes ProcessAnnotatedType<Object>) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
    2016-10-02T15:24:50.445+0100|WARN: WELD-000411: Observer method [BackedAnnotatedMethod] private org.glassfish.jersey.ext.cdi1x.internal.CdiComponentProvider.processAnnotatedType(@Observes ProcessAnnotatedType<Object>) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
    2016-10-02T15:24:50.445+0100|WARN: WELD-000411: Observer method [BackedAnnotatedMethod] org.glassfish.sse.impl.ServerSentEventCdiExtension.processAnnotatedType(@Observes ProcessAnnotatedType<Object>, BeanManager) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
    2016-10-02T15:24:50.447+0100|WARN: WELD-000411: Observer method [BackedAnnotatedMethod] public org.glassfish.jms.injection.JMSCDIExtension.processAnnotatedType(@Observes ProcessAnnotatedType<Object>) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
    2016-10-02T15:24:50.448+0100|WARN: WELD-000411: Observer method [BackedAnnotatedMethod] org.glassfish.sse.impl.ServerSentEventCdiExtension.processAnnotatedType(@Observes ProcessAnnotatedType<Object>, BeanManager) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
    2016-10-02T15:24:50.448+0100|WARN: WELD-000411: Observer method [BackedAnnotatedMethod] org.glassfish.sse.impl.ServerSentEventCdiExtension.processAnnotatedType(@Observes ProcessAnnotatedType<Object>, BeanManager) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
    2016-10-02T15:24:50.450+0100|WARN: WELD-000411: Observer method [BackedAnnotatedMethod] public org.glassfish.jms.injection.JMSCDIExtension.processAnnotatedType(@Observes ProcessAnnotatedType<Object>) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
    2016-10-02T15:24:50.451+0100|WARN: WELD-000411: Observer method [BackedAnnotatedMethod] public org.glassfish.jms.injection.JMSCDIExtension.processAnnotatedType(@Observes ProcessAnnotatedType<Object>) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
    2016-10-02T15:24:51.764+0100|Info: Loading application [pododdle] at [/pododdle]
    2016-10-02T15:24:51.766+0100|Info: Loading application pododdle done in 3,949 ms
    2016-10-02T15:24:51.766+0100|Info: GlassFish Server Open Source Edition  4.1.1  (1) startup time : Felix (1,264ms), startup services(4,275ms), total(5,539ms)
    2016-10-02T15:24:51.821+0100|Info: Grizzly Framework 2.3.23 started in: 2ms - bound to [/0.0.0.0:7676]
    2016-10-02T15:24:52.061+0100|Info: Registered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishImpl@7bbbb6a8 as OSGi service registration: org.apache.felix.framework.ServiceRegistrationImpl@b18c4.
    2016-10-02T15:24:52.082+0100|Info: JMXStartupService has started JMXConnector on JMXService URL service:jmx:rmi://PododdlePC:8686/jndi/rmi://PododdlePC:8686/jmxrmi
    

    解决方案

    It looks like this error was caused by the project not building properly. Upon inspection of the buildpath, it seemed two jar files were mysteriously missing! They were:

    jersey-media-multipart-2.21.1.jar
    mimepull-1.9.3.jar
    

    I have no idea how the jar files were deleted from the /lib directory of the glassfish server, maybe I shouldn't have drunk that extra bottle of whiskey. Once they were added back in, everything suddenly worked hunky dory. A little baffled by the error - i would have thought it would give a compile error if the jar wasn't available. Anyhow, 5 days lost due to another annoying error.

    这篇关于JAX-RS Rest服务停止在Eclipse Glassfish上部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆