尝试使用Eclipse启动Glassfish服务器时,org.apache.catalina.LifecycleException [英] org.apache.catalina.LifecycleException when trying to start Glassfish server with Eclipse

查看:1613
本文介绍了尝试使用Eclipse启动Glassfish服务器时,org.apache.catalina.LifecycleException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用GLASSFISH网络服务器在Eclipse上开发的MAVEN jersey-quickstart-webapp,我一直在忙于使用angularjs前端构建REST应用程序。今天当我开始对项目进行一些开发时,当我试图在eclipse中启动服务器并部署webapp时,我在eclipse错误窗口中显示以下错误消息:

 无法部署pododdle 
部署失败=部署期间发生错误:加载应用程序时异常:
java.lang.IllegalStateException:ContainerBase.addChild:start :
org.apache.catalina.LifecycleException:
org.apache.catalina.LifecycleException:
java.lang.ClassNotFoundException:com.pododdle.dao.CategoryListService。
有关详细信息,请参阅server.log。应该注意的是,我并没有意外地改变了Eclipse或Glassfish的JRE / JDK。
server.log显示此错误(每次启动重复3/4次):

  ContainerBase。 addChild:start:
org.apache.catalina.LifecycleException:org.apache.catalina.LifecycleException:java.lang.ClassNotFoundException:com.pododdle.dao.CategoryListService
在org.apache.catalina.core。 StandardContext.start(StandardContext.java:5985)
在com.sun.enterprise.web.WebModule.start(WebModule.java:691)
在org.apache.catalina.core.ContainerBase.addChildInternal( ContainerBase.java:1041)
在org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:1024)
在org.apache.catalina.core.StandardHost.addChild(StandardHost.java: 747)
在com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2286)
在com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1932)
at com.sun.enterprise.web.WebApplication.start(WebApplication.java:139)
在org.glassfish.internal.data.EngineRef.start(EngineRef.java :122)
在org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:291)
在org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:352)
在com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:500)
在com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219)
在org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491)
在com.sun.enterprise.v3.admin.CommandRunnerImpl $ 2 $ 1.run(CommandRunnerImpl.java:539)
在com.sun.enterprise.v3.admin.CommandRunnerImpl $ 2 $ 1.run(CommandRunnerImpl.java:535)
在java.security.AccessController.doPrivileged(本机方法)
在javax.security .auth.Subject.doAs(Subject.java:360)
在com.sun.enterprise.v3.admin.CommandRunnerImpl $ 2.execute(CommandRunnerImpl.java:534)
在com.sun.enterprise。 VC3.rar Impl.java:557)
在java.security.AccessController.doPrivileged(本机方法)
在javax.security.auth.Subject.doAs(Subject.java:360)
在com。 com.un.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1464)
在com。 sun.enterprise.v3.admin.CommandRunnerImpl.access $ 1300(CommandRunnerImpl.java:109)
在com.sun.enterprise.v3.admin.CommandRunnerImpl $ ExecutionContext.execute(CommandRunnerImpl.java:1846)
在com.sun.enterprise.v3.admin.CommandRunnerImpl $ ExecutionContext.execute(CommandRunnerImpl.java:1722)
在org.glassfish.deployment.admin.ReDeployCommand.execute(ReDeployCommand.java:131)
在com.sun.enterprise.v3.admin.CommandRunnerImpl $ 2 $ 1.run(CommandRunnerImpl.java:539)
在com.sun.enterprise.v3.admin.CommandRunnerImpl $ 2 $ 1.run(CommandRunnerImpl.java:535)
在java.security.AccessController.doPrivileged(Native方法)
在javax.security.auth。 Subject.doAs(Subject.java:360)
at com.sun.enterprise.v3.admin.CommandRunnerImpl $ 2.execute(CommandRunnerImpl.java:534)
at com.sun.enterprise.v3.admin .CommandRunnerImpl $ 3.run(CommandRunnerImpl.java:565)
在com.sun.enterprise.v3.admin.CommandRunnerImpl $ 3.run(CommandRunnerImpl.java:557)
在java.security.AccessController.doPrivileged (Native Method)
在javax.security.auth.Subject.doAs(Subject.java:360)
在com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:556)
在com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1464)
在com.sun.enterprise.v3.admin.CommandRunnerImpl.access $ 1300(CommandRunnerImpl.java:109 )
在com.sun.enterprise.v3.admin.CommandRunnerImpl $ ExecutionContext.execute(CommandRunnerImpl.java:1846)
在com.sun.enterprise.v3.admin.CommandRunnerImpl $ ExecutionContext.execute(CommandRunnerImpl .java:1722)
在com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:534 )
在com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource(AdminAdapter.java:224)
在org.glassfish.grizzly.http.server.StaticHttpHandlerBase.service(StaticHttpHandlerBase.java:189 )
在com.sun.enterprise.v3.services.impl.ContainerMapper $ HttpHandlerCallable.call(ContainerMapper.java:459)
在com.sun.enterprise.v3.services.impl.ContainerMapper.service (ContainerMapper.java:167)
在org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:206)
在org.glassfish.grizzly.http.server.HttpHandler.doHandle (HttpHandler.java:180)
在org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:235)
在org.glassfish.grizzly.filterchain.ExecutorResolver $ 9.execute( ExecutorResolver.java:119)
在org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:283)
在org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java: 200)
在org.glassfish.g rixtly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:132)
在org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:111)
在org.glassfish.grizzly.ProcessorExecutor。执行(ProcessorExecutor.java:77)
在org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:536)
在org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent( AbstractIOStrategy.java:112)
在org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117)
在org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access $ 100(WorkerThreadIOStrategy.java :56)
在org.glassfish.grizzly.strategies.WorkerThreadIOStrategy $ WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137)
在org.glassfish.grizzly.threadpool.AbstractThreadPool $ Worker.doWork(AbstractThreadPool.java :591)
在org.glassfish.grizzly.threadpool.AbstractThreadPool $ Worker.run(AbstractThreadPool.java:571)
在jav a.lang.Thread.run(Thread.java:745)
导致:org.apache.catalina.LifecycleException:java.lang.ClassNotFoundException:com.pododdle.dao.CategoryListService
在org.apache .catalina.core.StandardContext.loadOnStartup(StandardContext.java:5740)
在org.apache.catalina.core.StandardContext.start(StandardContext.java:5977)
... 64更多
引起的:java.lang.ClassNotFoundException:com.pododdle.dao.CategoryListService
在org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1783)
在org.glassfish.web .loader.WebappClassLoader.loadClass(WebappClassLoader.java:1633)
在java.lang.Class.getDeclaredFields0(本机方法)
在java.lang.Class.privateGetDeclaredFields(Class.java:2583)
在java.lang.Class.getDeclaredFields(Class.java:1916)
在org.glassfish.jersey.internal.util.ReflectionHelper $ 4.run(ReflectionHelper.java:311)
在org。 glassfish.jersey.internal.util.ReflectionHelper $ 4.run(ReflectionHelper.java:308)
在java。 security.AccessController.doPrivileged(Native Method)
在org.glassfish.jersey.server.model.IntrospectionModeller.checkResourceClassFields(IntrospectionModeller.java:223)
在org.glassfish.jersey.server.model.IntrospectionModeller .doCreateResourceBuilder(IntrospectionModeller.java:139)
在org.glassfish.jersey.server.model.IntrospectionModeller.access $ 000(IntrospectionModeller.java:80)
在org.glassfish.jersey.server.model。 IntrospectionModeller $ 1.call(IntrospectionModeller.java:112)
在org.glassfish.jersey.server.model.IntrospectionModeller $ 1.call(IntrospectionModeller.java:109)
在org.glassfish.jersey.internal。 Errors.process(Errors.java:315)
在org.glassfish.jersey.internal.Errors.process(Errors.java:297)
在org.glassfish.jersey.internal.Errors.processWithException( Errors.java:255)
在org.glassfish.jersey.server.model.IntrospectionModeller.createResourceBuilder(IntrospectionModeller.java:109)
在org.glassfish.jersey.server.model.Resource.f rom(Resource.java:792)
在org.glassfish.jersey.server.ApplicationHandler.initialize(ApplicationHandler.java:463)
在org.glassfish.jersey.server.ApplicationHandler.access $ 500(ApplicationHandler .java:182)
在org.glassfish.jersey.server.ApplicationHandler $ 3.call(ApplicationHandler.java:348)
在org.glassfish.jersey.server.ApplicationHandler $ 3.call(ApplicationHandler.java :345)
在org.glassfish.jersey.internal.Errors.process(Errors.java:315)
在org.glassfish.jersey.internal.Errors.process(Errors.java:297)
在org.glassfish.jersey.internal.Errors.processWithException(Errors.java:255)
在org.glassfish.jersey.server.ApplicationHandler。< init>(ApplicationHandler.java:345)
at org.glassfish.jersey.servlet.WebComponent。< init>(WebComponent.java:390)
在org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:170)
在org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:362)
在javax.servlet.Gener icServlet.init(GenericServlet.java:244)
在org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1583)
在org.apache.catalina.core.StandardWrapper.load( StandardWrapper.java:1382)
在org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5732)
... 65更多

我在Tomcat上看到有关这个错误的类似问题: org.apache.catalina.LifecycleException:无法启动组件[StandardEngine [Catalina] .StandardHost [localhost] .StandardContext [/ CollegeWebsite]]



根据这个问题,它表示这可能是由Eclipse和Tomcat使用不同的JRE引起的。我在Eclipse中运行以下JRE:

  jdk1.8.0_73 
pre>

问题是关于Tomcat,所以我试图在我的Glassfish服务器上设置JAVA_HOME,将以下行添加到我的glassfish服务器的ansev.bat中:

  set AS_JAVA = C:\Program Files\Java\jdk1.8.0_73 

这个答案是建议的:如何为glassfish域指定jdk?



但是我不知道这个是我正在寻找



这还没有解决问题 - 它仍然给出相同的错误。有谁知道会出什么问题吗?为什么会突然停止工作,我正确地设置了GLASSFISH的JRE?如何查看GLASSFISH安装所使用的JRE的版本?



所有的帮助非常感谢....



编辑1:
根据评论部分的Mike认为我正在树上错误的树 - 因为它是被抛出的ClassNotFoundException,它看起来正在建立不正确。以下是出现错误之前出现在控制台中的服务器启动日志:

  2016-10-17T09:13:50.769+ 0100 |信息:运行GlassFish版本:GlassFish Server开源版4.1.1(构建1)
2016-10-17T09:13:50.770 + 0100 |信息:服务器日志文件正在使用Formatter类:com.sun。 enterprise.server.logging.ODLLogFormatter
2016-10-17T09:13:50.861 + 0100 |信息:classtype的Realm [admin-realm] [com.sun.enterprise.security.auth.realm.file.FileRealm]成功创建
2016-10-17T09:13:50.863 + 0100 |信息:成功创建classtype [com.sun.enterprise.security.auth.realm.file.FileRealm]的Realm [文件]。
2016-10-17T09:13:50.865 + 0100 |信息:成功创建了classtype [com.sun.enterprise.security.auth.realm.certificate.CertificateRealm]的领域[证书]。
2016-10-17T09:13:50.964 + 0100 |信息:授权服务已成功初始化。
2016-10-17T09:13:51.008 + 0100 |信息:注册org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for persistence-type =在BackingStoreFactoryRegistry中复制
2016-10-17T09: 13:51.155 + 0100 |警告:无法初始化实例。 Class = interface org.glassfish.grizzly.http.server.AddOn,name = http-listener-1,realClassName = org.glassfish.grizzly.http2.Http2AddOn
2016-10-17T09:13:51.230 + 0100 |信息:Grizzly Framework 2.3.23开始于:54ms - 绑定到[/0.0.0.0:8080]
2016-10-17T09:13:51.242 + 0100 |警告:无法初始化实例。 Class = interface org.glassfish.grizzly.http.server.AddOn,name = http-listener-2,realClassName = org.glassfish.grizzly.http2.Http2AddOn
2016-10-17T09:13:51.245 + 0100 |信息:Grizzly Framework 2.3.23开始于:1ms - 绑定到[/0.0.0.0:8181]
2016-10-17T09:13:51.247 + 0100 |警告:无法初始化实例。 Class = interface org.glassfish.grizzly.http.server.AddOn,name = admin-listener,realClassName = org.glassfish.grizzly.http2.Http2AddOn
2016-10-17T09:13:51.251 + 0100 |信息: Grizzly Framework 2.3.23开始于:1ms - 绑定到[/0.0.0.0:4848]
2016-10-17T09:13:51.279 + 0100 |信息:灰熊框架2.3.23开始于:1ms - [/0.0.0.0:3700]
2016-10-17T09:13:51.280 + 0100 |信息:GlassFish Server开源版4.1.1(1)启动时间:Felix(1,326ms),启动服务(616ms ),total(1,942ms)
2016-10-17T09:13:51.343 + 0100 |信息:JTS5014:可恢复的JTS实例,serverId = [100]
2016-10-17T09:13:51.403+ 0100 |信息:Grizzly Framework 2.3.23开始于:2ms - 绑定到[/0.0.0.0:7676]
2016-10-17T09:13:51.404 + 0100 |信息:注册com.sun.enterprise.glassfish .bootstrap.osgi.EmbeddedOSGiGlassFishImpl @ 27d57a2c作为OSGi服务注册:org.apache.felix.framework.ServiceRegistrationImpl@597f48df。
2016-10-17T09:13:51.418 + 0100 |信息:JMXStartupService已启动JMXService URL服务上的JMXConnector:jmx:rmi:// PododdlePC:8686 / jndi / rmi:// PododdlePC:8686 / jmxrmi
2016-10-17T09:13:53.709 + 0100 |信息:HV000001:休眠验证器5.1.2.Final
2016-10-17T09:13:55.620 + 0100 |信息:访问未访问的参考
2016-10-17T09:13:57.095 + 0100 |信息:Java安全管理器已禁用。
2016-10-17T09:13:57.096 + 0100 |信息:进入安全启动服务。
2016-10-17T09:13:57.101 + 0100 |信息:加载策略提供程序com.sun.enterprise.security.provider.PolicyWrapper。
2016-10-17T09:13:57.187 + 0100 |信息:安全服务成功启动。
2016-10-17T09:13:57.632 + 0100 |信息:在主机/端口上创建HTTP侦听器http-listener-1 0.0.0.0:8080
2016-10-17T09:13:57.637 + 0100 | Info:在主机/端口上创建HTTP监听器http-listener-2 0.0.0.0:8181
2016-10-17T09:13:57.638 + 0100 |信息:在主机/端口0.0上创建HTTP监听器管理监听器。 0.0:4848
2016-10-17T09:13:57.665 + 0100 |信息:创建虚拟服务器服务器
2016-10-17T09:13:57.667 + 0100 |信息:创建虚拟服务器__asadmin
2016-10-17T09:13:57.937 + 0100 |信息:设置JAAS应用程序名称glassfish-web
2016-10-17T09:13:57.938 + 0100 |信息:虚拟服务器服务器加载默认Web模块
2016-10-17T09:13:59.082 + 0100 |信息:参观未参考参考
2016-10-17T09:13:59.180 + 0100 |信息:访问未参考参考
2016-10-17T09:13 :59.181 + 0100 |信息:参观未参考参考
2016-10-17T09:13:59.182 + 0100 |信息:访问未参考参考
2016-10-17T09:13:59.182 + 0100 |信息:访问参考文献
2016-10-17T09:13:59.183 + 01 00 |信息:访问未参考参考
2016-10-17T09:13:59.184 + 0100 |信息:访问未参考参考
2016-10-17T09:13:59.184 + 0100 |信息:访问未访问的参考
2016-10-17T09:13:59.185 + 0100 |信息:参观未参考参考
2016-10-17T09:13:59.185 + 0100 |信息:访问未参考参考
2016-10-17T09 :13:59.186 + 0100 |信息:访问未参考参考
2016-10-17T09:13:59.217 + 0100 |信息:访问未参考参考
2016-10-17T09:13:59.218 + 0100 |信息:访问未参考参考
2016-10-17T09:13:59.218 + 0100 |信息:访问未参考参考
2016-10-17T09:13:59.219 + 0100 |信息:访问未访问的参考
2016-10-17T09:13:59.219 + 0100 |信息:参观未参考参考
2016-10-17T09:13:59.220 + 0100 |信息:访问未参考参考
2016-10-17T09:13: 59.221 + 0100 |信息:参观未参考参考
2016-10-17T09:13:59.221 + 0100 |信息:访问未参考参考
2016-10-17T09:13:59.222 + 0100 |信息:访问un参观参考
2016-10-17T09:13:59.584 + 0100 |信息:WELD-000900:2.2.13(最终)
2016-10-17T09:14:00.712 + 0100 | WARN:WELD- 001700:拦截器注释类没有找到javax.ejb.PostActivate,没有启用截取基于它的拦截
2016-10-17T09:14:00.712 + 0100 | WARN:WELD-001700:拦截器注释类javax.ejb.PrePassivate没有找到,基于它的拦截是不可用的
2016-10-17T09:14:00.986 + 0100 | WARN:WELD-000411:Observer方法[BackedAnnotatedMethod] org.glassfish.sse.impl.ServerSentEventCdiExtension.processAnnotatedType(@观察ProcessAnnotatedType< Object>,BeanManager)接收所有注释类型的事件。考虑使用@WithAnnotations或具有边界的泛型类型限制事件。
2016-10-17T09:14:00.994 + 0100 | WARN:WELD-000411:观察者方法[BackedAnnotatedMethod] public org.glassfish.jms.injection.JMSCDIExtension.processAnnotatedType(@Observes ProcessAnnotatedType< Object>)接收事件所有注释类型。考虑使用@WithAnnotations或具有边界的泛型类型限制事件。
2016-10-17T09:14:00.999 + 0100 | WARN:WELD-000411:观察者方法[BackedAnnotatedMethod] private org.glassfish.jersey.ext.cdi1x.internal.CdiComponentProvider.processAnnotatedType(@Observes ProcessAnnotatedType< Object> )接收所有注释类型的事件。考虑使用@WithAnnotations或具有边界的泛型类型限制事件。
2016-10-17T09:14:01.004 + 0100 | WARN:WELD-000411:观察者方法[BackedAnnotatedMethod] org.glassfish.sse.impl.ServerSentEventCdiExtension.processAnnotatedType(@Observes ProcessAnnotatedType< Object>,BeanManager)接收事件对于所有注释类型。考虑使用@WithAnnotations或具有边界的泛型类型限制事件。
2016-10-17T09:14:01.007 + 0100 | WARN:WELD-000411:观察者方法[BackedAnnotatedMethod] public org.glassfish.jms.injection.JMSCDIExtension.processAnnotatedType(@Observes ProcessAnnotatedType< Object>)接收事件所有注释类型。考虑使用@WithAnnotations或具有边界的泛型类型限制事件。
2016-10-17T09:14:01.008 + 0100 | WARN:WELD-000411:观察者方法[BackedAnnotatedMethod] private org.glassfish.jersey.ext.cdi1x.internal.CdiComponentProvider.processAnnotatedType(@Observes ProcessAnnotatedType< Object> )接收所有注释类型的事件。考虑使用@WithAnnotations或具有边界的泛型类型限制事件。
2016-10-17T09:14:01.009 + 0100 | WARN:WELD-000411:观察者方法[BackedAnnotatedMethod] public org.glassfish.jms.injection.JMSCDIExtension.processAnnotatedType(@Observes ProcessAnnotatedType< Object>)接收事件所有注释类型。考虑使用@WithAnnotations或具有边界的泛型类型限制事件。
2016-10-17T09:14:01.011 + 0100 | WARN:WELD-000411:观察者方法[BackedAnnotatedMethod] org.glassfish.sse.impl.ServerSentEventCdiExtension.processAnnotatedType(@Observes ProcessAnnotatedType< Object>,BeanManager)接收事件对于所有注释类型。考虑使用@WithAnnotations或具有边界的泛型类型限制事件。
2016-10-17T09:14:01.015 + 0100 | WARN:WELD-000411:观察者方法[BackedAnnotatedMethod] public org.glassfish.jms.injection.JMSCDIExtension.processAnnotatedType(@Observes ProcessAnnotatedType< Object>)接收事件所有注释类型。考虑使用@WithAnnotations或具有边界的泛型类型限制事件。
2016-10-17T09:14:01.017 + 0100 | WARN:WELD-000411:Observer方法[BackedAnnotatedMethod] public org.glassfish.jms.injection.JMSCDIExtension.processAnnotatedType(@Observes ProcessAnnotatedType< Object>)接收事件所有注释类型。考虑使用@WithAnnotations或具有边界的泛型类型限制事件。
2016-10-17T09:14:01.017 + 0100 | WARN:WELD-000411:观察者方法[BackedAnnotatedMethod] org.glassfish.sse.impl.ServerSentEventCdiExtension.processAnnotatedType(@Observes ProcessAnnotatedType< Object>,BeanManager)接收事件对于所有注释类型。考虑使用@WithAnnotations或具有边界的泛型类型限制事件。
2016-10-17T09:14:01.044 + 0100 | WARN:WELD-000411:Observer方法[BackedAnnotatedMethod] private org.glassfish.jersey.ext.cdi1x.internal.CdiComponentProvider.processAnnotatedType(@Observes ProcessAnnotatedType< Object> )接收所有注释类型的事件。考虑使用@WithAnnotations或具有边界的泛型类型限制事件。
2016-10-17T09:14:01.044 + 0100 | WARN:WELD-000411:观察者方法[BackedAnnotatedMethod] public org.glassfish.jms.injection.JMSCDIExtension.processAnnotatedType(@Observes ProcessAnnotatedType< Object>)接收事件所有注释类型。考虑使用@WithAnnotations或具有边界的泛型类型限制事件。
2016-10-17T09:14:01.046 + 0100 | WARN:WELD-000411:观察者方法[BackedAnnotatedMethod] org.glassfish.sse.impl.ServerSentEventCdiExtension.processAnnotatedType(@Observes ProcessAnnotatedType< Object>,BeanManager)接收事件对于所有注释类型。考虑使用@WithAnnotations或具有边界的泛型类型限制事件。
2016-10-17T09:14:01.048 + 0100 | WARN:WELD-000411:Observer方法[BackedAnnotatedMethod] private org.glassfish.jersey.ext.cdi1x.internal.CdiComponentProvider.processAnnotatedType(@Observes ProcessAnnotatedType< Object> )接收所有注释类型的事件。考虑使用@WithAnnotations或具有边界的泛型类型限制事件。
2016-10-17T09:14:01.050 + 0100 | WARN:WELD-000411:观察者方法[BackedAnnotatedMethod] org.glassfish.sse.impl.ServerSentEventCdiExtension.processAnnotatedType(@Observes ProcessAnnotatedType< Object>,BeanManager)接收事件对于所有注释类型。考虑使用@WithAnnotations或具有边界的泛型类型限制事件。
2016-10-17T09:14:01.052 + 0100 | WARN:WELD-000411:观察者方法[BackedAnnotatedMethod] public org.glassfish.jms.injection.JMSCDIExtension.processAnnotatedType(@Observes ProcessAnnotatedType< Object>)接收事件所有注释类型。考虑使用@WithAnnotations或具有边界的泛型类型限制事件。
2016-10-17T09:14:01.054 + 0100 | WARN:WELD-000411:观察者方法[BackedAnnotatedMethod] private org.glassfish.jersey.ext.cdi1x.internal.CdiComponentProvider.processAnnotatedType(@Observes ProcessAnnotatedType< Object> )接收所有注释类型的事件。考虑使用@WithAnnotations或具有边界的泛型类型限制事件。
2016-10-17T09:14:01.054 + 0100 | WARN:WELD-000411:观察者方法[BackedAnnotatedMethod] org.glassfish.sse.impl.ServerSentEventCdiExtension.processAnnotatedType(@Observes ProcessAnnotatedType< Object>,BeanManager)接收事件对于所有注释类型。考虑使用@WithAnnotations或具有边界的泛型类型限制事件。
2016-10-17T09:14:01.055 + 0100 | WARN:WELD-000411:观察者方法[BackedAnnotatedMethod] public org.glassfish.jms.injection.JMSCDIExtension.processAnnotatedType(@Observes ProcessAnnotatedType< Object>)接收事件所有注释类型。考虑使用@WithAnnotations或具有边界的泛型类型限制事件。
2016-10-17T09:14:01.057 + 0100 | WARN:WELD-000411:观察者方法[BackedAnnotatedMethod] private org.glassfish.jersey.ext.cdi1x.internal.CdiComponentProvider.processAnnotatedType(@Observes ProcessAnnotatedType< Object> )接收所有注释类型的事件。考虑使用@WithAnnotations或具有边界的泛型类型限制事件。
2016-10-17T09:14:01.058 + 0100 | WARN:WELD-000411:观察者方法[BackedAnnotatedMethod] private org.glassfish.jersey.ext.cdi1x.internal.CdiComponentProvider.processAnnotatedType(@Observes ProcessAnnotatedType< Object> )接收所有注释类型的事件。考虑使用@WithAnnotations或具有边界的泛型类型限制事件。
2016-10-17T09:14:01.059 + 0100 | WARN:WELD-000411:观察者方法[BackedAnnotatedMethod] org.glassfish.sse.impl.ServerSentEventCdiExtension.processAnnotatedType(@Observes ProcessAnnotatedType< Object>,BeanManager)接收事件对于所有注释类型。考虑使用@WithAnnotations或具有边界的泛型类型限制事件。
2016-10-17T09:14:01.060 + 0100 | WARN:WELD-000411:观察者方法[BackedAnnotatedMethod] private org.glassfish.jersey.ext.cdi1x.internal.CdiComponentProvider.processAnnotatedType(@Observes ProcessAnnotatedType< Object> )接收所有注释类型的事件。考虑使用@WithAnnotations或具有边界的泛型类型限制事件。
2016-10-17T09:14:03.606 + 0100 |严重:WebModule [/ pododdle] StandardWrapper.Throwable

将这个日志指向任何明显的东西?

解决方案

根据Mike在提出的意见中可能会有由于这个原因,这个项目是如此的错误:

 导致:java.lang.ClassNotFoundException:com。 pododdle.dao.CategoryListService 

我查了一下,他是对的!我在我的路上有两个jar文件是神秘地失踪!他们是:

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

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


I have been busy building a REST application with angularjs frontend, using a MAVEN jersey-quickstart-webapp, developed on Eclipse using the GLASSFISH webserver. Today when I started to do some development on the project, when I tried to start the server in eclipse and deploy the webapp, I got the following error message displayed in the eclipse error window:

cannot Deploy pododdle
deploy is failing=Error occurred during deployment: Exception while loading the app :
    java.lang.IllegalStateException: ContainerBase.addChild: start: 
    org.apache.catalina.LifecycleException:
    org.apache.catalina.LifecycleException:
    java.lang.ClassNotFoundException: com.pododdle.dao.CategoryListService.
Please see server.log for more details.

It should be noted that I have not knowingly changed the JRE/JDK of Eclipse or Glassfish. The server.log shows this error (it is repeated 3/4 times for each launch):

ContainerBase.addChild: start: 
org.apache.catalina.LifecycleException: org.apache.catalina.LifecycleException: java.lang.ClassNotFoundException: com.pododdle.dao.CategoryListService
at org.apache.catalina.core.StandardContext.start(StandardContext.java:5985)
at com.sun.enterprise.web.WebModule.start(WebModule.java:691)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:1041)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:1024)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:747)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2286)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1932)
at com.sun.enterprise.web.WebApplication.start(WebApplication.java:139)
at org.glassfish.internal.data.EngineRef.start(EngineRef.java:122)
at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:291)
at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:352)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:500)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219)
at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:539)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:535)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:360)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:534)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:565)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:557)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:360)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:556)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1464)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1300(CommandRunnerImpl.java:109)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1846)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1722)
at org.glassfish.deployment.admin.ReDeployCommand.execute(ReDeployCommand.java:131)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:539)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:535)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:360)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:534)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:565)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:557)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:360)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:556)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1464)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1300(CommandRunnerImpl.java:109)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1846)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1722)
at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:534)
at com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource(AdminAdapter.java:224)
at org.glassfish.grizzly.http.server.StaticHttpHandlerBase.service(StaticHttpHandlerBase.java:189)
at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:459)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:167)
at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:206)
at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:180)
at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:235)
at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:283)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:200)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:132)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:111)
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:536)
at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:591)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:571)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.catalina.LifecycleException: java.lang.ClassNotFoundException: com.pododdle.dao.CategoryListService
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5740)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:5977)
... 64 more
Caused by: java.lang.ClassNotFoundException: com.pododdle.dao.CategoryListService
at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1783)
at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1633)
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.java:2583)
at java.lang.Class.getDeclaredFields(Class.java:1916)
at org.glassfish.jersey.internal.util.ReflectionHelper$4.run(ReflectionHelper.java:311)
at org.glassfish.jersey.internal.util.ReflectionHelper$4.run(ReflectionHelper.java:308)
at java.security.AccessController.doPrivileged(Native Method)
at org.glassfish.jersey.server.model.IntrospectionModeller.checkResourceClassFields(IntrospectionModeller.java:223)
at org.glassfish.jersey.server.model.IntrospectionModeller.doCreateResourceBuilder(IntrospectionModeller.java:139)
at org.glassfish.jersey.server.model.IntrospectionModeller.access$000(IntrospectionModeller.java:80)
at org.glassfish.jersey.server.model.IntrospectionModeller$1.call(IntrospectionModeller.java:112)
at org.glassfish.jersey.server.model.IntrospectionModeller$1.call(IntrospectionModeller.java:109)
at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
at org.glassfish.jersey.internal.Errors.processWithException(Errors.java:255)
at org.glassfish.jersey.server.model.IntrospectionModeller.createResourceBuilder(IntrospectionModeller.java:109)
at org.glassfish.jersey.server.model.Resource.from(Resource.java:792)
at org.glassfish.jersey.server.ApplicationHandler.initialize(ApplicationHandler.java:463)
at org.glassfish.jersey.server.ApplicationHandler.access$500(ApplicationHandler.java:182)
at org.glassfish.jersey.server.ApplicationHandler$3.call(ApplicationHandler.java:348)
at org.glassfish.jersey.server.ApplicationHandler$3.call(ApplicationHandler.java:345)
at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
at org.glassfish.jersey.internal.Errors.processWithException(Errors.java:255)
at org.glassfish.jersey.server.ApplicationHandler.<init>(ApplicationHandler.java:345)
at org.glassfish.jersey.servlet.WebComponent.<init>(WebComponent.java:390)
at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:170)
at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:362)
at javax.servlet.GenericServlet.init(GenericServlet.java:244)
at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1583)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1382)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5732)
... 65 more

I have seen a similar question about this error on Tomcat here: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/CollegeWebsite]]

As per this question, it says this can be caused by Eclipse and Tomcat using different JRE's. I have the following JRE running in Eclipse:

jdk1.8.0_73

The question is about Tomcat, so I tried to set JAVA_HOME on my Glassfish server by adding the following line to the ansev.bat for my glassfish server:

set AS_JAVA=C:\Program Files\Java\jdk1.8.0_73

This was suggested by this answer: How do I specify the jdk for a glassfish domain?

However I am not sure if this is what I am looking for

This has not fixed the problem - it still gives the same error. Does anybody know what might be going wrong? Why would it suddenly stop working, and have I set the JRE for GLASSFISH correctly? How do I check what version of the JRE the GLASSFISH installation is using?

All help much appreciated....

EDIT 1: As per Mike in the comments section reckons I am barking up the wrong tree - because it is a ClassNotFoundException that is being thrown, it looks like it is building incorrectly. Here is the server startup logging that appears in the console prior to the error:

2016-10-17T09:13:50.769+0100|Info: Running GlassFish Version: GlassFish Server Open Source Edition  4.1.1  (build 1)
2016-10-17T09:13:50.770+0100|Info: Server log file is using Formatter class: com.sun.enterprise.server.logging.ODLLogFormatter
2016-10-17T09:13:50.861+0100|Info: Realm [admin-realm] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.
2016-10-17T09:13:50.863+0100|Info: Realm [file] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.
2016-10-17T09:13:50.865+0100|Info: Realm [certificate] of classtype [com.sun.enterprise.security.auth.realm.certificate.CertificateRealm] successfully created.
2016-10-17T09:13:50.964+0100|Info: Authorization Service has successfully initialized.
2016-10-17T09:13:51.008+0100|Info: Registered org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for persistence-type = replicated in BackingStoreFactoryRegistry
2016-10-17T09:13:51.155+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-17T09:13:51.230+0100|Info: Grizzly Framework 2.3.23 started in: 54ms - bound to [/0.0.0.0:8080]
2016-10-17T09:13:51.242+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-17T09:13:51.245+0100|Info: Grizzly Framework 2.3.23 started in: 1ms - bound to [/0.0.0.0:8181]
2016-10-17T09:13:51.247+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-17T09:13:51.251+0100|Info: Grizzly Framework 2.3.23 started in: 1ms - bound to [/0.0.0.0:4848]
2016-10-17T09:13:51.279+0100|Info: Grizzly Framework 2.3.23 started in: 1ms - bound to [/0.0.0.0:3700]
2016-10-17T09:13:51.280+0100|Info: GlassFish Server Open Source Edition  4.1.1  (1) startup time : Felix (1,326ms), startup services(616ms), total(1,942ms)
2016-10-17T09:13:51.343+0100|Info: JTS5014: Recoverable JTS instance, serverId = [100]
2016-10-17T09:13:51.403+0100|Info: Grizzly Framework 2.3.23 started in: 2ms - bound to [/0.0.0.0:7676]
2016-10-17T09:13:51.404+0100|Info: Registered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishImpl@27d57a2c as OSGi service registration: org.apache.felix.framework.ServiceRegistrationImpl@597f48df.
2016-10-17T09:13:51.418+0100|Info: JMXStartupService has started JMXConnector on JMXService URL service:jmx:rmi://PododdlePC:8686/jndi/rmi://PododdlePC:8686/jmxrmi
2016-10-17T09:13:53.709+0100|Info: HV000001: Hibernate Validator 5.1.2.Final
2016-10-17T09:13:55.620+0100|Info: visiting unvisited references
2016-10-17T09:13:57.095+0100|Info: Java security manager is disabled.
2016-10-17T09:13:57.096+0100|Info: Entering Security Startup Service.
2016-10-17T09:13:57.101+0100|Info: Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper.
2016-10-17T09:13:57.187+0100|Info: Security Service(s) started successfully.
2016-10-17T09:13:57.632+0100|Info: Created HTTP listener http-listener-1 on host/port 0.0.0.0:8080
2016-10-17T09:13:57.637+0100|Info: Created HTTP listener http-listener-2 on host/port 0.0.0.0:8181
2016-10-17T09:13:57.638+0100|Info: Created HTTP listener admin-listener on host/port 0.0.0.0:4848
2016-10-17T09:13:57.665+0100|Info: Created virtual server server
2016-10-17T09:13:57.667+0100|Info: Created virtual server __asadmin
2016-10-17T09:13:57.937+0100|Info: Setting JAAS app name glassfish-web
2016-10-17T09:13:57.938+0100|Info: Virtual server server loaded default web module 
2016-10-17T09:13:59.082+0100|Info: visiting unvisited references
2016-10-17T09:13:59.180+0100|Info: visiting unvisited references
2016-10-17T09:13:59.181+0100|Info: visiting unvisited references
2016-10-17T09:13:59.182+0100|Info: visiting unvisited references
2016-10-17T09:13:59.182+0100|Info: visiting unvisited references
2016-10-17T09:13:59.183+0100|Info: visiting unvisited references
2016-10-17T09:13:59.184+0100|Info: visiting unvisited references
2016-10-17T09:13:59.184+0100|Info: visiting unvisited references
2016-10-17T09:13:59.185+0100|Info: visiting unvisited references
2016-10-17T09:13:59.185+0100|Info: visiting unvisited references
2016-10-17T09:13:59.186+0100|Info: visiting unvisited references
2016-10-17T09:13:59.217+0100|Info: visiting unvisited references
2016-10-17T09:13:59.218+0100|Info: visiting unvisited references
2016-10-17T09:13:59.218+0100|Info: visiting unvisited references
2016-10-17T09:13:59.219+0100|Info: visiting unvisited references
2016-10-17T09:13:59.219+0100|Info: visiting unvisited references
2016-10-17T09:13:59.220+0100|Info: visiting unvisited references
2016-10-17T09:13:59.221+0100|Info: visiting unvisited references
2016-10-17T09:13:59.221+0100|Info: visiting unvisited references
2016-10-17T09:13:59.222+0100|Info: visiting unvisited references
2016-10-17T09:13:59.584+0100|Info: WELD-000900: 2.2.13 (Final)
2016-10-17T09:14:00.712+0100|WARN: WELD-001700: Interceptor annotation class javax.ejb.PostActivate not found, interception based on it is not enabled
2016-10-17T09:14:00.712+0100|WARN: WELD-001700: Interceptor annotation class javax.ejb.PrePassivate not found, interception based on it is not enabled
2016-10-17T09:14:00.986+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-17T09:14:00.994+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-17T09:14:00.999+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-17T09:14:01.004+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-17T09:14:01.007+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-17T09:14:01.008+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-17T09:14:01.009+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-17T09:14:01.011+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-17T09:14:01.015+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-17T09:14:01.017+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-17T09:14:01.017+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-17T09:14:01.044+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-17T09:14:01.044+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-17T09:14:01.046+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-17T09:14:01.048+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-17T09:14:01.050+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-17T09:14:01.052+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-17T09:14:01.054+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-17T09:14:01.054+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-17T09:14:01.055+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-17T09:14:01.057+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-17T09:14:01.058+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-17T09:14:01.059+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-17T09:14:01.060+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-17T09:14:03.606+0100|Severe: WebModule[/pododdle]StandardWrapper.Throwable

Do this log point to anything obvious?

解决方案

As per Mike in the comments suggested, it was likely there was something wrong with how the project was being built, due to this:

Caused by: java.lang.ClassNotFoundException: com.pododdle.dao.CategoryListService

I looked into this, and he was right! Two jar files that I had on my builpath 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.

这篇关于尝试使用Eclipse启动Glassfish服务器时,org.apache.catalina.LifecycleException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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