[GLASSFISH-21477]  @PersistenceContext cannot inject into a CDI bean if this bean is inside EAR's lib Created: 03/Jan/16  Updated: 16/Feb/17

Status: In Progress
Project: glassfish
Component/s: cdi
Affects Version/s: 4.1.1
Fix Version/s: None

Type: Bug Priority: Major
Reporter: drupalspring Assignee: pranjal.sahay
Resolution: Unresolved Votes: 0
Labels: waiting_on_filer
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

This is the issue of GLASSFISH-19317 but it seems that it still happen.

Also create the same issue at https://github.com/payara/Payara/issues/587.



 Comments   
Comment by pranjal.sahay [ 02/Feb/17 ]

Hi,

I am unable to reproduce the above issue. I followed steps similar to those as described at https://github.com/payara/Payara/issues/587
Please provide a sample app where the issue is being seen.





[GLASSFISH-21417] Weld Exception is thrown during RENDER phase of JSF lifecycle in Glassfish 4.1. Created: 21/Aug/15  Updated: 08/Feb/17

Status: Open
Project: glassfish
Component/s: cdi, jsf
Affects Version/s: 4.1
Fix Version/s: None

Type: Bug Priority: Major
Reporter: timr99 Assignee: sumasri
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Ubuntu Linux 15.04/14.04
Java 8



 Description   

Weld Exception is thrown during RENDER phase of JSF lifecycle in Glassfish 4.1.

It used to be thrown during EXECUTE phase in Glassfish 3.1.2.

Here the two stacktraces from Glassfish 4.1:

Severe: Error Rendering View[/index.xhtml]
org.jboss.weld.context.NonexistentConversationException: WELD-000321: No conversation found to restore for id 10
at org.jboss.weld.context.AbstractConversationContext.initialize(AbstractConversationContext.java:259)
at org.jboss.weld.context.http.LazyHttpConversationContextImpl.initialize(LazyHttpConversationContextImpl.java:68)
at org.jboss.weld.context.http.LazyHttpConversationContextImpl.checkContextInitialized(LazyHttpConversationContextImpl.java:93)
at org.jboss.weld.context.AbstractContext.get(AbstractContext.java:74)
at org.jboss.weld.context.PassivatingContextWrapper$AbstractPassivatingContextWrapper.get(PassivatingContextWrapper.java:76)
at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:740)
at org.jboss.weld.el.AbstractWeldELResolver.lookup(AbstractWeldELResolver.java:107)
at org.jboss.weld.el.AbstractWeldELResolver.getValue(AbstractWeldELResolver.java:90)
at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:188)
at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:180)
at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:208)
at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:116)
at com.sun.el.parser.AstValue.getBase(AstValue.java:151)
at com.sun.el.parser.AstValue.getValue(AstValue.java:200)
at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:226)
at org.jboss.weld.el.WeldValueExpression.getValue(WeldValueExpression.java:50)
at com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:112)
at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:194)
at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:182)
at javax.faces.component.UIOutput.getValue(UIOutput.java:174)
at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(HtmlBasicInputRenderer.java:205)
at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:355)
at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:164)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:923)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1906)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1902)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1902)
at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:459)
at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:136)
at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:125)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:219)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:665)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1682)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:318)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:734)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:673)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:174)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:415)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:282)
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:201)
at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:175)
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:284)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112)
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:561)
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:565)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:545)
at java.lang.Thread.run(Thread.java:745)

Here the stacktrace from Glassfish 3.1.2.2

SEVERE: WELD-000321 No conversation found to restore for id 10
org.jboss.weld.context.NonexistentConversationException: WELD-000321 No conversation found to restore for id 10
at org.jboss.weld.context.AbstractConversationContext.activate(AbstractConversationContext.java:221)
at org.jboss.weld.jsf.WeldPhaseListener.activateConversations(WeldPhaseListener.java:108)
at org.jboss.weld.jsf.WeldPhaseListener.beforePhase(WeldPhaseListener.java:85)
at com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:228)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:99)
at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:116)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:603)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1550)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:281)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:331)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
at com.sun.enterprise.v3.services.impl.ContainerMapper$AdapterCallable.call(ContainerMapper.java:317)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
at java.lang.Thread.run(Thread.java:745)

The problem is that JSF is not able to follow the exception handler's navigation handler redirect in RENDER phase.

Find additional information here:

https://java.net/jira/browse/JAVASERVERFACES-3870



 Comments   
Comment by timr99 [ 21/Aug/15 ]

How can I attach a reproducer?

Comment by jjsnyder83 [ 25/Aug/15 ]

This appears to be a jsf bug not a cdi bug. Reassigning it to Ed.





[GLASSFISH-21644] Not able to deploy app with cdi validator support Created: 20/Dec/16  Updated: 01/Feb/17  Resolved: 01/Feb/17

Status: Resolved
Project: glassfish
Component/s: cdi
Affects Version/s: 4.1.1
Fix Version/s: 5.0

Type: Bug Priority: Critical
Reporter: ankur.kathuria Assignee: ankur.kathuria
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File cdi-typesafe-javaee-resource-injection-web.war    

 Description   

Not able to deploy the sample app(attached with issue) and following is error

org.glassfish.deployment.common.DeploymentException: CDI deployment failure:WELD-001408: Unsatisfied dependencies for type Validator with qualifiers @Default
at injection point [BackedAnnotatedField] @Inject test.servlet.SimpleJavaEEIntegrationTestServlet.validator
at test.servlet.SimpleJavaEEIntegrationTestServlet.validator(SimpleJavaEEIntegrationTestServlet.java:0)



 Comments   
Comment by ankur.kathuria [ 20/Dec/16 ]

On analyzing the test "javaee-integration-simple", found that bean-validator.jar is not present in GLASSFISH_HOME/modules which seems to contain api and implementation for Validator used in this test. On further investigation i observed that dependency bean-validator is removed from /nucleus/packager/nucleus-hk2/pom.xml and instead validation-api and hibernate-validatoris added.

Also, ran the devtests(having deployment test) with reversion 64290 and found them passing and it again started failing at revision 64298. Looks like these changes has introduced the deployment failure.

Comment by ankur.kathuria [ 20/Dec/16 ]

when we add bean-validator-cdi.jar we get following exception

Could not instantiate service class org.hibernate.validator.internal.cdi.ValidationExtension
java.lang.NoClassDefFoundError: org/hibernate/validator/internal/util/logging/LoggerFactory
at org.hibernate.validator.internal.cdi.ValidationExtension.<clinit>(ValidationExtension.java:87)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.jboss.weld.util.ServiceLoader.prepareInstance(ServiceLoader.java:240)
at org.jboss.weld.util.ServiceLoader.loadService(ServiceLoader.java:214)
at org.jboss.weld.util.ServiceLoader.loadServiceFile(ServiceLoader.java:182)
at org.jboss.weld.util.ServiceLoader.reload(ServiceLoader.java:162)
at org.jboss.weld.util.ServiceLoader.iterator(ServiceLoader.java:297)
at org.glassfish.weld.DeploymentImpl.getExtensions(DeploymentImpl.java:466)
at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:218)
at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:131)
at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:328)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:496)
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.admin.rest.resources.admin.CommandResource.executeCommand(CommandResource.java:407)
at org.glassfish.admin.rest.resources.admin.CommandResource.execCommandSimpInMultOut(CommandResource.java:234)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)
at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:144)
at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:161)
at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:160)
at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99)
at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389)
at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347)
at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102)
at org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:326)
at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)
at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)
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.process(Errors.java:267)
at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)
at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:305)
at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1154)
at org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.service(GrizzlyHttpContainer.java:384)
at org.glassfish.admin.rest.adapter.JerseyContainerCommandService$3.service(JerseyContainerCommandService.java:173)
at org.glassfish.admin.rest.adapter.RestAdapter.service(RestAdapter.java:179)
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: java.lang.ClassNotFoundException: org.hibernate.validator.internal.util.logging.LoggerFactory not found by org.glassfish.hk2.external.bean-validator-cdi [86]
at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1532)
at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:75)
at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1955)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 76 more
]]

Comment by ankur.kathuria [ 11/Jan/17 ]

As per discussion with Mason, John and Romain we have integrated GF with hk2 v2.5.0-b31.
now hk2 needs to be modified so that it exports required packages.

Comment by ankur.kathuria [ 11/Jan/17 ]

Completed Commit at Revision: 64391 for hk2 integration with GF

Comment by ankur.kathuria [ 20/Jan/17 ]

integrated with bean-validator v2.5.0-b06 which fixes the issue.

Comment by ankur.kathuria [ 01/Feb/17 ]

fixes the issue and a separate task will be created which will track moving beanvalidator code for HK2 to GlassFish





[GLASSFISH-21166] session.invalidate causes two NPE Created: 18/Aug/14  Updated: 11/Jan/17

Status: Open
Project: glassfish
Component/s: cdi
Affects Version/s: 4.1, future release
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: dmatej Assignee: jjsnyder83
Resolution: Unresolved Votes: 6
Labels: None
Remaining Estimate: 2 hours
Time Spent: Not Specified
Original Estimate: 2 hours
Environment:

EAR with many WAR modules, form auth and custom realm and SSO enabled.


Tags: logout, session, weld

 Description   

The session is finally correctly invalidated, even on cluster instances, but there are these exceptions in the server.log.
I think it should throw another exception or do nothing, but it must not throw NPE.

WeldTerminalListener in current trunk is 2.2.2, current version is 2.2.4 - maybe it could be fixed, if it is really weld error.

[2014-08-18T13:42:56.479+0200] [glassfish 4.1] [INFO] [] [javax.enterprise.web.core] [tid: _ThreadID=28 _ThreadName=http-listener-1(2)] [timeMillis: 1408362176479] [levelValue: 800] [[
  Session event listener threw exception
java.lang.NullPointerException
        at org.jboss.weld.servlet.WeldTerminalListener.getSessionContext(WeldTerminalListener.java:65)
        at org.jboss.weld.servlet.WeldTerminalListener.sessionDestroyed(WeldTerminalListener.java:57)
        at org.apache.catalina.session.StandardSession.expire(StandardSession.java:910)
        at org.apache.catalina.session.StandardSession.expire(StandardSession.java:854)
        at org.apache.catalina.session.StandardSession.expire(StandardSession.java:842)
        at org.apache.catalina.session.StandardSession.invalidate(StandardSession.java:1603)
        at org.apache.catalina.session.StandardSessionFacade.invalidate(StandardSessionFacade.java:204)
        at org.apache.jsp.logout_jsp._jspService(logout_jsp.java:58)
...
[2014-08-18T13:42:56.482+0200] [glassfish 4.1] [INFO] [] [javax.enterprise.web.core] [tid: _ThreadID=28 _ThreadName=http-listener-1(2)] [timeMillis: 1408362176482] [levelValue: 800] [[
  Session event listener threw exception
java.lang.NullPointerException
        at org.jboss.weld.servlet.WeldTerminalListener.getSessionContext(WeldTerminalListener.java:65)
        at org.jboss.weld.servlet.WeldTerminalListener.sessionDestroyed(WeldTerminalListener.java:57)
        at org.apache.catalina.session.StandardSession.expire(StandardSession.java:910)
        at org.apache.catalina.session.StandardSession.expire(StandardSession.java:854)
        at org.apache.catalina.session.StandardSession.expire(StandardSession.java:842)
        at org.apache.catalina.authenticator.SingleSignOnEntry.expireSessions(SingleSignOnEntry.java:158)
        at com.sun.enterprise.security.web.GlassFishSingleSignOn.deregister(GlassFishSingleSignOn.java:560)
        at com.sun.enterprise.security.web.GlassFishSingleSignOn.sessionEvent(GlassFishSingleSignOn.java:337)
        at org.apache.catalina.session.StandardSession.fireSessionEvent(StandardSession.java:2318)
        at org.apache.catalina.session.StandardSession.expire(StandardSession.java:984)
        at org.apache.catalina.session.StandardSession.expire(StandardSession.java:854)
        at org.apache.catalina.session.StandardSession.expire(StandardSession.java:842)
        at org.apache.catalina.session.StandardSession.invalidate(StandardSession.java:1603)
        at org.apache.catalina.session.StandardSessionFacade.invalidate(StandardSessionFacade.java:204)
        at org.apache.jsp.logout_jsp._jspService(logout_jsp.java:58)

Line 65 in WeldTerminalListener:

    private HttpSessionContext getSessionContext() {
        return beanManager.instance().select(HttpSessionContext.class).get();
    }


 Comments   
Comment by Shing Wai Chan [ 18/Aug/14 ]

Can you provide a test case to illustrate this?

Comment by dmatej [ 19/Aug/14 ]

I will try to create some. I tried to replace weld-osgi-bundle with the 2.2.4 version, the result is same.

Comment by dmatej [ 20/Aug/14 ]

It seems it is not so simple ...
1) In our 35MB big ear with around 20 modules it is logged after each logout.
2) In unit test I created, with or without SSO enabled and tested on ear containing two simple war modules it works without exceptions.
So I looked inside the Glassfish code ... meanwhile I tried to undeploy our application and same error occured. I suspect this issue is caused by the same thing as GLASSFISH-21147 , but I have to find out how to create some simplier example with the test.

[2014-08-20T17:09:18.952+0200] [glassfish 4.1] [INFO] [] [javax.enterprise.web.core] [tid: _ThreadID=227 _ThreadName=admin-listener(6)] [timeMillis: 1408547358952] [levelValue: 800] [[
  Session event listener threw exception
java.lang.NullPointerException
        at org.jboss.weld.servlet.WeldTerminalListener.getSessionContext(WeldTerminalListener.java:65)
        at org.jboss.weld.servlet.WeldTerminalListener.sessionDestroyed(WeldTerminalListener.java:57)
        at org.apache.catalina.session.StandardSession.expire(StandardSession.java:910)
        at org.apache.catalina.session.StandardSession.expire(StandardSession.java:854)
        at org.apache.catalina.session.StandardSession.expire(StandardSession.java:842)
        at org.apache.catalina.session.StandardManager.stop(StandardManager.java:955)
        at org.apache.catalina.core.StandardContext.stop(StandardContext.java:6133)
        at com.sun.enterprise.web.WebModule.stop(WebModule.java:720)
Comment by dmatej [ 20/Aug/14 ]

I have downloaded weld-core sources from Github and separated that line in three.
It seems the beanManager is not injected - it is null.
Tested with weld-osgi-bundle 2.2.5-SNAPSHOT commit 81c0ee82, 2.2.4 and original 2.2.2.

public class WeldTerminalListener implements HttpSessionListener {
    @Inject
    private BeanManagerImpl beanManager;

Does someone know why and how to fix it?

I have found more messages in logs - this is in server.log file when initializing both the admingui application and our application:

[2014-08-20T23:04:43.273+0200] [glassfish 4.1] [FINE] [] [org.glassfish.naming] [tid: _ThreadID=170 _ThreadName=Thread-32] [timeMillis: 1408568683273] [levelValue: 500] [CLASSNAME: NamedNamingObjectManager] [METHODNAME: tryNamedProxies] [[
  found cached proxy [org.glassfish.weld.BeanManagerNamingProxy@7209773] for [java:comp/BeanManager]]]

[2014-08-20T23:04:43.273+0200] [glassfish 4.1] [FINE] [] [javax.enterprise.resource.webcontainer.jsf.config] [tid: _ThreadID=170 _ThreadName=Thread-32] [timeMillis: 1408568683273] [levelValue: 500] [CLASSNAME: com.sun.faces.config.WebConfiguration] [METHODNAME: processJndiEntries] [[
  javax.naming.NamingException: Lookup failed for 'java:comp/BeanManager' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming} [Root exception is javax.naming.NamingException: Error retrieving java:comp/BeanManager [Root exception is java.lang.IllegalStateException: Cannot resolve bean manager]]]]

[2014-08-20T23:04:43.273+0200] [glassfish 4.1] [FINE] [] [javax.enterprise.resource.webcontainer.jsf.config] [tid: _ThreadID=170 _ThreadName=Thread-32] [timeMillis: 1408568683273] [levelValue: 500] [CLASSNAME: com.sun.faces.config.WebConfiguration] [METHODNAME: processJndiEntries] [[
  javax.naming.NamingException: Lookup failed for 'java:comp/env/BeanManager' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming} [Root exception is javax.naming.NameNotFoundException: No object bound to name java:comp/env/BeanManager]]]

Maybe I got some idea - my test application does not contain any beans and does not need injections ... I will take a look in the morning ... now I'm dead ...
(also catching Throwable in BeanManagerNamingProxy is really ugly )

Comment by dmatej [ 21/Aug/14 ]

I got it - when I add empty beans.xml file to the WEB-INF directory, there are no NPE any more. It seems it is some problem with using SSO, EJB3 and old J2SE war applications in one EAR. CDI then works only partially: it works on EJB modules, but not in war modules which did not declare they want it. WeldTerminalListener is maybe initialized in war module and that is the reason why it's beanManager is null.

I will try to create the test case but I am not authorized to attach files. Can you do something with it?

Comment by dmatej [ 21/Aug/14 ]

The perfectly repeatable test case is prepared, how can I upload it?

Comment by reza_rahman [ 21/Aug/14 ]

Could you kindly send it to me for now?

Comment by dmatej [ 02/Sep/14 ]

Test case uploaded to GLASSFISH-21146 (I did a mistake in e-mail subject). I still cannot upload or change JIRA attachements so I cannot fix it ...

Comment by reza_rahman [ 02/Sep/14 ]

Please email it to me. As I may have explained, we can't enable attachments for now (and perhaps even in the long term) due to security policies.

Comment by dmatej [ 13/Sep/14 ]

Please only move the attachment from GLASSFISH-21146 here.

Comment by Wydrian [ 19/Sep/14 ]

I have the same problem with a simple struts2 based application: every time the HttpSession is invalidated (even manually by calling invalidate() or by the container), a NPE is thrown by WeldTerminalListener. It is since GF 4.1 upgrade, in 4.0 and before it was working fine. Everything seems to work normally: only the log is filled with this exeption.

2014-09-20T00:20:45.571+0200|Info: Session event listener threw exception
java.lang.NullPointerException
at org.jboss.weld.servlet.WeldTerminalListener.getSessionContext(WeldTerminalListener.java:65)
at org.jboss.weld.servlet.WeldTerminalListener.sessionDestroyed(WeldTerminalListener.java:57)
at org.apache.catalina.session.StandardSession.expire(StandardSession.java:910)
at org.apache.catalina.session.StandardSession.expire(StandardSession.java:854)
at org.apache.catalina.session.StandardSession.expire(StandardSession.java:842)
at org.apache.catalina.session.StandardSession.invalidate(StandardSession.java:1603)
at org.apache.catalina.session.StandardSessionFacade.invalidate(StandardSessionFacade.java:204)
at hu.tikkin.action.LogoutAction.execute(LogoutAction.java:64)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:450)
at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:289)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:252)
at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:265)
at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)
at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:254)
at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:171)
at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:139)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:189)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:193)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)
at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:562)
at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)
at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:99)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:316)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:734)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:673)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:174)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:415)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:282)
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:201)
at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:175)
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:284)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112)
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:561)
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:565)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:545)
at java.lang.Thread.run(Thread.java:724)

Comment by cistox [ 16/Nov/15 ]

Using request.logout() as per Servlet 3.0 I have same error but different line (WeldTerminalListener.java:72):

[2015-11-16T12:21:17.108+0100] [glassfish 4.1] [INFO] [] [javax.enterprise.web.core] [tid: _ThreadID=111 _ThreadName=ContainerBackgroundProcessor[StandardEngine[glassfish-web].StandardHost[server].StandardContext[/svc]]] [timeMillis: 1447672877108] [levelValue: 800] [[
Session event listener threw exception
java.lang.NullPointerException
at org.jboss.weld.servlet.WeldTerminalListener.getSessionContext(WeldTerminalListener.java:72)
at org.jboss.weld.servlet.WeldTerminalListener.sessionDestroyed(WeldTerminalListener.java:64)
at org.apache.catalina.session.StandardSession.expire(StandardSession.java:910)
at org.apache.catalina.session.StandardSession.expire(StandardSession.java:854)
at org.apache.catalina.session.StandardSession.expire(StandardSession.java:842)
at org.apache.catalina.session.PersistentManagerBase.processExpires(PersistentManagerBase.java:785)
at org.apache.catalina.session.PersistentManagerBase.backgroundProcess(PersistentManagerBase.java:429)
at org.apache.catalina.core.StandardContext.backgroundProcess(StandardContext.java:6375)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1823)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1812)
at java.lang.Thread.run(Thread.java:745)

Comment by payara_steve [ 25/Feb/16 ]

If this is an old application that has no CDI beans but has EJBs try unticking Implicit CDI on deployment. This solved the issue in our test case.

Comment by lprimak [ 25/May/16 ]

This issue will be resolve in Payara with the next release





[GLASSFISH-21077] EJB injection works only for first ejbModule in ear if the beans.xml is not provided Created: 28/May/14  Updated: 20/Dec/16  Resolved: 20/Apr/15

Status: Resolved
Project: glassfish
Component/s: cdi, ejb_container
Affects Version/s: 4.0, 4.1_dev
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: dmatej Assignee: jjsnyder83
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: 2 hours
Time Spent: Not Specified
Original Estimate: 2 hours

Status Whiteboard:

EJB injection works only in first ejbModule in ear if the beans.xml not provided.

Tags: beans, ejb, injection, stateless

 Description   

I am migrating application from SGES2.1.1 with JDK6 to Glassfish4 with JDK8.

If I deploy EAR application with two or more EJB modules without beans.xml file, only in the first ejbModule injection works (@EJB and @Stateless annotations).

If I add beans.xml file to ejbModules, injection works in all of them.
I think this is a minor issue because this simple workaround exists, but this behavior is still incorrect.



 Comments   
Comment by jjsnyder83 [ 24/Mar/15 ]

Can you attach a reproducible test case.





[GLASSFISH-21125] Weld 2.2.2 glassfish integration and Infinispan 7.0 (EJB interceptors bug) Created: 09/Jul/14  Updated: 20/Dec/16  Resolved: 12/May/15

Status: Resolved
Project: glassfish
Component/s: cdi
Affects Version/s: 4.1_dev
Fix Version/s: None

Type: Bug Priority: Major
Reporter: cocorossello Assignee: jjsnyder83
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

4.0.1 build 08 web profile, windows 8.1, JDK 1.8.0_05



 Description   

I have inifinispan (7.0 alpha 4) CDI interceptors in my application, intercepting EJB calls.

When I upgraded weld to 2.2 I got a deployment error:

java.lang.IllegalStateException: Interceptor Class class org.infinispan.jcache.annotation.AbstractCacheResultInterceptor has no method annotated with interface javax.interceptor.AroundInvoke
at org.glassfish.weld.services.EjbServicesImpl.getInterceptorMethod(EjbServicesImpl.java:346)
at org.glassfish.weld.services.EjbServicesImpl.makeInterceptorChain(EjbServicesImpl.java:282)
at org.glassfish.weld.services.EjbServicesImpl.registerInterceptors(EjbServicesImpl.java:223)
at org.jboss.weld.bean.SessionBean.registerInterceptors(SessionBean.java:279)
at org.jboss.weld.bean.SessionBean.initializeAfterBeanDiscovery(SessionBean.java:273)

My interceptor in beans.xml is declared as:
<class>org.infinispan.jcache.annotation.CacheResultInterceptor</class>

CacheResultInterceptor is an interceptor and has an @aroundInvoke method. It extends AbstractCacheResultInterceptor, which has nothing to do with interceptors:

//No annotations
public abstract class AbstractCacheResultInterceptor implements Serializable {

private static final long serialVersionUID = 5275055951121834315L;
....

So the problem is in org.glassfish.weld.services.EjbServicesImpl, which is searching a @AroundInvoke in all the class hierarchy (I guess)



 Comments   
Comment by Hong Zhang [ 09/Jul/14 ]

assign to CDI team for evaluation

Comment by jjsnyder83 [ 09/Jul/14 ]

Please provide the source code and application artifact that is being deployed.

Comment by cocorossello [ 10/Jul/14 ]

I can't attach files, but the example itself is simple. 3 files:

pom.xml:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.mycompany</groupId>
<artifactId>mavenproject1</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>war</packaging>
<name>mavenproject1</name>
<dependencies>
<dependency>
<groupId>org.infinispan</groupId>
<artifactId>infinispan-jcache</artifactId>
<version>7.0.0.Alpha4</version>
<exclusions>
<exclusion>
<artifactId>cdi-api</artifactId>
<groupId>javax.enterprise</groupId>
</exclusion>
<exclusion>
<artifactId>org.osgi.compendium</artifactId>
<groupId>org.osgi</groupId>
</exclusion>
<exclusion>
<artifactId>org.osgi.core</artifactId>
<groupId>org.osgi</groupId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</project>

SimpleBean.java

package com.sample;

import com.mycompany.mavenproject1.SimpleEJB;
import javax.ejb.EJB;
import javax.enterprise.context.RequestScoped;
import javax.inject.Named;

@Named
@RequestScoped
public class SimpleBean {

@EJB
private transient SimpleEJB ejb;

public String getHello()

{ ejb.aMethod();; return "hello"; }

}

SimpleEJB.java:

package com.mycompany.mavenproject1;

import javax.cache.annotation.CacheResult;
import javax.ejb.Stateless;

@Stateless
public class SimpleEJB {

@CacheResult(cacheName = "example")
public void aMethod()

{ System.out.println("amethod"); }

}

beans.xml:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/beans_1_1.xsd"
version="1.1" bean-discovery-mode="all" >
<interceptors>
<class>org.infinispan.jcache.annotation.CacheResultInterceptor</class>
</interceptors>
</beans>

If I move the @CacheResult to SimpleBean it works fine, but I intercept the EJB method it fails

Comment by jjsnyder83 [ 10/Jul/14 ]

please zip/jar example and mail to j.j.snyder@oracle.com

Comment by jjsnyder83 [ 10/Jul/14 ]

I tested similar interceptors in my test app and they work fine so I'd like to test with your sample app.

After I build the app how do I run the app to trigger the failure?

Comment by smillidge-c2b2 [ 29/Jan/15 ]

Looking at the code of org.glassfish.weld.services.EjbServicesImpl.getInterceptorMethod(EjbServicesImpl.java:346) this fails because the code tries to find a method with @AroundInvoke in the base class of the interceptor and if it doesn't find it throws an IllegalStateException which I believe is incorrect.

The error occurs during deployment.

Modifying the while loop to ignore the exception fixed deployment of my Interceptor which has the same problem.

            while (interceptorClass != null && !interceptorClass.equals(Object.class)) {
                try {
                    LifecycleCallbackDescriptor lifecycleDesc = new LifecycleCallbackDescriptor();

                    lifecycleDesc.setLifecycleCallbackClass(interceptorClass.getName());
                    lifecycleDesc.setLifecycleCallbackMethod(getInterceptorMethod(interceptorClass,
                            getInterceptorAnnotationType(interceptionType)));
                    switch (interceptionType) {
                        case POST_CONSTRUCT:
                            ejbInt.addPostConstructDescriptor(lifecycleDesc);
                            break;
                        case PRE_DESTROY:
                            ejbInt.addPreDestroyDescriptor(lifecycleDesc);
                            break;
                        case PRE_PASSIVATE:
                            ejbInt.addPrePassivateDescriptor(lifecycleDesc);
                            break;
                        case POST_ACTIVATE:
                            ejbInt.addPostActivateDescriptor(lifecycleDesc);
                            break;
                        case AROUND_INVOKE:
                            ejbInt.addAroundInvokeDescriptor(lifecycleDesc);
                            break;
                        case AROUND_TIMEOUT:
                            ejbInt.addAroundTimeoutDescriptor(lifecycleDesc);
                            break;
                        default:
                            throw new IllegalArgumentException("Invalid lifecycle interception type "
                                    + interceptionType);
                    }
                } catch (IllegalStateException iae) {
                    // this is expected for base classes with not annotations
                }
                interceptorClass = interceptorClass.getSuperclass();
            }

Comment by jjsnyder83 [ 20/Apr/15 ]

Please email me a sample app that fails so I can verify the fix.

Comment by jjsnyder83 [ 12/May/15 ]

Return and check for null instead of throwing IllegalStateException.
Committed revision 63868.





[GLASSFISH-21139] NullPointer Exception in ContainerBackgroundProcessor[StandardEngine[glassfish-web] Created: 21/Jul/14  Updated: 20/Dec/16  Resolved: 22/Jul/14

Status: Resolved
Project: glassfish
Component/s: cdi
Affects Version/s: 4.1_dev
Fix Version/s: None

Type: Bug Priority: Major
Reporter: jassiS Assignee: jjsnyder83
Resolution: Incomplete Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

GlassFish 4.0.1 (from nightly build b08 03-Jul)
JDK : build 1.8.0_05-b13
OS : x86_64 GNU/Linux

Glassfish log file keep getting filled with following errors. Log file getting full quickly because of following errors :

[2014-07-21T15:16:37.643-0400] [glassfish 4.0] [INFO] [] [javax.enterprise.web.core] [tid: _ThreadID=142 _ThreadName=ContainerBackgroundProcessor[StandardEngine[glassfish-web].StandardHost[server].StandardContext[/CCWebTT]]] [timeMillis: 1405970197643] [levelValue: 800] [[
Session event listener threw exception
java.lang.NullPointerException
at org.jboss.weld.servlet.WeldTerminalListener.getSessionContext(WeldTerminalListener.java:65)
at org.jboss.weld.servlet.WeldTerminalListener.sessionDestroyed(WeldTerminalListener.java:57)
at org.apache.catalina.session.StandardSession.expire(StandardSession.java:908)
at org.apache.catalina.session.StandardSession.expire(StandardSession.java:852)
at org.apache.catalina.session.StandardSession.isValid(StandardSession.java:769)
at org.apache.catalina.session.StandardManager.processExpires(StandardManager.java:1055)
at org.apache.catalina.core.StandardContext.backgroundProcess(StandardContext.java:6340)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1823)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1812)
at java.lang.Thread.run(Thread.java:744)
]]

[2014-07-21T16:42:21.367-0400] [glassfish 4.0] [INFO] [] [javax.enterprise.web.core] [tid: _ThreadID=67 _ThreadName=cc-http-listener(5)] [timeMillis: 1405975341367] [levelValue: 800] [[
Session event listener threw exception
java.lang.NullPointerException
at org.jboss.weld.servlet.WeldTerminalListener.getSessionContext(WeldTerminalListener.java:65)
at org.jboss.weld.servlet.WeldTerminalListener.sessionDestroyed(WeldTerminalListener.java:57)
at org.apache.catalina.session.StandardSession.expire(StandardSession.java:908)
at org.apache.catalina.session.StandardSession.expire(StandardSession.java:852)
at org.apache.catalina.session.StandardSession.expire(StandardSession.java:840)
at org.apache.catalina.session.StandardSession.invalidate(StandardSession.java:1601)
at org.apache.catalina.session.StandardSessionFacade.invalidate(StandardSessionFacade.java:204)
at com.enterprise.mvc.impl.HttpUserRequest.setUserSession(HttpUserRequest.java:117)
at com.enterprise.login.handler.LoginActionHandler.actionStartLogin(LoginActionHandler.java:157)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at com.enterprise.mvc.impl.MultiActionHandler.handleRequest(MultiActionHandler.java:39)
at com.enterprise.mvc.FrontControllerServlet.handleRequest(FrontControllerServlet.java:141)
at com.enterprise.mvc.FrontControllerServlet.doGet(FrontControllerServlet.java:49)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1682)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:344)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
at com.cuesol.cc.psa.web.filters.SingleLoginFilter.doFilter(SingleLoginFilter.java:88)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
at com.cuesol.cc.psa.web.filters.ResponseHeaderLogger.doFilter(ResponseHeaderLogger.java:32)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:316)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:734)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:673)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:174)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:415)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:282)
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:201)
at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:175)
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:284)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112)
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:561)
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:565)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:545)
at java.lang.Thread.run(Thread.java:744)
]]



 Comments   
Comment by jjsnyder83 [ 22/Jul/14 ]

Please provide more information. It appears that something must be starting the problem and then it continues on. And it may be caused by

at com.enterprise.mvc.impl.MultiActionHandler.handleRequest(MultiActionHandler.java:39)

Can you reproduce this regularly? If so can you send me an application along with instructions on how to cause this?

Comment by n.prist [ 06/Aug/14 ]

I get this error in log every time the GlassFish invalidate a browser session, after the session-timeout interval.
I use GlassFish 4.0.1 b10 (also I reproduce this issue with the latest GlassFish 4.0.1 Nightly Build) with a small java enterprise application with few EJB 3.1 and an web project (war archive) with one servlet and 2 JSF pages.
JDK: jdk-7u65
OS: x86_64 GNU/Linux and Windows 7 64b

The error is:
[INFO] [] [javax.enterprise.web.core] [tid: _ThreadID=160 _ThreadName=ContainerBackgroundProcessor[StandardEngine[glassfish-web].StandardHost[server].StandardContext[]]] [timeMillis: 1407343189599] [levelValue: 800] [[
Session event listener threw exception
java.lang.NullPointerException
at org.jboss.weld.servlet.WeldTerminalListener.getSessionContext(WeldTerminalListener.java:65)
at org.jboss.weld.servlet.WeldTerminalListener.sessionDestroyed(WeldTerminalListener.java:57)
at org.apache.catalina.session.StandardSession.expire(StandardSession.java:908)
at org.apache.catalina.session.StandardSession.expire(StandardSession.java:852)
at org.apache.catalina.session.StandardSession.isValid(StandardSession.java:769)
at org.apache.catalina.session.StandardManager.processExpires(StandardManager.java:1055)
at org.apache.catalina.core.StandardContext.backgroundProcess(StandardContext.java:6340)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1823)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1812)
at java.lang.Thread.run(Thread.java:745)
]]

Comment by jassiS [ 13/Aug/14 ]

We do have a process which runs every minute, and it is probably due to that. But same code and same process is running under current version of GlassFish 4.0 (build89). In that version we do not have this problem. So certainly something could be to done to fail safe it.

Comment by n.prist [ 17/Aug/14 ]

Hi all,
My workaround was to change MyApp java class from type: javax.faces.bean.ApplicationScoped to javax.enterprise.context.ApplicationScoped and now I don't have any errors in console log using GlassFish 4.0.1 b11.
I want to mention that I don't have any @EJB in this MyApp class.
I will continue to do tests related to this issue.
Regads

Comment by jjsnyder83 [ 18/Aug/14 ]

This appears to be a duplicate of GLASSFISH-21166.





[GLASSFISH-21134] IllegalStateException - TransactionalInterceptorBase has no method annotated with interface AroundInvoke Created: 17/Jul/14  Updated: 20/Dec/16  Resolved: 30/Jul/14

Status: Resolved
Project: glassfish
Component/s: cdi, deployment
Affects Version/s: 4.1_dev
Fix Version/s: None

Type: Bug Priority: Trivial
Reporter: ilvisne Assignee: jjsnyder83
Resolution: Invalid Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows 7 64bit, Java 7 update 65



 Description   

Can't deploy jar with a single class like below. It throws IllegalStateException.

@Stateless
public class HelloBean implements HelloService{
@Transactional(Transactional.TxType.NEVER)
public String sayHello()

{ return "Hi world!"; }

}

However, it deploys successfully if i remove the @Transactional annotation.

Exception Stacktrace:

Severe: Exception during lifecycle processing
org.glassfish.deployment.common.DeploymentException: CDI deployment failure:Interceptor Class class org.glassfish.cdi.transaction.TransactionalInterceptorBase has no method annotated with interface javax.interceptor.AroundInvoke
at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:234)
at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:131)
at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:328)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:496)
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:356)
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:356)
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:201)
at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:175)
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:284)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112)
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:561)
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:565)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:545)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.IllegalStateException: Interceptor Class class org.glassfish.cdi.transaction.TransactionalInterceptorBase has no method annotated with interface javax.interceptor.AroundInvoke
at org.glassfish.weld.services.EjbServicesImpl.getInterceptorMethod(EjbServicesImpl.java:346)
at org.glassfish.weld.services.EjbServicesImpl.makeInterceptorChain(EjbServicesImpl.java:282)
at org.glassfish.weld.services.EjbServicesImpl.registerInterceptors(EjbServicesImpl.java:223)
at org.jboss.weld.bean.SessionBean.registerInterceptors(SessionBean.java:279)
at org.jboss.weld.bean.SessionBean.initializeAfterBeanDiscovery(SessionBean.java:273)
at org.jboss.weld.bootstrap.BeanDeployer.doAfterBeanDiscovery(BeanDeployer.java:343)
at org.jboss.weld.bootstrap.BeanDeployment.afterBeanDiscovery(BeanDeployment.java:277)
at org.jboss.weld.bootstrap.WeldStartup.deployBeans(WeldStartup.java:408)
at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:83)
at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:222)
... 41 more



 Comments   
Comment by reza_rahman [ 17/Jul/14 ]

FYI, @Transactional is not supported on EJBs.

Comment by jjsnyder83 [ 30/Jul/14 ]

@Transactional is not supported on EJBs





[GLASSFISH-21143] CDI regression? Created: 25/Jul/14  Updated: 20/Dec/16  Resolved: 28/Jul/14

Status: Resolved
Project: glassfish
Component/s: cdi
Affects Version/s: 4.1_dev
Fix Version/s: None

Type: Bug Priority: Major
Reporter: David Delabassee Assignee: jjsnyder83
Resolution: Works as designed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

SE 1.8.0_20-ea-b23 / OSX


Attachments: Zip Archive CdiTest.zip    
Tags: fishcat

 Description   

The following code deploy on 4.0.1b6 (june 3 build) abut it doesn't deploy a 4.0.1 b7 (june 21) and above.

--8<--
[2014-07-25T15:26:39.654+0200] [glassfish 4.0] [SEVERE] [NCLS-CORE-00026] [javax.enterprise.system.core] [tid: _ThreadID=58 _ThreadName=admin-listener(5)] [timeMillis: 1406294799654] [levelValue: 1000] [[
Exception during lifecycle processing
org.glassfish.deployment.common.DeploymentException: CDI deployment failure:WELD-001408: Unsatisfied dependencies for type SomeService with qualifiers @Default
at injection point [BackedAnnotatedField] @Inject com.lodgon.lab.cditest.Monitor.monitoringController
at com.lodgon.lab.cditest.Monitor.monitoringController(Monitor.java:0)

at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:227)
at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:131)
at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:328)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:496)
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.admin.rest.resources.admin.CommandResource.executeCommand(CommandResource.java:404)
at org.glassfish.admin.rest.resources.admin.CommandResource.execCommandSimpInMultOut(CommandResource.java:234)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)
at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:151)
at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:171)
at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:152)
at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:104)
at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:387)
at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:331)
at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:103)
at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:269)
at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)
at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)
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.process(Errors.java:267)
at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:297)
at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:252)
at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1025)
at org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.service(GrizzlyHttpContainer.java:364)
at org.glassfish.admin.rest.adapter.JerseyContainerCommandService$3.service(JerseyContainerCommandService.java:173)
at org.glassfish.admin.rest.adapter.RestAdapter.service(RestAdapter.java:179)
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:201)
at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:175)
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:284)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112)
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:561)
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:565)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:545)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type SomeService with qualifiers @Default
at injection point [BackedAnnotatedField] @Inject com.lodgon.lab.cditest.Monitor.monitoringController
at com.lodgon.lab.cditest.Monitor.monitoringController(Monitor.java:0)

at org.jboss.weld.bootstrap.Validator.validateInjectionPointForDeploymentProblems(Validator.java:370)
at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:291)
at org.jboss.weld.bootstrap.Validator.validateProducer(Validator.java:428)
at org.jboss.weld.bootstrap.Validator.validateProducers(Validator.java:422)
at org.jboss.weld.injection.producer.InjectionTargetService.validate(InjectionTargetService.java:69)
at org.jboss.weld.bootstrap.WeldStartup.validateBeans(WeldStartup.java:420)
at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:90)
at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:218)
... 64 more
]]--8<--

This issue was reported by Johan Vos



 Comments   
Comment by jjsnyder83 [ 25/Jul/14 ]

This appears to be a Weld bug. I have simplified the app and sent it to JBoss for their analysis.

Comment by jjsnyder83 [ 28/Jul/14 ]

This fails because javax.ejb.LocalBean excludes SomeService type from bean types of MyServiceImplementation. In other words MyServiceImplementation has no interface view in this case. Check:

"3.2.2. Bean types of a session bean
The unrestricted set of bean types for a session bean contains all local interfaces of the bean and their superinterfaces. If the session bean has a no-interface view, the unrestricted set of bean types contains the bean class and all superclasses. In addition, java.lang.Object is a bean type of every session bean."





[GLASSFISH-16863] Weld exception Apache Wicket application in 3.1.x and 3.2 but not in 3.0 Created: 15/Jun/11  Updated: 20/Dec/16  Resolved: 15/Jun/11

Status: Resolved
Project: glassfish
Component/s: cdi
Affects Version/s: 4.0_dev
Fix Version/s: None

Type: Bug Priority: Major
Reporter: nocturnal Assignee: Sivakumar Thyagarajan
Resolution: Invalid Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows 7 64 Bit, JDK1.6.24


Attachments: Zip Archive Customeric.zip    

 Description   

I had developed an application with Wicket which uses Weld for dependency injection in glassfish 3.0.
This application worked correctly until i started to try it from 3.1 to 3.1.1 to 3.2 latest builds.

The particular exception only occurs in 3.1 and 3.1.1 and 3.2
and does not occur in 3.0.

I'm attaching my maven application as well.
----------------------------------------------------------------------------------------

SEVERE: WebModule[/Customeric]PWC1270: Exception starting filter WicketApplication
java.lang.InstantiationException
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:124)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4625)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:5316)
at com.sun.enterprise.web.WebModule.start(WebModule.java:500)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:917)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:901)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:755)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1980)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1630)
at com.sun.enterprise.web.WebApplication.start(WebApplication.java:100)
at org.glassfish.internal.data.EngineRef.start(EngineRef.java:130)
at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269)
at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:286)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:370)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:355)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1067)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1247)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235)
at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:465)
at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:222)
at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:168)
at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:234)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.NullPointerException
at org.jboss.weld.wicket.util.NonContextual.<init>(NonContextual.java:33)
at com.customeric.CustomericApplication.internalInit(CustomericApplication.java:49)
at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:723)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:266)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:120)
... 40 more



 Comments   
Comment by Sivakumar Thyagarajan [ 15/Jun/11 ]

The application seems to be having some issues

This is because the weld wicket extension has a reference to an old BeanStore API class which is not available as part of Weld.

GF3.0 shipped with the first version of Weld, Weld 1.0 and that had the BeanStore API class. However subsequent versions of Weld do not ship the BeanStore API class.

I am marking this issue as resolved and invalid. Please work with the weld/seam community to use their latest Wicket integration layer.





[GLASSFISH-18162] CDI failed to inject class from jar file in the same web module Created: 10/Jan/12  Updated: 20/Dec/16  Resolved: 18/Jan/12

Status: Resolved
Project: glassfish
Component/s: cdi, classloader, web_container, web_services, web_services_mgmt
Affects Version/s: 3.1.1_dev, 4.0_dev
Fix Version/s: None

Type: Bug Priority: Major
Reporter: nguyenphucnguyen Assignee: Sivakumar Thyagarajan
Resolution: Invalid Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Ubuntu 11.10
Linux 3.0.0-14-generic #23-Ubuntu SMP Mon Nov 21 20:34:47 UTC 2011 i686 i686 i386 GNU/Linux
java version "1.7.0"
Java(TM) SE Runtime Environment (build 1.7.0-b147)
Java HotSpot(TM) Server VM (build 21.0-b17, mixed mode)


Attachments: File broken.war    
Tags: metro2_2-waived

 Description   

1. created a webapp with a simple JAX-WS web service (MyWebService.java).
2. Inside MyWebservice injected MyServiceImpl.java from a library libA.jar.

3. Build .war file that contains libA.jar in WEB-INF/lib/ and MyWebService.class in WEB-INF/classes/

4. Deploy the .war file.

Expected: war deploy ok, webservice working

Actual: War not deployed, server generate "WELD-001408 Unsatisfied dependencies for type"

Firstly i thought this is a duplication of GLASSFISH-15906, GLASSFISH-15721 after test with the file from those JIRA issues, I belive this is new issue.

the war file attached.



 Comments   
Comment by Sivakumar Thyagarajan [ 18/Jan/12 ]

libA.jar doesn't have a beans.xml in it and hence is not considered a bean archive (See CDI 1.0 Spec Section 12.1 that says that a library jar is considered only a bean archive if it contains a beans.xml). Adding a beans.xml in libA.jar results in successful deployment of the WAR. Marking this issue as "not a bug".





[GLASSFISH-18369] weld dependencies are part of distribution Created: 15/Feb/12  Updated: 20/Dec/16  Resolved: 01/Mar/13

Status: Resolved
Project: glassfish
Component/s: cdi
Affects Version/s: 4.0_dev
Fix Version/s: 4.0

Type: Bug Priority: Critical
Reporter: Sanjeeb Sahoo Assignee: jitu
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

In trunk build, I am seeing various weld dependencies being part of distribution when they should not be. e.g.,
slf4-*.jar
cal10n-api.jar

and may be others?

This will cause all kinds of classloading issues as users won't be able to use different versions of these jars in their application. So, they must be removed from distribution.



 Comments   
Comment by Sivakumar Thyagarajan [ 15/Feb/12 ]

It appears that the glassfish-web packager zip brings in slf4j and cal10n, because of maven dependencies of webtier-all. This may need to be fixed.

[ ../packager/glassfish-web] $ unzip -l target/glassfish-web.zip | grep "cal10n|slf"
28866 2012-02-15 21:26 glassfish3/glassfish/modules/cal10n-api.jar
23659 2012-02-15 21:26 glassfish3/glassfish/modules/slf4j-api.jar
41626 2012-02-15 21:26 glassfish3/glassfish/modules/slf4j-ext.jar

Transferring this issue to Shingwai

Comment by Sivakumar Thyagarajan [ 15/Feb/12 ]

Shingwai, please let me know if there is anyway we can help. It appears that glassfish-web packager brings in weld osgi impl's dependencies such as cal10n, sfl4j.

Comment by Shing Wai Chan [ 07/Mar/12 ]

The slf4j-api, slf4j-ext and cal10n-api are bring it by org.jboss.weld:weld-core:jar:1.1.4.Final:compile which is bring it by org.glassfish.web:web-sse:jar:4.0-SNAPSHOT:compile

Comment by Sanjeeb Sahoo [ 02/Apr/12 ]

Jitu,

Can this bug be fixed by depending on javax.inject/javax.inject/1 instead of weld-osgi? More over, mark the dependency a provided scope dependency so that it does not get pulled in to the distribution. Could you do it ASAP?

Thanks,
Sahoo

Comment by jitu [ 02/Apr/12 ]

If I do the following changes in web-sse/pom.xml, running into an exception. May be HK2 maven plugin needs an update.

<dependency>

  • <groupId>org.jboss.weld</groupId>
  • <artifactId>weld-osgi-bundle</artifactId>
    + <groupId>javax.inject</groupId>
    + <artifactId>javax.inject</artifactId>
    + <version>1</version>
    + <scope>provided</scope>
    </dependency>

---------
java.lang.ClassCastException: com.sun.tools.apt.mirror.type.ClassTypeImpl cannot be cast to com.sun.mirror.type.AnnotationType
at com.sun.tools.apt.mirror.declaration.AnnotationMirrorImpl.getAnnotationType(AnnotationMirrorImpl.java:82)
at com.sun.tools.apt.mirror.apt.AnnotationProcessorEnvironmentImpl$CollectingAP$CollectingVisitor.visitDeclaration(AnnotationProcessorEnvironmentImpl.java:118)
at com.sun.mirror.util.SimpleDeclarationVisitor.visitParameterDeclaration(SimpleDeclarationVisitor.java:181)
at com.sun.tools.apt.mirror.declaration.ParameterDeclarationImpl.accept(ParameterDeclarationImpl.java:80)
at com.sun.mirror.util.DeclarationScanner.visitDeclaration(DeclarationScanner.java:45)
at com.sun.mirror.util.DeclarationScanner.visitParameterDeclaration(DeclarationScanner.java:233)
at com.sun.tools.apt.mirror.declaration.ParameterDeclarationImpl.accept(ParameterDeclarationImpl.java:80)
at com.sun.mirror.util.SourceOrderDeclScanner.visitExecutableDeclaration(SourceOrderDeclScanner.java:225)
at com.sun.mirror.util.DeclarationScanner.visitMethodDeclaration(DeclarationScanner.java:214)
at com.sun.tools.apt.mirror.declaration.MethodDeclarationImpl.accept(MethodDeclarationImpl.java:41)
at com.sun.mirror.util.SourceOrderDeclScanner.visitClassDeclaration(SourceOrderDeclScanner.java:207)
at com.sun.tools.apt.mirror.declaration.ClassDeclarationImpl.accept(ClassDeclarationImpl.java:95)
at com.sun.tools.apt.mirror.apt.AnnotationProcessorEnvironmentImpl$CollectingAP.process(AnnotationProcessorEnvironmentImpl.java:126)
at com.sun.tools.apt.mirror.apt.AnnotationProcessorEnvironmentImpl.getDeclarationsAnnotatedWith(AnnotationProcessorEnvironmentImpl.java:100)
at org.jvnet.hk2.config.generator.ConfigInjectorGenerator.process(ConfigInjectorGenerator.java:122)
at com.sun.mirror.apt.AnnotationProcessors$CompositeAnnotationProcessor.process(AnnotationProcessors.java:60)
at com.sun.mirror.apt.AnnotationProcessors$CompositeAnnotationProcessor.process(AnnotationProcessors.java:60)
at com.sun.tools.apt.comp.Apt.main(Apt.java:454)
at com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java:258)
at com.sun.tools.apt.main.Main.compile(Main.java:1102)
at com.sun.tools.apt.main.Main.compile(Main.java:964)
at com.sun.tools.apt.Main.processing(Main.java:95)
at com.sun.tools.apt.Main.process(Main.java:85)
at com.sun.enterprise.module.maven.HK2CompileMojo$1.compileInProcess(HK2CompileMojo.java:126)
at com.sun.enterprise.module.maven.AptCompiler.compile(AptCompiler.java:106)
at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:528)
at com.sun.enterprise.module.maven.CompilerMojo.execute(CompilerMojo.java:155)
at com.sun.enterprise.module.maven.HK2CompileMojo.execute(HK2CompileMojo.java:140)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

Comment by Sanjeeb Sahoo [ 03/Apr/12 ]

I think this is happening because hk2 also depends on javax.inject. This is a guess only. If you don't want to spend a lot of time, then you could try changing the existing weld-osgi-bundle dependency to a provided scope dependency so that's its transitive dependencies are not pulled in by the build.

Comment by jitu [ 03/Apr/12 ]

weld-osgi-bundle artifact is marked with provided scope
---------------
main/appserver/web/web-sse$ svn ci pom.xml
Sending pom.xml
Transmitting file data .
Committed revision 53341.
----------------

Comment by jthoennes [ 04/Apr/12 ]

In reply to comment #6:
> I think this is happening because hk2 also depends on javax.inject. This is a
> guess only. If you don't want to spend a lot of time, then you could try
> changing the existing weld-osgi-bundle dependency to a provided scope dependency
> so that's its transitive dependencies are not pulled in by the build.

Sahoo, please could you elaborate on this? We are also struck by this issue.

And: Will this be corrected for at least GF 4.0?

Thanks, Jörg

Comment by Sanjeeb Sahoo [ 07/Apr/12 ]

Jörg, pl file a separate bug for the hk2 plugin issue against HK2 project to get a faster response from the relevant developers.

Comment by Sanjeeb Sahoo [ 07/Apr/12 ]

jitu, why is this bug still open?

Comment by jitu [ 08/Apr/12 ]

Will close the issue if there aren't any comments.





[GLASSFISH-18227] Duplicate log lines for single CDI Injection in a single servlet Created: 19/Jan/12  Updated: 20/Dec/16  Resolved: 09/Feb/12

Status: Closed
Project: glassfish
Component/s: cdi, OSGi
Affects Version/s: 3.1.1
Fix Version/s: 4.0_dev

Type: Bug Priority: Minor
Reporter: aaronjwhiteside Assignee: Sivakumar Thyagarajan
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The a war containing a single Servlet:

@WebServlet( name = "HelloServlet", urlPatterns = "/HelloServlet" )
public class HelloServlet extends HttpServlet {

    @Inject
    @OSGiService( dynamic = true )
    private ExampleService exampleService;

    @Override
    protected void doGet( final HttpServletRequest httpServletRequest, final HttpServletResponse httpServletResponse )
    throws ServletException, IOException
    {
        httpServletResponse.getWriter().write( exampleService.helloWorld() );
    }
}

Upon deployment the follow lines are printed out:

[#|2012-01-19T17:29:26.044-0500|INFO|glassfish3.1.1|org.glassfish.osgicdi.impl|_ThreadID=58;_ThreadName=Thread-2;|---- Injection requested for framework service type interface com.mm.osgiexample.spi.ExampleService and annotated with dynamic=true, serviceCriteria=|#]

[#|2012-01-19T17:29:26.131-0500|INFO|glassfish3.1.1|org.glassfish.osgicdi.impl|_ThreadID=58;_ThreadName=Thread-2;|---- Injection requested for framework service type interface com.mm.osgiexample.spi.ExampleService and annotated with dynamic=true, serviceCriteria=|#]

[#|2012-01-19T17:29:26.132-0500|INFO|glassfish3.1.1|org.glassfish.osgicdi.impl|_ThreadID=58;_ThreadName=Thread-2;|---- Injection requested for framework service type interface com.mm.osgiexample.spi.ExampleService and annotated with dynamic=true, serviceCriteria=|#]

[#|2012-01-19T17:29:26.134-0500|INFO|glassfish3.1.1|org.glassfish.osgicdi.impl|_ThreadID=58;_ThreadName=Thread-2;|---- Injection requested for framework service type interface com.mm.osgiexample.spi.ExampleService and annotated with dynamic=true, serviceCriteria=|#]

[#|2012-01-19T17:29:26.135-0500|INFO|glassfish3.1.1|org.glassfish.osgicdi.impl|_ThreadID=58;_ThreadName=Thread-2;|---- Injection requested for framework service type interface com.mm.osgiexample.spi.ExampleService and annotated with dynamic=true, serviceCriteria=|#]

Note sure if this is just a logging issue or if the implementation is parsing/instantiating/binding/whatever the ExampleService multiple times.



 Comments   
Comment by Sivakumar Thyagarajan [ 09/Feb/12 ]

Fixed as part of
Sending osgi-cdi/src/main/java/org/glassfish/osgicdi/impl/OSGiServiceExtension.java
Transmitting file data .
Committed revision 52518.

When osgi-cdi 1.0.3 is integrated into GF trunk, this would be available through GF nightly builds. As of now, I am marking this as fixed in 4.0_b25.





[GLASSFISH-18427] Weld: Inspect JDK 7 getMethods()/getDeclaredMethods() usage Created: 28/Feb/12  Updated: 20/Dec/16  Resolved: 25/Mar/13

Status: Closed
Project: glassfish
Component/s: cdi
Affects Version/s: 4.0_dev
Fix Version/s: 4.0

Type: Task Priority: Major
Reporter: Joe Di Pol Assignee: jwells
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Recent JDK 7 releases have altered the order of methods returned by the
Class.getMethods() and Class.getDeclaredMethods() calls. The order is
no longer stable and can change from one JVM run to the next.

This caused a number of sporadic bugs to appear during 3.1.2 development
when running with JDK 7. Those have been fixed, but further inspection
of the source has found a number of cases where we use getMethods() and
getDeclaredMethods().

Each of these cases should be visually inspected to see if the code is
making any assumptions on the order of methods returned by get*Methods().
In particular it should handle the case of multiple methods having the
same name.

For more details on what to look for and how to fix it see this document:

https://wikis.oracle.com/display/GlassFish/Method+Ordering+from+Class.getMethods

Please inspect the following files for their use of getMethods() /
getDeclaredMethods() to ensure the code is not making any assumptions
with respect to the order of methods returned. Create bugs for
any issues that need to be fixed and link them to this task. Once you
have completed inspection update this task with status and close it.

Weld integration for glassfish
    EjbDescriptorImpl.java
    EjbServicesImpl.java
Orchestrator
    JSONUtil.java



 Comments   
Comment by Sivakumar Thyagarajan [ 10/Dec/12 ]

Transferring to JJ Snyder

Comment by jwells [ 25/Mar/13 ]

EjbDescriptorImpl.java: looks safe (no usages)
EjbServicesImpl.java: looks safe (iterating through all doing the same to each one)
JSONUtil.java: Looks ok, but will return a different valid JSON string. Should probably be ok, as long as the string is not used for equality or something like that. I checked the only place using the javaToJSON method and it looks ok





[GLASSFISH-18824] GF 4.0 uses Weld 1.1.4.Final, but latest release is 1.1.8.Final Created: 22/Jun/12  Updated: 20/Dec/16  Resolved: 22/Oct/12

Status: Resolved
Project: glassfish
Component/s: cdi
Affects Version/s: 4.0_dev
Fix Version/s: 4.0

Type: Bug Priority: Major
Reporter: Vetle Leinonen-Roeim Assignee: jjsnyder83
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Tags: cdi, weld

 Description   

GF 4.0 uses Weld 1.1.4.Final, but latest release is 1.1.8.Final.
Consider upgrading to newest release?



 Comments   
Comment by jjsnyder83 [ 22/Jun/12 ]

I am currently working on this. Hopefully it won't be too long before it's complete.

Comment by Vetle Leinonen-Roeim [ 22/Jun/12 ]

Great!

Comment by Vetle Leinonen-Roeim [ 16/Aug/12 ]

Should be 1.1.9.Final instead, to fix GLASSFISH-18992.

Comment by donatasc [ 19/Oct/12 ]

Are there any plans/considerations for GlassFish 4.0 to integrate Weld 1.2.x (1.2.0 beta is current release) ?

Comment by jjsnyder83 [ 19/Oct/12 ]

I am in the process of upgrading 4.0 to Weld 1.1.10.Final. My plan is to start next week working on integration with Weld 1.2.x.

Comment by jjsnyder83 [ 22/Oct/12 ]

GlassFish integration with Weld was updated to Weld 1.1.10.Final with revision 56665.





[GLASSFISH-19083] org.jboss.weld.context.ContextNotActiveException is thrown when undeploying application. Created: 17/Sep/12  Updated: 20/Dec/16  Resolved: 03/Apr/13

Status: Resolved
Project: glassfish
Component/s: cdi
Affects Version/s: 4.0_dev
Fix Version/s: 4.0

Type: Bug Priority: Major
Reporter: David Zhao Assignee: arjavdesai
Resolution: Invalid Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Zip Archive EnterpriseApplication1.zip    

 Description   

There are 2 beans A and B. A is dependent scoped and B is request scoped. B is injected into A. A is injected into an EJB.

To reproduce, please refer to the attached netbean project.

1. Build and deploy the ear.
2. Access the NewServlet via browser for initializing an EJB instance.
3. Undeploy the application to trigger bean A's preDestroy method. Then we can see the following exception.

[#|2012-09-17T15:03:12.609+0800|INFO|44.0|javax.enterprise.system.tools.admin.org.glassfish.deployment.admin|_ThreadID=13;_ThreadName=admin-listener(2);|EnterpriseApplication1 was successfully deployed in 785 milliseconds.|#]

[#|2012-09-17T15:03:16.706+0800|INFO|44.0|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=24;_ThreadName=http-listener-1(2);|B.xyz() is called.|#]

[#|2012-09-17T15:03:36.931+0800|INFO|44.0|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=13;_ThreadName=admin-listener(2);|A is closing...|#]

[#|2012-09-17T15:03:36.933+0800|SEVERE|44.0|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=13;_ThreadName=admin-listener(2);|org.jboss.weld.context.ContextNotActiveException: WELD-001303 No active contexts for scope type javax.enterprise.context.RequestScoped
at org.jboss.weld.manager.BeanManagerImpl.getContext(BeanManagerImpl.java:598)
at org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:71)
at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:79)
at test.B$Proxy$$$_WeldClientProxy.close(B$Proxy$$$_WeldClientProxy.java)
at test.A.cleanup(A.java:28)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:264)
at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:52)
at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:137)
at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:260)
at org.jboss.weld.introspector.jlr.WeldMethodImpl.invoke(WeldMethodImpl.java:174)
at org.jboss.weld.bean.AbstractClassBean.defaultPreDestroy(AbstractClassBean.java:493)
at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget.preDestroy(ManagedBean.java:182)
at org.jboss.weld.bean.ManagedBean.destroy(ManagedBean.java:302)
at org.jboss.weld.context.ForwardingContextual.destroy(ForwardingContextual.java:31)
at org.jboss.weld.context.CreationalContextImpl.destroy(CreationalContextImpl.java:100)
at org.jboss.weld.context.CreationalContextImpl.release(CreationalContextImpl.java:92)
at org.jboss.weld.context.CreationalContextImpl.release(CreationalContextImpl.java:83)
at org.glassfish.weld.services.JCDIServiceImpl$JCDIInjectionContextImpl.cleanup(JCDIServiceImpl.java:318)
at com.sun.ejb.containers.BaseContainer.cleanupInstance(BaseContainer.java:1704)
at com.sun.ejb.containers.StatelessSessionContainer$SessionContextFactory.destroy(StatelessSessionContainer.java:779)
at com.sun.ejb.containers.util.pool.NonBlockingPool.close(NonBlockingPool.java:417)
at com.sun.ejb.containers.StatelessSessionContainer.doConcreteContainerShutdown(StatelessSessionContainer.java:709)
at com.sun.ejb.containers.BaseContainer.undeploy(BaseContainer.java:4163)
at org.glassfish.ejb.startup.EjbApplication.stop(EjbApplication.java:297)
at org.glassfish.internal.data.EngineRef.stop(EngineRef.java:161)
at org.glassfish.internal.data.ModuleInfo.stop(ModuleInfo.java:311)
at org.glassfish.internal.data.ApplicationInfo.stop(ApplicationInfo.java:327)
at com.sun.enterprise.v3.server.ApplicationLifecycle.unload(ApplicationLifecycle.java:1051)
at com.sun.enterprise.v3.server.ApplicationLifecycle.undeploy(ApplicationLifecycle.java:1091)
at org.glassfish.deployment.admin.UndeployCommand.execute(UndeployCommand.java:399)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:529)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:550)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1430)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1600(CommandRunnerImpl.java:114)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1734)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1683)
at org.glassfish.admin.rest.resources.admin.CommandResource.executeCommand(CommandResource.java:467)
at org.glassfish.admin.rest.resources.admin.CommandResource.execCommandSimpInMultOut(CommandResource.java:255)
at sun.reflect.GeneratedMethodAccessor117.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.glassfish.jersey.server.model.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:80)
at org.glassfish.jersey.server.model.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:113)
at org.glassfish.jersey.server.model.AbstractJavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(AbstractJavaResourceMethodDispatcherProvider.java:176)
at org.glassfish.jersey.server.model.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:79)
at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:268)
at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:84)
at org.glassfish.jersey.process.internal.RequestInvoker$AcceptingInvoker.apply(RequestInvoker.java:241)
at org.glassfish.jersey.process.internal.AsyncInflectorAdapter.apply(AsyncInflectorAdapter.java:157)
at org.glassfish.jersey.process.internal.RequestInvoker$2.run(RequestInvoker.java:188)
at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:309)
at org.glassfish.jersey.process.internal.RequestInvoker$3.run(RequestInvoker.java:201)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at com.google.common.util.concurrent.MoreExecutors$SameThreadExecutorService.execute(MoreExecutors.java:262)
at com.google.common.util.concurrent.AbstractListeningExecutorService.submit(AbstractListeningExecutorService.java:43)
at com.google.common.util.concurrent.AbstractListeningExecutorService.submit(AbstractListeningExecutorService.java:40)
at org.glassfish.jersey.process.internal.RequestInvoker.apply(RequestInvoker.java:197)
at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:758)
at org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.service(GrizzlyHttpContainer.java:298)
at org.glassfish.admin.rest.adapter.RestAdapter.service(RestAdapter.java:205)
at com.sun.enterprise.v3.server.HK2Dispatcher.dispatch(HK2Dispatcher.java:113)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:236)
at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:164)
at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:175)
at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:265)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:200)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:134)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112)
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:825)
at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:578)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:558)
at java.lang.Thread.run(Thread.java:662)

#]


 Comments   
Comment by arjavdesai [ 26/Mar/13 ]

It seem to have been fixed as destroy of context is not getting invoked twice but I am not able to pin-point exact revision which fixed it. I was able to but now can't re-produce the issue with Glassfish build with revision's upto 60839. Please re-try, if you would.

Comment by David Zhao [ 27/Mar/13 ]

I can still reproduce it with revision 60914 by the attached application.

Comment by arjavdesai [ 27/Mar/13 ]

David,

I downloaded GFS 4.0 promoted build 82 from http://dlc.sun.com.edgesuite.net/glassfish/4.0/nightly/glassfish-4.0-b82-03_26_2013.zip and deployed ear (already built in your zip file upload) without any error i.e.

[2013-03-27T11:02:49.549-0400] [glassfish 4.0] [INFO] [] [org.glassfish.admingui] [tid: _ThreadID=45 _ThreadName=admin-listener(4)] [timeMillis: 1364396569549] [levelValue: 800] [[
Admin Console: Initializing Session Attributes...]]

[2013-03-27T11:03:28.958-0400] [glassfish 4.0] [INFO] [] [] [tid: _ThreadID=44 _ThreadName=admin-listener(3)] [timeMillis: 1364396608958] [levelValue: 800] [[
Snifer org.glassfish.javaee.full.deployment.EarSniffer@188b9 set up following modules: []]]

[2013-03-27T11:03:29.100-0400] [glassfish 4.0] [INFO] [] [] [tid: _ThreadID=44 _ThreadName=admin-listener(3)] [timeMillis: 1364396609100] [levelValue: 800] [[
Snifer org.glassfish.ejb.deployment.archive.EjbSniffer@189c0 set up following modules: []]]

[2013-03-27T11:03:29.112-0400] [glassfish 4.0] [INFO] [] [] [tid: _ThreadID=44 _ThreadName=admin-listener(3)] [timeMillis: 1364396609112] [levelValue: 800] [[
Snifer org.glassfish.weld.connector.WeldSniffer@37a229 set up following modules: []]]

[2013-03-27T11:03:29.195-0400] [glassfish 4.0] [INFO] [ejb.portable_jndi_names] [javax.enterprise.system.container.ejb.com.sun.ejb.containers] [tid: _ThreadID=44 _ThreadName=admin-listener(3)] [timeMillis: 1364396609195] [levelValue: 800] [[
EJB5181:Portable JNDI names for EJB NewSessionBean: [java:global/EnterpriseApplication1/EnterpriseApplication1-ejb/NewSessionBean, java:global/EnterpriseApplication1/EnterpriseApplication1-ejb/NewSessionBean!test.NewSessionBean]]]

[2013-03-27T11:03:29.269-0400] [glassfish 4.0] [INFO] [] [org.jboss.weld.Version] [tid: _ThreadID=44 _ThreadName=admin-listener(3)] [timeMillis: 1364396609269] [levelValue: 800] [[
WELD-000900 2.0.0 (Beta6)]]

[2013-03-27T11:03:29.975-0400] [glassfish 4.0] [WARNING] [] [org.jboss.weld.interceptor.util.InterceptionTypeRegistry] [tid: _ThreadID=44 _ThreadName=admin-listener(3)] [timeMillis: 1364396609975] [levelValue: 900] [[
Class 'javax.ejb.PostActivate' not found, interception based on it is not enabled]]

[2013-03-27T11:03:29.976-0400] [glassfish 4.0] [WARNING] [] [org.jboss.weld.interceptor.util.InterceptionTypeRegistry] [tid: _ThreadID=44 _ThreadName=admin-listener(3)] [timeMillis: 1364396609976] [levelValue: 900] [[
Class 'javax.ejb.PrePassivate' not found, interception based on it is not enabled]]

[2013-03-27T11:03:30.273-0400] [glassfish 4.0] [INFO] [AS-WEB-GLUE-00172] [javax.enterprise.web] [tid: _ThreadID=44 _ThreadName=admin-listener(3)] [timeMillis: 1364396610273] [levelValue: 800] [[
Loading application EnterpriseApplication1#EnterpriseApplication1-war.war at [EnterpriseApplication1-war]]]

[2013-03-27T11:03:30.346-0400] [glassfish 4.0] [INFO] [] [javax.enterprise.system.core] [tid: _ThreadID=44 _ThreadName=admin-listener(3)] [timeMillis: 1364396610346] [levelValue: 800] [[
EnterpriseApplication1 was successfully deployed in 1,478 milliseconds.]]

Comment by David Zhao [ 28/Mar/13 ]

arjavdesai:

As what I wrote in the description, the exception doesn't occur at deployment, but happens at undeployment. Please follow the steps to reproduce.

Comment by arjavdesai [ 28/Mar/13 ]

David:

Undeploy also works fine:

[2013-03-28T09:12:29.374-0400] [glassfish 4.0] [INFO] [] [javax.enterprise.system.core] [tid: _ThreadID=46 _ThreadName=admin-listener(4)] [timeMillis: 1364476349374] [levelValue: 800] [[
EnterpriseApplication1 was successfully deployed in 1,709 milliseconds.]]

[2013-03-28T09:12:36.196-0400] [glassfish 4.0] [INFO] [] [] [tid: _ThreadID=136 _ThreadName=Thread-3] [timeMillis: 1364476356196] [levelValue: 800] [[

    • BatchRuntimeHelper:: App Undeployed: EnterpriseApplication1]]

Did you try it out with the glassfish from the URL link?

Comment by David Zhao [ 29/Mar/13 ]

arjavdesai,

Still this can be reproduced with nightly build glassfish-4.0-b83-03_28_2013.zip.

Can you elaborate the steps you used for reproduction? Did you follow my step <2> "Access the NewServlet via browser for initializing an EJB instance" which was mentioned in the description previously before undeployment? That is essential to reproduce the problem. To be more specific, you need access the servlet by http://localhost:8080/EnterpriseApplication1-war/NewServlet to initialize an ejb instance which has bean injected, and then undeploy the ear.

Comment by arjavdesai [ 03/Apr/13 ]

As per spec and as mentioned in javadoc, http://docs.oracle.com/javaee/6/api/javax/enterprise/context/RequestScoped.html, the request context is not active during the life cycle method's of a bean i.e. PreDestroy in this case. If you need to have a business need for this, the suggested approach is to have PreDestroy method in RequestScoped bean itself rather than calling it from PreDestroy (life cycle) method if another bean.





[GLASSFISH-19082] Failed to inject JMSContext into servlet filter or servlet context listener. Created: 17/Sep/12  Updated: 20/Dec/16  Resolved: 13/Apr/13

Status: Resolved
Project: glassfish
Component/s: cdi
Affects Version/s: 4.0_dev
Fix Version/s: 4.0

Type: Bug Priority: Major
Reporter: David Zhao Assignee: jjsnyder83
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Zip Archive WebApplication1.zip     Zip Archive WebApplication2.zip    

 Description   

When deploying applications which have JMSContext injected into servlet filter or servlet context listener, there is WELD-001308 error in server.log and then deployment fails.

===========================
exception of servlet filter - WebApplication1
===========================
[#|2012-09-17T13:32:23.575+0800|SEVERE|44.0|javax.enterprise.web|_ThreadID=13;_ThreadName=admin-listener(2);|WebModule[/WebApplication1]PWC1270: Exception starting filter Injection Filter
java.lang.InstantiationException
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:124)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4871)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:5505)
at com.sun.enterprise.web.WebModule.start(WebModule.java:512)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:932)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:916)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:687)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2289)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1935)
at com.sun.enterprise.web.WebApplication.start(WebApplication.java:109)
at org.glassfish.internal.data.EngineRef.start(EngineRef.java:122)
at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:278)
at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:299)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:497)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:228)
at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:482)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:529)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:550)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1430)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1600(CommandRunnerImpl.java:114)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1734)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1683)
at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:592)
at com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource(AdminAdapter.java:238)
at org.glassfish.grizzly.http.server.StaticHttpHandler.service(StaticHttpHandler.java:297)
at com.sun.enterprise.v3.server.HK2Dispatcher.dispatch(HK2Dispatcher.java:113)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:236)
at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:164)
at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:175)
at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:265)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:200)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:134)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112)
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:825)
at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:578)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:558)
at java.lang.Thread.run(Thread.java:662)
Caused by: com.sun.enterprise.container.common.spi.util.InjectionException: Error creating managed object for class: class test.MyFilter
at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.createManagedObject(InjectionManagerImpl.java:329)
at com.sun.enterprise.web.WebContainer.createFilterInstance(WebContainer.java:1025)
at com.sun.enterprise.web.WebModule.createFilterInstance(WebModule.java:1984)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:253)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:120)
... 42 more
Caused by: org.jboss.weld.exceptions.UnsatisfiedResolutionException: WELD-001308 Unable to resolve any beans for Types: [interface javax.enterprise.inject.spi.InjectionPoint]; Bindings: [@javax.enterprise.inject.Default()]
at org.jboss.weld.manager.BeanManagerImpl.getBean(BeanManagerImpl.java:707)
at org.jboss.weld.manager.BeanManagerImpl.getInjectableReference(BeanManagerImpl.java:696)
at org.jboss.weld.injection.ParameterInjectionPoint.getValueToInject(ParameterInjectionPoint.java:115)
at org.jboss.weld.injection.ConstructorInjectionPoint.getParameterValues(ConstructorInjectionPoint.java:170)
at org.jboss.weld.injection.ConstructorInjectionPoint.newInstance(ConstructorInjectionPoint.java:117)
at org.jboss.weld.bean.ManagedBean.createInstance(ManagedBean.java:333)
at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget.produce(ManagedBean.java:200)
at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:289)
at org.jboss.weld.context.unbound.DependentContextImpl.get(DependentContextImpl.java:61)
at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:616)
at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:681)
at org.jboss.weld.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:118)
at org.jboss.weld.util.Beans.injectBoundFields(Beans.java:703)
at org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:712)
at org.jboss.weld.manager.SimpleInjectionTarget$1.proceed(SimpleInjectionTarget.java:106)
at org.glassfish.weld.services.InjectionServicesImpl.aroundInject(InjectionServicesImpl.java:134)
at org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:46)
at org.jboss.weld.manager.SimpleInjectionTarget.inject(SimpleInjectionTarget.java:102)
at org.glassfish.weld.services.JCDIServiceImpl.createManagedObject(JCDIServiceImpl.java:282)
at org.glassfish.weld.services.JCDIServiceImpl.createManagedObject(JCDIServiceImpl.java:231)
at com.sun.enterprise.container.common.impl.managedbean.ManagedBeanManagerImpl.createManagedBean(ManagedBeanManagerImpl.java:462)
at com.sun.enterprise.container.common.impl.managedbean.ManagedBeanManagerImpl.createManagedBean(ManagedBeanManagerImpl.java:416)
at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.createManagedObject(InjectionManagerImpl.java:313)
... 46 more

#]

==========================
exception of servlet context listener - WebApplication2
==========================
[#|2012-09-17T14:01:01.362+0800|SEVERE|44.0|org.apache.catalina.core.ContainerBase|_ThreadID=12;_ThreadName=admin-listener(1);|ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: java.lang.IllegalArgumentException: javax.servlet.ServletException: com.sun.enterprise.container.common.spi.util.InjectionException: Error creating managed object for class: class test.MyServletContextListener
at org.apache.catalina.core.StandardContext.start(StandardContext.java:5460)
at com.sun.enterprise.web.WebModule.start(WebModule.java:512)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:932)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:916)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:687)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2289)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1935)
at com.sun.enterprise.web.WebApplication.start(WebApplication.java:109)
at org.glassfish.internal.data.EngineRef.start(EngineRef.java:122)
at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:278)
at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:299)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:497)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:228)
at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:482)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:529)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:550)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1430)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1600(CommandRunnerImpl.java:114)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1734)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1683)
at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:592)
at com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource(AdminAdapter.java:238)
at org.glassfish.grizzly.http.server.StaticHttpHandler.service(StaticHttpHandler.java:297)
at com.sun.enterprise.v3.server.HK2Dispatcher.dispatch(HK2Dispatcher.java:113)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:236)
at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:164)
at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:175)
at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:265)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:200)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:134)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112)
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:825)
at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:578)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:558)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.IllegalArgumentException: javax.servlet.ServletException: com.sun.enterprise.container.common.spi.util.InjectionException: Error creating managed object for class: class test.MyServletContextListener
at org.apache.catalina.core.StandardContext.addListener(StandardContext.java:2864)
at org.apache.catalina.core.StandardContext.addApplicationListener(StandardContext.java:2062)
at com.sun.enterprise.web.TomcatDeploymentConfig.configureApplicationListener(TomcatDeploymentConfig.java:236)
at com.sun.enterprise.web.TomcatDeploymentConfig.configureWebModule(TomcatDeploymentConfig.java:95)
at com.sun.enterprise.web.WebModuleContextConfig.start(WebModuleContextConfig.java:251)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:349)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:163)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:5457)
... 40 more
Caused by: javax.servlet.ServletException: com.sun.enterprise.container.common.spi.util.InjectionException: Error creating managed object for class: class test.MyServletContextListener
at org.apache.catalina.core.StandardContext.createListener(StandardContext.java:2984)
at org.apache.catalina.core.StandardContext.loadListener(StandardContext.java:4992)
at com.sun.enterprise.web.WebModule.loadListener(WebModule.java:1615)
at org.apache.catalina.core.StandardContext.addListener(StandardContext.java:2862)
... 47 more
Caused by: com.sun.enterprise.container.common.spi.util.InjectionException: Error creating managed object for class: class test.MyServletContextListener
at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.createManagedObject(InjectionManagerImpl.java:329)
at com.sun.enterprise.web.WebContainer.createListenerInstance(WebContainer.java:1041)
at com.sun.enterprise.web.WebModule.createListenerInstance(WebModule.java:1999)
at org.apache.catalina.core.StandardContext.createListener(StandardContext.java:2982)
... 50 more
Caused by: org.jboss.weld.exceptions.UnsatisfiedResolutionException: WELD-001308 Unable to resolve any beans for Types: [interface javax.enterprise.inject.spi.InjectionPoint]; Bindings: [@javax.enterprise.inject.Default()]
at org.jboss.weld.manager.BeanManagerImpl.getBean(BeanManagerImpl.java:707)
at org.jboss.weld.manager.BeanManagerImpl.getInjectableReference(BeanManagerImpl.java:696)
at org.jboss.weld.injection.ParameterInjectionPoint.getValueToInject(ParameterInjectionPoint.java:115)
at org.jboss.weld.injection.ConstructorInjectionPoint.getParameterValues(ConstructorInjectionPoint.java:170)
at org.jboss.weld.injection.ConstructorInjectionPoint.newInstance(ConstructorInjectionPoint.java:117)
at org.jboss.weld.bean.ManagedBean.createInstance(ManagedBean.java:333)
at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget.produce(ManagedBean.java:200)
at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:289)
at org.jboss.weld.context.unbound.DependentContextImpl.get(DependentContextImpl.java:61)
at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:616)
at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:681)
at org.jboss.weld.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:118)
at org.jboss.weld.util.Beans.injectBoundFields(Beans.java:703)
at org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:712)
at org.jboss.weld.manager.SimpleInjectionTarget$1.proceed(SimpleInjectionTarget.java:106)
at org.glassfish.weld.services.InjectionServicesImpl.aroundInject(InjectionServicesImpl.java:134)
at org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:46)
at org.jboss.weld.manager.SimpleInjectionTarget.inject(SimpleInjectionTarget.java:102)
at org.glassfish.weld.services.JCDIServiceImpl.createManagedObject(JCDIServiceImpl.java:282)
at org.glassfish.weld.services.JCDIServiceImpl.createManagedObject(JCDIServiceImpl.java:231)
at com.sun.enterprise.container.common.impl.managedbean.ManagedBeanManagerImpl.createManagedBean(ManagedBeanManagerImpl.java:462)
at com.sun.enterprise.container.common.impl.managedbean.ManagedBeanManagerImpl.createManagedBean(ManagedBeanManagerImpl.java:416)
at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.createManagedObject(InjectionManagerImpl.java:313)
... 53 more

#]

[#|2012-09-17T14:01:01.363+0800|WARNING|44.0|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=12;_ThreadName=admin-listener(1);|java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.IllegalArgumentException: javax.servlet.ServletException: com.sun.enterprise.container.common.spi.util.InjectionException: Error creating managed object for class: class test.MyServletContextListener
java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.IllegalArgumentException: javax.servlet.ServletException: com.sun.enterprise.container.common.spi.util.InjectionException: Error creating managed object for class: class test.MyServletContextListener
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:936)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:916)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:687)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2289)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1935)
at com.sun.enterprise.web.WebApplication.start(WebApplication.java:109)
at org.glassfish.internal.data.EngineRef.start(EngineRef.java:122)
at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:278)
at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:299)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:497)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:228)
at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:482)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:529)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:550)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1430)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1600(CommandRunnerImpl.java:114)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1734)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1683)
at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:592)
at com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource(AdminAdapter.java:238)
at org.glassfish.grizzly.http.server.StaticHttpHandler.service(StaticHttpHandler.java:297)
at com.sun.enterprise.v3.server.HK2Dispatcher.dispatch(HK2Dispatcher.java:113)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:236)
at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:164)
at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:175)
at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:265)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:200)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:134)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112)
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:825)
at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:578)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:558)
at java.lang.Thread.run(Thread.java:662)

#]

[#|2012-09-17T14:01:01.364+0800|SEVERE|44.0|javax.enterprise.system.tools.admin.org.glassfish.deployment.admin|_ThreadID=12;_ThreadName=admin-listener(1);|Exception while invoking class com.sun.enterprise.web.WebApplication start method
java.lang.Exception: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.IllegalArgumentException: javax.servlet.ServletException: com.sun.enterprise.container.common.spi.util.InjectionException: Error creating managed object for class: class test.MyServletContextListener
at com.sun.enterprise.web.WebApplication.start(WebApplication.java:138)
at org.glassfish.internal.data.EngineRef.start(EngineRef.java:122)
at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:278)
at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:299)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:497)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:228)
at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:482)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:529)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:550)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1430)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1600(CommandRunnerImpl.java:114)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1734)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1683)
at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:592)
at com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource(AdminAdapter.java:238)
at org.glassfish.grizzly.http.server.StaticHttpHandler.service(StaticHttpHandler.java:297)
at com.sun.enterprise.v3.server.HK2Dispatcher.dispatch(HK2Dispatcher.java:113)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:236)
at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:164)
at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:175)
at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:265)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:200)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:134)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112)
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:825)
at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:578)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:558)
at java.lang.Thread.run(Thread.java:662)

#]

[#|2012-09-17T14:01:01.365+0800|SEVERE|44.0|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=12;_ThreadName=admin-listener(1);|java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.IllegalArgumentException: javax.servlet.ServletException: com.sun.enterprise.container.common.spi.util.InjectionException: Error creating managed object for class: class test.MyServletContextListener
java.lang.Exception: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.IllegalArgumentException: javax.servlet.ServletException: com.sun.enterprise.container.common.spi.util.InjectionException: Error creating managed object for class: class test.MyServletContextListener
at com.sun.enterprise.web.WebApplication.start(WebApplication.java:138)
at org.glassfish.internal.data.EngineRef.start(EngineRef.java:122)
at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:278)
at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:299)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:497)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:228)
at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:482)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:529)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:550)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1430)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1600(CommandRunnerImpl.java:114)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1734)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1683)
at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:592)
at com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource(AdminAdapter.java:238)
at org.glassfish.grizzly.http.server.StaticHttpHandler.service(StaticHttpHandler.java:297)
at com.sun.enterprise.v3.server.HK2Dispatcher.dispatch(HK2Dispatcher.java:113)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:236)
at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:164)
at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:175)
at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:265)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:200)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:134)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112)
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:825)
at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:578)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:558)
at java.lang.Thread.run(Thread.java:662)

#]


 Comments   
Comment by arjavdesai [ 13/Apr/13 ]

I just tried with latest glassfish build with revision's upto 61409. The app is getting deployed fine i.e.

2013-04-13T07:42:20.845-0400] [glassfish 4.0] [INFO] [AS-WEB-GLUE-00172] [javax.enterprise.web] [tid: _ThreadID=35 _ThreadName=admin-listener(4)] [timeMillis: 1365853340845] [levelValue: 800] [[
Loading application [WebApplication1] at [/WebApplication1]]]

[2013-04-13T07:42:20.861-0400] [glassfish 4.0] [INFO] [] [javax.enterprise.system.core] [tid: _ThreadID=35 _ThreadName=admin-listener(4)] [timeMillis: 1365853340861] [levelValue: 800] [[
WebApplication1 was successfully deployed in 828 milliseconds.]]

Also, when invoked as either host:port/WebApplication1 or WebApplication2, I see "Hello World". Please re-try.

Comment by arjavdesai [ 13/Apr/13 ]

For WebApplication2 deployment, it shows

[2013-04-13T07:43:23.329-0400] [glassfish 4.0] [INFO] [] [] [tid: _ThreadID=128 _ThreadName=Thread-3] [timeMillis: 1365853403329] [levelValue: 800] [[
contextInitialized...]]

[2013-04-13T07:43:23.337-0400] [glassfish 4.0] [INFO] [AS-WEB-GLUE-00172] [javax.enterprise.web] [tid: _ThreadID=128 _ThreadName=admin-listener(6)] [timeMillis: 1365853403337] [levelValue: 800] [[
Loading application [WebApplication2] at [/WebApplication2]]]

[2013-04-13T07:43:23.352-0400] [glassfish 4.0] [INFO] [] [javax.enterprise.system.core] [tid: _ThreadID=128 _ThreadName=admin-listener(6)] [timeMillis: 1365853403352] [levelValue: 800] [[
WebApplication2 was successfully deployed in 566 milliseconds.]]

[2013-04-13T07:45:58.288-0400] [glassfish 4.0] [INFO] [] [] [tid: _ThreadID=33 _ThreadName=Thread-3] [timeMillis: 1365853558288] [levelValue: 800] [[
com.sun.webui.jsf.component.DropDown::The current value of component propertyForm:deployTable:topActionsGroup1:filter does not match any of the selections.
Did you forget to reset the value after changing the options?]]





[GLASSFISH-19288] Deploying an ear with an ejb jar with a Session bean that specializes another causes AmbiguousDependencyException Created: 05/Nov/12  Updated: 20/Dec/16  Resolved: 28/Mar/13

Status: Closed
Project: glassfish
Component/s: cdi
Affects Version/s: 4.0_dev
Fix Version/s: 4.0_dev

Type: Bug Priority: Major
Reporter: jjsnyder83 Assignee: jjsnyder83
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Tags: req-weld-fix

 Description   

Define a specializing ejb like below, place it in a jar in the root directory of an ear. This causes an AmbiguousDependencyException when the injection point is:
@Inject
SessionSpecializationService sessionSpecializationService;

@Local
public interface SessionSpecializationService {}

@Stateless
public class SessionSpecializationServiceImplementation implements SessionSpecializationService {}

@Stateless
@Specializes
public class MockSessionSpecializationService extends SessionSpecializationServiceImplementation {}



 Comments   
Comment by jjsnyder83 [ 12/Nov/12 ]

The previous change was incorrect. I have reverted the change.
Committed revision 56969.

Comment by jjsnyder83 [ 12/Nov/12 ]

There seems to be a bug in Weld causing this.

Comment by tlcksnyder [ 28/Mar/13 ]

Resolved as of Weld 2.0.0.Beta6.





Integrate CDI 1.1 (GLASSFISH-19191)

[GLASSFISH-19016] Implement support for transaction scope Created: 17/Aug/12  Updated: 20/Dec/16  Resolved: 13/Nov/12

Status: Resolved
Project: glassfish
Component/s: cdi
Affects Version/s: 4.0
Fix Version/s: 4.0_dev

Type: Sub-task Priority: Major
Reporter: Nigel Deakin Assignee: jjsnyder83
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Dependency
depends on JTA_SPEC-7 TransactionScoped annotation for CDI ... Closed
blocks GLASSFISH-19004 Implement injection of JMSContext obj... Resolved
Tags: ee7cdi, jms-2-implementation

 Description   

This issue covers the implementation of a built-in transaction scope for use by the injectable JMSContext implementation.



 Comments   
Comment by tlcksnyder [ 19/Oct/12 ]

New TransactionScope:https://issues.jboss.org/browse/CDI-121
8/17/2012: This annotation will be defined in the JTA area.
The implementation should be provided as a portable extension by the application server and made available to all applications.
I need to discuss this with Paul Parkinson so that we can schedule the work.

Declarative transactions on managed beans, Transaction JTA IssueInterceptor:https://issues.jboss.org/browse/CDI-27
After speaking with Paul Parkinson most, and quite likely all, of this work will be done in the JTA area of GlassFish. CDI may have to help implement the interceptors.
See Linda's blog entry:https://blogs.oracle.com/ldemichiel/entry/transactional_interceptors
Some Jave EE platform discussions (http://java.net/projects/javaee-spec/lists/jsr342-experts/archive)

New JMS annotation-handling...talk to Nigel

Comment by jjsnyder83 [ 13/Nov/12 ]

Committed revision 56977.

Comment by jjsnyder83 [ 13/Nov/12 ]

Error in previous revision. Fixed in revision 56979.





[GLASSFISH-17366] Log lines consume a lot of time. Created: 28/Sep/11  Updated: 20/Dec/16  Resolved: 22/Oct/12

Status: Resolved
Project: glassfish
Component/s: cdi
Affects Version/s: 3.1.1
Fix Version/s: 4.0_dev

Type: Improvement Priority: Major
Reporter: thomas.giger Assignee: jjsnyder83
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows XP


Tags: weld-integration

 Description   

We have an application that consists of a couple of CDI bean modules. I noticed that the time to redeploy could be reduced singnificantly by removing some trace lines in the weld-integration.jar (in my case from 54 to 19 seconds)

The lines are:
BeanDeploymentArchiveImpl.java

  • getBeanClasses()
    • logger.log(FINER, "set TCL for " + this.id + " to " + this.moduleClassLoaderForBDA);

and
DeplyomentAcrhiveImpl.java

  • getBeanDeploymentArchives(boolean printDebug) {
    • if (printDebug) logger.log(FINE, "DeploymentImpl::getBDAs. " +
      "Returning \n" + beanDeploymentArchives);

It seemed strange to me. May be you can have a look into this.



 Comments   
Comment by Sivakumar Thyagarajan [ 15/Oct/12 ]

Will investigate and fix this in 4.0. Exact build TBD.

Comment by Tom Mueller [ 17/Oct/12 ]

Marking the fix version field as "future-release". This is based on an evaluation by John, Michael, and Tom WRT to the PRD for the Java EE 7 RI/SDK. This issues was deemed to not be a P1 for that release. If this is in error or there are other reasons why this RFE should be targeted for the Java EE 7 RI/SDK release, then change the fix version field back to an appropriate build.

Comment by jjsnyder83 [ 22/Oct/12 ]

Added checks on the log level so Strings aren't built unnecessarily.

Committed revision 56679





[GLASSFISH-19406] BeanDeploymentArchiveImpl using wrong class loader to resolve beans.xml Created: 05/Dec/12  Updated: 20/Dec/16  Resolved: 05/Dec/12

Status: Resolved
Project: glassfish
Component/s: cdi
Affects Version/s: 4.0_dev
Fix Version/s: None

Type: Bug Priority: Major
Reporter: jjsnyder83 Assignee: jjsnyder83
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Comments   
Comment by jjsnyder83 [ 05/Dec/12 ]

Committed revision 57299

Comment by jjsnyder83 [ 07/Dec/12 ]

In the integration with the new Bean Validator 1.1 we ran into a case
where the wrong beans.xml was being loaded. It happens where there are
more than 1 beans.xml in the classpath and using the ContextClassLoader
was returning the first one that it found which is not necessarily the
one in the archive that was being processed. This happened when running
glassfish in embedded mode.

The ReadableArchive does not have methods for returning URLs for the
entries only Strings. So to make sure that we get the beans.xml from the
archive we created the temporary class loader for the archive and then
get the URL for the beans.xml resource.





[GLASSFISH-19572] Simplify exporting of com.sun.ejb.containers.interceptors from ejb-container Created: 23/Jan/13  Updated: 20/Dec/16  Resolved: 21/Sep/15

Status: Closed
Project: glassfish
Component/s: cdi
Affects Version/s: 4.0_dev
Fix Version/s: 4.0

Type: Bug Priority: Major
Reporter: jjsnyder83 Assignee: Romain Grécourt
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

A CDI tck test was failing because ejb interceptors not visible to cdi module. I exported the entire com.sun.ejb.containers.interceptors package but it may not be necessary to export the entire package.



 Comments   
Comment by jjsnyder83 [ 23/Jan/13 ]

Committed revision 58766

Comment by jjsnyder83 [ 23/Jan/13 ]

Find the tck test that fails so that we can investigate further. We might want to add an interface or move things around. It's not the best choice to export the whole package at once.

Comment by phil.zampino [ 26/Jun/13 ]

I tried removing the export that was added via rev. 58766, but I can't reproduce any CDI TCK failures with this change.

Comment by phil.zampino [ 12/Aug/13 ]

Committed rev. 62498





[GLASSFISH-19574] The org.glassfish.weld.jsf.WeldApplicationFactory must have a default no-arg constructor Created: 23/Jan/13  Updated: 20/Dec/16  Resolved: 23/Jan/13

Status: Resolved
Project: glassfish
Component/s: cdi
Affects Version/s: 4.0_dev
Fix Version/s: 4.0_dev

Type: Bug Priority: Major
Reporter: jjsnyder83 Assignee: jjsnyder83
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

org.glassfish.weld.jsf.WeldApplicationFactory must have a default no-arg constructor. This worked in Weld 1.1.X but it should not have. It now fails in CDI 2.x.



 Comments   
Comment by jjsnyder83 [ 23/Jan/13 ]

Committed revision 58770





[GLASSFISH-19626] NullPointer Exception using @Inject in glassfish build 72 Created: 03/Feb/13  Updated: 20/Dec/16  Resolved: 28/Mar/13

Status: Closed
Project: glassfish
Component/s: cdi
Affects Version/s: 4.0_dev
Fix Version/s: 4.0

Type: Bug Priority: Major
Reporter: niveditadixitp Assignee: jwells
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

glassfish-4.0-b72 , primefaces 3.4 and JSF 2.2 Mojarra in glassfish



 Description   

I am getting Null pointer exception when I use @Inject annotation to inject a service class defined in jar into my fa?ade defined war .
I am using glassfish-4.0-b72 , primefaces 3.4 and JSF 2.2 defined in glassfish. Mojarra loads without any issues and so does primefaces.
When I use @Inject the injected bean does not get instantiated . Please let me know if I am missing something
I have beans.xml included in my .war and .jar as well.



 Comments   
Comment by Hong Zhang [ 04/Feb/13 ]

Assign to CDI team for evaluation.

Comment by tlcksnyder [ 14/Feb/13 ]

Do you have a test case you can share?

Comment by niveditadixitp [ 16/Feb/13 ]

No test case. But can explain in more detail

web layer in web project
include the service project in web project as deployment assembly dependency
1) ManagedBean has reference to the facade class
2) Facade class injects the service layer class defined in service.jar as follows
@Inject
private VendorService vendorService ;
3) included beans.xml in WEB-INF of the web project having content <beans/>

Service and persistent layer classes are in java project
4) VendorService is inerface and VendorServiceImpl is the implementation
5) included beans.xml in META-INF of the javaproject having content <beans/>

Comment by marina vatkina [ 19/Feb/13 ]

I'm wondering is it's the same problem as I reported in http://java.net/jira/browse/GLASSFISH-19581 (which I'm seeing more often in the hudson runs recently)

Comment by jwells [ 27/Mar/13 ]

I'm going to need more information (or a test case). For example, I need to see the code for the ManagedBean and the FacadeClass and I'd like to see the code for VendorService and VendorServiceImpl.

Also, it'd be nice to get service.jar and whatever.war you have to see if I can reproduce this.

Comment by tlcksnyder [ 27/Mar/13 ]

This bug will get moved to a future release without a test case.

Comment by niveditadixitp [ 30/Mar/13 ]

Please find below the code managed bean and the service class in services.jar

/**

  • */
    package net.java.adoptjsr.fcms.web.beans;

import java.io.Serializable;
import java.util.List;

import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedProperty;
import javax.faces.bean.RequestScoped;
import javax.inject.Named;

import net.java.adoptjsr.fcms.facade.VendorFacade;
import net.java.adoptjsr.fcms.facade.impl.VendorFacadeImpl;
import net.java.adoptjsr.fcms.model.TrustedVendor;
import net.java.adoptjsr.fcms.model.Vendor;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**

  • @author Nivedita_Dixit
    *
    */
    @Named(value="vendorBean")
    @RequestScoped
    public class VendorMaintainBean implements Serializable {

/**

  • */
    private static final long serialVersionUID = -6731561541756443536L;

/**

  • Logger
    */
    Logger log = LoggerFactory.getLogger(VendorMaintainBean.class);

@ManagedProperty(value="#

{param.page}

")
private String page;

private Vendor vendor;

private List<Vendor> vendors;

private VendorFacade vendorFacade = new VendorFacadeImpl();

/**

  • @return the vendors
    */
    public List<Vendor> getVendors() { return vendors; }

/**

  • @param vendors the vendors to set
    */
    public void setVendors(List<Vendor> vendors) { this.vendors = vendors; }

/**

  • @return the vendorFacade
    */
    public VendorFacade getVendorFacade() { return vendorFacade; }

/**

  • @param vendorFacade the vendorFacade to set
    */
    public void setVendorFacade(VendorFacade vendorFacade) { this.vendorFacade = new VendorFacadeImpl(); }

/**

  • @return the page
    */
    public String getPage() { return page; }

/**

  • @param page the page to set
    */
    public void setPage(String page) { this.page = page; }

/**

  • @return the vendor
    */
    public Vendor getVendor() { return vendor; }

/**

  • @param vendor the vendor to set
    */
    public void setVendor(Vendor vendor) { this.vendor = vendor; }

/**

  • Default Constructor
    */
    public VendorMaintainBean() { super(); vendor = new TrustedVendor(); }

@PostConstruct
public void init()

{ System.out.println(page); page="vendor/search"; }

/**

  • @return
    */
    public String find() { System.out.println( "in find"); return null; }

/**

  • @return
    */
    public String save() { vendorFacade.saveVendor(vendor); vendors = vendorFacade.findVendors(vendor); return null; }

/**

  • @return
    */
    public String delete() { return null; }


    /**
    *
    * @return
    */
    public String clear(){ vendor.setVendorName(null); return null; }

    /**
    *
    * @return
    */
    public String reset(){ return null; }

}

package net.java.adoptjsr.fcms.facade.impl;

import java.util.List;

import javax.inject.Inject;

import net.java.adoptjsr.fcms.facade.VendorFacade;
import net.java.adoptjsr.fcms.model.Vendor;
import net.java.adoptjsr.fcms.service.VendorService;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**

  • @author Nivedita_Dixit
  • */
    public class VendorFacadeImpl implements VendorFacade {

/**

  • Logger
    */
    Logger log = LoggerFactory.getLogger(VendorFacadeImpl.class);

@Inject
private VendorService vendorService ;

@Override
public Vendor saveVendor(Vendor vendor)

{ vendor = vendorService.saveVendor(vendor); return vendor; }

@Override
public Vendor findVendor(Vendor vendor)

{ return null; }

public List<Vendor> findVendors(Vendor vendor)

{ return vendorService.findVendors(vendor); }

}

/**

  • */
    package net.java.adoptjsr.fcms.service.impl;

import java.util.List;

import javax.enterprise.inject.Default;

import net.java.adoptjsr.fcms.dao.VendorDao;
import net.java.adoptjsr.fcms.dao.impl.VendorDaoImpl;
import net.java.adoptjsr.fcms.model.Vendor;
import net.java.adoptjsr.fcms.service.VendorService;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**

  • @author Nivedita_Dixit
  • */
    @Default
    public class VendorServiceImpl implements VendorService {

/**

  • Logger
    */
    Logger log = LoggerFactory.getLogger(VendorServiceImpl.class);

private VendorDao vendorDao = new VendorDaoImpl();

/**

  • */
    public VendorServiceImpl()

    { super(); }

/**

  • @return the vendorDao
    */
    public VendorDao getVendorDao() { return vendorDao; }

/**

  • @param vendorDao the vendorDao to set
    */
    public void setVendorDao(VendorDao vendorDao) { this.vendorDao = vendorDao; }

/**

  • */
    public Vendor saveVendor(Vendor vendor)

    { vendor = vendorDao.saveVendor(vendor); return vendor; }

/**

  • */
    public void removeVendor(Vendor vendor)

    { vendorDao.removeVendor(vendor); }

/**

  • */
    public List<Vendor> findVendors(Vendor vendor)

    { return vendorDao.findVendors(vendor); }

}





Integrate CDI 1.1 (GLASSFISH-19191)

[GLASSFISH-19192] CDI 1.1 Web Container Integration Created: 19/Oct/12  Updated: 20/Dec/16  Resolved: 05/Mar/13

Status: Closed
Project: glassfish
Component/s: cdi
Affects Version/s: None
Fix Version/s: 4.0_dev

Type: Sub-task Priority: Major
Reporter: tlcksnyder Assignee: jjsnyder83
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Tags: ee7cdi

 Description   

Integrate CDI Interceptors with Web Container (WEB-4.4).

Add support the following built-in beans:

  • A bean with bean type javax.servlet.http.HttpServletRequest, allowing injection of a reference to the HttpServletRequest.
  • A bean with bean type javax.servlet.http.HttpSession, allowing injection of a reference to the HttpSession.
  • A bean with bean type javax.servlet.ServletContext, allowing injection of a reference to the ServletContext.

Ability to access the BeanManager from the ServletContext



 Comments   
Comment by tlcksnyder [ 05/Mar/13 ]

CDI integration is checked & available as of b79-02_28_2013





Integrate CDI 1.1 (GLASSFISH-19191)

[GLASSFISH-19276] Ingegrate Weld 2.0 Created: 01/Nov/12  Updated: 20/Dec/16  Resolved: 05/Mar/13

Status: Closed
Project: glassfish
Component/s: cdi
Affects Version/s: None
Fix Version/s: 4.0_dev

Type: Sub-task Priority: Major
Reporter: jjsnyder83 Assignee: jjsnyder83
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Comments   
Comment by jjsnyder83 [ 01/Nov/12 ]

Integrate GlassFish with Weld 2.0 Currently Weld is at Alpha 3. The 2.0 Final is scheduled for end of 2012.

The specific integration points are defined here: https://community.jboss.org/wiki/WeldIntegratorGuide-ChangesForWeld20

This will also include passing the JSR299.

Comment by tlcksnyder [ 05/Mar/13 ]

CDI integration is checked & available as of b79-02_28_2013





Integrate CDI 1.1 (GLASSFISH-19191)

[GLASSFISH-19341] Migrate CDI logging. Created: 13/Nov/12  Updated: 20/Dec/16  Resolved: 07/Mar/13

Status: Resolved
Project: glassfish
Component/s: cdi
Affects Version/s: None
Fix Version/s: 4.0_dev

Type: Sub-task Priority: Major
Reporter: jjsnyder83 Assignee: jjsnyder83
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Comments   
Comment by jjsnyder83 [ 13/Nov/12 ]

http://aseng-wiki.us.oracle.com/asengwiki/display/GlassFish/Logging+Guide
http://aseng-wiki.us.oracle.com/asengwiki/display/GlassFish/GF+Logging+Migration+Status

Comment by jjsnyder83 [ 07/Mar/13 ]

Completed.
Committed revision 60101





[GLASSFISH-19693] SEVERE: Exception during lifecycle processing org.glassfish.deployment.common.DeploymentException: CDI deployment failure:Error loading class servlets.Servlet1 Created: 19/Feb/13  Updated: 20/Dec/16  Resolved: 21/Feb/13

Status: Resolved
Project: glassfish
Component/s: cdi
Affects Version/s: 4.0_dev
Fix Version/s: None

Type: Bug Priority: Critical
Reporter: marfous Assignee: jjsnyder83
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Product Version: NetBeans IDE Dev (Build 20130218-0f0525fff6ef)
Java: 1.7.0_06; Java HotSpot(TM) 64-Bit Server VM 23.2-b09
Runtime: Java(TM) SE Runtime Environment 1.7.0_06-b24
System: Linux version 3.2.0-27-generic running on amd64; UTF-8; en_US (nb)
GlassFish: GlassFish Server 4.0.b76



 Description   

I'm not able to deploy sample JMS2.0 project onto Glassfish because the exception mentioned below. The code looks well to me and form the exception it just seems to me that something around CDI in GlassFish4 failed.

Link to the application:
http://java.net/projects/jms-spec/downloads/download/JMS20Demo.zip

Server output:
SEVERE: Class [ Lbeans/JavaEESenderNew; ] not found. Error while loading [ class servlets.Servlet1 ]
SEVERE: Class [ Lbeans/JavaEESenderNew; ] not found. Error while loading [ class servlets.Servlet1 ]
INFO: EJB5181:Portable JNDI names for EJB JavaEESyncReceiverNewCDI: [java:global/JMS20Demo/JavaEESyncReceiverNewCDI, java:global/JMS20Demo/JavaEESyncReceiverNewCDI!beans.JavaEESyncReceiverNewCDI]
INFO: EJB5181:Portable JNDI names for EJB JavaEESenderOld: [java:global/JMS20Demo/JavaEESenderOld, java:global/JMS20Demo/JavaEESenderOld!beans.JavaEESenderOld]
INFO: EJB5181:Portable JNDI names for EJB JavaEESyncReceiverNewCDIWithProperties: [java:global/JMS20Demo/JavaEESyncReceiverNewCDIWithProperties!beans.JavaEESyncReceiverNewCDIWithProperties, java:global/JMS20Demo/JavaEESyncReceiverNewCDIWithProperties]
INFO: EJB5181:Portable JNDI names for EJB JavaEESenderNewCDI: [java:global/JMS20Demo/JavaEESenderNewCDI, java:global/JMS20Demo/JavaEESenderNewCDI!beans.JavaEESenderNewCDI]
INFO: EJB5181:Portable JNDI names for EJB JavaEESyncReceiverOld: [java:global/JMS20Demo/JavaEESyncReceiverOld!beans.JavaEESyncReceiverOld, java:global/JMS20Demo/JavaEESyncReceiverOld]
INFO: EJB5181:Portable JNDI names for EJB JavaEESenderNewCDIWithProperties: [java:global/JMS20Demo/JavaEESenderNewCDIWithProperties, java:global/JMS20Demo/JavaEESenderNewCDIWithProperties!beans.JavaEESenderNewCDIWithProperties]
INFO: EJB5181:Portable JNDI names for EJB JavaEESenderOldWithProperties: [java:global/JMS20Demo/JavaEESenderOldWithProperties, java:global/JMS20Demo/JavaEESenderOldWithProperties!beans.JavaEESenderOldWithProperties]
SEVERE: Exception during lifecycle processing
org.glassfish.deployment.common.DeploymentException: CDI deployment failure:Error loading class servlets.Servlet1
at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:203)
at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:131)
at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:303)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:493)
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:528)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:524)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:356)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:523)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:547)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1424)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1500(CommandRunnerImpl.java:108)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1759)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1675)
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.StaticHttpHandler.service(StaticHttpHandler.java:297)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:246)
at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:164)
at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:175)
at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:273)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:200)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:134)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112)
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:820)
at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544)
at java.lang.Thread.run(Thread.java:722)
Caused by: org.jboss.weld.resources.spi.ResourceLoadingException: Error loading class servlets.Servlet1
at org.jboss.weld.resources.ClassTransformer.loadClass(ClassTransformer.java:167)
at org.jboss.weld.manager.BeanManagerImpl.createAnnotatedType(BeanManagerImpl.java:1026)
at org.glassfish.weld.WeldDeployer.firePITEvent(WeldDeployer.java:385)
at org.glassfish.weld.WeldDeployer.fireProcessInjectionTargetEvents(WeldDeployer.java:357)
at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:194)
... 35 more
Caused by: java.lang.NoClassDefFoundError: Lbeans/JavaEESenderNew;
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.java:2308)
at java.lang.Class.getDeclaredFields(Class.java:1760)
at org.jboss.weld.util.reflection.SecureReflections$4.work(SecureReflections.java:105)
at org.jboss.weld.util.reflection.SecureReflections$4.work(SecureReflections.java:102)
at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:52)
at org.jboss.weld.util.reflection.SecureReflectionAccess.runAndWrap(SecureReflectionAccess.java:63)
at org.jboss.weld.util.reflection.SecureReflections.getDeclaredFields(SecureReflections.java:102)
at org.jboss.weld.introspector.jlr.WeldClassImpl.<init>(WeldClassImpl.java:155)
at org.jboss.weld.introspector.jlr.WeldClassImpl.of(WeldClassImpl.java:121)
at org.jboss.weld.resources.ClassTransformer$TransformTypeToWeldClass.apply(ClassTransformer.java:59)
at org.jboss.weld.resources.ClassTransformer$TransformTypeToWeldClass.apply(ClassTransformer.java:50)
at com.google.common.collect.ComputingConcurrentHashMap$ComputingValueReference.compute(ComputingConcurrentHashMap.java:355)
at com.google.common.collect.ComputingConcurrentHashMap$ComputingSegment.compute(ComputingConcurrentHashMap.java:184)
at com.google.common.collect.ComputingConcurrentHashMap$ComputingSegment.getOrCompute(ComputingConcurrentHashMap.java:153)
at com.google.common.collect.ComputingConcurrentHashMap.getOrCompute(ComputingConcurrentHashMap.java:69)
at com.google.common.collect.ComputingConcurrentHashMap$ComputingMapAdapter.get(ComputingConcurrentHashMap.java:393)
at org.jboss.weld.resources.ClassTransformer.loadClass(ClassTransformer.java:163)
... 39 more
Caused by: java.lang.ClassNotFoundException: beans.JavaEESenderNew
at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1729)
at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1579)
... 57 more

SEVERE: Exception while loading the app
SEVERE: Undeployment failed for context /JMS20Demo
WARNING: JCDI shutdown error
java.lang.IllegalStateException: Singleton not set for WebappClassLoader (delegate=true)
at org.glassfish.weld.ACLSingletonProvider$ACLSingleton.get(ACLSingletonProvider.java:110)
at org.jboss.weld.Container.instance(Container.java:54)
at org.jboss.weld.bootstrap.WeldBootstrap.shutdown(WeldBootstrap.java:466)
at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:288)
at org.glassfish.kernel.event.EventsImpl$1.run(EventsImpl.java:123)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)

SEVERE: Exception while loading the app : CDI deployment failure:Error loading class servlets.Servlet1
org.jboss.weld.resources.spi.ResourceLoadingException: Error loading class servlets.Servlet1
at org.jboss.weld.resources.ClassTransformer.loadClass(ClassTransformer.java:167)
at org.jboss.weld.manager.BeanManagerImpl.createAnnotatedType(BeanManagerImpl.java:1026)
at org.glassfish.weld.WeldDeployer.firePITEvent(WeldDeployer.java:385)
at org.glassfish.weld.WeldDeployer.fireProcessInjectionTargetEvents(WeldDeployer.java:357)
at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:194)
at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:131)
at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:303)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:493)
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:528)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:524)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:356)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:523)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:547)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1424)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1500(CommandRunnerImpl.java:108)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1759)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1675)
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.StaticHttpHandler.service(StaticHttpHandler.java:297)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:246)
at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:164)
at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:175)
at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:273)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:200)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:134)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112)
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:820)
at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.NoClassDefFoundError: Lbeans/JavaEESenderNew;
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.java:2308)
at java.lang.Class.getDeclaredFields(Class.java:1760)
at org.jboss.weld.util.reflection.SecureReflections$4.work(SecureReflections.java:105)
at org.jboss.weld.util.reflection.SecureReflections$4.work(SecureReflections.java:102)
at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:52)
at org.jboss.weld.util.reflection.SecureReflectionAccess.runAndWrap(SecureReflectionAccess.java:63)
at org.jboss.weld.util.reflection.SecureReflections.getDeclaredFields(SecureReflections.java:102)
at org.jboss.weld.introspector.jlr.WeldClassImpl.<init>(WeldClassImpl.java:155)
at org.jboss.weld.introspector.jlr.WeldClassImpl.of(WeldClassImpl.java:121)
at org.jboss.weld.resources.ClassTransformer$TransformTypeToWeldClass.apply(ClassTransformer.java:59)
at org.jboss.weld.resources.ClassTransformer$TransformTypeToWeldClass.apply(ClassTransformer.java:50)
at com.google.common.collect.ComputingConcurrentHashMap$ComputingValueReference.compute(ComputingConcurrentHashMap.java:355)
at com.google.common.collect.ComputingConcurrentHashMap$ComputingSegment.compute(ComputingConcurrentHashMap.java:184)
at com.google.common.collect.ComputingConcurrentHashMap$ComputingSegment.getOrCompute(ComputingConcurrentHashMap.java:153)
at com.google.common.collect.ComputingConcurrentHashMap.getOrCompute(ComputingConcurrentHashMap.java:69)
at com.google.common.collect.ComputingConcurrentHashMap$ComputingMapAdapter.get(ComputingConcurrentHashMap.java:393)
at org.jboss.weld.resources.ClassTransformer.loadClass(ClassTransformer.java:163)
... 39 more
Caused by: java.lang.ClassNotFoundException: beans.JavaEESenderNew
at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1729)
at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1579)
... 57 more



 Comments   
Comment by marfous [ 21/Feb/13 ]

I'm not able to reproduce the issue with the GF4.0.b76 and GF4.0.b77 today but I was definitely able to do so repeatedly yesterday (also after GF restarts).
It's strange to me and I'm keeping it at least for the log evaluation. Thanks.

Comment by jjsnyder83 [ 21/Feb/13 ]

Based on the exception trace it looks like CDI Failed because of some DD problem that appears to have been fixed because the failure cannot be reproduced.





[GLASSFISH-19738] [regression] Unable to use CDI from MDB Created: 28/Feb/13  Updated: 20/Dec/16  Resolved: 11/Mar/13

Status: Resolved
Project: glassfish
Component/s: cdi
Affects Version/s: 4.0_dev
Fix Version/s: 4.0_dev

Type: Bug Priority: Critical
Reporter: Sanjeeb Sahoo Assignee: Sanjeeb Sahoo
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

One of my fighterfish tests has started to fail and I think it is caused by latest Weld integration. It has an MDB which uses CDI and it is getting the following error:

[#|2013-02-28T01:52:33.068+0530|SEVERE|glassfish 4.0|javax.enterprise.system.container.ejb.mdb.org.glassfish.ejb.mdb|_ThreadID=190;_ThreadName=p: thread-pool-1; w: 7;_TimeMillis=1361996553068;_LevelValue=1000;ClassName=org.glassfish.ejb.mdb.MessageBeanContainer;MethodName=createMessageDrivenEJB;|java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
at org.jboss.weld.manager.BeanManagerImpl.createInjectionTarget(BeanManagerImpl.java:1061)
at org.glassfish.weld.services.JCDIServiceImpl._createJCDIInjectionContext(JCDIServiceImpl.java:191)
at org.glassfish.weld.services.JCDIServiceImpl.createJCDIInjectionContext(JCDIServiceImpl.java:164)
at com.sun.ejb.containers.BaseContainer.createEjbInstanceAndContext(BaseContainer.java:1637)
at org.glassfish.ejb.mdb.MessageBeanContainer.createMessageDrivenEJB(MessageBeanContainer.java:727)
at org.glassfish.ejb.mdb.MessageBeanContainer.access$100(MessageBeanContainer.java:113)
at org.glassfish.ejb.mdb.MessageBeanContainer$MessageBeanContextFactory.create(MessageBeanContainer.java:527)
at com.sun.ejb.containers.util.pool.NonBlockingPool.getObject(NonBlockingPool.java:246)
at org.glassfish.ejb.mdb.MessageBeanContainer._getContext(MessageBeanContainer.java:590)
at com.sun.ejb.containers.BaseContainer.getContext(BaseContainer.java:2534)
at org.glassfish.ejb.mdb.MessageBeanContainer.beforeMessageDelivery(MessageBeanContainer.java:1038)
at org.glassfish.ejb.mdb.MessageBeanListenerImpl.beforeMessageDelivery(MessageBeanListenerImpl.java:77)
at com.sun.enterprise.connectors.inbound.MessageEndpointInvocationHandler.invoke(MessageEndpointInvocationHandler.java:139)
at $Proxy403.beforeDelivery(Unknown Source)
at com.sun.messaging.jms.ra.OnMessageRunner.run(OnMessageRunner.java:262)
at com.sun.enterprise.connectors.work.OneWork.doWork(OneWork.java:107)
at com.sun.corba.ee.impl.threadpool.ThreadPoolImpl$WorkerThread.performWork(ThreadPoolImpl.java:497)
at com.sun.corba.ee.impl.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:540)

#]

When I look at Weld's BeanManager code, I see that it indeed does not support MDB:

public <T> InjectionTarget<T> createInjectionTarget(EjbDescriptor<T> descriptor) {
if (descriptor.isMessageDriven())

{ throw new UnsupportedOperationException(); }

InjectionTarget injectionTarget = getBean(descriptor).getProducer();
((InjectionTargetService)getServices().get(InjectionTargetService.class)).validateProducer(injectionTarget);
return injectionTarget;
}

Did we know this state of implementation before integrating? If so, when will they start supporting MDB again?

See [1] where we run this test suite that's now failing. Instructions to run the test suite is available at [2].

[1] http://gf-hudson.us.oracle.com/hudson/job/gf-trunk-fighterfish-it/4398/
[2] https://wikis.oracle.com/display/GlassFish/FighterFish+Development+Process#FighterFishDevelopmentProcess-Howtoexecutetests%3F



 Comments   
Comment by TangYong [ 28/Feb/13 ]

Sahoo,

You are right. This is an important issue and I also confirmed the issue. And from [1], Bean Manager's createInjectionTarget API should be still in development because once a api is in development, in this api's impl, an
UnsupportedOperationException will be thrown.

[1]: https://community.jboss.org/wiki/Weld2ImplementationPlan

So,

JJ,

I suggest that Weld 2.0 integration should be postponed until we make it clear that when jboss team will start supporting MDB again.

In addition, I also searched the whole JBOSS Weld Jira and did not find any issue/feature related to this jira.

Thanks
--Tang

Comment by TangYong [ 28/Feb/13 ]

I have filed a bug called https://issues.jboss.org/browse/WELD-1345, and selected fix version: 2.0.0.Beta5.

Wish jboss team can fix the issue as soon as possible.

Thanks
--Tang

Comment by jjsnyder83 [ 28/Feb/13 ]

We need Weld 2.0 in the trunk so that issues like this can be found as early as possible. The weld guys are aware of it and they will fix it and are using https://issues.jboss.org/browse/WELD-1345 to track the issue.

Comment by TangYong [ 28/Feb/13 ]

Sahoo,

If needing Weld 2.0 in early time, we only annotate MDB test as @Ignore, and whether having other way?

Comment by Sanjeeb Sahoo [ 28/Feb/13 ]

Tang,

Could you add please an Ignore to this test and update ExpectedResult file?

We will keep this bug open until a newer version of Weld is integrated at which point, we can remove @Ignore and mark this bug as RESOLVED. Let this bug be assigned to jjsnyder83.

Sahoo

Comment by TangYong [ 28/Feb/13 ]

Sahoo,

No Problem, and I want to confirm this test case and whether it is T2_Test.testapp16()?

Comment by Sanjeeb Sahoo [ 28/Feb/13 ]

Yes.

Comment by TangYong [ 28/Feb/13 ]

Done.

[Revision]
59908

Comment by Sanjeeb Sahoo [ 08/Mar/13 ]

JJ,

Can you please tell what's the ETA for this bug?

Sahoo

Comment by Sanjeeb Sahoo [ 11/Mar/13 ]

Now that new weld has been integrated, renabled in svn #60351.





[GLASSFISH-19714] Unable to deploy WAR when guava is present in WEB-INF/lib Created: 22/Feb/13  Updated: 20/Dec/16  Resolved: 21/Mar/13

Status: Closed
Project: glassfish
Component/s: cdi
Affects Version/s: 4.0_dev
Fix Version/s: 4.0

Type: Bug Priority: Blocker
Reporter: Michal Gajdos Assignee: phil.zampino
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Dependency
blocks JERSEY-1745 Deployment of bookmark.war fails on G... Closed

 Description   

When I try to deploy a WAR containing guava.jar in int (WEB-INF/lib) I get the following exception:

[#|2013-02-22T10:18:36.313+0100|SEVERE|glassfish 4.0|javax.enterprise.system.core|_ThreadID=58;_ThreadName=admin-listener(1);_TimeMillis=1361524716313;_LevelValue=1000;|Exception while deploying the app [helloworld-webapp-2.0-m12-1]|#]

[#|2013-02-22T10:18:36.313+0100|SEVERE|glassfish 4.0|javax.enterprise.system.core|_ThreadID=58;_ThreadName=admin-listener(1);_TimeMillis=1361524716313;_LevelValue=1000;_MessageID=NCLS-CORE-0026;|Exception during lifecycle processing
java.lang.StackOverflowError
        at java.util.HashMap.addEntry(HashMap.java:856)
        at java.util.HashMap.put(HashMap.java:484)
        at java.util.HashSet.add(HashSet.java:217)
        at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:248)
        at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
        at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
        at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
        at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
        at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
        at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
        at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
        at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
        at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
        at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
        at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
        at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
        at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
        at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
        at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
        at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
        at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
        at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
        at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
        at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
        at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
        at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
        at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
        at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
        at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
        at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
        at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)

It seems that WeldUtils class has problems processing com.google.common.annotations.GwtCompatible annotation.

The WAR is available at [1] sources of the app at [2].

[1] http://repo1.maven.org/maven2/org/glassfish/jersey/examples/helloworld-webapp/2.0-m12-1/helloworld-webapp-2.0-m12-1.war
[2] https://github.com/jersey/jersey/tree/master/examples/helloworld-webapp



 Comments   
Comment by phil.zampino [ 20/Mar/13 ]

This is the result of circular annotation relationships.
This code will be removed/replaced shortly, as the requirements around CDI enablement have changed.

Comment by TangYong [ 21/Mar/13 ]

The issue has been reproduced by vaadin demo[1],

[1]: https://github.com/vaadin/dashboard-demo

Currently, a thread[2] is in discussion.
[2]: http://java.net/projects/glassfish/lists/dev/archive/2013-03/message/98

Comment by phil.zampino [ 21/Mar/13 ]

Just committed rev. 60679 of appserver/web/gf-weld-connector/src/main/java/org/glassfish/weld/connector/WeldUtils.java to resolve this issue.
Please check the next build to verify.

Comment by tlcksnyder [ 21/Mar/13 ]

Tested successfully as of Revision: 60694.





[GLASSFISH-19729] CDI deployment failure:javax/transaction/Synchronization Created: 27/Feb/13  Updated: 20/Dec/16  Resolved: 28/Feb/13

Status: Resolved
Project: glassfish
Component/s: cdi
Affects Version/s: 4.0_dev
Fix Version/s: 4.0_dev

Type: Bug Priority: Major
Reporter: sherryshen Assignee: jjsnyder83
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OEL 6.2 and JDK1.7.0_10



 Description   

CDI bean with @PersistrenceContext in ejb.jar
appserver-sqe/pe/ejb/jpa20/ear/bvcallbackcdi

This test suite passed on b77 promoted.
The failure was reported on tests for
updating GF4.0 to 2.5.0-M8.



 Comments   
Comment by sherryshen [ 27/Feb/13 ]

I reproduced the failure on dev continuous build. It failed to deploy app.

http://gf-hudson.us.oracle.com/hudson/view/GlassFish/view/Trunk%20Continuous/job/gf-trunk-build-continuous/13543/artifact/bundles/glassfish.zip

http://sqe-hudson.us.oracle.com:8080/hudson/view/Sherry_core/job/sherry-das-d/4/artifact/cli.log

02/27/2013 03:55:17 EXIT: 1 asadmin deploy (...) jpa20-bvcallbackcdiApp.ear

http://sqe-hudson.us.oracle.com:8080/hudson/view/Sherry_core/job/sherry-das-d/4/artifact/server.log

[#|2013-02-27T03:55:16.978+0000|SEVERE|glassfish 4.0|javax.enterprise.system.core|_ThreadID=75;_ThreadName=admin-listener(1);_TimeMillis=1361937316978;_LevelValue=1000;_MessageID=NCLS-CORE-0026;|Exception during lifecycle processing
org.glassfish.deployment.common.DeploymentException: CDI deployment failure:javax/transaction/Synchronization
at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:203)
at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:131)
at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:328)

This test suite passed build 77 promoted.

Comment by sherryshen [ 27/Feb/13 ]

Thanks for the feedback from JJ Snyder.

The jta and cdi teams are in the middle of updating the javax.transaction packaging/bundling.
The change [1] caused the failure, and were reverted this morning. You should not see the failure (for now!)

[1]
#13542 (Feb 26, 2013 1:30:43 PM)

update javax.transaction-api.version to 1.2-b03 and update Transactional annotation impl and tests — paul_parkinson / detail

Comment by sherryshen [ 28/Feb/13 ]

The tests passed on b78 promoted.





[GLASSFISH-19747] Duplication of weld classes causes increase of distribution size by 3.5MB Created: 28/Feb/13  Updated: 20/Dec/16  Resolved: 09/May/13

Status: Closed
Project: glassfish
Component/s: cdi
Affects Version/s: 4.0_dev
Fix Version/s: 4.0_dev

Type: Bug Priority: Major
Reporter: Sanjeeb Sahoo Assignee: phil.zampino
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Tags: 4_0-approved

 Description   

To support CDI in ACC, we are including weld-se.jar in distribution. Its size is 3.5MB - same as weld-osgi-bundle.jar. A quick analysis shows that the two jars mostly overlapping. See the attached files which list the jar contents as resource names. In fact, the se jar even repackages javax.annotation, javax.el, javax.interceptor inside it. I see no reason for them to be included like that in our product when we already have them in file system in separate places. The only extra set of classes are actually org.jboss.weld.environment.se and crucial META-INF/services files. Here is what we should strive for:
a) Just have all weld related classes in weld-osgi-bundle.jar and make it useable from ACC.
b) If this is not possible, then see the SE specific artifacts can be packaged in to a separate jar and used in conjunction with above jar.



 Comments   
Comment by phil.zampino [ 29/Apr/13 ]

Determining if weld-se-core.jar can be the resolution to this issue.

Comment by phil.zampino [ 09/May/13 ]

Committed revision 61908. Replaced weld-se.jar with weld-se-core.jar

Comment by Sanjeeb Sahoo [ 09/May/13 ]

If this fix was so simple, I am wondering why we didn't do it in 4.0 which is going to be downloaded by a lot of folks. It reduces the benefit of the fix.

Comment by phil.zampino [ 09/May/13 ]
  • What is the impact on the customer of the bug?
    Improved download experience; Reduces the distribution size by almost 3.5M
  • How likely is it that a customer will see the bug and how serious is the bug?
    Is it a regression? Does it meet other bug fix criteria (security, performance, etc.)?
    What CTS failures are caused by this bug?

Every customer who downloads the distribution will "feel" the additional 3.5M, but there is no associated functional issue.

  • What is the cost/risk of fixing the bug?
    There is little to no risk associated with this change. The functionality is new for 4.0, and has already been in place for some time. This change merely modifies the dependencies to re-use existing copies in the distribution, rather than adding duplicates.

How risky is the fix? How much work is the fix? Is the fix complicated?

  • Is there an impact on documentation or message strings?

There is no doc or message impact.

  • Which tests should QA (re)run to verify the fix did not destabilize GlassFish?

Quicklook, EJB devtests (these leverage the ACC, so they could be affected)

  • Which is the targeted build of 4.0 for this fix?

B89

  • If this an integration of a new version of a component from another project,
    what are the changes that are being brought in? This might be list of
    Jira issues from that project or a list of revision messages.

This is not a new revision of the Weld dependencies, just a different packaging thereof.

Comment by michael.y.chen [ 09/May/13 ]

approved for B89.

Comment by phil.zampino [ 10/May/13 ]

Committed revision 61948 to 4.0 branch





[GLASSFISH-19786] CDI Instantiation Error - CDI deployment failure:WELD-001408 Unsatisfied dependencies for type [InstanceManager] with qualifiers Created: 07/Mar/13  Updated: 20/Dec/16  Resolved: 27/Mar/13

Status: Closed
Project: glassfish
Component/s: cdi
Affects Version/s: 4.0_dev
Fix Version/s: 4.0

Type: Bug Priority: Blocker
Reporter: peter_pilgrim Assignee: phil.zampino
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

All



 Description   

It would appear there is problem with the CDI Container service in Glassfish 4.0 b78 fails to be initialised.

I even tried a new WAR with just a single POJO, a dummy Java class with no methods at all, and I received the same error.

There is not an issue with GlassFish 4.0 b77 server, only since I upgraded.

[main] INFO org.jboss.weld.Version - WELD-000900 SNAPSHOT
[main] WARN org.jboss.weld.Bootstrap - WELD-001440 Scope type @javax.enterprise.context.ApplicationScoped() used on injection point [BackedAnnotatedField] @Inject @ApplicationScoped private je7hb.websocket.basic.FakeServlet.chatRoom
>>>> SampleSingleton.init() called
Mar 07, 2013 9:33:48 AM org.glassfish.tyrus.servlet.TyrusServletContainerInitializer onStartup
INFO: Registering WebSocket filter for url pattern /*
Mar 07, 2013 9:33:48 AM com.sun.enterprise.web.WebApplication start
INFO: Loading application [mywebapp] at [/mywebapp]
[weld-worker-2] WARN org.jboss.weld.Bootstrap - WELD-001440 Scope type @javax.enterprise.context.ApplicationScoped() used on injection point [BackedAnnotatedField] @Inject @ApplicationScoped private je7hb.websocket.basic.ChatServiceEndPoint.chatRoom
[weld-worker-3] WARN org.jboss.weld.Bootstrap - WELD-001440 Scope type @javax.enterprise.context.ApplicationScoped() used on injection point [BackedAnnotatedField] @Inject @ApplicationScoped private je7hb.websocket.basic.FakeServlet.chatRoom
[main] WARN org.jboss.weld.Bootstrap - WELD-001440 Scope type @javax.enterprise.context.ApplicationScoped() used on injection point [BackedAnnotatedField] @Inject @ApplicationScoped private je7hb.websocket.basic.FakeServlet.chatRoom
Mar 07, 2013 9:33:48 AM com.sun.enterprise.v3.server.ApplicationLifecycle deploy
SEVERE: Exception during lifecycle processing
org.glassfish.deployment.common.DeploymentException: CDI deployment failure:WELD-001408 Unsatisfied dependencies for type [InstanceManager] with qualifiers [@Default] at injection point [[UnbackedAnnotatedParameter] Parameter 1 of [UnbackedAnnotatedConstructor] @Inject protected org.jboss.weld.environment.se.WeldContainer(InstanceManager, BeanManager)]
at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:247)
at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:131)
at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:364)
>>>> SampleSingleton.destroy() called
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:497)
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:528)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:524)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:357)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:523)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:547)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1424)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1500(CommandRunnerImpl.java:108)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1759)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1675)
at com.sun.enterprise.admin.cli.embeddable.DeployerImpl.deploy(DeployerImpl.java:133)
at je7hb.common.webcontainer.embedded.glassfish.AbstractEmbeddedRunner.deployWithRename(AbstractEmbeddedRunner.java:73)
at je7hb.common.weber.embedded.glassfish.EmbeddedRunner.main(EmbeddedRunner.java:19)
Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied dependencies for type [InstanceManager] with qualifiers [@Default] at injection point [[UnbackedAnnotatedParameter] Parameter 1 of [UnbackedAnnotatedConstructor] @Inject protected org.jboss.weld.environment.se.WeldContainer(InstanceManager, BeanManager)]
at org.jboss.weld.bootstrap.Validator.validateInjectionPointForDeploymentProblems(Validator.java:381)
at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:309)
at org.jboss.weld.bootstrap.Validator.validateGeneralBean(Validator.java:172)
at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:203)
at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:493)
at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:69)
at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:67)
at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:60)
at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:53)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)

Mar 07, 2013 9:33:48 AM org.glassfish.api.ActionReport failure
SEVERE: Exception while loading the app
Mar 07, 2013 9:33:48 AM org.glassfish.tyrus.server.TyrusServerContainer stop
INFO: Closing down : org.glassfish.tyrus.server.TyrusEndpoint@5e9b0166
Mar 07, 2013 9:33:48 AM org.glassfish.tyrus.server.TyrusServerContainer stop
INFO: Closing down : org.glassfish.tyrus.server.TyrusEndpoint@6150e9a2
Mar 07, 2013 9:33:48 AM org.glassfish.tyrus.server.TyrusServerContainer stop
INFO: Closing down : org.glassfish.tyrus.server.TyrusEndpoint@39ece0e3
Mar 07, 2013 9:33:48 AM com.sun.web.server.WebContainerListener preDestroy
SEVERE: Exception during invocation of InjectionManager.destroyManagedObject on org.glassfish.tyrus.servlet.TyrusServletFilter@24633a36 of web module StandardEngine[glassfish-web].StandardHost[server].StandardContext[/mywebapp]
java.lang.IllegalStateException: Unknown JCDI-enabled managed bean org.glassfish.tyrus.servlet.TyrusServletFilter@24633a36 of class class org.glassfish.tyrus.servlet.TyrusServletFilter
at com.sun.enterprise.container.common.impl.managedbean.ManagedBeanManagerImpl.destroyManagedBean(ManagedBeanManagerImpl.java:628)
at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.destroyManagedObject(InjectionManagerImpl.java:439)
at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.destroyManagedObject(InjectionManagerImpl.java:414)
at com.sun.web.server.WebContainerListener.preDestroy(WebContainerListener.java:186)
at com.sun.web.server.WebContainerListener.containerEvent(WebContainerListener.java:151)
at org.apache.catalina.core.ContainerBase.fireContainerEvent(ContainerBase.java:1579)
at org.apache.catalina.core.ApplicationFilterConfig.release(ApplicationFilterConfig.java:334)
at org.apache.catalina.core.StandardContext.filterStop(StandardContext.java:5319)
at org.apache.catalina.core.StandardContext.stop(StandardContext.java:6082)
at com.sun.enterprise.web.WebModule.stop(WebModule.java:725)
at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1172)
at com.sun.enterprise.web.WebContainer.unloadWebModule(WebContainer.java:2438)
at com.sun.enterprise.web.WebContainer.unloadWebModule(WebContainer.java:2393)
at com.sun.enterprise.web.WebApplication.stop(WebApplication.java:191)
at org.glassfish.internal.data.EngineRef.stop(EngineRef.java:161)
at com.sun.enterprise.v3.server.ApplicationLifecycle$2.actOn(ApplicationLifecycle.java:268)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:503)
at com.sun.enterprise.v3.servecationLifecycle.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:528)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:524)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:357)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:523)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:547)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1424)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1500(CommandRunnerImpl.java:108)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1759)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1675)
at com.sun.enterprise.admin.cli.embeddable.DeployerImpl.deploy(DeployerImpl.java:133)
at je7hb.common.webcontainer.embedded.glassfish.AbstractEmbeddedRunner.deployWithRename(AbstractEmbeddedRunner.java:73)
at je7hb.common.webcontainer.embedded.glassfish.EmbeddedRunner.main(EmbeddedRunner.java:19)

Mar 07, 2013 9:33:48 AM org.glassfish.weld.WeldDeployer event
WARNING: JCDI shutdown error
java.lang.IllegalStateException: Singleton is not set. Is your Thread.currentThread().getContextClassLoader() set correctly?
at org.jboss.weld.bootstrap.api.helpers.IsolatedStaticSingletonProvider$IsolatedStaticSingleton.get(IsolatedStaticSingletonProvider.java:52)
at org.jboss.weld.Container.instance(Container.java:54)
at org.jboss.weld.bootstrap.WeldBootstrap.shutdown(WeldBootstrap.java:597)
at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:293)
at org.glassfish.kernel.event.EventsImpl$1.run(EventsImpl.java:123)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)

Mar 07, 2013 9:33:48 AM org.glassfish.deployment.admin.DeployCommand execute
SEVERE: Exception while loading the app : CDI deployment failure:WELD-001408 Unsatisfied dependencies for type [InstanceManager] with qualifiers [@Default] at injection point [[UnbackedAnnotatedParameter] Parameter 1 of [UnbackedAnnotatedConstructor] @Inject protected org.jboss.weld.environment.se.WeldContainer(InstanceManager, BeanManager)]
org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied dependencies for type [InstanceManager] with qualifiers [@Default] at injection point [[UnbackedAnnotatedParameter] Parameter 1 of [UnbackedAnnotatedConstructor] @Inject protected org.jboss.weld.environment.se.WeldContainer(InstanceManager, BeanManager)]
at org.jboss.weld.bootstrap.Validator.validateInjectionPointForDeploymentProblems(Validator.java:381)
at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:309)
at org.jboss.weld.bootstrap.Validator.validateGeneralBean(Validator.java:172)
at org.jboss.weld.bootstrap.Validator.validateRIBean(Valjava:203)
at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:493)
at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:69)
at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:67)
at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:60)
at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:53)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)

        • Press the ENTER key to stop the server ****
          > Building > :run
          Mar 07, 2013 9:33:51 AM org.glassfish.admin.mbeanserver.JMXStartupService shutdown
          INFO: JMXStartupService and JMXConnectors have been shut down.
          JdbcRuntimeExtension, getAllSystemRAResourcesAndPools = [GlassFishConfigBean.org.glassfish.jdbc.config.JdbcResource, GlassFishConfigBean.org.glassfish.jdbc.config.JdbcResource, GlassFishConfigBean.org.glassfish.jdbc.config.JdbcConnectionPool, GlassFishConfigBean.org.glassfish.jdbc.config.JdbcConnectionPool]
          Mar 07, 2013 9:33:51 AM com.sun.enterprise.v3.server.AppServerStartup stop
          INFO: Shutdown procedure finished

BUILD SUCCESSFUL

Total time: 14.432 secs
peterpilgrim@Peters-MacBook-Pro-3.local [1110] >



 Comments   
Comment by phil.zampino [ 07/Mar/13 ]

A change was committed today to prevent the weld SE implementation from getting pulled into the server classpath. Please try again with the latest.

Comment by peter_pilgrim [ 07/Mar/13 ]

Thanks! I see there is 4.0-b79 in repo https://maven.java.net/content/groups/promoted/javax/javaee-api/ . I will give it a go.

PP

Comment by peter_pilgrim [ 07/Mar/13 ]

I upgraded the build to 4.0-b79. Sadly, this fix is still not working and I get the same error: session

INFO: EJB5181:Portable JNDI names for EJB SampleSingleton: [java:global/mywebapp/SampleSingleton, java:global/mywebapp/SampleSingleton!je7hb.websocket.basic.SampleSingleton]
[main] INFO org.jboss.weld.Version - WELD-000900 SNAPSHOT
[main] WARN org.jboss.weld.Bootstrap - WELD-001440 Scope type @javax.enterprise.context.ApplicationScoped() used on injection point [BackedAnnotatedField] @Inject @ApplicationScoped private je7hb.websocket.basic.FakeServlet.chatRoom
>>>> SampleSingleton.init() called
Mar 07, 2013 11:30:09 PM org.glassfish.tyrus.servlet.TyrusServletContainerInitializer onStartup
INFO: Registering WebSocket filter for url pattern /*
Mar 07, 2013 11:30:09 PM com.sun.enterprise.web.WebApplication start
INFO: Loading application [mywebapp] at [/mywebapp]
Mar 07, 2013 11:30:09 PM com.sun.enterprise.v3.server.ApplicationLifecycle deploy
SEVERE: Exception during lifecycle processing
org.glassfish.deployment.common.DeploymentException: CDI deployment failure:WELD-001408 Unsatisfied dependencies for type [InstanceManager] with qualifiers [@Default] at injection point [[UnbackedAnnotatedParameter] Parameter 1 of [UnbackedAnnotatedConstructor] @Inject protected org.jboss.weld.environment.se.WeldContainer(InstanceManager, BeanManager)]
at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:247)
at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:131)
at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:364)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:497)
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:527)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:523)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:357)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:522)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:546)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1423)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1500(CommandRunnerImpl.java:108)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1761)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1674)
at com.sun.enterprise.admin.cli.embeddable.DeployerImpl.deploy(DeployerImpl.java:133)
at je7hb.common.webcontainer.embedded.glassfish.AbstractEmbeddedRunner.deployWithRename(AbstractEmbeddedRunner.java:73)
at je7hb.common.we>>>> SampleSingleton.destroy() called
ner.embedded.glassfish.EmbeddedRunner.main(EmbeddedRunner.java:19)
Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied dependencies for type [InstanceManager] with qualifiers [@Default] at injection point [[UnbackedAnnotatedParameter] Parameter 1 of [UnbackedAnnotatedConstructor] @Inject protected org.jboss.weld.environment.se.WeldContainer(InstanceManager, BeanManager)]
at org.jboss.weld.bootstrap.Validator.validateInjectionPointForDeploymentProblems(Validator.java:381)
at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:309)
at org.jboss.weld.bootstrap.Validator.validateGeneralBean(Validator.java:172)
at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:203)
at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:493)
at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:69)
at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:67)
at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:60)
at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:53)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)

Mar 07, 2013 11:30:09 PM org.glassfish.api.ActionReport failure
SEVERE: Exception while loading the app
Mar 07, 2013 11:30:09 PM org.glassfish.tyrus.server.TyrusServerContainer stop
INFO: Closing down : org.glassfish.tyrus.server.TyrusEndpoint@720c51a0
Mar 07, 2013 11:30:09 PM org.glassfish.tyrus.server.TyrusServerContainer stop
INFO: Closing down : org.glassfish.tyrus.server.TyrusEndpoint@14fdaad6
Mar 07, 2013 11:30:09 PM org.glassfish.tyrus.server.TyrusServerContainer stop
INFO: Closing down : org.glassfish.tyrus.server.TyrusEndpoint@45c8899b
Mar 07, 2013 11:30:09 PM com.sun.web.server.WebContainerListener preDestroy
SEVERE: Exception during invocation of InjectionManager.destroyManagedObject on org.glassfish.tyrus.servlet.TyrusServletFilter@23644cf3 of web module StandardEngine[glassfish-web].StandardHost[server].StandardContext[/mywebapp]
java.lang.IllegalStateException: Unknown JCDI-enabled managed bean org.glassfish.tyrus.servlet.TyrusServletFilter@23644cf3 of class class org.glassfish.tyrus.servlet.TyrusServletFilter
at com.sun.enterprise.container.common.impl.managedbean.ManagedBeanManagerImpl.destroyManagedBean(ManagedBeanManagerImpl.java:628)
at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.destroyManagedObject(InjectionManagerImpl.java:439)
at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.destroyManagedObject(InjectionManagerImpl.java:414)
at com.sun.web.server.WebContainerListener.preDestroy(WebContainerListener.java:186)
at com.sun.web.server.WebContainerListener.containerEvent(WebContainerListener.java:151)
at org.apache.catalina.core.ContainerBase.fireContainerEvent(ContainerBase.java:1579)
at org.apache.catalina.core.ApplicationFilterConfig.release(ApplicationFilterConfig.java:334)
at org.apache.catalina.core.StandardContext.filterStop(StandardContext.java:5319)
at org.apache.catalina.core.StandardContext.stop(StandardContext.java:6082)
at com.sun.enterprise.web.WebModule.stop(WebModule.java:725)
at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1172)
at com.sun.enterprise.web.WebContainer.unloadWebModule(WebContainer.java:2447)
at com.sun.enterprise.web.WebContainer.unloadWebModule(WebContainer.java:2402)
at com.sun.enterprise.web.WebApplication.stop(WebApplication.java:191)
at org.glassfish.internal.data.EngineRef.stop(EngineRef.java:161)
at com.sun.enterprise.v3.server.ApplicationLifecycle$2.actOn(ApplicationLifecycle.java:268)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:503)
at com.sun.enterprise.v3.servicationLifecycle.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:527)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:523)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:357)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:522)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:546)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1423)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1500(CommandRunnerImpl.java:108)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1761)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1674)
at com.sun.enterprise.admin.cli.embeddable.DeployerImpl.deploy(DeployerImpl.java:133)
at je7hb.common.webcontainer.embedded.glassfish.AbstractEmbeddedRunner.deployWithRename(AbstractEmbeddedRunner.java:73)
at je7hb.common.webcontainer.embedded.glassfish.EmbeddedRunner.main(EmbeddedRunner.java:19)

Mar 07, 2013 11:30:09 PM org.glassfish.deployment.admin.DeployCommand execute
SEVERE: Exception while loading the app : CDI deployment failure:WELD-001408 Unsatisfied dependencies for type [InstanceManager] with qualifiers [@Default] at injection point [[UnbackedAnnotatedParameter] Parameter 1 of [UnbackedAnnotatedConstructor] @Inject protected org.jboss.weld.environment.se.WeldContainer(InstanceManager, BeanManager)]
org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied dependencies for type [InstanceManager] with qualifiers [@Default] at injection point [[UnbackedAnnotatedParameter] Parameter 1 of [UnbackedAnnotatedConstructor] @Inject protected org.jboss.weld.environment.se.WeldContainer(InstanceManager, BeanManager)]
at org.jboss.weld.bootstrap.Validator.validateInjectionPointForDeploymentProblems(Validator.java:381)
at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:309)
at org.jboss.weld.bootstrap.Validator.validateGeneralBean(Validator.java:172)
at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:203)
at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:493)
at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:69)
at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:67)
at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:60)
at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:53)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)

Mar 07, 2013 11:30:09 PM org.glassfish.weld.WeldDeployer event
WARNING: JCDI shutdown error
java.lang.IllegalStateException: Singleton is not set. Is your Thread.currentThread().getContextClassLoader() set correctly?
at org.jboss.weld.bootstrap.api.helpers.IsolatedStaticSingletonProvider$IsolatedStaticSingleton.get(IsolatedStaticSingletonProvider.java:52)
at org.jboss.weld.Container.instance(Container.java:54)
at org.jboss.weld.bootstrap.WeldBootstrap.shutdown(WeldBootstrap.java:597)
at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:293)
at org.glassfish.kernel.event.EventsImpl$1.run(EventsImpl.java:123)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)

        • Press the ENTER key to stop the server ****
          > Building > :run
          Mar 07, 2013 11:32:35 PM org.glassfish.admin.mbeanserver.JMXStartupService shutdown
          INFO: JMXStartupService and JMXConnectors have been shut down.
          JdbcRuntimeExtension, getAllSystemRAResourcesAndPools = [GlassFishConfigBean.org.glassfish.jdbc.config.JdbcResource, GlassFishConfigBean.org.glassfish.jdbc.config.JdbcResource, GlassFishConfigBean.org.glassfish.jdbc.config.JdbcConnectionPool, GlassFishConfigBean.org.glassfish.jdbc.config.JdbcConnectionPool]
          Mar 07, 2013 11:32:35 PM com.sun.enterprise.v3.server.AppServerStartup stop
          INFO: Shutdown procedure finished

BUILD SUCCESSFUL

Total time: 2 mins 35.427 secs

///////////

package je7hb.websocket.basic;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
import javax.ejb.Singleton;
import javax.ejb.Startup;
import java.util.concurrent.atomic.AtomicInteger;

/**

  • The type SampleSingleton
    *
  • @author Peter Pilgrim
    */
    @Singleton
    @Startup
    public class SampleSingleton {
    private AtomicInteger counter = new AtomicInteger(5000);
    @PostConstruct
    public void init() { System.out.printf(">>>> %s.init() called\n", getClass().getSimpleName()); }

@PreDestroy
public void destroy()

{ System.out.printf(">>>> %s.destroy() called\n", getClass().getSimpleName()); }

public int count()

{ return counter.getAndAdd(2); }

public String getFullName()

{ return "Peter Pilgrim"; }

}

///////////

package je7hb.websocket.basic;

import javax.ejb.EJB;
import javax.inject.Inject;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.websocket.OnClose;
import javax.websocket.OnMessage;
import javax.websocket.OnOpen;
import javax.websocket.Session;
import javax.websocket.server.ServerEndpoint;
import java.util.Date;

/**

  • The type SingletonEJBWebSocketEndpoint
    *
  • @author Peter Pilgrim
    */
    @ServerEndpoint("/singleton")
    public class SingletonEJBWebSocketEndpoint {

@Inject
private SampleSingleton sampleSingleton;

@OnOpen
public void open(Session session) {
System.out.printf("%s.open() called session=%s\n", getClass().getSimpleName(), session );

// This is a work around
System.out.printf(" sampleSingleton = %s BEFORE\n", sampleSingleton );
if ( sampleSingleton == null) {
// Look up the object
Context initialContext = null;
try

{ initialContext = new InitialContext(); Object obj = initialContext.lookup("java:global/mywebapp/SampleSingleton"); System.out.printf(" obj=%s\n", obj); sampleSingleton = (SampleSingleton)obj; }

catch (NamingException e)

{ e.printStackTrace(); }

}
System.out.printf(" sampleSingleton = %s AFTER\n", sampleSingleton );
}

@OnClose
public void close(Session session)

{ System.out.printf("%s.close() called session=%s\n", getClass().getSimpleName(), session); System.out.printf(" sampleSingleton = %s\n", sampleSingleton ); }

@OnMessage
public String generateReply( String message )

{ return String.format("%s - name: %s, counter: %d, message:%s", new Date(), sampleSingleton.getFullName(), sampleSingleton.count(), message.toUpperCase()); }

}

//////////

package je7hb.websocket.basic;

import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Date;

/**

  • The type FakeServlet
    *
  • @author Peter Pilgrim
    */
    @WebServlet("/fake")
    public class FakeServlet extends HttpServlet {

@Inject
@ApplicationScoped
private ChatRoom chatRoom;

@Override
public void init(ServletConfig config) throws ServletException

{ super.init(config); System.out.printf("%s.init() called with chatRoom=%s\n", getClass().getSimpleName(), chatRoom); }

@Override
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException

{ resp.setContentType("text/plain"); resp.getWriter().printf("Date: %s Servlet %s with chatRoom=%s\n", new Date(), getClass(), chatRoom ); }

}

///////////

Comment by Tim Quinn [ 07/Mar/13 ]

I suspect the problem is that we've recently added CDI support to the app client container, so the manifest Class-Path for the gf-client-module.jar (in the GlassFish modules/ directory) refers to weld-se.jar.

I think GlassFish loads every module in the modules/ directory, so weld-se.jar ends up on the class path.

The change Phil referred to was for embedded only.

Comment by peter_pilgrim [ 07/Mar/13 ]

You say it could be a classpath issue, which is causing WELD to fail, and I am executing the embedded runner.

Here is the Gradle file, which I am using now ``gradle.build'':-

apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'war'
apply plugin: 'eclipse'
apply plugin: 'idea'

// Define equivalent Maven GAV coordinates.
group = 'com.javaeehandbook.book1'
archivesBaseName = 'ch07-websockets-basic'
version = '1.0'

repositories {
mavenCentral()
ivy

{ url "http://maven.java.net/content/groups/promoted/" }

maven

{ url 'https://maven.java.net/content/groups/promoted' }

maven

{ url 'http://repository.jboss.org/nexus/content/groups/public' }

}

dependencies

{ providedCompile 'org.glassfish.main.extras:glassfish-embedded-all:4.0-b79' providedCompile 'javax:javaee-api:7.0-b79' compile 'org.glassfish.main.extras:glassfish-embedded-all:4.0-b79' compile 'javax:javaee-api:7.0-b79' testCompile 'junit:junit:4.10' }

war

{ // webXml = file("src/main/webapp/WEB-INF/web.xml") }

task wrapper(type: Wrapper)

{ gradleVersion = '1.4' }

// Override Gradle defaults - a force an exploded JAR view
sourceSets {
main

{ output.resourcesDir = 'build/classes/main' output.classesDir = 'build/classes/main' }

test

{ output.resourcesDir = 'build/classes/test' output.classesDir = 'build/classes/test' }

}

task(run, dependsOn: 'classes', type: JavaExec)

{ description = 'Runs the main application' main = 'je7hb.common.webcontainer.embedded.glassfish.EmbeddedRunner' classpath = sourceSets.main.runtimeClasspath args 'Mary', 'Peter', 'Jane' standardInput = System.in }

See also my blog entry for an example of the sort of ``EmbeddedRunner'' that I am running for the book: http://www.xenonique.co.uk/blog/?p=980

Comment by Tim Quinn [ 07/Mar/13 ]

(blush)

OK, you are using embedded!

The change Phil referred to went in earlier today (March 7). I don't think promoted build 79 has it.

Tonight's nightly build should, though.

Comment by peter_pilgrim [ 07/Mar/13 ]

How do you grab the nightly build using Maven or Gradle?

Comment by phil.zampino [ 26/Mar/13 ]

Has this been tested with a more recent build, per Tim's suggestion?

Comment by phil.zampino [ 27/Mar/13 ]

This appears to have been resolved since 4.0-b81





[GLASSFISH-19760] Exception when deploying an application that injects a JMSContext Created: 01/Mar/13  Updated: 20/Dec/16  Resolved: 12/Mar/13

Status: Resolved
Project: glassfish
Component/s: cdi
Affects Version/s: 4.0_dev
Fix Version/s: 4.0_dev

Type: Bug Priority: Major
Reporter: Nigel Deakin Assignee: jjsnyder83
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Dependency
blocks GLASSFISH-19774 Add QuickLook test case for JMSContex... Closed
Tags: jms-2-implementation

 Description   

If I deploy a session bean which injects a JMSContext I get an exception {[org.glassfish.deployment.common.DeploymentException: CDI deployment failure:WELD-001408 Unsatisfied dependencies for type [JMSContext] with qualifiers [@Default] at injection point [[BackedAnnotatedField]}}

Here's an extract from the server log.

INFO: WELD-000900 2.0.0 (Beta4)
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: Loading application [TestGFInjectionBug] at [/TestGFInjectionBug]
SEVERE: Exception during lifecycle processing
org.glassfish.deployment.common.DeploymentException: CDI deployment failure:WELD-001408 Unsatisfied dependencies for type [JMSContext] with qualifiers [@Default] at injection point [[BackedAnnotatedField] @Inject servlets.NewServlet.context]
	at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:247)
	at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:131)
	at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:364)
	at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:497)
	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:528)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:524)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.security.auth.Subject.doAs(Subject.java:356)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:523)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:547)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1424)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1500(CommandRunnerImpl.java:108)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1759)
	at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1675)
	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.StaticHttpHandler.service(StaticHttpHandler.java:297)
	at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:246)
	at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:164)
	at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:175)
	at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:273)
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:200)
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:134)
	at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112)
	at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
	at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:820)
	at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)
	at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)
	at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)
	at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)
	at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564)
	at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544)
	at java.lang.Thread.run(Thread.java:722)
Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied dependencies for type [JMSContext] with qualifiers [@Default] at injection point [[BackedAnnotatedField] @Inject servlets.NewServlet.context]
	at org.jboss.weld.bootstrap.Validator.validateInjectionPointForDeploymentProblems(Validator.java:381)
	at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:309)
	at org.jboss.weld.bootstrap.Validator.validateGeneralBean(Validator.java:172)
	at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:203)
	at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:493)
	at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:69)
	at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:67)
	at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:60)
	at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:53)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	... 1 more

SEVERE: Exception while loading the app
WARNING: JCDI shutdown error
java.lang.IllegalStateException: Singleton not set for WebappClassLoader (delegate=true)
	at org.glassfish.weld.ACLSingletonProvider$ACLSingleton.get(ACLSingletonProvider.java:110)
	at org.jboss.weld.Container.instance(Container.java:54)
	at org.jboss.weld.bootstrap.WeldBootstrap.shutdown(WeldBootstrap.java:597)
	at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:293)
	at org.glassfish.kernel.event.EventsImpl$1.run(EventsImpl.java:123)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:722)

SEVERE: Exception while loading the app : CDI deployment failure:WELD-001408 Unsatisfied dependencies for type [JMSContext] with qualifiers [@Default] at injection point [[BackedAnnotatedField] @Inject servlets.NewServlet.context]
org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied dependencies for type [JMSContext] with qualifiers [@Default] at injection point [[BackedAnnotatedField] @Inject servlets.NewServlet.context]
	at org.jboss.weld.bootstrap.Validator.validateInjectionPointForDeploymentProblems(Validator.java:381)
	at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:309)
	at org.jboss.weld.bootstrap.Validator.validateGeneralBean(Validator.java:172)
	at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:203)
	at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:493)
	at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:69)
	at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:67)
	at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:60)
	at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:53)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:722)


 Comments   
Comment by Nigel Deakin [ 01/Mar/13 ]

I have created a NetBeans project which may be used to reproduce the issue.

It may be downloaded here:
http://java.net/projects/jms-spec/downloads/download/TestGFInjectionBug.zip

This contains a servlet NewServlet which injects a JMSContext
(but doesn't actually cause it to be instantiated)

The war file is TestGFInjectionBug\dist\TestGFInjectionBug.war

Comment by jjsnyder83 [ 05/Mar/13 ]

There is a Weld Jira issue for this: https://issues.jboss.org/browse/WELD-1182

Comment by jjsnyder83 [ 10/Mar/13 ]

Committed revision 60274.

Comment by David Zhao [ 11/Mar/13 ]

I tested currently the @WeldGFExtension workaround doesn't work if I change nothing on JMS injection impl yet. It still throw the Unsatisfied dependencies exception.

[exec] remote failure: Error occurred during deployment: Exception while loading the app : CDI deployment failure:W
ELD-001408 Unsatisfied dependencies for type [JMSContext] with qualifiers [@Default] at injection point [[BackedAnnotate
dField] @Inject @JMSConnectionFactory @JMSSessionMode private org.glassfish.tests.jms.injection.SimpleEjb.jmsContext]. P
lease see server.log for more details.
[exec] Command deploy failed.

But if I remove the @WeldGFExtension workaround codes and register the JMS beans via JMSCDIExtension at AfterBeanDiscoveryEvent, It seems the InjectPoint bean cannot be resolved.

deploy-v3-impl-windows:
[exec] remote failure: Error occurred during deployment: Exception while loading the app : CDI definition failure:E xception List with 1 exceptions:
[exec] Exception 0 :
[exec] org.jboss.weld.exceptions.IllegalArgumentException: WELD-001405 Cannot inject [BackedAnnotatedParameter] Par ameter 1 of [BackedAnnotatedConstructor] @Inject public org.glassfish.jms.injection.InjectableJMSContext(InjectionPoint,
RequestedJMSContextManager, TransactedJMSContextManager) in a class which isnt a bean
[exec] at org.jboss.weld.manager.InjectionTargetFactoryImpl.createInjectionTarget(InjectionTargetFactoryImpl.ja
va:66)
[exec] at org.jboss.weld.manager.BeanManagerImpl.createInjectionTarget(BeanManagerImpl.java:1015)
[exec] at org.jboss.weld.util.ForwardingBeanManager.createInjectionTarget(ForwardingBeanManager.java:201)
[exec] at org.glassfish.jms.injection.JMSCDIExtension.createLocalBean(JMSCDIExtension.java:66)
[exec] at org.glassfish.jms.injection.JMSCDIExtension.afterBeanDiscovery(JMSCDIExtension.java:71)
[exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[exec] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[exec] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[exec] at java.lang.reflect.Method.invoke(Method.java:601)
[exec] at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:264)
[exec] at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:52)
[exec] at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:137
)
[exec] at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:260)
[exec] at org.jboss.weld.annotated.runtime.InvokableAnnotatedMethod.invokeOnInstance(InvokableAnnotatedMethod.j
ava:82)
[exec] at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.j
ava:77)
[exec] at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:273)
[exec] at org.jboss.weld.event.ExtensionObserverMethodImpl.sendEvent(ExtensionObserverMethodImpl.java:129)
[exec] at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:260)
[exec] at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:239)
[exec] at org.jboss.weld.event.ObserverNotifier.notifyObserver(ObserverNotifier.java:155)
[exec] at org.jboss.weld.event.TransactionalObserverNotifier.notifyObserver(TransactionalObserverNotifier.java:
44)
[exec] at org.jboss.weld.event.ObserverNotifier.notifyObservers(ObserverNotifier.java:116)
[exec] at org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:101)
[exec] at org.jboss.weld.bootstrap.events.AbstractContainerEvent.fire(AbstractContainerEvent.java:69)
[exec] at org.jboss.weld.bootstrap.events.AbstractDefinitionContainerEvent.fire(AbstractDefinitionContainerEven
t.java:38)
[exec] at org.jboss.weld.bootstrap.events.AfterBeanDiscoveryImpl.fire(AfterBeanDiscoveryImpl.java:53)
[exec] at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:464)
[exec] at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:194)
[exec] at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:131)
[exec] at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:328)
[exec] at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:493)
[exec] at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219)
[exec] at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491)
[exec] at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:527)
[exec] at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:523)
[exec] at java.security.AccessController.doPrivileged(Native Method)
[exec] at javax.security.auth.Subject.doAs(Subject.java:356)
[exec] at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:522)
[exec] at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:546)
[exec] at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1423)
[exec] at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1500(CommandRunnerImpl.java:108)
[exec] at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1761)
[exec] at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1674)
[exec] at org.glassfish.admin.rest.resources.admin.CommandResource.executeCommand(CommandResource.java:396)
[exec] at org.glassfish.admin.rest.resources.admin.CommandResource.execCommandSimpInMultOut(CommandResource.jav
a:234)
[exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[exec] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[exec] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[exec] at java.lang.reflect.Method.invoke(Method.java:601)
[exec] at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMe
thodInvocationHandlerFactory.java:81)
[exec] at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaRe
sourceMethodDispatcher.java:133)
[exec] at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.do
Dispatch(JavaResourceMethodDispatcherProvider.java:152)
[exec] at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJava
ResourceMethodDispatcher.java:101)
[exec] at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:350)
[exec] at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:345)
[exec] at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102)
[exec] at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:207)
[exec] at org.glassfish.jersey.internal.Errors$1.call(Errors.java:207)
[exec] at org.glassfish.jersey.internal.Errors$1.call(Errors.java:203)
[exec] at org.glassfish.jersey.internal.Errors.process(Errors.java:251)
[exec] at org.glassfish.jersey.internal.Errors.process(Errors.java:233)
[exec] at org.glassfish.jersey.internal.Errors.process(Errors.java:203)
[exec] at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)
[exec] at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:183)
[exec] at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:859)
[exec] at org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.service(GrizzlyHttpContainer.java:321)
[exec] at org.glassfish.admin.rest.adapter.JerseyContainerCommandService$3.service(JerseyContainerCommandServic
e.java:161)
[exec] at org.glassfish.admin.rest.adapter.RestAdapter.service(RestAdapter.java:181)
[exec] at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:246)
[exec] at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:191)
[exec] at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:168)
[exec] at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:189)
[exec] at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
[exec] at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288)
[exec] at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206)
[exec] Command deploy failed.
[exec] at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136)
[exec] at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114)
[exec] at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
[exec] at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:838)
[exec] at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)
[exec] at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)
[exec] at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)
[exec] at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrate
gy.java:135)
[exec] at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564)
[exec] at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544)
[exec] at java.lang.Thread.run(Thread.java:722)
[exec] Caused by: org.jboss.weld.exceptions.DefinitionException: WELD-001405 Cannot inject [BackedAnnotatedParamete r] Parameter 1 of [BackedAnnotatedConstructor] @Inject public org.glassfish.jms.injection.InjectableJMSContext(Injection
Point, RequestedJMSContextManager, TransactedJMSContextManager) in a class which isnt a bean
[exec] at org.jboss.weld.bootstrap.Validator.validateInjectionPointForDefinitionErrors(Validator.java:344)
[exec] at org.jboss.weld.injection.producer.InjectionTargetService.validateProducer(InjectionTargetService.java
:39)
[exec] at org.jboss.weld.manager.InjectionTargetFactoryImpl.createInjectionTarget(InjectionTargetFactoryImpl.ja
va:63)
[exec] ... 85 more
[exec] . Please see server.log for more details.

Comment by David Zhao [ 12/Mar/13 ]

Now it works by applying JJ's workaround in JMSCDIExtension: Use getInjectionTargetFactory instead of createInjectionTarget.





[GLASSFISH-19850] Can't inject JMSContext when security manager is enabled Created: 13/Mar/13  Updated: 20/Dec/16  Resolved: 11/Apr/13

Status: Resolved
Project: glassfish
Component/s: cdi
Affects Version/s: 4.0_dev
Fix Version/s: 4.0_dev

Type: Bug Priority: Major
Reporter: David Zhao Assignee: jjsnyder83
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Dependency
blocks GLASSFISH-19774 Add QuickLook test case for JMSContex... Closed
Tags: jms-2-implementation

 Description   

When I tried to add the JMS injection quicklook case, I found it failed in hudson jobs because security manager is enabled by default in hudson jobs.

It is easy to be reproduced: Enable the security manager for the domain by adding an option in the JVM Settings and then restart glassfish domain/server. We can see the following exception when accessing the EJB/Web with JMSContext injection (deployment succeeds).

[2013-03-13T14:04:01.787+0800] [glassfish 4.0] [INFO] [AS-WEB-GLUE-00172] [javax.enterprise.web] [tid: _ThreadID=40 _ThreadName=admin-listener(1)] [timeMillis: 1363154641787] [levelValue: 800] [[
Loading application [injection] at [/injection]]]

[2013-03-13T14:04:01.849+0800] [glassfish 4.0] [INFO] [] [javax.enterprise.system.core] [tid: _ThreadID=40 _ThreadName=admin-listener(1)] [timeMillis: 1363154641849] [levelValue: 800] [[
injection was successfully deployed in 3,416 milliseconds.]]

[2013-03-13T14:04:02.910+0800] [glassfish 4.0] [INFO] [] [javax.enterprise.system.core.security] [tid: _ThreadID=26 _ThreadName=http-listener-1(1)] [timeMillis: 1363154642910] [levelValue: 800] [[
JACC Policy Provider: Failed Permission Check, context(injection/injection)- permission(("java.lang.reflect.ReflectPermission" "suppressAccessChecks"))]]

[2013-03-13T14:04:03.066+0800] [glassfish 4.0] [SEVERE] [ejb.stateless_ejbcreate_exception] [javax.enterprise.system.container.ejb.com.sun.ejb.containers] [tid: _ThreadID=26 _ThreadName=http-listener-1(1)] [timeMillis: 1363154643066] [levelValue: 1000] [[
EJB5070: Exception creating stateless session bean : [SimpleEjb]]]

[2013-03-13T14:04:03.066+0800] [glassfish 4.0] [WARNING] [ejb.system_exception] [javax.enterprise.system.container.ejb.com.sun.ejb.containers] [tid: _ThreadID=26 _ThreadName=http-listener-1(1)] [timeMillis: 1363154643066] [levelValue: 900] [[
EJB5184:A system exception occurred during an invocation on EJB SimpleEjb, method: public boolean org.glassfish.tests.jms.injection.SimpleEjb.testRequestScope()]]

[2013-03-13T14:04:03.066+0800] [glassfish 4.0] [WARNING] [] [javax.enterprise.system.container.ejb.com.sun.ejb.containers] [tid: _ThreadID=26 _ThreadName=http-listener-1(1)] [timeMillis: 1363154643066] [levelValue: 900] [[

javax.ejb.EJBException: javax.ejb.EJBException: javax.ejb.CreateException: Could not create stateless EJB
at com.sun.ejb.containers.StatelessSessionContainer._getContext(StatelessSessionContainer.java:435)
at com.sun.ejb.containers.BaseContainer.getContext(BaseContainer.java:2534)
at com.sun.ejb.containers.BaseContainer.preInvoke(BaseContainer.java:1924)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:210)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:88)
at $Proxy310.testRequestScope(Unknown Source)
at org.glassfish.tests.jms.injection._EJB31_GeneratedSimpleEjbIntf__Bean_.testRequestScope(Unknown Source)
at org.glassfish.tests.jms.injection.TestServlet.processRequest(TestServlet.java:80)
at org.glassfish.tests.jms.injection.TestServlet.doGet(TestServlet.java:99)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:323)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:321)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:536)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:356)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:214)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1676)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:318)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:734)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:673)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:176)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:357)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:260)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:188)
at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:191)
at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:168)
at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:189)
at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114)
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:838)
at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544)
at java.lang.Thread.run(Thread.java:722)
Caused by: javax.ejb.EJBException: javax.ejb.CreateException: Could not create stateless EJB
at com.sun.ejb.containers.StatelessSessionContainer$SessionContextFactory.create(StatelessSessionContainer.java:700)
at com.sun.ejb.containers.util.pool.NonBlockingPool.getObject(NonBlockingPool.java:246)
at com.sun.ejb.containers.StatelessSessionContainer._getContext(StatelessSessionContainer.java:430)
... 46 more
Caused by: javax.ejb.CreateException: Could not create stateless EJB
at com.sun.ejb.containers.StatelessSessionContainer.createStatelessEJB(StatelessSessionContainer.java:514)
at com.sun.ejb.containers.StatelessSessionContainer.access$000(StatelessSessionContainer.java:97)
at com.sun.ejb.containers.StatelessSessionContainer$SessionContextFactory.create(StatelessSessionContainer.java:698)
... 48 more
Caused by: com.google.common.collect.ComputationException: org.jboss.weld.exceptions.WeldException: WELD-001524 Unable to load proxy class for bean org.glassfish.jms.injection.JMSCDIExtension$LocalBean@e5472a with class class org.glassfish.jms.injection.RequestedJMSContextManager using classloader WebappClassLoader (delegate=true; repositories=WEB-INF/classes/)
at com.google.common.collect.ComputingConcurrentHashMap$ComputingMapAdapter.get(ComputingConcurrentHashMap.java:400)
at org.jboss.weld.bean.proxy.ClientProxyProvider.getClientProxy(ClientProxyProvider.java:181)
at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:681)
at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:745)
at org.jboss.weld.injection.ParameterInjectionPointImpl.getValueToInject(ParameterInjectionPointImpl.java:76)
at org.jboss.weld.injection.ConstructorInjectionPoint.getParameterValues(ConstructorInjectionPoint.java:108)
at org.jboss.weld.injection.ConstructorInjectionPoint.newInstance(ConstructorInjectionPoint.java:58)
at org.jboss.weld.injection.producer.AbstractInstantiator.newInstance(AbstractInstantiator.java:29)
at org.jboss.weld.injection.producer.DefaultInstantiator.newInstance(DefaultInstantiator.java:67)
at org.jboss.weld.injection.producer.BasicInjectionTarget.produce(BasicInjectionTarget.java:84)
at org.glassfish.jms.injection.JMSCDIExtension$LocalBean.create(JMSCDIExtension.java:208)
at org.jboss.weld.context.unbound.DependentContextImpl.get(DependentContextImpl.java:69)
at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:687)
at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:745)
at org.jboss.weld.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:88)
at org.jboss.weld.util.Beans.injectBoundFields(Beans.java:368)
at org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:377)
at org.jboss.weld.injection.producer.DefaultInjector.inject(DefaultInjector.java:72)
at org.jboss.weld.injection.producer.StatelessSessionBeanInjector.inject(StatelessSessionBeanInjector.java:50)
at org.jboss.weld.injection.producer.DefaultInjector$1.proceed(DefaultInjector.java:66)
at org.glassfish.weld.services.InjectionServicesImpl.aroundInject(InjectionServicesImpl.java:133)
at org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:46)
at org.jboss.weld.injection.producer.DefaultInjector.inject(DefaultInjector.java:64)
at org.jboss.weld.injection.producer.BasicInjectionTarget.inject(BasicInjectionTarget.java:96)
at org.glassfish.weld.services.JCDIServiceImpl.injectEJBInstance(JCDIServiceImpl.java:251)
at com.sun.ejb.containers.BaseContainer.injectEjbInstance(BaseContainer.java:1701)
at com.sun.ejb.containers.StatelessSessionContainer.createStatelessEJB(StatelessSessionContainer.java:475)
... 50 more
Caused by: org.jboss.weld.exceptions.WeldException: WELD-001524 Unable to load proxy class for bean org.glassfish.jms.injection.JMSCDIExtension$LocalBean@e5472a with class class org.glassfish.jms.injection.RequestedJMSContextManager using classloader WebappClassLoader (delegate=true; repositories=WEB-INF/classes/)
at org.jboss.weld.bean.proxy.ProxyFactory.getProxyClass(ProxyFactory.java:298)
at org.jboss.weld.bean.proxy.ProxyFactory.create(ProxyFactory.java:253)
at org.jboss.weld.bean.proxy.ClientProxyFactory.create(ClientProxyFactory.java:100)
at org.jboss.weld.bean.proxy.ClientProxyProvider.createClientProxy(ClientProxyProvider.java:157)
at org.jboss.weld.bean.proxy.ClientProxyProvider.createClientProxy(ClientProxyProvider.java:147)
at org.jboss.weld.bean.proxy.ClientProxyProvider.access$000(ClientProxyProvider.java:49)
at org.jboss.weld.bean.proxy.ClientProxyProvider$1.apply(ClientProxyProvider.java:57)
at org.jboss.weld.bean.proxy.ClientProxyProvider$1.apply(ClientProxyProvider.java:53)
at com.google.common.collect.ComputingConcurrentHashMap$ComputingValueReference.compute(ComputingConcurrentHashMap.java:358)
at com.google.common.collect.ComputingConcurrentHashMap$ComputingSegment.compute(ComputingConcurrentHashMap.java:184)
at com.google.common.collect.ComputingConcurrentHashMap$ComputingSegment.getOrCompute(ComputingConcurrentHashMap.java:153)
at com.google.common.collect.ComputingConcurrentHashMap.getOrCompute(ComputingConcurrentHashMap.java:69)
at com.google.common.collect.ComputingConcurrentHashMap$ComputingMapAdapter.get(ComputingConcurrentHashMap.java:396)
... 76 more
Caused by: java.security.AccessControlException: access denied ("java.lang.reflect.ReflectPermission" "suppressAccessChecks")
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:366)
at java.security.AccessController.checkPermission(AccessController.java:560)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
at java.lang.reflect.AccessibleObject.setAccessible(AccessibleObject.java:128)
at org.jboss.weld.util.bytecode.ClassFileUtils.toClass2(ClassFileUtils.java:102)
at org.jboss.weld.util.bytecode.ClassFileUtils.toClass(ClassFileUtils.java:91)
at org.jboss.weld.bean.proxy.ProxyFactory.createProxyClass(ProxyFactory.java:408)
at org.jboss.weld.bean.proxy.ProxyFactory.getProxyClass(ProxyFactory.java:291)
... 88 more
]]



 Comments   
Comment by Nigel Deakin [ 19/Mar/13 ]

Setting fix version to 4.0. This bug currently causes failure of the JMSContext injection quicklook tests

Comment by jjsnyder83 [ 19/Mar/13 ]

JBoss is aware of the issue. See https://issues.jboss.org/browse/WELD-1242

Comment by David Zhao [ 10/Apr/13 ]

JJ,

I tried latest build with revision 67218, and can't reproduce the problem. Could you please verify if/when the defect is available to be closed?

-david

Comment by jjsnyder83 [ 10/Apr/13 ]

David,
Can you try it again on the latest trunk. Before you start quicklook do the following:

1) start GF
2) use asadmin to do the following 2 commands

asadmin create-module-config cdi-service
asadmin set configs.config.server-config.cdi-service.enable-implicit-cdi=true

3) stop GF

4) run quicklook.

Then do it all over again except set the enable-implicit-cdi=false.

thanks,
JJ

Comment by David Zhao [ 11/Apr/13 ]

JJ,

I tried jms injection devtests and QL with both enable-implicit-cdi=true and enable-implicit-cdi=false against revision 61359, it worked fine and all passed.

-david





[GLASSFISH-20142] Accessing an @Inject JMSContext in a @ServerEndpoint leads to org.jboss.weld.context.ContextNotActiveException Created: 03/Apr/13  Updated: 20/Dec/16  Resolved: 17/Apr/13

Status: Resolved
Project: glassfish
Component/s: cdi
Affects Version/s: 4.0_dev
Fix Version/s: 4.0_dev

Type: Bug Priority: Major
Reporter: myfear Assignee: jjsnyder83
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Java 1.7_15
Win7 x64


Tags: fishcat

 Description   

The example app is here: https://www.dropbox.com/s/n8uhy2uka8p5vo4/websockets-demo.zip

launch with button click from here: http://localhost:8080/websockets-demo/

org.jboss.weld.context.ContextNotActiveException: WELD-001303 No active contexts for scope type javax.enterprise.context.RequestScoped
at org.jboss.weld.manager.BeanManagerImpl.getContext(BeanManagerImpl.java:662)
at org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:74)
at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:82)
at org.glassfish.jms.injection.RequestedJMSContextManager$Proxy$_$$_WeldClientProxy.getType(Unknown Source)
at org.glassfish.jms.injection.InjectableJMSContext.delegate(InjectableJMSContext.java:121)
at org.glassfish.jms.injection.ForwardingJMSContext.createProducer(ForwardingJMSContext.java:61)
at net.eisele.samples.websockets.demo.HelloEndpoint.boradcastMessage(HelloEndpoint.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.glassfish.tyrus.core.AnnotatedEndpoint.callMethod(AnnotatedEndpoint.java:431)
at org.glassfish.tyrus.core.AnnotatedEndpoint.access$100(AnnotatedEndpoint.java:83)
at org.glassfish.tyrus.core.AnnotatedEndpoint$WholeHandler$1.onMessage(AnnotatedEndpoint.java:518)
at org.glassfish.tyrus.core.SessionImpl.notifyMessageHandlers(SessionImpl.java:305)
at org.glassfish.tyrus.core.EndpointWrapper.onMessage(EndpointWrapper.java:462)
at org.glassfish.tyrus.server.TyrusEndpoint.onMessage(TyrusEndpoint.java:163)
at org.glassfish.tyrus.websockets.DefaultWebSocket.onMessage(DefaultWebSocket.java:138)
at org.glassfish.tyrus.websockets.frametypes.TextFrameType.respond(TextFrameType.java:66)
at org.glassfish.tyrus.websockets.DataFrame.respond(DataFrame.java:102)
at org.glassfish.tyrus.servlet.TyrusHttpUpgradeHandler.onDataAvailable(TyrusHttpUpgradeHandler.java:113)
at org.apache.catalina.connector.InputBuffer$ReadHandlerImpl.processDataAvailable(InputBuffer.java:472)
at org.apache.catalina.connector.InputBuffer$ReadHandlerImpl.onDataAvailable(InputBuffer.java:440)
at org.glassfish.grizzly.http.io.InputBuffer.append(InputBuffer.java:854)
at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:222)
at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114)
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:838)
at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544)
at java.lang.Thread.run(Thread.java:722)



 Comments   
Comment by jjsnyder83 [ 11/Apr/13 ]

Please email me the zip...I cannot open the attached zip: j.j.snyder@oracle.com

Comment by jjsnyder83 [ 17/Apr/13 ]

I could not reproduce the error. When I clicked on the link I got:

Hello World!





[GLASSFISH-20141] Redeployment raises ComputationException - IllegalStateException: WELD-001328 Unable to identify the correct BeanManager. The calling class org.jboss.weld.servlet.WeldListener is not placed in bean archive Created: 03/Apr/13  Updated: 20/Dec/16  Resolved: 22/May/13

Status: Resolved
Project: glassfish
Component/s: cdi
Affects Version/s: 4.0_dev
Fix Version/s: 4.1

Type: Bug Priority: Minor
Reporter: myfear Assignee: arjavdesai
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Win7
JDK 1.7_15 x64
NetBeans 7.3


Tags: fishcat

 Description   

Hi,

I have a simple Java EE 7 app which deploys perfectly fine (at least for the first time.) Every re-deployment attempt from Netbeans leads to the following exception. I have seen this a couple of times before with different applications on GF 4 already ...

The source is here: https://www.dropbox.com/s/n8uhy2uka8p5vo4/websockets-demo.zip

INFO: JMS013: Assuming destination type javax.jms.Queue for MDB MessageReceiverSync from administered object jms/myQueue
WARNING: Could not load service class com.ibm.jbatch.container.services.BatchCDIInjectionExtension
INFO: Registering WebSocket filter for url pattern /*
INFO: Mojarra 2.2.0-m11 (-SNAPSHOT 20130311-2013 https://svn.java.net/svn/mojarra~svn/tags/2.2.0-m11@11723) für Kontext '/websockets-demo' wird initialisiert.
SEVERE: Startup of context /websockets-demo failed due to previous errors
SEVERE: Exception during cleanup after start failed
org.apache.catalina.LifecycleException: Manager has not yet been started
at org.apache.catalina.session.StandardManager.stop(StandardManager.java:934)
at org.apache.catalina.core.StandardContext.stop(StandardContext.java:6099)
at com.sun.enterprise.web.WebModule.stop(WebModule.java:720)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:5916)
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:2291)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1937)
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:497)
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:527)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:523)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:356)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:522)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:546)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1423)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1500(CommandRunnerImpl.java:108)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1761)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1674)
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.StaticHttpHandler.service(StaticHttpHandler.java:297)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:246)
at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:191)
at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:168)
at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:189)
at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114)
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:838)
at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544)
at java.lang.Thread.run(Thread.java:722)

SEVERE: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: com.google.common.collect.ComputationException: org.jboss.weld.exceptions.IllegalStateException: WELD-001328 Unable to identify the correct BeanManager. The calling class org.jboss.weld.servlet.WeldListener is not placed in bean archive
at org.apache.catalina.core.StandardContext.start(StandardContext.java:5920)
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:2291)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1937)
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:497)
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:527)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:523)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:356)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:522)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:546)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1423)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1500(CommandRunnerImpl.java:108)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1761)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1674)
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.StaticHttpHandler.service(StaticHttpHandler.java:297)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:246)
at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:191)
at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:168)
at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:189)
at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114)
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:838)
at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544)
at java.lang.Thread.run(Thread.java:722)
Caused by: com.google.common.collect.ComputationException: org.jboss.weld.exceptions.IllegalStateException: WELD-001328 Unable to identify the correct BeanManager. The calling class org.jboss.weld.servlet.WeldListener is not placed in bean archive
at com.google.common.collect.ComputingConcurrentHashMap$ComputingMapAdapter.get(ComputingConcurrentHashMap.java:400)
at org.jboss.weld.Weld.getBeanManager(Weld.java:115)
at org.jboss.weld.Weld.getBeanManager(Weld.java:46)
at org.jboss.weld.servlet.WeldListener.contextInitialized(WeldListener.java:119)
at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:5362)
at com.sun.enterprise.web.WebModule.contextListenerStart(WebModule.java:743)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:5898)
... 44 more
Caused by: org.jboss.weld.exceptions.IllegalStateException: WELD-001328 Unable to identify the correct BeanManager. The calling class org.jboss.weld.servlet.WeldListener is not placed in bean archive
at org.jboss.weld.Weld.unsatisfiedBeanManager(Weld.java:99)
at org.jboss.weld.servlet.StaticWeldProvider$EnhancedWeld.unsatisfiedBeanManager(StaticWeldProvider.java:43)
at org.jboss.weld.Weld$ClassNameToBeanManager.findBeanManager(Weld.java:76)
at org.jboss.weld.Weld$ClassNameToBeanManager.apply(Weld.java:55)
at org.jboss.weld.Weld$ClassNameToBeanManager.apply(Weld.java:48)
at com.google.common.collect.ComputingConcurrentHashMap$ComputingValueReference.compute(ComputingConcurrentHashMap.java:358)
at com.google.common.collect.ComputingConcurrentHashMap$ComputingSegment.compute(ComputingConcurrentHashMap.java:184)
at com.google.common.collect.ComputingConcurrentHashMap$ComputingSegment.getOrCompute(ComputingConcurrentHashMap.java:153)
at com.google.common.collect.ComputingConcurrentHashMap.getOrCompute(ComputingConcurrentHashMap.java:69)
at com.google.common.collect.ComputingConcurrentHashMap$ComputingMapAdapter.get(ComputingConcurrentHashMap.java:396)
... 50 more

WARNING: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: com.google.common.collect.ComputationException: org.jboss.weld.exceptions.IllegalStateException: WELD-001328 Unable to identify the correct BeanManager. The calling class org.jboss.weld.servlet.WeldListener is not placed in bean archive
java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: com.google.common.collect.ComputationException: org.jboss.weld.exceptions.IllegalStateException: WELD-001328 Unable to identify the correct BeanManager. The calling class org.jboss.weld.servlet.WeldListener is not placed in bean archive
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:1044)
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:2291)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1937)
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:497)
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:527)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:523)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:356)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:522)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:546)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1423)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1500(CommandRunnerImpl.java:108)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1761)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1674)
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.StaticHttpHandler.service(StaticHttpHandler.java:297)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:246)
at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:191)
at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:168)
at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:189)
at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114)
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:838)
at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544)
at java.lang.Thread.run(Thread.java:722)

SEVERE: Exception while invoking class com.sun.enterprise.web.WebApplication start method
java.lang.Exception: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: com.google.common.collect.ComputationException: org.jboss.weld.exceptions.IllegalStateException: WELD-001328 Unable to identify the correct BeanManager. The calling class org.jboss.weld.servlet.WeldListener is not placed in bean archive
at com.sun.enterprise.web.WebApplication.start(WebApplication.java:168)
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:497)
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:527)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:523)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:356)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:522)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:546)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1423)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1500(CommandRunnerImpl.java:108)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1761)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1674)
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.StaticHttpHandler.service(StaticHttpHandler.java:297)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:246)
at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:191)
at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:168)
at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:189)
at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114)
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:838)
at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544)
at java.lang.Thread.run(Thread.java:722)

SEVERE: Exception during lifecycle processing
java.lang.Exception: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: com.google.common.collect.ComputationException: org.jboss.weld.exceptions.IllegalStateException: WELD-001328 Unable to identify the correct BeanManager. The calling class org.jboss.weld.servlet.WeldListener is not placed in bean archive
at com.sun.enterprise.web.WebApplication.start(WebApplication.java:168)
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:497)
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:527)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:523)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:356)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:522)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:546)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1423)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1500(CommandRunnerImpl.java:108)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1761)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1674)
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.StaticHttpHandler.service(StaticHttpHandler.java:297)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:246)
at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:191)
at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:168)
at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:189)
at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114)
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:838)
at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544)
at java.lang.Thread.run(Thread.java:722)

SEVERE: Exception while loading the app
SEVERE: Undeployment failed for context /websockets-demo
SEVERE: Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: com.google.common.collect.ComputationException: org.jboss.weld.exceptions.IllegalStateException: WELD-001328 Unable to identify the correct BeanManager. The calling class org.jboss.weld.servlet.WeldListener is not placed in bean archive



 Comments   
Comment by jjsnyder83 [ 11/Apr/13 ]

I am unable to open the zip. Can you email it to me: j.j.snyder@oracle.com

Comment by shreedhar_ganapathy [ 19/Apr/13 ]

Was this issue reproducible?
Could you update with latest status?

Comment by arjavdesai [ 19/Apr/13 ]

The app had an issue i.e. jms resource used by app is not defined by default. After adding that, I can deploy fine using admin console. Then I click on "redeploy" next to app-name in admin console (i.e. without undeploying first) and it works fine as seen in server logs

[2013-04-19T12:45:28.086-0400] [glassfish 4.0] [WARNING] [] [org.jboss.weld.Bootstrap] [tid: _ThreadID=140 _ThreadName=admin-listener(6)] [timeMillis: 1366389928086] [levelValue: 900] [[
  WELD-001473 javax.enterprise.inject.spi.Bean implementation org.glassfish.jms.injection.JMSCDIExtension$LocalBean@5ce4d7e declared a normal scope but does not implement javax.enterprise.inject.spi.PassivationCapable. It won't be possible to inject this bean into a bean with passivating scope (@SessionScoped, @ConversationScoped). This can be fixed by assigning the Bean implementation a unique id by implementing the PassivationCapable interface.]]

[2013-04-19T12:45:28.194-0400] [glassfish 4.0] [INFO] [] [org.glassfish.tyrus.servlet.TyrusServletContainerInitializer] [tid: _ThreadID=140 _ThreadName=admin-listener(6)] [timeMillis: 1366389928194] [levelValue: 800] [[
  Registering WebSocket filter for url pattern /*]]

[2013-04-19T12:45:28.221-0400] [glassfish 4.0] [INFO] [jsf.config.listener.version] [javax.enterprise.resource.webcontainer.jsf.config] [tid: _ThreadID=140 _ThreadName=admin-listener(6)] [timeMillis: 1366389928221] [levelValue: 800] [[
  Initializing Mojarra 2.2.0 (-SNAPSHOT 20130412-2121 https://svn.java.net/svn/mojarra~svn/tags/2.2.0-m14@11878) for context '/websockets-demo-1.0-SNAPSHOT']]

[2013-04-19T12:45:28.821-0400] [glassfish 4.0] [INFO] [AS-WEB-GLUE-00172] [javax.enterprise.web] [tid: _ThreadID=140 _ThreadName=admin-listener(6)] [timeMillis: 1366389928821] [levelValue: 800] [[
  Loading application [websockets-demo-1.0-SNAPSHOT] at [/websockets-demo-1.0-SNAPSHOT]]]

[2013-04-19T12:45:28.871-0400] [glassfish 4.0] [INFO] [] [javax.enterprise.system.core] [tid: _ThreadID=140 _ThreadName=admin-listener(6)] [timeMillis: 1366389928871] [levelValue: 800] [[
  websockets-demo-1.0-SNAPSHOT was successfully deployed in 6,677 milliseconds.]]

[2013-04-19T12:46:04.369-0400] [glassfish 4.0] [SEVERE] [] [javax.enterprise.web.util] [tid: _ThreadID=43 _ThreadName=admin-listener(3)] [timeMillis: 1366389964369] [levelValue: 1000] [[
  The web application [/websockets-demo-1.0-SNAPSHOT] created a ThreadLocal with key of type [org.glassfish.pfl.dynamic.codegen.impl.CurrentClassLoader$1] (value [org.glassfish.pfl.dynamic.codegen.impl.CurrentClassLoader$1@144e0fa3]) and a value of type [org.glassfish.web.loader.WebappClassLoader] (value [WebappClassLoader (delegate=true; repositories=WEB-INF/classes/)]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.]]

[2013-04-19T12:46:04.892-0400] [glassfish 4.0] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=43 _ThreadName=admin-listener(3)] [timeMillis: 1366389964892] [levelValue: 800] [[
  visiting unvisited references]]

[2013-04-19T12:46:05.069-0400] [glassfish 4.0] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=43 _ThreadName=admin-listener(3)] [timeMillis: 1366389965069] [levelValue: 800] [[
  visiting unvisited references]]

[2013-04-19T12:46:05.083-0400] [glassfish 4.0] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=43 _ThreadName=admin-listener(3)] [timeMillis: 1366389965083] [levelValue: 800] [[
  visiting unvisited references]]

[2013-04-19T12:46:05.090-0400] [glassfish 4.0] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=43 _ThreadName=admin-listener(3)] [timeMillis: 1366389965090] [levelValue: 800] [[
  visiting unvisited references]]

[2013-04-19T12:46:05.091-0400] [glassfish 4.0] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=43 _ThreadName=admin-listener(3)] [timeMillis: 1366389965091] [levelValue: 800] [[
  visiting unvisited references]]

[2013-04-19T12:46:05.093-0400] [glassfish 4.0] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=43 _ThreadName=admin-listener(3)] [timeMillis: 1366389965093] [levelValue: 800] [[
  visiting unvisited references]]

[2013-04-19T12:46:05.095-0400] [glassfish 4.0] [INFO] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=43 _ThreadName=admin-listener(3)] [timeMillis: 1366389965095] [levelValue: 800] [[
  visiting unvisited references]]

[2013-04-19T12:46:05.170-0400] [glassfish 4.0] [INFO] [endpoint.determine.destinationtype] [javax.enterprise.resource.jms.com.sun.enterprise.connectors.jms.system] [tid: _ThreadID=43 _ThreadName=admin-listener(3)] [timeMillis: 1366389965170] [levelValue: 800] [[
  JMS013: Assuming destination type javax.jms.Queue for MDB MessageReceiverSync from administered object jms/myQueue]]

[2013-04-19T12:46:05.680-0400] [glassfish 4.0] [WARNING] [] [org.jboss.weld.Bootstrap] [tid: _ThreadID=43 _ThreadName=admin-listener(3)] [timeMillis: 1366389965680] [levelValue: 900] [[
  WELD-001473 javax.enterprise.inject.spi.Bean implementation org.glassfish.jms.injection.JMSCDIExtension$LocalBean@ccb68b4 declared a normal scope but does not implement javax.enterprise.inject.spi.PassivationCapable. It won't be possible to inject this bean into a bean with passivating scope (@SessionScoped, @ConversationScoped). This can be fixed by assigning the Bean implementation a unique id by implementing the PassivationCapable interface.]]

[2013-04-19T12:46:05.711-0400] [glassfish 4.0] [INFO] [] [org.glassfish.tyrus.servlet.TyrusServletContainerInitializer] [tid: _ThreadID=43 _ThreadName=admin-listener(3)] [timeMillis: 1366389965711] [levelValue: 800] [[
  Registering WebSocket filter for url pattern /*]]

[2013-04-19T12:46:05.744-0400] [glassfish 4.0] [INFO] [jsf.config.listener.version] [javax.enterprise.resource.webcontainer.jsf.config] [tid: _ThreadID=43 _ThreadName=admin-listener(3)] [timeMillis: 1366389965744] [levelValue: 800] [[
  Initializing Mojarra 2.2.0 (-SNAPSHOT 20130412-2121 https://svn.java.net/svn/mojarra~svn/tags/2.2.0-m14@11878) for context '/websockets-demo']]

[2013-04-19T12:46:05.937-0400] [glassfish 4.0] [INFO] [AS-WEB-GLUE-00172] [javax.enterprise.web] [tid: _ThreadID=43 _ThreadName=admin-listener(3)] [timeMillis: 1366389965937] [levelValue: 800] [[
  Loading application [websockets-demo-1.0-SNAPSHOT] at [/websockets-demo]]]

[2013-04-19T12:46:06.021-0400] [glassfish 4.0] [INFO] [] [javax.enterprise.system.core] [tid: _ThreadID=43 _ThreadName=admin-listener(3)] [timeMillis: 1366389966021] [levelValue: 800] [[
  websockets-demo-1.0-SNAPSHOT was successfully deployed in 1,740 milliseconds.]]

Now for netbeans part, I imported the zip file as project and bound it to my local glass fish. All, I could see in option was Run which tried to deploy the app and failed as it was already deployed. How are you doing deploy/re-deploy from within netbeans?

Comment by arjavdesai [ 22/Apr/13 ]

Can you please provide us with reproducible steps?

Comment by arjavdesai [ 22/Apr/13 ]

Changing the priority as its working from admin console while netbeans integration might have issue, if any.





[GLASSFISH-20049] Error when containing an EJB as WAR dependency in EAR Project Created: 26/Mar/13  Updated: 20/Dec/16  Resolved: 27/Mar/13

Status: Closed
Project: glassfish
Component/s: cdi
Affects Version/s: 4.0_dev
Fix Version/s: None

Type: Bug Priority: Critical
Reporter: joshie007 Assignee: phil.zampino
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 3 days
Time Spent: Not Specified
Original Estimate: 3 days
Environment:

Windows 7, NetBeans 7.3, GlassFish 4.0_b81


Tags: ejb, java_ee_7, maven

 Description   

I got an error, when I'm trying to put an EJB project to my Web Module as a dependency.
Here's the file:

web-module/pom.xml:
<dependency>
<groupId>com.jug.joglosemar</groupId>
<artifactId>gudeg7-ejb</artifactId>
<version>1.0-SNAPSHOT</version>
<scope>provided</scope>
</dependency>

ear-module/pom.xml:
<dependency>
<groupId>com.jug.joglosemar</groupId>
<artifactId>gudeg7-web</artifactId>
<version>1.0-SNAPSHOT</version>
<type>war</type>
</dependency>
<dependency>
<groupId>com.jug.joglosemar</groupId>
<artifactId>gudeg7-ejb</artifactId>
<version>1.0-SNAPSHOT</version>
<type>ejb</type>
</dependency>

Here's the stacktrace:
SEVERE: Exception while deploying the app [gudeg7-ear]
SEVERE: Exception during lifecycle processing
java.lang.StackOverflowError
at java.util.Random.nextInt(Random.java:239)
at sun.misc.Hashing.randomHashSeed(Hashing.java:254)
at java.util.HashMap.<init>(HashMap.java:255)
at java.util.HashMap.<init>(HashMap.java:305)
at java.util.HashSet.<init>(HashSet.java:103)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:237)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:221)
at org.glassfish.weld.connector.WeldUtils.isCDIEnablingAnnotation(WeldUtils.java:250)

SEVERE: Exception while deploying the app [gudeg7-ear]



 Comments   
Comment by marina vatkina [ 26/Mar/13 ]

StackOverflowError in Weld code

Comment by phil.zampino [ 26/Mar/13 ]

This was fixed recently. Please re-test.

Comment by joshie007 [ 27/Mar/13 ]

Hi all,

Now I've done some re-test. And I think that I should add CDI-api 1.1 in my dependency.
It solved my problem, so thank you.

This issue is solved.

Comment by jjsnyder83 [ 27/Mar/13 ]

FIxed in CDI 1.1





[GLASSFISH-20083] Failing @Inject in CDI with REST integration Created: 28/Mar/13  Updated: 20/Dec/16  Resolved: 28/Mar/13

Status: Resolved
Project: glassfish
Component/s: cdi
Affects Version/s: 4.0_dev
Fix Version/s: 4.0_dev

Type: Bug Priority: Major
Reporter: joshie007 Assignee: jjsnyder83
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 3 days
Time Spent: Not Specified
Original Estimate: 3 days
Environment:

NetBeans 7.3, Windows 7


Tags: cdi

 Description   

Hi, I want to deploy a REST application.
Here's my dependency (java-ee-api and java-ee-web-api are included):
<dependency>
<groupId>javax.enterprise</groupId>
<artifactId>cdi-api</artifactId>
<version>1.1.EDR1.2</version>
</dependency>

<!-- REST API-->
<dependency>
<groupId>javax.ws.rs</groupId>
<artifactId>javax.ws.rs-api</artifactId>
<version>2.0-rc2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.glassfish.jersey.core</groupId>
<artifactId>jersey-common</artifactId>
<version>2.0-m13-2</version>
<scope>provided</scope>
</dependency>

In the Controller class:

@Named
public class MembersController {
.... method here ...
}

then in the REST Server class:

@Path("members")
public class MembersRest {

@Inject
private MembersController membersController;

@GET
@Path("test"
@Produces("text/plain")
public String testREST()

{ return membersController.test(); }

}

The stack traces:

SEVERE: Non mappable exception rethrown to the container.
MultiException stack 1 of 3
org.glassfish.hk2.api.UnsatisfiedDependencyException: There was no object available for injection at Injectee(requiredType=MembersController,parent=MembersRest,qualifiers={}),position=-1,optional=false,self=false,unqualified=null,20015595)
at org.jvnet.hk2.internal.ThreeThirtyResolver.resolve(ThreeThirtyResolver.java:74)
at org.jvnet.hk2.internal.ClazzCreator.resolve(ClazzCreator.java:192)
at org.jvnet.hk2.internal.ClazzCreator.resolveAllDependencies(ClazzCreator.java:215)
at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:312)
at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:448)
at org.glassfish.jersey.process.internal.RequestScope.findOrCreate(RequestScope.java:157)
at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2203)
at org.jvnet.hk2.internal.ServiceLocatorImpl.getService(ServiceLocatorImpl.java:573)
at org.jvnet.hk2.internal.ServiceLocatorImpl.getService(ServiceLocatorImpl.java:560)
at org.glassfish.jersey.internal.inject.Injections.getOrCreate(Injections.java:172)
at org.glassfish.jersey.server.model.MethodHandler$ClassBasedMethodHandler.getInstance(MethodHandler.java:185)
at org.glassfish.jersey.server.internal.routing.PushMethodHandlerRouter.apply(PushMethodHandlerRouter.java:105)
at org.glassfish.jersey.server.internal.routing.RoutingStage._apply(RoutingStage.java:118)
at org.glassfish.jersey.server.internal.routing.RoutingStage._apply(RoutingStage.java:121)
at org.glassfish.jersey.server.internal.routing.RoutingStage._apply(RoutingStage.java:121)
at org.glassfish.jersey.server.internal.routing.RoutingStage._apply(RoutingStage.java:121)
at org.glassfish.jersey.server.internal.routing.RoutingStage._apply(RoutingStage.java:121)
at org.glassfish.jersey.server.internal.routing.RoutingStage.apply(RoutingStage.java:102)
at org.glassfish.jersey.server.internal.routing.RoutingStage.apply(RoutingStage.java:62)
at org.glassfish.jersey.process.internal.Stages.process(Stages.java:197)
at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:205)
at org.glassfish.jersey.internal.Errors$1.call(Errors.java:207)
at org.glassfish.jersey.internal.Errors$1.call(Errors.java:203)
at org.glassfish.jersey.internal.Errors.process(Errors.java:251)
at org.glassfish.jersey.internal.Errors.process(Errors.java:233)
at org.glassfish.jersey.internal.Errors.process(Errors.java:203)
at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)
at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:190)
at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:865)
at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:329)
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:372)
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:335)
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:218)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1682)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:318)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:734)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:673)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:175)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:357)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:260)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:188)
at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:191)
at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:168)
at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:189)
at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114)
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:838)
at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544)
at java.lang.Thread.run(Thread.java:722)
MultiException stack 2 of 3
java.lang.IllegalArgumentException: While attempting to resolve the dependencies of com.jug.joglosemar.rest.MembersRest errors were found
at org.jvnet.hk2.internal.ClazzCreator.resolveAllDependencies(ClazzCreator.java:227)
at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:312)
at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:448)
at org.glassfish.jersey.process.internal.RequestScope.findOrCreate(RequestScope.java:157)
at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2203)
at org.jvnet.hk2.internal.ServiceLocatorImpl.getService(ServiceLocatorImpl.java:573)
at org.jvnet.hk2.internal.ServiceLocatorImpl.getService(ServiceLocatorImpl.java:560)
at org.glassfish.jersey.internal.inject.Injections.getOrCreate(Injections.java:172)
at org.glassfish.jersey.server.model.MethodHandler$ClassBasedMethodHandler.getInstance(MethodHandler.java:185)
at org.glassfish.jersey.server.internal.routing.PushMethodHandlerRouter.apply(PushMethodHandlerRouter.java:105)
at org.glassfish.jersey.server.internal.routing.RoutingStage._apply(RoutingStage.java:118)
at org.glassfish.jersey.server.internal.routing.RoutingStage._apply(RoutingStage.java:121)
at org.glassfish.jersey.server.internal.routing.RoutingStage._apply(RoutingStage.java:121)
at org.glassfish.jersey.server.internal.routing.RoutingStage._apply(RoutingStage.java:121)
at org.glassfish.jersey.server.internal.routing.RoutingStage._apply(RoutingStage.java:121)
at org.glassfish.jersey.server.internal.routing.RoutingStage.apply(RoutingStage.java:102)
at org.glassfish.jersey.server.internal.routing.RoutingStage.apply(RoutingStage.java:62)
at org.glassfish.jersey.process.internal.Stages.process(Stages.java:197)
at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:205)
at org.glassfish.jersey.internal.Errors$1.call(Errors.java:207)
at org.glassfish.jersey.internal.Errors$1.call(Errors.java:203)
at org.glassfish.jersey.internal.Errors.process(Errors.java:251)
at org.glassfish.jersey.internal.Errors.process(Errors.java:233)
at org.glassfish.jersey.internal.Errors.process(Errors.java:203)
at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)
at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:190)
at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:865)
at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:329)
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:372)
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:335)
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:218)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1682)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:318)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:734)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:673)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:175)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:357)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:260)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:188)
at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:191)
at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:168)
at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:189)
at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114)
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:838)
at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544)
at java.lang.Thread.run(Thread.java:722)
MultiException stack 3 of 3
java.lang.IllegalStateException: Unable to perform operation: resolve on com.jug.joglosemar.rest.MembersRest
at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:341)
at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:448)
at org.glassfish.jersey.process.internal.RequestScope.findOrCreate(RequestScope.java:157)
at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2203)
at org.jvnet.hk2.internal.ServiceLocatorImpl.getService(ServiceLocatorImpl.java:573)
at org.jvnet.hk2.internal.ServiceLocatorImpl.getService(ServiceLocatorImpl.java:560)
at org.glassfish.jersey.internal.inject.Injections.getOrCreate(Injections.java:172)
at org.glassfish.jersey.server.model.MethodHandler$ClassBasedMethodHandler.getInstance(MethodHandler.java:185)
at org.glassfish.jersey.server.internal.routing.PushMethodHandlerRouter.apply(PushMethodHandlerRouter.java:105)
at org.glassfish.jersey.server.internal.routing.RoutingStage._apply(RoutingStage.java:118)
at org.glassfish.jersey.server.internal.routing.RoutingStage._apply(RoutingStage.java:121)
at org.glassfish.jersey.server.internal.routing.RoutingStage._apply(RoutingStage.java:121)
at org.glassfish.jersey.server.internal.routing.RoutingStage._apply(RoutingStage.java:121)
at org.glassfish.jersey.server.internal.routing.RoutingStage._apply(RoutingStage.java:121)
at org.glassfish.jersey.server.internal.routing.RoutingStage.apply(RoutingStage.java:102)
at org.glassfish.jersey.server.internal.routing.RoutingStage.apply(RoutingStage.java:62)
at org.glassfish.jersey.process.internal.Stages.process(Stages.java:197)
at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:205)
at org.glassfish.jersey.internal.Errors$1.call(Errors.java:207)
at org.glassfish.jersey.internal.Errors$1.call(Errors.java:203)
at org.glassfish.jersey.internal.Errors.process(Errors.java:251)
at org.glassfish.jersey.internal.Errors.process(Errors.java:233)
at org.glassfish.jersey.internal.Errors.process(Errors.java:203)
at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)
at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:190)
at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:865)
at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:329)
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:372)
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:335)
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:218)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1682)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:318)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:734)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:673)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:175)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:357)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:260)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:188)
at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:191)
at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:168)
at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:189)
at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114)
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:838)
at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544)
at java.lang.Thread.run(Thread.java:722)

WARNING: StandardWrapperValve[javax.ws.rs.core.Application]: Servlet.service() for servlet javax.ws.rs.core.Application threw exception
org.glassfish.hk2.api.UnsatisfiedDependencyException: There was no object available for injection at Injectee(requiredType=MembersController,parent=MembersRest,qualifiers={}),position=-1,optional=false,self=false,unqualified=null,20015595)
at org.jvnet.hk2.internal.ThreeThirtyResolver.resolve(ThreeThirtyResolver.java:74)
at org.jvnet.hk2.internal.ClazzCreator.resolve(ClazzCreator.java:192)
at org.jvnet.hk2.internal.ClazzCreator.resolveAllDependencies(ClazzCreator.java:215)
at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:312)
at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:448)
at org.glassfish.jersey.process.internal.RequestScope.findOrCreate(RequestScope.java:157)
at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2203)
at org.jvnet.hk2.internal.ServiceLocatorImpl.getService(ServiceLocatorImpl.java:573)
at org.jvnet.hk2.internal.ServiceLocatorImpl.getService(ServiceLocatorImpl.java:560)
at org.glassfish.jersey.internal.inject.Injections.getOrCreate(Injections.java:172)
at org.glassfish.jersey.server.model.MethodHandler$ClassBasedMethodHandler.getInstance(MethodHandler.java:185)
at org.glassfish.jersey.server.internal.routing.PushMethodHandlerRouter.apply(PushMethodHandlerRouter.java:105)
at org.glassfish.jersey.server.internal.routing.RoutingStage._apply(RoutingStage.java:118)
at org.glassfish.jersey.server.internal.routing.RoutingStage._apply(RoutingStage.java:121)
at org.glassfish.jersey.server.internal.routing.RoutingStage._apply(RoutingStage.java:121)
at org.glassfish.jersey.server.internal.routing.RoutingStage._apply(RoutingStage.java:121)
at org.glassfish.jersey.server.internal.routing.RoutingStage._apply(RoutingStage.java:121)
at org.glassfish.jersey.server.internal.routing.RoutingStage.apply(RoutingStage.java:102)
at org.glassfish.jersey.server.internal.routing.RoutingStage.apply(RoutingStage.java:62)
at org.glassfish.jersey.process.internal.Stages.process(Stages.java:197)
at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:205)
at org.glassfish.jersey.internal.Errors$1.call(Errors.java:207)
at org.glassfish.jersey.internal.Errors$1.call(Errors.java:203)
at org.glassfish.jersey.internal.Errors.process(Errors.java:251)
at org.glassfish.jersey.internal.Errors.process(Errors.java:233)
at org.glassfish.jersey.internal.Errors.process(Errors.java:203)
at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)
at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:190)
at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:865)
at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:329)
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:372)
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:335)
at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:218)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1682)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:318)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:734)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:673)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:175)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:357)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:260)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:188)
at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:191)
at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:168)
at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:189)
at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114)
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:838)
at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544)
at java.lang.Thread.run(Thread.java:722)

But, when I remove @Inject object, it runs well. I don't know, perhaps this is CDI problem again. Can't be injected to a REST class?



 Comments   
Comment by jjsnyder83 [ 28/Mar/13 ]

This should be fixed by the fix to http://java.net/jira/browse/JERSEY-1747.

Please retest on the trunk.





[GLASSFISH-19191] Integrate CDI 1.1 Created: 19/Oct/12  Updated: 20/Dec/16  Resolved: 05/Mar/13

Status: Closed
Project: glassfish
Component/s: cdi
Affects Version/s: 4.0
Fix Version/s: 4.0_dev

Type: New Feature Priority: Major
Reporter: Nigel Deakin Assignee: jjsnyder83
Resolution: Fixed Votes: 0
Labels: None
Σ Remaining Estimate: Not Specified Remaining Estimate: Not Specified
Σ Time Spent: Not Specified Time Spent: Not Specified
Σ Original Estimate: Not Specified Original Estimate: Not Specified

Sub-Tasks:
Key
Summary
Type
Status
Assignee
GLASSFISH-19016 Implement support for transaction scope Sub-task Resolved jjsnyder83  
GLASSFISH-19192 CDI 1.1 Web Container Integration Sub-task Closed jjsnyder83  
GLASSFISH-19193 CDI - EJB Container Integration Sub-task Closed jjsnyder83  
GLASSFISH-19194 CDI - JCA Integration Sub-task Closed jjsnyder83  
GLASSFISH-19276 Ingegrate Weld 2.0 Sub-task Closed jjsnyder83  
GLASSFISH-19305 CDI 1.1 Bean Validation Integration Sub-task Resolved jjsnyder83  
GLASSFISH-19318 support CDI in app client container Sub-task Resolved Tim Quinn  
GLASSFISH-19341 Migrate CDI logging. Sub-task Resolved jjsnyder83  
Tags: ee7cdi

 Description   

This issue covers the project for integrating CDI 1.1



 Comments   
Comment by tlcksnyder [ 05/Mar/13 ]

CDI integration is checked & available as of b79-02_28_2013





[GLASSFISH-19946] Add ability to turn on/off global support for CDI. Created: 19/Mar/13  Updated: 20/Dec/16  Resolved: 11/Apr/13

Status: Closed
Project: glassfish
Component/s: cdi
Affects Version/s: 4.0_dev
Fix Version/s: 4.0_dev

Type: Bug Priority: Major
Reporter: jjsnyder83 Assignee: jjsnyder83
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Comments   
Comment by jjsnyder83 [ 21/Mar/13 ]

See https://issues.jboss.org/browse/CDI-321

Comment by jjsnyder83 [ 22/Mar/13 ]

Make sure we also check the isJCDIEnabled method in the JCDI service

Comment by jjsnyder83 [ 22/Mar/13 ]

globally disabling CDI means that a beans.xml must be present for an archive to be a bda, e.g. no implicit archives. If there is a beans.xml the "bean-discovery-mode" element must still be honored.

Comment by jjsnyder83 [ 09/Apr/13 ]

The config item is there. We need to access it. WeldUtils.isEnableImplicitCDI() is the method to use. To change the value use asadmin (false is the default)

asadmin create-module-config cdi-service
asadmin set configs.config.server-config.cdi-service.enable-implicit-cdi=true

Comment by jjsnyder83 [ 09/Apr/13 ]

Revision 61270 has the changes needed for this.

Comment by tlcksnyder [ 11/Apr/13 ]

Implemented.





[GLASSFISH-20214] cdi tck test org.jboss.cdi.tck.tests.implementation.simple.resource.broken.type.ws.ResourceDefinitionWithDifferentTypeTest failing Created: 08/Apr/13  Updated: 20/Dec/16  Resolved: 11/Apr/13

Status: Resolved
Project: glassfish
Component/s: cdi
Affects Version/s: 4.0_dev
Fix Version/s: 4.0_dev

Type: Bug Priority: Major
Reporter: jjsnyder83 Assignee: jjsnyder83
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

When a web service app fails deployment in cdi it's causing NPE's in various places in web service container load/unload.






[GLASSFISH-19921] Transactional interceptors not working Created: 18/Mar/13  Updated: 20/Dec/16  Resolved: 18/Mar/13

Status: Resolved
Project: glassfish
Component/s: cdi
Affects Version/s: None
Fix Version/s: 4.0_dev

Type: Bug Priority: Major
Reporter: jjsnyder83 Assignee: jjsnyder83
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Comments   
Comment by jjsnyder83 [ 18/Mar/13 ]

Committed revision 60546.





[GLASSFISH-19922] Create JMS resources for CDI TCK Created: 18/Mar/13  Updated: 20/Dec/16  Resolved: 25/Apr/13

Status: Resolved
Project: glassfish
Component/s: cdi
Affects Version/s: None
Fix Version/s: 4.0_dev

Type: Bug Priority: Major
Reporter: jjsnyder83 Assignee: jjsnyder83
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

2 JMS resources are needed to run CDI TCK. Currently they're implemented as calls to asadmin but they really should use Rest.

Waiting for feedback from Jason Lee on how to implement "create".



 Comments   
Comment by jjsnyder83 [ 25/Apr/13 ]

Going to stay with current implementation for now.





[GLASSFISH-20219] cdi tck test failing org.jboss.cdi.tck.tests.deployment.discovery.BeanDiscoveryTest Created: 08/Apr/13  Updated: 20/Dec/16  Resolved: 10/Apr/13

Status: Resolved
Project: glassfish
Component/s: cdi
Affects Version/s: 4.0_dev
Fix Version/s: 4.0_dev

Type: Bug Priority: Major
Reporter: jjsnyder83 Assignee: jjsnyder83
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Failing on Weld 2.0.0.CR1



 Comments   
Comment by jjsnyder83 [ 10/Apr/13 ]

Implicit bdas are built incorrectly. Phil is fixing.

Also retest the following tests when this is fixed:
org.jboss.cdi.tck.tests.definition.bean.custom.CustomBeanImplementationTest

Comment by jjsnyder83 [ 10/Apr/13 ]

committed 61350





[GLASSFISH-20220] cdi tck test failing org.jboss.cdi.tck.tests.deployment.discovery.enterprise.EnterpriseBeanDiscoveryTest Created: 08/Apr/13  Updated: 20/Dec/16  Resolved: 11/Apr/13

Status: Resolved
Project: glassfish
Component/s: cdi
Affects Version/s: 4.0_dev
Fix Version/s: 4.0_dev

Type: Bug Priority: Major
Reporter: jjsnyder83 Assignee: jjsnyder83
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Failing on Weld 2.0.0.CR1

Should be fixed when Phil commits changes for session beans being bean-defining.



 Comments   
Comment by jjsnyder83 [ 11/Apr/13 ]

Committed revision 61359.

Comment by jjsnyder83 [ 11/Apr/13 ]

testImplicitBeanArchiveModeNone is failing again





[GLASSFISH-20221] cdi tck test failing org.jboss.cdi.tck.tests.deployment.initialization.ApplicationInitializationLifecycleTest Created: 08/Apr/13  Updated: 20/Dec/16  Resolved: 10/Apr/13

Status: Resolved
Project: glassfish
Component/s: cdi
Affects Version/s: 4.0_dev
Fix Version/s: 4.0_dev

Type: Bug Priority: Major
Reporter: jjsnyder83 Assignee: jjsnyder83
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Failing on Weld 2.0.0.CR1



 Comments   
Comment by jjsnyder83 [ 10/Apr/13 ]

Committed revision 61355





[GLASSFISH-20222] cdi tck test failing org.jboss.cdi.tck.tests.lookup.manager.jndi.ManagerTestEar Created: 08/Apr/13  Updated: 20/Dec/16  Resolved: 10/Apr/13

Status: Resolved
Project: glassfish
Component/s: cdi
Affects Version/s: 4.0_dev
Fix Version/s: 4.0_dev

Type: Bug Priority: Major
Reporter: jjsnyder83 Assignee: jjsnyder83
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Failing on Weld 2.0.0.CR1



 Comments   
Comment by jjsnyder83 [ 10/Apr/13 ]

Fixed by JBoss





[GLASSFISH-19925] Uptake Weld 2.0 Beta 6 Created: 18/Mar/13  Updated: 20/Dec/16  Resolved: 25/Apr/13

Status: Resolved
Project: glassfish
Component/s: cdi
Affects Version/s: None
Fix Version/s: 4.0_dev

Type: Bug Priority: Major
Reporter: jjsnyder83 Assignee: jjsnyder83
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Comments   
Comment by jjsnyder83 [ 18/Mar/13 ]

Notify kmukherj@us.ibm.com when it's done

Comment by michael.y.chen [ 25/Apr/13 ]

pretty sure this is done couple week ago.





[GLASSFISH-19970] CDI TCK EJB Failure: "Unable to convert ejbRef for ejb Foo to a business object of type Created: 20/Mar/13  Updated: 20/Dec/16  Resolved: 02/Apr/13

Status: Resolved
Project: glassfish
Component/s: cdi
Affects Version/s: None
Fix Version/s: 4.0_dev

Type: Bug Priority: Major
Reporter: jjsnyder83 Assignee: jjsnyder83
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Tracking bug for CDI CTS test failures for tests:
org.jboss.cdi.tck.tests.lookup.modules.EnabledSessionBeanInjectionAvailabilityTest

testInjection

org.jboss.cdi.tck.tests.decorators.invocation.enterprise.EnterpriseDecoratorInvocationTest

testContextualDecorated

testImplicitBeanArchiveModeAnnotated(org.jboss.cdi.tck.tests.deployment.discovery.enterprise.EnterpriseBeanDiscoveryTest):
testExplicitBeanArchiveLegacyDescriptor(org.jboss.cdi.tck.tests.deployment.discovery.enterprise.EnterpriseBeanDiscoveryTest):
testExplicitBeanArchiveModeAll(org.jboss.cdi.tck.tests.deployment.discovery.enterprise.EnterpriseBeanDiscoveryTest):
testExplicitBeanArchiveEmptyDescriptor(org.jboss.cdi.tck.tests.deployment.discovery.enterprise.EnterpriseBeanDiscoveryTest):
testImplicitBeanArchiveModeNone(org.jboss.cdi.tck.tests.deployment.discovery.enterprise.EnterpriseBeanDiscoveryTest):



 Comments   
Comment by jjsnyder83 [ 24/Mar/13 ]

JBoss is aware of the issue and is investigating the failures

Comment by jjsnyder83 [ 26/Mar/13 ]

I believe this is caused by https://issues.jboss.org/browse/WELD-921

Comment by jjsnyder83 [ 29/Mar/13 ]

Some are now passing. Sent email to Jozef asking for status.

Comment by jjsnyder83 [ 02/Apr/13 ]

Committed revision 61099.





[GLASSFISH-20034] Implement EjbDescriptor.isPassivationCapable Created: 25/Mar/13  Updated: 20/Dec/16  Resolved: 26/Mar/13

Status: Resolved
Project: glassfish
Component/s: cdi
Affects Version/s: None
Fix Version/s: 4.0_dev

Type: Bug Priority: Major
Reporter: jjsnyder83 Assignee: jjsnyder83
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

This is required for Weld beta 7.

The method has been added to indicate whether an EJB is passivation capable or not (in reaction to the passivationCapable option introduced in EJB 3.2)



 Comments   
Comment by jjsnyder83 [ 25/Mar/13 ]

Requires fix to http://java.net/jira/browse/GLASSFISH-20040

Comment by jjsnyder83 [ 26/Mar/13 ]

Committed revision 60799.





[GLASSFISH-20041] Tracking bug for cdi tck failure org.jboss.cdi.tck.tests.extensions.lifecycle.atd.AfterTypeDiscoveryTest Created: 25/Mar/13  Updated: 20/Dec/16  Resolved: 26/Mar/13

Status: Resolved
Project: glassfish
Component/s: cdi
Affects Version/s: None
Fix Version/s: 4.0_dev

Type: Bug Priority: Major
Reporter: jjsnyder83 Assignee: jjsnyder83
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

2 bad tests:
testFinalInterceptors
testInitialInterceptors

I sent email to JBoss.



 Comments   
Comment by jjsnyder83 [ 26/Mar/13 ]

Fixed by JBoss





Integrate CDI 1.1 (GLASSFISH-19191)

[GLASSFISH-19305] CDI 1.1 Bean Validation Integration Created: 08/Nov/12  Updated: 20/Dec/16  Resolved: 26/Mar/13

Status: Resolved
Project: glassfish
Component/s: cdi
Affects Version/s: None
Fix Version/s: 4.0_dev

Type: Sub-task Priority: Major
Reporter: jjsnyder83 Assignee: jjsnyder83
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Comments   
Comment by jjsnyder83 [ 08/Nov/12 ]

See http://beanvalidation.org/1.1/spec/1.1.0.beta1/#integration
We have an early December meeting setup with BV/GlassFish CDI team to discuss integration issues

Providers will need to write a CDI portable extension to implement parts of the BV spec dealing with CDI:

  • ValidatorFactory, Validator, ConstraintValidatorFactory, MessageInterpolator, ParameterNameProvider and TraversableResolver
    Providers will need to write a CDI interceptor for method validation. This interceptor needs to be added via an API provided by GlassFish
Comment by jjsnyder83 [ 26/Mar/13 ]

We are fully integrated with Hibernate Validator.





[GLASSFISH-20044] Tracking bug for cdi tck failure for ASyncListener onError failures Created: 26/Mar/13  Updated: 20/Dec/16  Resolved: 26/Mar/13

Status: Resolved
Project: glassfish
Component/s: cdi
Affects Version/s: None
Fix Version/s: 4.0_dev

Type: Bug Priority: Major
Reporter: jjsnyder83 Assignee: jjsnyder83
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

These 3 tests all fail for the same reason:
testApplicationContextActiveOnError(org.jboss.cdi.tck.tests.context.application.async.ApplicationContextAsyncListenerTest): expected:<false> but was:<true>
testRequestContextActiveOnError(org.jboss.cdi.tck.tests.context.request.async.RequestContextAsyncListenerTest): expected:<false> but was:<true>
testSessionContextActiveOnError(org.jboss.cdi.tck.tests.context.session.async.SessionContextAsyncListenerTest): expected:<false> but was:<true>

The tests are bad. I verified today that if the error happens the listeners get notified. I email Martin Kouba on 3/25 with information on how the tests are bad.



 Comments   
Comment by jjsnyder83 [ 26/Mar/13 ]

Fixed by JBoss





[GLASSFISH-20046] Tracking bug for cdi tck failure org.jboss.cdi.tck.tests.extensions.annotated.delivery.WithAnnotationsTest Created: 26/Mar/13  Updated: 20/Dec/16  Resolved: 26/Mar/13

Status: Resolved
Project: glassfish
Component/s: cdi
Affects Version/s: None
Fix Version/s: 4.0_dev

Type: Bug Priority: Major
Reporter: jjsnyder83 Assignee: jjsnyder83
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

testDelivery appears to be a bad test

3/24 sent email to Martin Kouba



 Comments   
Comment by jjsnyder83 [ 26/Mar/13 ]

Fixed





[GLASSFISH-19896] must close validator and validator factory at application undeploy Created: 15/Mar/13  Updated: 20/Dec/16  Resolved: 24/Apr/13

Status: Resolved
Project: glassfish
Component/s: cdi
Affects Version/s: 4.0_dev
Fix Version/s: 4.0_dev

Type: Bug Priority: Major
Reporter: jjsnyder83 Assignee: jjsnyder83
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Tags: 4_0-approved

 Comments   
Comment by jjsnyder83 [ 26/Mar/13 ]

Please remove the following commented code in WeldDeployer when this is implemented.

// JJS: commented out next 2 lines as the new hibernate validator provides this via their
// portable extensions.
//ValidationServices validationServices = new ValidationServicesImpl();
//deploymentImpl.getServices().add(ValidationServices.class, validationServices);

Comment by jjsnyder83 [ 11/Apr/13 ]

Look up the ValidatorFactory in java:comp and call close on it.

Comment by jjsnyder83 [ 24/Apr/13 ]

What is the impact on the customer of the bug?
Causes memory leaks

How likely is it that a customer will see the bug and how serious is the bug?
Is it a regression? Does it meet other bug fix criteria (security, performance, etc.)?
What CTS failures are caused by this bug?
Causes memory leaks

What is the cost/risk of fixing the bug?
N/A

How risky is the fix? How much work is the fix? Is the fix complicated?
N/A

Is there an impact on documentation or message strings?
No

Which tests should QA (re)run to verify the fix did not destabilize GlassFish?
quicklook

Which is the targeted build of 4.0 for this fix?
4.0_b86_RC2

If this an integration of a new version of a component from another project,
what are the changes that are being brought in? This might be list of
Jira issues from that project or a list of revision messages.
N/A

Comment by Tom Mueller [ 24/Apr/13 ]

Approved for 4.0.

Comment by jjsnyder83 [ 24/Apr/13 ]

Committed revision 61624.





[GLASSFISH-20066] Tracking bug for cdi tck failure org.jboss.cdi.tck.tests.extensions.beanManager.unmanaged.UnmanagedInstanceTest Created: 26/Mar/13  Updated: 20/Dec/16  Resolved: 27/Mar/13

Status: Resolved
Project: glassfish
Component/s: cdi
Affects Version/s: None
Fix Version/s: 4.0_dev

Type: Bug Priority: Major
Reporter: jjsnyder83 Assignee: jjsnyder83
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

testObtainUnmanagedInstance is failing. Sent stack trace to JBoss.



 Comments   
Comment by jjsnyder83 [ 27/Mar/13 ]

Test fixed and passes





[GLASSFISH-20067] Tracking bug for cdi tck failure org.jboss.cdi.tck.interceptors.tests.invocationContext.InvocationContextTest Created: 26/Mar/13  Updated: 20/Dec/16  Resolved: 27/Mar/13

Status: Resolved
Project: glassfish
Component/s: cdi
Affects Version/s: None
Fix Version/s: 4.0_dev

Type: Bug Priority: Major
Reporter: jjsnyder83 Assignee: jjsnyder83
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

testIllegalTypeOfParameters

is a bad test. Sent email to JBoss.



 Comments   
Comment by jjsnyder83 [ 27/Mar/13 ]

Must enable java assertions. I added
<jvm-options>-ea:org.jboss.cdi.tck...</jvm-options>

to domain.xml and the test passes.





[GLASSFISH-20068] Tracking bug for cdi tck failure org.jboss.cdi.tck.tests.extensions.lifecycle.processInjectionTarget.ContainerEventTest Created: 26/Mar/13  Updated: 20/Dec/16  Resolved: 27/Mar/13

Status: Resolved
Project: glassfish
Component/s: cdi
Affects Version/s: None
Fix Version/s: 4.0_dev

Type: Bug Priority: Major
Reporter: jjsnyder83 Assignee: jjsnyder83
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

testProcessInjectionTargetEventFiredForTagHandler and testTypeOfProcessInjectionTargetParameter
are failing. I think it's a bad test. Sent email to JBoss to confirm.



 Comments   
Comment by jjsnyder83 [ 27/Mar/13 ]

This is a bug in GlassFish. GF is responsible for firing the process injection target event for all non-contextual classes. We are not doing this for classes that are assignable from javax.servlet.jsp.tagext.JspTag

Comment by jjsnyder83 [ 27/Mar/13 ]

Committed revision 60948.





[GLASSFISH-20267] Spurious warning about invalid beans.xml Created: 10/Apr/13  Updated: 20/Dec/16  Resolved: 23/Apr/13

Status: Resolved
Project: glassfish
Component/s: cdi
Affects Version/s: 4.0_dev
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Harald Wellmann Assignee: jjsnyder83
Resolution: Works as designed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Tags: fishcat

 Description   

When deploying a sample web application, I see the following warning in the server log:

[2013-04-10T20:31:07.463+0200] [glassfish 4.0] [WARNING] [] [org.jboss.weld.Bootstrap] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1365618667463] [levelValue: 900] [[
  WELD-001208 Error when validating jar:file:/home/hwellmann/gf/glassfish-4.0-b82/glassfish/domains/domain1/applications/pax-exam-sample7-web/WEB-INF/lib/pax-exam-sample7-service-3.1.0-SNAPSHOT.jar!/META-INF/beans.xml@18 against xsd. cvc-elt.1: Deklaration des Elements "beans" kann nicht gefunden werden.]]

(Meaning: "Declaration of 'beans' element cannot be found)

My beans.xml is valid. The warning disappears when setting user.language=en in domain.xml jvm-options.



 Comments   
Comment by TangYong [ 11/Apr/13 ]

hwellmann

Whether your sample is PaxExam CDI integration? If possible, could you please tell me how to obtain your sample,
I suggest putting your sample into your github repo.

Thanks
--Tang

Comment by Harald Wellmann [ 11/Apr/13 ]

You can find the sample here:
https://github.com/ops4j/org.ops4j.pax.exam2/tree/master/samples/pax-exam-sample7-web

Comment by tlcksnyder [ 18/Apr/13 ]

what locale & os are you using? Ran with LANG=de_DE.UTF-8, matching LC, & user.language. Could not reproduce on 4/17 GF nightly & build of pax-exam-sample7-web from 4/17.

Comment by Harald Wellmann [ 19/Apr/13 ]

I'm using Ubuntu 12.04 LTS with de_DE.UTF-8.

I'll attach a simple self-contained sample project: the message is caused by a beans.xml file containing nothing but <beans/>. The message disappears when you add the correct namespace definition.

I don't know if the namespace is really required by the CDI spec, but it does make some sense for Weld to complain.

What doesn't make sense to me is that the message disappears when changing the locale.

I copied my sample WAR to domains/domain1/autodeploy and started GlassFish with

LANG=de_DE.UTF-8 bin/asadmin start-domain --verbose

In this case the error message appears. Using any of LANG=de_DE (without UTF-8) or LANG=C, LANG=en, LANG=en_US, LANG=en_US.UTF-8 the message does not appear.

So my original problem description was incorrect, the warning is not spurious, but its presence should not depend on the locale, and there appears to be an issue with resource bundle lookup.

Comment by Harald Wellmann [ 19/Apr/13 ]

Creating attachments seems to be forbidden (why?). I'm using a very trivial webapp with the following contents:

package com.blogspot.hwellmann.gf20267;

import javax.enterprise.inject.Model;

@Model
public class HelloBean {

public String getMessage()

{ return "Glassfish!"; }

}

WEB-INF/beans.xml:

<beans>
</beans>

/hello.xhtml

<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets">
<body>
<h1>Hello #

{helloBean.message}

</h1>
</body>
</html>

WEB-INF/faces-config.xml

<?xml version="1.0" encoding="UTF-8"?>

<faces-config
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"
version="2.0">

</faces-config>

Comment by jjsnyder83 [ 23/Apr/13 ]

This is a weld issue. Please see https://issues.jboss.org/browse/WELD-1413





[GLASSFISH-20175] [SDK]Java EE 7 sample-cdi Created: 04/Apr/13  Updated: 20/Dec/16  Resolved: 04/Apr/13

Status: Resolved
Project: glassfish
Component/s: cdi
Affects Version/s: 4.0_dev
Fix Version/s: 4.0

Type: Bug Priority: Major
Reporter: Daniel Assignee: arjavdesai
Resolution: Works as designed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Java ee 7 build 82
Maven 3.0.3
Latest build of samples



 Description   

App name should not include SNAPSHOT right?

cdi
/cdi-guess
Operations:
Errors:
Remark:
1 incorrect app name(cdi-guess-4.0-SNAPSHOT)

/cdi-servlet
Operations:
Errors:
Remark:
1 incorrect app name(cdi-servlet-4.0-SNAPSHOT)

/events
Operations:
Errors:
Remark:
1 incorrect app name(events-4.0-SNAPSHOT)

/interceptors
Operations:
Errors:
Remark:
1 incorrect app name(interceptors-4.0-SNAPSHOT)

/transactional
Operations:
Errors:
Remark:
1 incorrect app name(transactional-4.0-SNAPSHOT)



 Comments   
Comment by arjavdesai [ 04/Apr/13 ]

4.0-SNAPSHOT is version for sample as defined in pom.xml for the project. I think it will be updated to 4.0 once its released.





[GLASSFISH-20176] [SDK]Java EE 7 sample-cdi-transaction-scoped Created: 04/Apr/13  Updated: 20/Dec/16  Resolved: 22/Apr/13

Status: Resolved
Project: glassfish
Component/s: cdi
Affects Version/s: 4.0_dev
Fix Version/s: 4.0

Type: Bug Priority: Major
Reporter: Daniel Assignee: arjavdesai
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

/transaction-scoped
Operations:
1 "mvn clean verify cargo:run"

Errors:
1 404 NOT FOUND
http://localhost:8080/transaction-scoped-4.0-SNAPSHOT/

Remark:
1 incorrect app name(transaction-scoped-4.0-SNAPSHOT)



 Comments   
Comment by arjavdesai [ 04/Apr/13 ]

As mentioned in the read-me, the URL to invoke is http://host:port/context-root/TransactionScopedServlet

Comment by arjavdesai [ 22/Apr/13 ]

I have added index.html as well now with revision 1131





[GLASSFISH-16102] Use generics in JCDIService.JCDIInjectionContext and related methods Created: 25/Feb/11  Updated: 20/Dec/16  Resolved: 21/Mar/13

Status: Closed
Project: glassfish
Component/s: cdi
Affects Version/s: 4.0
Fix Version/s: 4.0_dev

Type: Improvement Priority: Major
Reporter: Cheng Fang Assignee: jwells
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Dependency
blocks GLASSFISH-16086 Use Generic in InjectionManager inter... In Progress

 Description   

This issue is a continuation of issue 16086 (Use Generic in InjectionManager interface).

ManagedBeanManagerImpl calls JCDIService to get instance of managed objects, passing in Class<T>. Currently the return instance is Object. It will be nice if the return value is T.



 Comments   
Comment by jwells [ 21/Mar/13 ]

JCDIService has been converted to use Generics with change 60671





[GLASSFISH-20061] tracking bug for cdi tck failure org.jboss.cdi.tck.tests.deployment.exclude.ExcludeFiltersTest Created: 26/Mar/13  Updated: 20/Dec/16  Resolved: 26/Mar/13

Status: Resolved
Project: glassfish
Component/s: cdi
Affects Version/s: None
Fix Version/s: 4.0_dev

Type: Bug Priority: Major
Reporter: jjsnyder83 Assignee: jjsnyder83
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Comments   
Comment by jjsnyder83 [ 26/Mar/13 ]

I have a question to JBoss on who's responsible for processing the exclusions. If GF is responsible see

WeldBootstrap.parse() which is called by BeanDeploymentArchiveImpl.getBeansXml().

Comment by jjsnyder83 [ 26/Mar/13 ]

Need to add system property cdiTckExcludeDummy

Comment by jjsnyder83 [ 26/Mar/13 ]

Must add the following environment variable definition to domain.xml as a sub-element of <java-config>. Note that there are 2 locations in domain.xml for this.

<jvm-options>-DcdiTckExcludeDummy=true</jvm-options>





[GLASSFISH-20371] Can't listen to JMS Queue from a WebSocket Created: 22/Apr/13  Updated: 20/Dec/16  Resolved: 22/May/13

Status: Resolved
Project: glassfish
Component/s: cdi
Affects Version/s: 4.0_dev
Fix Version/s: future release

Type: Bug Priority: Critical
Reporter: Bruno Borges Assignee: jjsnyder83
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

It should be possible to connect a WebSocket and a JMS queue using standards. The usecase is based on the idea where each websocket session will be a subscriber to a Topic. In this example specifically, code is based on a WebSocket session consuming a Queue.

It is possible to inject a JMSContext inside a WebSocket using @Inject at constructor [1], but whenever I try to inject a Queue/Topic, it does not get injected using @Resource [2].

Also tried to use JMS 1.1 code (creating a InitialContext, doing lookup on ConnectionFactory, etc), it dit not work.

Most of the time, I get this error [3].

MyWebSocket.java
@Named // with @Named or without, nothing from CDI works as it should
@ServerEndpoint("/path")
public class MyWebSocket implements MessageListener {
  // @Inject at field level does not work
  private JMSContext jmsContext;

  @Resource(mappedName = "jms/myQueue") // [2] jms queue/topic does not get injected
  private Queue queue;

  @Inject // [1] at constructor, it works
  public MyWebSocket(JMSContext jmsc) {
    this.jmsContext = jmsc;
    ... // code to create a MessageListener
   jmsContext.createConsumer(queue).setMessageListener(this);
  }

  public void onMessage(Message m) {
    webSocketSession.getAsyncRemote().sendText(m.getBody(String.class));
  }

}


 Comments   
Comment by David Zhao [ 23/Apr/13 ]

Regarding to the injection into WebSocket, I observed the following behavior. Forwarding to CDI team to take a look.

1. If JMSContext is injected as a field of class, it is not available in constructor(is that expected?). But it is available in @OnMessage method, which is correct. It seems that @OnMessage method of WebSocket doesn't have a vaild transaction or request scope, so the behavior of JMSContext injection will be undefined in JMS 2.0 spec.

2. If JMSContext is injected at constructor, then it is available inside constructor.

3. The queue injected by @Resource is null in both constructor and @OnMessage method.

How does CDI sped define the scope of injection for WebSocket?

Comment by Bruno Borges [ 23/Apr/13 ]

David, some answers and questions to your comment

1.1 It cannot be available at constructor when injection is at field level. That's fine, and expected.

1.2 What would be the transaction/request scope of JMSContext when it is injected into a HttpServlet?

a. Should WebSockets support @ApplicationScoped/@SessionScoped annotations?

2. Works as it should

3. Most problematic issue so far

Comment by Bruno Borges [ 23/Apr/13 ]

Issue https://java.net/jira/browse/GLASSFISH-20255 might be related to this.

Comment by David Zhao [ 23/Apr/13 ]

Bruno,

Please refer to the urls for the scopes of JMSContext injection.

https://java.net/projects/jms-spec/pages/JMSContextScopeProposalsv4p2
https://java.net/projects/jms-spec/pages/JMSContextScopeProposalsv4p3

I shall leave other CDI questions to CDI team.

Comment by jjsnyder83 [ 23/Apr/13 ]

IIRC only @ApplicationScoped and @Dependent is available for WebSocket. @SessionScoped and @RequestScoped injection is not available as http sessions and http requests aren't valid in the web socket world.

I'm not sure about @Resource injection...Can you do a jndi lookup successfully for the queue "jms/myQueue" from within the web socket?

Comment by Bruno Borges [ 23/Apr/13 ]

Traditional lookup of Queue works, but creating a valid consumer using the injected JMSContext does not.

GF throws a SEVERE message error saying that there is no valid EE environment.

Comment by arjavdesai [ 23/Apr/13 ]

Can you please provide us with a test app or netbeans project, if available?

Comment by jjsnyder83 [ 23/Apr/13 ]

The "...no valid EE environment" means that the GF cdi code couldn't access JNDI because the JNDI environment has not been set correctly for the thread on which the code is running. Something similar to how the web container sets up the invocation manager must also be done by the WebSocket code on which the thread is running or the injection of resources will fail. See WebContainerListener.preInvoke and .postInvoke for an example.

Comment by dannycoward [ 23/Apr/13 ]

This we think relates to https://java.net/jira/browse/GLASSFISH-20375

I'll post more information while we test with the fix for that issue.

Comment by arjavdesai [ 25/Apr/13 ]

https://java.net/jira/browse/GLASSFISH-20375 is marked as resolved with 61589. Can you retry your scenario and update this JIRA?

Comment by Bruno Borges [ 25/Apr/13 ]

No, it did not work.

Got this warning, and worse: the WebSocket didn't even initialize.

WARNING: WELD-001473 javax.enterprise.inject.spi.Bean implementation org.glassfish.jms.injection.JMSCDIExtension$LocalBean@55118a0 
declared a normal scope but does not implement javax.enterprise.inject.spi.PassivationCapable. 
It won't be possible to inject this bean into a bean with passivating scope (@SessionScoped, @ConversationScoped). 
This can be fixed by assigning the Bean implementation a unique id by implementing the PassivationCapable interface.
Comment by jjsnyder83 [ 26/Apr/13 ]

You can ignore the warning for now. It does not affect this particular issue.

Comment by Bruno Borges [ 26/Apr/13 ]

The message wasn't appearing before, and now appears, and the WebSocket does not work when there's @Resource for queue + @Inject for JMSContext.

Comment by jjsnyder83 [ 26/Apr/13 ]

I have contacted JMS team about the warning. The problem that the warning is about would only happen during passivation which I don't believe is happening here.

Can you be more specific in your comment that "the WebSocket didn't even initialize?" Are you still seeing the "...no valid EE environment" message?

Comment by Bruno Borges [ 26/Apr/13 ]

That message does not appear, but websocket does not work either, without any error message

Comment by dannycoward [ 29/Apr/13 ]

Can we get the complete code for this failure Bruno ? The sample code above is neither complete nor a well-formed websocket. Thanks.

Comment by Bruno Borges [ 30/Apr/13 ]

Yeah, project published here: https://github.com/brunoborges/javaee7-jms-websocket-bug

Comment by Nigel Deakin [ 02/May/13 ]

I think your code is throwing exceptions which are not being logged. Please update all the callbacks in your code to add a catch block for RuntimeException, and write the exception and stack trace to the server log. This will make it easier to understand what is going wrong.

Comment by Bruno Borges [ 02/May/13 ]

Code changed to print any type of Exception.

Exception found:

SEVERE:   javax.jms.JMSRuntimeException: [C4306]: This method may not be called in a Java EE web or EJB container
	at com.sun.messaging.jmq.jmsclient.JMSConsumerImpl.setMessageListener(JMSConsumerImpl.java:261)
	at org.glassfish.javaee7wsjms.SampleWebSocket.onOpen(SampleWebSocket.java:45)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at org.glassfish.tyrus.core.AnnotatedEndpoint.callMethod(AnnotatedEndpoint.java:431)
	at org.glassfish.tyrus.core.AnnotatedEndpoint.onOpen(AnnotatedEndpoint.java:468)
	at org.glassfish.tyrus.core.EndpointWrapper.onConnect(EndpointWrapper.java:446)
	at org.glassfish.tyrus.server.TyrusEndpoint.onConnect(TyrusEndpoint.java:146)
	at org.glassfish.tyrus.websockets.DefaultWebSocket.onConnect(DefaultWebSocket.java:122)
	at org.glassfish.tyrus.servlet.TyrusHttpUpgradeHandler.init(TyrusHttpUpgradeHandler.java:98)
	at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:777)

Exception thrown at SampleWebSocket.java:45

Comment by Bruno Borges [ 02/May/13 ]

I understand the message as part of

12.2. Restrictions on the use of JMS API in the Java EE web or EJB
container

But then I wonder how can WebSockets proactively send data to clients, triggered by asynchronous events.

Is it possible for example, to plug a JMS MessageListener with a WebSocket using CDI? Let's say an MDB producing CDI Events and the WebSocket server endpoint consuming that?

Comment by Bruno Borges [ 02/May/13 ]

I've coded a version using CDI Events.

This version demonstrates a specific bug: Can't send messages to a Queue from a WebSocket

SEVERE:   org.jboss.weld.context.ContextNotActiveException: WELD-001303 No active contexts for scope type javax.enterprise.context.RequestScoped
	at org.jboss.weld.manager.BeanManagerImpl.getContext(BeanManagerImpl.java:667)
	at org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:74)
	at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:79)
	at org.glassfish.jms.injection.RequestedJMSContextManager$Proxy$_$$_WeldClientProxy.getType(Unknown Source)
	at org.glassfish.jms.injection.InjectableJMSContext.delegate(InjectableJMSContext.java:126)
	at org.glassfish.jms.injection.ForwardingJMSContext.createProducer(ForwardingJMSContext.java:61)
	at org.glassfish.javaee7wsjms.SampleWebSocket.onMessage(SampleWebSocket.java:62)

Branch published on GitHub using-cdi

Comment by jjsnyder83 [ 02/May/13 ]

The ContextNotActiveException you are seeing means that an @RequestScoped CDI-injected object was accessed outside of an active http request. More specifically the JMSContext's @RequestScoped delegate is being accessed in SampleWebSocket.onMessage() but there is no active http request. The CDI-injected JMSContext can only be accessed when there's an active http request or active global transaction. If it is accessed outside of these scopes (http request or global transaction) you will see this type of message.

Comment by Nigel Deakin [ 02/May/13 ]

That matches my own experiments. Your call to context.createConsumer was successful, which suggests that an injected JMSContext can be used in the @OnOpen callback. However you should be aware that as an injected JMSContext has @RequestScoped (when there is no transaction) any object created from it will become invalid when the request ends. So the JMSConsumer you create from it won't be usable after then.

However when I invoked your @OnMessage callback (modified to catch exceptions) I got a Weld error:

SEVERE:   org.jboss.weld.context.ContextNotActiveException: 
WELD-001303 No active contexts for scope type javax.enterprise.context.RequestScoped 

which suggests there is a restriction in using an injected JMSContext in the @OnMessage callback. That's an open issue.

However, as you saw, you also hit the restriction that you can't set a MessageListener in a Java EE environment (except the ACC). This restriction is not new and was in Java EE 6.

There is no restriction on consuming messages synchronously (using JMSConsumer.receive()), or in sending messages. But if you want to consume messages asynchronously you're expected to use a MDB.

I suggest moving discussion of your application design to email.

Comment by Bruno Borges [ 02/May/13 ]

I managed to make this work using CDI events. Still, some things had to be changed:

  1. It is impossible, as I understand from the spec, to connect WebSockets and JMS directly.
  2. To send an incoming message from a WebSocket client to a JMS queue, I used a @Stateless session bean
    There's still a bug in here, because it was not possible to @Inject the SB the normal way. Had to use constructor-injected parameter.
  3. SessionBean does use JMS 2 the way it is specified, @Inject JMSContext and @Resource Queue.
  4. @MessageDriven bean produces a CDI event with the JMS payload
  5. The WebSocket server endpoint @Observes for CDI event with the payload. Then payload is sent to all WebSocket sessions

The code is available here

Comment by Bruno Borges [ 02/May/13 ]

Although I'm happy that such integration is possible, I wonder if this could be simplified by JMS_SPEC-100

Comment by Bruno Borges [ 05/May/13 ]

Created two separate bugs that were found due to this issue:

Comment by jjsnyder83 [ 22/May/13 ]

Duplicate of https://java.net/jira/browse/JMS_SPEC-121





[GLASSFISH-19916] Extend bean definining annotation to include EJBs Created: 18/Mar/13  Updated: 20/Dec/16  Resolved: 11/Apr/13

Status: Closed
Project: glassfish
Component/s: cdi
Affects Version/s: None
Fix Version/s: 4.0_dev

Type: Bug Priority: Major
Reporter: jjsnyder83 Assignee: phil.zampino
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Processing of wars and ejb jars for bean defining annotations must include session beans. This also has to include ejbs defined by dds.



 Comments   
Comment by jjsnyder83 [ 18/Mar/13 ]

See javadoc in CDI11Bootstrap.

Comment by jjsnyder83 [ 19/Mar/13 ]

Don't skip MDBs - they are also supported for all things CDI.

Comment by phil.zampino [ 26/Mar/13 ]

Some EJB tests are failing because of a Weld issue (https://issues.jboss.org/browse/WELD-1363), which is supposed to be fixed in beta7. Cannot commit the changes for this issue until the Weld fix can be verified.

Comment by phil.zampino [ 29/Mar/13 ]

After beta7 uptake, still seeing some EJB devtest failures due to a likely Weld issue involving interceptor PostConstruct methods.

Comment by phil.zampino [ 03/Apr/13 ]

Waiting for resolution of https://issues.jboss.org/browse/WELD-1391 to address some EJB devtest failures.





[GLASSFISH-19923] Update Weld Bootstrap integration for CDI 1.1 Created: 18/Mar/13  Updated: 20/Dec/16  Resolved: 28/Mar/13

Status: Resolved
Project: glassfish
Component/s: cdi
Affects Version/s: None
Fix Version/s: 4.0_dev

Type: Bug Priority: Major
Reporter: jjsnyder83 Assignee: jjsnyder83
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

See javadoc in CDI11Bootstrap



 Comments   
Comment by jjsnyder83 [ 28/Mar/13 ]

Committed revision 60978.





[GLASSFISH-19992] Tracking bug for cdi tck failure org.jboss.cdi.tck.tests.implementation.enterprise.lifecycle.EnterpriseBeanLifecycleTest Created: 21/Mar/13  Updated: 20/Dec/16  Resolved: 18/Apr/13

Status: Resolved
Project: glassfish
Component/s: cdi
Affects Version/s: 4.0_dev
Fix Version/s: 4.0_dev

Type: Bug Priority: Major
Reporter: jjsnyder83 Assignee: jjsnyder83
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

test failing is testSerializeSFSB. There is a discussion going on about the container's responsibility for serializing during passivation.



 Comments   
Comment by jjsnyder83 [ 22/Mar/13 ]

I got back some info from Marina and Mahesh which I forwarded to JBoss tck team.

Comment by jjsnyder83 [ 26/Mar/13 ]

Must fork the Weld porting package and rewrite org.jboss.weld.tck.BeansImpl to use GlassFish-specific
ObjectOutputStream/ObjectInputStream.

It should be quite straightforward (the porting package contains only three classes and one cdi-tck.properties file).

The weld porting package source:
https://github.com/weld/core/tree/2.0/porting-package/1.1

Comment by jjsnyder83 [ 18/Apr/13 ]

Fixed in GlassFish test runner.





[GLASSFISH-20042] org.jboss.cdi.tck.tests.lookup.injection.non.contextual.ws.WebServiceResourceTest Created: 25/Mar/13  Updated: 20/Dec/16  Resolved: 11/Apr/13

Status: Resolved
Project: glassfish
Component/s: cdi
Affects Version/s: 4.0_dev
Fix Version/s: 4.0_dev

Type: Bug Priority: Major
Reporter: jjsnyder83 Assignee: jjsnyder83
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

On suggestion from Lukas Jungmann I changed the test class SheepWSProduce's WebServiceRef to
@WebServiceRef(value = SheepWSEndPointService.class) public SheepWS sheepWS;

The test now deploys but I get one failure. I have email to Lukas asking for the correct location in JNDI for where the WebServiceRef should be.

Failed tests: testResourceInvocation(org.jboss.cdi.tck.tests.lookup.injection.non.contextual.ws.WebServiceResourceTest): Exception attempting to inject Env-Prop: org.jboss.cdi.tck.tests.lookup.injection.non.contextual.ws.SheepWSProducer/sheepWS@Field-Injectable Resource. Class name = org.jboss.cdi.tck.tests.lookup.injection.non.contextual.ws.SheepWSProducer Field name=sheepWS@javax.jws.WebServiceRef@@@ into class org.jboss.cdi.tck.tests.lookup.injection.non.contextual.ws.SheepWSProducer: Lookup failed for 'java:comp/env/org.jboss.cdi.tck.tests.lookup.injection.non.contextual.ws.SheepWSProducer/sheepWS' in SerialContext[myEnv=

{java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming}

 Comments   
Comment by jjsnyder83 [ 25/Mar/13 ]

After verifying JNDI location give back the test change to JBoss so they can update the test.

Comment by jjsnyder83 [ 08/Apr/13 ]

Fixed in Weld 2.0.0.CR1

Comment by jjsnyder83 [ 08/Apr/13 ]

Verify this still works on Weld 2.0.0.CR1





[GLASSFISH-20231] Tracking bug for cdi tck failure for org.jboss.cdi.tck.interceptors.tests.aroundConstruct.interceptorsAnnotation.AroundConstructTest Created: 08/Apr/13  Updated: 20/Dec/16  Resolved: 10/Apr/13

Status: Resolved
Project: glassfish
Component/s: cdi
Affects Version/s: 4.0_dev
Fix Version/s: 4.0_dev

Type: Bug Priority: Major
Reporter: jjsnyder83 Assignee: jjsnyder83
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Bad test: https://issues.jboss.org/browse/WELD-1399



 Comments   
Comment by jjsnyder83 [ 10/Apr/13 ]

Fixed with Weld 2.0.0.CR2





[GLASSFISH-20236] Exception on deployment - WELD-001408 Unsatisfied dependencies for type [IterableProvider<ComponentInvocationHandler>] Created: 09/Apr/13  Updated: 20/Dec/16  Resolved: 10/Apr/13

Status: Resolved
Project: glassfish