[GLASSFISH-21326] deployment of a EJB with a CDI injection from a different jar fail Created: 12/Mar/15  Updated: 16/Apr/15

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

Type: Bug Priority: Blocker
Reporter: tiran1984 Assignee: jjsnyder83
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

i try to deploy a application with a EJB which make a CDI injection from a different jar. But the deployment fails.

A simple CDI injection in the same jar works

I get these exception:

Exception during lifecycle processing
org.glassfish.deployment.common.DeploymentException: CDI deployment failure:WELD-001408: Unsatisfied dependencies for type CDIOutOfEJB with qualifiers @Default
at injection point [BackedAnnotatedField] @Inject private com.ducktail.ejb.EJBImpl.outofEJB
at com.ducktail.ejb.EJBImpl.outofEJB(EJBImpl.java:0)

The deployment of the same ear on wildfly works



 Comments   
Comment by jjsnyder83 [ 24/Mar/15 ]

Please provide a reproducible test case.

Comment by tiran1984 [ 24/Mar/15 ]

How can i attach my project?

Comment by jjsnyder83 [ 16/Apr/15 ]

You can mail it to me: j.j.snyder@oracle.com





[GLASSFISH-20566] Deployment of a EJB fails with CDI if the bean is described by a descriptor instead of an annotation Created: 21/May/13  Updated: 19/Sep/14

Status: Reopened
Project: glassfish
Component/s: cdi
Affects Version/s: 4.0_b89_RC5
Fix Version/s: 4.1

Type: Bug Priority: Blocker
Reporter: sd_ Assignee: phil.zampino
Resolution: Unresolved Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux


Attachments: File JCDIServiceBugEar.ear    

 Description   

A NP is thrown in in org.glassfish.weld.services.JCDIServiceImpl#_createJCDIInjectionContext(EjbDescriptor ejb, T instance), when a bean is being described by a deployment descriptor in the corresponding jar instead of using annotations :

[glassfish 4.0] [SEVERE] [ejb.stateless_ejbcreate_exception]
[javax.enterprise.system.container.ejb.com.sun.ejb.containers] [tid: _ThreadID=135 _ThreadName=admin-listener(11)]
[timeMillis: ...] [levelValue: 1000] [[EJB5070: Exception creating stateless session bean : [MyTimerBean]]]

[glassfish 4.0] [WARNING] [ejb.system_exception] [javax.enterprise.system.container.ejb.com.sun.ejb.containers]
[tid: _ThreadID=135 _ThreadName=admin-listener(11)] [timeMillis: ...] [levelValue: 900]
[[ EJB5184:A system exception occurred during an invocation on EJB MyTimerBean,
method: public void MyTimerBean.cancelAllTimers()]]

[glassfish 4.0] [WARNING] [] [javax.enterprise.system.container.ejb.com.sun.ejb.containers]
[tid: _ThreadID=135 _ThreadName=admin-listener(11)] [timeMillis: ...] [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:2516)
at com.sun.ejb.containers.BaseContainer.preInvoke(BaseContainer.java:1906)
at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:204)
at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:123)
at com.sun.proxy.$Proxy266.cancelAllTimers(Unknown Source)
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 com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.privateInvoke(StubInvocationHandlerImpl.java:239)
at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:150)
at com.sun.corba.ee.impl.presentation.rmi.codegen.CodegenStubBase.invoke(CodegenStubBase.java:226)
at MyTimer_DynamicStub.cancelAllTimers(_MyTimer_DynamicStub.java)
...
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 com.sun.ejb.containers.interceptors.BeanCallbackInterceptor.intercept(InterceptorManager.java:1035)
at com.sun.ejb.containers.interceptors.CallbackChainImpl.invokeNext(CallbackChainImpl.java:72)
at com.sun.ejb.containers.interceptors.CallbackInvocationContext.proceed(CallbackInvocationContext.java:205)
at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:55)
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 com.sun.ejb.containers.interceptors.CallbackInterceptor.intercept(InterceptorManager.java:986)
at com.sun.ejb.containers.interceptors.CallbackChainImpl.invokeNext(CallbackChainImpl.java:72)
at com.sun.ejb.containers.interceptors.CallbackInvocationContext.proceed(CallbackInvocationContext.java:205)
at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.doCall(SystemInterceptorProxy.java:163)
at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.init(SystemInterceptorProxy.java:125)
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 com.sun.ejb.containers.interceptors.CallbackInterceptor.intercept(InterceptorManager.java:986)
at com.sun.ejb.containers.interceptors.CallbackChainImpl.invokeNext(CallbackChainImpl.java:72)
at com.sun.ejb.containers.interceptors.CallbackInvocationContext.proceed(CallbackInvocationContext.java:205)
at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.doCall(SystemInterceptorProxy.java:163)
at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.init(SystemInterceptorProxy.java:125)
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 com.sun.ejb.containers.interceptors.CallbackInterceptor.intercept(InterceptorManager.java:986)
at com.sun.ejb.containers.interceptors.CallbackChainImpl.invokeNext(CallbackChainImpl.java:72)
at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:412)
at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:375)
at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:1949)
at com.sun.ejb.containers.AbstractSingletonContainer.createSingletonEJB(AbstractSingletonContainer.java:475)
at com.sun.ejb.containers.AbstractSingletonContainer.access$000(AbstractSingletonContainer.java:81)
at com.sun.ejb.containers.AbstractSingletonContainer$SingletonContextFactory.create(AbstractSingletonContainer.java:654)
at com.sun.ejb.containers.AbstractSingletonContainer.instantiateSingletonInstance(AbstractSingletonContainer.java:396)
at org.glassfish.ejb.startup.SingletonLifeCycleManager.initializeSingleton(SingletonLifeCycleManager.java:219)
at org.glassfish.ejb.startup.SingletonLifeCycleManager.initializeSingleton(SingletonLifeCycleManager.java:180)
at org.glassfish.ejb.startup.SingletonLifeCycleManager.doStartup(SingletonLifeCycleManager.java:158)
at org.glassfish.ejb.startup.EjbApplication.start(EjbApplication.java:166)
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.InstanceDeployCommand.execute(InstanceDeployCommand.java:213)
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:1762)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1674)
at org.glassfish.admin.rest.resources.admin.CommandResource.executeCommand(CommandResource.java:396)
at org.glassfish.admin.rest.resources.admin.CommandResource.execCommandMultInMultOut(CommandResource.java:256)
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.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)
at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:125)
at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:152)
at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:91)
at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:346)
at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:341)
at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:101)
at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:224)
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:198)
at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:946)
at org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.service(GrizzlyHttpContainer.java:331)
at org.glassfish.admin.rest.adapter.JerseyContainerCommandService$3.service(JerseyContainerCommandService.java:165)
at org.glassfish.admin.rest.adapter.RestAdapter.service(RestAdapter.java:181)
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.portunif.PUFilter.handleRead(PUFilter.java:231)
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.portunif.PUFilter.handleRead(PUFilter.java:231)
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)
... 124 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)
... 126 more
Caused by: java.lang.reflect.InvocationTargetException
at com.sun.ejb.containers.BaseContainer.createEjbInstanceAndContext(BaseContainer.java:1641)
at com.sun.ejb.containers.StatelessSessionContainer.createStatelessEJB(StatelessSessionContainer.java:456)
... 128 more
Caused by: java.lang.NullPointerException
at java.util.concurrent.ConcurrentHashMap.hash(ConcurrentHashMap.java:333)
at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:988)
at org.jboss.weld.manager.BeanManagerImpl.getBean(BeanManagerImpl.java:1163)
at org.jboss.weld.manager.BeanManagerImpl.getBean(BeanManagerImpl.java:178)
at org.glassfish.weld.services.JCDIServiceImpl._createJCDIInjectionContext(JCDIServiceImpl.java:198)
at org.glassfish.weld.services.JCDIServiceImpl.createJCDIInjectionContext(JCDIServiceImpl.java:179)
at com.sun.ejb.containers.BaseContainer.createEjbInstanceAndContext(BaseContainer.java:1631)
... 129 more
]]

RootCause :

org.glassfish.weld.services.JCDIServiceImpl#_createJCDIInjectionContext(EjbDescriptor ejb, T instance)

org.jboss.weld.ejb.spi.EjbDescriptor ejbDesc = weldManager.getEjbDescriptor(ejb.getName());
// Get an the Bean object
Bean<?> bean = weldManager.getBean(ejbDesc);

It sounds like the second experience under https://java.net/jira/browse/GLASSFISH-15888 .
The bda only shows up beans, that are being described by annotations. It seems that the deployment descriptors are ignored.



 Comments   
Comment by jjsnyder83 [ 22/May/13 ]

Please attach the application with source code.

Comment by jjsnyder83 [ 31/May/13 ]

The reason it is failing is because the ejb classes are not in the ejb jar but are in another jar in the application's classpath. I checked with Marina and she said that the way your application is packaged is valid but the GF CDI code is written such that it expects the ejbs to be in the same jar as the ejb descriptor. I will have to think about how to fix this.

In the mean time because this is not a cdi application you can issue the following asadmin command to disable cdi and your application will deploy without any exceptions:

$GFHOME/bin/asadmin set configs.config.server-config.cdi-service.enable-implicit-cdi=false

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

Removed unnecessary restriction that EJB classes be packaged in the EJB JAR in which the corresponding descriptor is packaged. Now, EJB classes packaged outside the JAR containing their descriptor will be correctly loaded.

Committed revision 62240.

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

The previous fix breaks the CDI TCK. So, this issue needs to be revisited.





[GLASSFISH-18514] CDI does not get enabled on server start for a WAB bundle, the war has to be redeployed after the server starts for CDI to be enabled. Created: 15/Mar/12  Updated: 20/Mar/13

Status: Open
Project: glassfish
Component/s: cdi, OSGi-JavaEE
Affects Version/s: 3.1.2
Fix Version/s: future release

Type: Bug Priority: Critical
Reporter: aaronjwhiteside Assignee: Sivakumar Thyagarajan
Resolution: Unresolved Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File server.log    

 Description   

CDI does not get enabled on server start for a WAB bundle, the war has to be redeployed after the server starts for CDI to be enabled.

Please see attached server.log

You can see after the server has started I manually redeployed the WAB and CDI was enabled that time.

If I do not redeploy the WAB CDI is not enabled and I get NPE when trying to access a JAX-RS resource that @Inject's a @OSGiService(dynamic=true).



 Comments   
Comment by aaronjwhiteside [ 16/Mar/12 ]

So I think I tracked down the issue.

The org.glassfish.fighterfish.osgi-cdi bundle which provides the cdi support for WAB's has a run level of 2. However any bundle that is deployed under <domain>autodeploy/bundles always has a run level of 1.

So when you start glassfish that already has bundles under autodeploy/bundles and no osgi-cache (to tell it the deploy order, if you deployed something after the server was already started) it'll start the osgi-cdi bundle after the WAB bundle. And thus CDI support is never enabled for WAB's.

I tried adding

felix.fileinstall.start.level=4 

to glassfish3/glassfish/config/osgi.properties

But the bundles deployed from <domain>/autodeploy/bundles still seem to start in runlevel 1.

Comment by aaronjwhiteside [ 16/Mar/12 ]

For reference:
http://felix.apache.org/site/apache-felix-file-install.html

Comment by aaronjwhiteside [ 16/Mar/12 ]

OK so it turns out that all the felix.fileinstall* properties in osgi.properties are totally ignored and should probably be removed.

The real file doing the configuration is:

glassfish3/glassfish/modules/autostart/org.apache.felix.fileinstall-autodeploy-bundles.cfg

However if I add the line:

felix.fileinstall.start.level=4

to this file, it still does not set the run level for bundles under autodeploy/bundles, they still start at run level one.

However I do get a log message printed out:

[#|2012-03-15T20:08:20.322-0400|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=12;_ThreadName=Thread-2;|felix.fileinstall.start.level set, but not a int: 4 |#]

Which is interesting, apparently 4 really isn't an int.. I guess this is an ERROR even though it says INFO.. or maybe a WARN as it seems to have ignored the config.

Without this fixed OSGi is pretty much useless.

Comment by aaronjwhiteside [ 16/Mar/12 ]

Fixing this issue will probably fix another bug I reported too.

http://java.net/jira/browse/GLASSFISH-18508

And a bunch of other random weird stuff I was pulling my hair out over..

Comment by aaronjwhiteside [ 16/Mar/12 ]

OK so after more investigation it turns out you have to set:

felix.fileinstall.start.level=4

in osgi.properties AND org.apache.felix.fileinstall-autodeploy-bundles.cfg or less it does not get picked up. This is probably a bug too.

(and obviously, even through I omitted it you must set glassfish.osgi.start.level.final=4 in osgi.properties too).

So now I can see that the start level of my WAB bundle is really 4, however CDI still does NOT get enabled. I have to remove the war and redeploy it again, after the server has started for CDI to kicked in.

So my assumption that the start level's were the issue seems to be moot, however having a start level of 1 for the bundles under autodeploy/bundles and a start level of 2 for most of glassfish's osgi to jee integration bundles is still a bug. The bundles under autodeploy/bundles should start in start level 4.

So the question is now, if not start levels, what is causing CDI to not load and required a redeploy of the war to be enabled???

Comment by Sanjeeb Sahoo [ 16/Mar/12 ]

No, I don't understand some of your observations. This is how things are supposed to work:

no osgi-cache:
fileinstall is started at start level 2 and it is configured to start after modules/autostart/,
which means first time (same as no osgi cache) the server starts, fileinstall will come into effect
after all bundles in modules/autostart/. Once fileinstall is started, it will then go onto deploy
autodeploy/bundles/. Now, let's say one such bundle is a WAB that uses CDI.
Since osgi-cdi is already installed,when the WAB is processed, osgi-cdi will process the WAB as well.

Let's stop the server and restart. Upon restart, the WAB is started at start level 1 which means it is
started before osgi-web-container and osgi-cdi are started. But, the WAB processing is deferred until
osgi-web-container is started. When server reaches start level 2, osgi-web-container is started and it
processes the WAB. It does not matter whether osgi-cdi is active or not. It only has to be in INSTALLED
state for it to be useful. So, when the WAB is processed by osgi-web-container, osgi-cdi will be used
as well.

So, I don't see a case why osgi-cdi is not used in your case. Could you supply a test case with instructions?
I tried a WAB+CDI test case and could not reproduce.

A note about fileinstall start level:
The bundles in autodeploy/bundles/ are started at start level 1. This seems like
a bad configuration. They should have start level matching that of fileinstall, which is 2. I will
open a separate issue to do this. But, I can't see it affecting any functionality now.

To change the start level of bundles in autodeploy/bundles, edit osgi.properties file.
modules/autostart/o.a.f.fileinstall-autodeploy-bundles.cfg is not used any more.
If you set a start level higher than 2, then you must also configure the server to change the
start level to that value. Currently, server sets final start level to 2 using the property:
glassfish.osgi.start.level.final=2
Change it to the higher value, else your bundles in autodeploy/bundles will never get activated.

Comment by aaronjwhiteside [ 16/Mar/12 ]

After clearing the osgi-cache (I keep forgetting) CDI now works, so changing the start level fixed the issue.

Can this please be fixed in the next release?

Comment by Sanjeeb Sahoo [ 17/Mar/12 ]

What you want to be fixed? start level of bundles/autodeploy/? Sure it can be (could you file an issue under osgi category?), but, as I mentioned earlier, I don't understand why you had to change start level. Are you really sure things didn't work for you as is? I would love to understand it better. Do you have a reproducible test case?

Comment by tlcksnyder [ 20/Mar/13 ]

not attempting to fix without a reproducible test case, or better description of reproduction steps.





[GLASSFISH-21351] Memory leak when injecting Instance<T> Created: 17/Apr/15  Updated: 20/Apr/15

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

Type: Bug Priority: Major
Reporter: baztian Assignee: jjsnyder83
Resolution: Unresolved Votes: 0
Labels: memory-leak
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Injecting a Instance<T> causes a memory leak.

I'm having a few "MeasurementCollectors" in my code. Via a EJB Timer I'm iterating over all of them every second.

@Inject
private Instance<MeasurementCollector> dataCollectors;
...
for (MeasurementCollector collector : dataCollectors) {
    collectMeasure(collector, snapshot);
}

After a couple of minutes I'm getting an OutOfMemory Error.

Analysing the heap dump in MAT gives me the following "Problem Suspect"

One instance of "org.jboss.weld.context.CreationalContextImpl" loaded by "org.apache.felix.framework.BundleWiringImpl$BundleClassLoaderJava5 @ 0xe1bdbc08" occupies 352.836.128 (85,94%) bytes. The memory is accumulated in one instance of "java.lang.Object[]" loaded by "<system class loader>".

Keywords
java.lang.Object[]
org.jboss.weld.context.CreationalContextImpl
org.apache.felix.framework.BundleWiringImpl$BundleClassLoaderJava5 @ 0xe1bdbc08

I've found this issue that seems to match my problem. But it is marked as fixed long ago. Looks like a regression.

Glassfish 4.0 does not suffer from this problem!

My current work around is directly inject the beans and avoid Instance<T>. In my case I need to specify a @Inject for every MeasurementCollector I have.

Unfortunately I didn't manage to set up a minimalistic example yet. I will attach my attempt to this issue.



 Comments   
Comment by baztian [ 17/Apr/15 ]

Unfortunately I can't attach files. Anyway here is the code that unfortunately does not reproduce the problem yet:


package leak;

import java.util.logging.Level;
import java.util.logging.Logger;

import javax.ejb.Schedule;
import javax.ejb.Singleton;
import javax.ejb.Startup;
import javax.enterprise.inject.Instance;
import javax.inject.Inject;

@Startup
@Singleton
public class Scheduler {

    private static final Logger logger = Logger.getLogger(Scheduler.class.getName());

    @Inject
    Instance<MyInstance> myInstances;


    @Schedule (second = "*/1", minute = "*", hour = "*", persistent = false)
    public void doItForAllInstances() {
        for (MyInstance myInstance : myInstances) {
            logger.log(Level.INFO, "doIt for instance {0}", myInstance);
            myInstance.doIt();
        }
    }
}

package leak;

public interface MyInstance {

    public void doIt();
}

package leak;

public class MyInstanceImplOne implements MyInstance {

    private final byte[] oneMegabyte = new byte[1024 * 1024];


    @Override
    public void doIt() {
        // do nothing.
    }

}
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"
       bean-discovery-mode="all">
</beans>
pom.xml
<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>leak</groupId>
    <artifactId>weld-instance-leak</artifactId>
    <version>leak-SNAPSHOT</version>
    <packaging>war</packaging>
    <dependencies>
        <dependency>
            <groupId>javax</groupId>
            <artifactId>javaee-api</artifactId>
            <version>7.0</version>
            <scope>provided</scope>
        </dependency>
    </dependencies>
    <properties>
        <maven.compiler.source>1.7</maven.compiler.source>
        <maven.compiler.target>1.7</maven.compiler.target>
        <failOnMissingWebXml>false</failOnMissingWebXml>
    </properties>
</project>
Comment by jjsnyder83 [ 20/Apr/15 ]

Are you able to provide a reproducible test case?





[GLASSFISH-21325] @Inject HttpSession prevents session (de)serialization Created: 06/Mar/15  Updated: 24/Mar/15

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

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

JDK 1.8.0.40



 Description   

In any managed component like servlet, JAX-RS resource, WebSocket server endpoint, try the following:

@Inject HttpSession private session;

then do something to session, so that injection occurs.

After that, try to reload your application. You will get the following:

Info:   Cannot serialize session attribute WELD_S#9 for session cadd11390cd0f18aa9386925f091
java.io.NotSerializableException: org.apache.catalina.session.StandardSessionFacade
	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1184)
	at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548)
	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1509)
	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
	at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348)
	at org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:2196)

Since that moment, your service method will fail (until the session is killed):

Warning:   StandardWrapperValve[test.ApplicationConfig]: Servlet.service() for servlet test.ApplicationConfig threw exception
java.lang.ClassCastException: org.jboss.weld.proxies.HttpSession$1781022004$Proxy$_$$_WeldClientProxy cannot be cast to java.lang.String
	at org.jboss.weld.proxies.HttpSession$1781022004$Proxy$_$$_WeldClientProxy.toString(Unknown Source)

This happens because Weld stores all @SessionScoped instances as HTTP session attributes. When application is unloaded, all session attributes are serialized (session preservation). Since injected HttpSession instance itself is @SessionScoped, it undergoes serialization, too - but it's not serializable.

Probably it gets serialized as some (error) string that can't be deserialized back, which breaks serviceMethod.



 Comments   
Comment by xwibao [ 06/Mar/15 ]

I'm sorry, the correct syntax for injection is @Inject private HttpSession session;

The last line is a bit erroneous too (and unfortunately I can't edit it). I've got java.lang.ClassCastException: org.jboss.weld.proxies.HttpSession$1781022004$Proxy$_$$_WeldClientProxy cannot be cast to java.lang.String when I was simply trying to print out session.toString().

If I try to invoke any HttpSession method on this broken instance, I get the following:

java.lang.IllegalArgumentException: object is not an instance of declaring class
	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.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:38)

However, session.getClass().getInterfaces() shows the following:

[interface javax.servlet.http.HttpSession, interface java.io.Serializable, interface org.jboss.weld.interceptor.proxy.LifecycleMixin, interface org.jboss.weld.interceptor.util.proxy.TargetInstanceProxy, interface org.jboss.weld.bean.proxy.ProxyObject]
Comment by jjsnyder83 [ 24/Mar/15 ]

Do you really want to have your HttpSession variable persisted? Try making the sessoin variable transitive.





[GLASSFISH-21298] JAVA EE 7 weird behaviour with JAVA 8 features Created: 04/Feb/15  Updated: 25/Feb/15

Status: Open
Project: glassfish
Component/s: cdi, ejb_container, jax-rs
Affects Version/s: 4.1
Fix Version/s: None

Type: Bug Priority: Major
Reporter: casmeiron Assignee: jjsnyder83
Resolution: Unresolved Votes: 0
Labels: ejb, java1.8, jax-rs
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

MAC OSX YOSEMITE
JAVA 1.8
GLASSFISH V4.1



 Description   

We’re tryin’ few java 8 features with JAVA EE 7 using glassfish v4.1.

JAX-RS is not able to work with @Path annotation when used in a method implementation inside an interface.
Example:

public interface Controller {

@GET
default Response ok() {// it works
	return Response.ok.build();
}

@GET
@Path(“error”)
default Response error() { // doesn’t work
   return Response.ok.build();
}
@Produces({APPLICATION_JSON})
@Consumes({APPLICATION_JSON})
@LocalBean
@Stateless
public class ControllerImplementation implements Controller {

}

When you try to run with the second method uncommented, JAX-RS throws exception when it tries to initialize the REST stack. Weird ‘cause @GET/@POST works, only @Path gives error.

Another weird situation happens when you try to annotate your interface methods with @TransactionAttribute annotation. EJB is unable to check that info and open a transaction, thus giving an error (TransactionRequired).

To fix that, you have to override the method in your implementation class and call the super, and then the transaction gets opened.

Example:

public interface Controller {

@POST
@TransactionAttribute(TransactionAttributeType.MANDATORY)
default Response create(JsonObject obj)

{ return Response.ok.build(); }

@Produces(

{APPLICATION_JSON})
@Consumes({APPLICATION_JSON}

)
public class ControllerImplementation implements Controller {
// you must override to make the transaction available, otherwise it will fail!
@Override
@POST
public Response create(JsonObject obj)

{ super.create(obj); }

}

So it seems we cannot use all features that java 8 brings without having headache with JAVA EE 7. Does anybody knows why this happens?



 Comments   
Comment by casmeiron [ 04/Feb/15 ]

public interface Controller {

@GET
// it works
default Response ok()

{ return Response.ok.build(); }

@GET
@Path(“error”)
// it doesnt work
default Response error()

{ return Response.ok.build(); }

@Produces(

{APPLICATION_JSON})
@Consumes({APPLICATION_JSON}

)
@LocalBean
@Stateless
public class ControllerImplementation implements Controller {

}

Comment by Michal Gajdos [ 12/Feb/15 ]

Have you tried to deploy just JAX-RS resources with default methods in your interface (without any EJB integration)? I assume that ControllerImplementation also has @Path annotation, am I right?

Comment by casmeiron [ 12/Feb/15 ]

I didn't try without the ejb annotations.
ControllerImplementation has to have @Path to make it work and interface must not.
I've deployed in WILDFLY 8.2 and it worked as it should so I think there must be a bug in glassfish implementation.

Comment by Adam Lindenthal [ 25/Feb/15 ]

Hi, I tried this as well with latest Jersey on Grizzly (without @LocalBean and @Stateless annotations) and on latest Glassfish (with annotations) and also confirm this is fully functional. The resources can be freely divided into interface and implementing class and everything works as I would expect. There's the missing @Path on the implementing class, as you stated. Also note (nothing new again, I guess), that the interface must not be registered in the ResourceConfig / javax.ws.rs.core.Application subclass, as Jersey tries to instantiate such classes.

Haven't try the TransactionAttribute part of the issue, but as for the JAX-RS part - it just work for me out of the box.
I will attach my sample app (based on the sources from this issue). Build it with mvn clean package (alternatively, change Jersey version to non-snapshot version if maven fails to resolve the dependencies). Than try to deploy the war from target directory to GF and access:

  • [app-root]/test - resource method from interface with no @Path
  • [app-root/test/path - resource method from interface with @Path
  • [app-root]/test/class - resource method from the implementing class

Does this work on your GF instance?

Regards,
Adam





[GLASSFISH-21233] NPE when deploying app with method returning lambda Created: 10/Oct/14  Updated: 10/Oct/14

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

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

Windows 8 64 bit

java version "1.8.0_20"
Java(TM) SE Runtime Environment (build 1.8.0_20-b26)
Java HotSpot(TM) 64-Bit Server VM (build 25.20-b23, mixed mode)

Eclipse, Java EE distribution, 4.4



 Description   

When deploying a WAR application (using the Eclipse Java EE development tools) to GlassFish a DeploymentException is thrown and the deployment is aborted.

This happens when the project contains a method which returns a lambda expression:

public class Utils {
public static <K, V> Function<K, V> noSuchElementThrower() {
return k ->

{ throw new NoSuchElementException(); }

;
}
}

The method does not need to be invoke anywhere.

The following is the log that is produced during the incident:

2014-10-10T11:39:54.560+0200|Info: Running GlassFish Version: GlassFish Server Open Source Edition 4.1 (build 13)
2014-10-10T11:39:54.560+0200|Info: Server log file is using Formatter class: com.sun.enterprise.server.logging.ODLLogFormatter
2014-10-10T11:39:54.638+0200|Info: Realm [admin-realm] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.
2014-10-10T11:39:54.638+0200|Info: Realm [file] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.
2014-10-10T11:39:54.638+0200|Info: Realm [certificate] of classtype [com.sun.enterprise.security.auth.realm.certificate.CertificateRealm] successfully created.
2014-10-10T11:39:54.654+0200|Info: Realm [seshat-realm] of classtype [com.sun.enterprise.security.auth.realm.jdbc.JDBCRealm] successfully created.
2014-10-10T11:39:54.748+0200|Info: Authorization Service has successfully initialized.
2014-10-10T11:39:54.763+0200|Info: Registered org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for persistence-type = replicated in BackingStoreFactoryRegistry
2014-10-10T11:39:54.982+0200|Info: Grizzly Framework 2.3.15 started in: 140ms - bound to [/0.0.0.0:8080]
2014-10-10T11:39:55.107+0200|Info: Grizzly Framework 2.3.15 started in: 0ms - bound to [/0.0.0.0:8181]
2014-10-10T11:39:55.107+0200|Info: Grizzly Framework 2.3.15 started in: 0ms - bound to [/0.0.0.0:4848]
2014-10-10T11:39:55.138+0200|Info: Grizzly Framework 2.3.15 started in: 0ms - bound to [/0.0.0.0:3700]
2014-10-10T11:39:55.138+0200|Info: GlassFish Server Open Source Edition 4.1 (13) startup time : Felix (1,401ms), startup services(640ms), total(2,041ms)
2014-10-10T11:39:55.295+0200|Info: JMXStartupService has started JMXConnector on JMXService URL service:jmx:rmi://192.168.0.253:8686/jndi/rmi://192.168.0.253:8686/jmxrmi
2014-10-10T11:39:56.493+0200|Info: Initiating Jersey application, version Jersey: 2.10.4 2014-08-08 15:09:00...
2014-10-10T11:39:56.571+0200|Info: HV000001: Hibernate Validator 5.0.0.Final
2014-10-10T11:39:57.071+0200|Info: Listening to REST requests at context: /management/domain.
2014-10-10T11:39:57.149+0200|Info: Registered com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishImpl@2d6aca33 as OSGi service registration: org.apache.felix.framework.ServiceRegistrationImpl@6edaa77a.
2014-10-10T11:39:57.383+0200|Info: visiting unvisited references
2014-10-10T11:39:57.680+0200|Info: Created HTTP listener http-listener-1 on host/port 0.0.0.0:8080
2014-10-10T11:39:57.680+0200|Info: Created HTTP listener http-listener-2 on host/port 0.0.0.0:8181
2014-10-10T11:39:57.696+0200|Info: Created HTTP listener admin-listener on host/port 0.0.0.0:4848
2014-10-10T11:39:57.711+0200|Info: Created virtual server server
2014-10-10T11:39:57.711+0200|Info: Created virtual server __asadmin
2014-10-10T11:39:57.836+0200|Info: Setting JAAS app name glassfish-web
2014-10-10T11:39:57.852+0200|Info: Virtual server server loaded default web module
2014-10-10T11:39:58.039+0200|Info: Java security manager is disabled.
2014-10-10T11:39:58.039+0200|Info: Entering Security Startup Service.
2014-10-10T11:39:58.039+0200|Info: Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper.
2014-10-10T11:39:58.071+0200|Info: Security Service(s) started successfully.
2014-10-10T11:39:58.258+0200|Info: visiting unvisited references
2014-10-10T11:39:58.274+0200|Info: visiting unvisited references
2014-10-10T11:39:58.274+0200|Info: visiting unvisited references
2014-10-10T11:39:59.102+0200|Info: Initializing Mojarra 2.2.7 ( 20140610-1547 https://svn.java.net/svn/mojarra~svn/tags/2.2.7@13362) for context ''
2014-10-10T11:40:00.336+0200|Info: Loading application [__admingui] at [/]
2014-10-10T11:40:00.336+0200|Info: Loading application __admingui done in 3,187 ms
2014-10-10T11:40:00.727+0200|Info: visiting unvisited references
2014-10-10T11:40:00.961+0200|Info: visiting unvisited references
2014-10-10T11:40:01.071+0200|Info: visiting unvisited references
2014-10-10T11:40:01.086+0200|Info: visiting unvisited references
2014-10-10T11:40:01.086+0200|Info: visiting unvisited references
2014-10-10T11:40:01.086+0200|Info: visiting unvisited references
2014-10-10T11:40:01.086+0200|Info: visiting unvisited references
2014-10-10T11:40:01.086+0200|Info: visiting unvisited references
2014-10-10T11:40:01.086+0200|Info: visiting unvisited references
2014-10-10T11:40:01.196+0200|Info: visiting unvisited references
2014-10-10T11:40:01.352+0200|Info: visiting unvisited references
2014-10-10T11:40:02.023+0200|Info: EclipseLink, version: Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd
2014-10-10T11:40:02.314+0200|Info: file:/C:/Users/Jens/Programs/Glassfish/glassfish_4.1/glassfish/domains/domain1/eclipseApps/SeshatWAR/WEB-INF/classes/_seshat_pu login successful
2014-10-10T11:40:02.376+0200|Info: Portable JNDI names for EJB TestManager: [java:global/SeshatWAR/TestManager!com.codemint.seshat.test.TestManager, java:global/SeshatWAR/TestManager]
2014-10-10T11:40:02.407+0200|Info: Portable JNDI names for EJB UserStore: [java:global/SeshatWAR/UserStore!com.codemint.seshat.service.UserStore, java:global/SeshatWAR/UserStore]
2014-10-10T11:40:02.423+0200|Info: Portable JNDI names for EJB TimeStoreImpl: [java:global/SeshatWAR/TimeStoreImpl!com.codemint.seshat.service.TimeStore, java:global/SeshatWAR/TimeStoreImpl!com.codemint.seshat.service.TimeStoreImpl]
2014-10-10T11:40:02.423+0200|Info: Portable JNDI names for EJB ProjectFacade: [java:global/SeshatWAR/ProjectFacade!com.codemint.seshat.service.ProjectFacade, java:global/SeshatWAR/ProjectFacade]
2014-10-10T11:40:02.439+0200|Info: WELD-000900: 2.2.2 (Final)
2014-10-10T11:40:02.657+0200|WARN: WELD-001700: Interceptor annotation class javax.ejb.PostActivate not found, interception based on it is not enabled
2014-10-10T11:40:02.657+0200|WARN: WELD-001700: Interceptor annotation class javax.ejb.PrePassivate not found, interception based on it is not enabled
2014-10-10T11:40:02.736+0200|WARN: WELD-000411: Observer method [BackedAnnotatedMethod] org.glassfish.sse.impl.ServerSentEventCdiExtension.processAnnotatedType(@Observes ProcessAnnotatedType<Object>, BeanManager) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
2014-10-10T11:40:02.751+0200|WARN: WELD-000411: Observer method [BackedAnnotatedMethod] private org.glassfish.jersey.gf.cdi.internal.CdiComponentProvider.processAnnotatedType(@Observes ProcessAnnotatedType<Object>) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
2014-10-10T11:40:02.845+0200|Info: WELD-000119: Not generating any bean definitions from com.codemint.seshat.backing.TimeTable because of underlying class loading error: Type [unknown] not found. If this is unexpected, enable DEBUG logging to see the full error.
2014-10-10T11:40:02.861+0200|Info: WELD-000119: Not generating any bean definitions from com.codemint.seshat.test.TestData because of underlying class loading error: Type [unknown] not found. If this is unexpected, enable DEBUG logging to see the full error.
2014-10-10T11:40:02.876+0200|Severe: Exception during lifecycle processing
org.glassfish.deployment.common.DeploymentException: CDI deployment failure:null
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:360)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:534)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:565)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:557)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:360)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:556)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1464)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1300(CommandRunnerImpl.java:109)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1846)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1722)
at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:534)
at com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource(AdminAdapter.java:224)
at org.glassfish.grizzly.http.server.StaticHttpHandlerBase.service(StaticHttpHandlerBase.java:189)
at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:459)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:167)
at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java: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.NullPointerException
at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:191)
at com.google.common.cache.LocalCache.get(LocalCache.java:3989)
at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3994)
at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4878)
at org.jboss.weld.util.cache.LoadingCacheUtils.getCacheValue(LoadingCacheUtils.java:49)
at org.jboss.weld.resources.SharedObjectCache.getTypeClosureHolder(SharedObjectCache.java:80)
at org.jboss.weld.annotated.slim.backed.BackedAnnotatedMember.initTypeClosure(BackedAnnotatedMember.java:29)
at org.jboss.weld.annotated.slim.backed.BackedAnnotated.<init>(BackedAnnotated.java:19)
at org.jboss.weld.annotated.slim.backed.BackedAnnotatedMember.<init>(BackedAnnotatedMember.java:23)
at org.jboss.weld.annotated.slim.backed.BackedAnnotatedCallable.<init>(BackedAnnotatedCallable.java:33)
at org.jboss.weld.annotated.slim.backed.BackedAnnotatedMethod.<init>(BackedAnnotatedMethod.java:38)
at org.jboss.weld.annotated.slim.backed.BackedAnnotatedMethod.of(BackedAnnotatedMethod.java:32)
at org.jboss.weld.annotated.slim.backed.BackedAnnotatedType$BackedAnnotatedMethods.computeValue(BackedAnnotatedType.java:193)
at org.jboss.weld.annotated.slim.backed.BackedAnnotatedType$BackedAnnotatedMethods.computeValue(BackedAnnotatedType.java:186)
at org.jboss.weld.util.LazyValueHolder.get(LazyValueHolder.java:35)
at org.jboss.weld.annotated.slim.backed.BackedAnnotatedType$EagerlyInitializedLazyValueHolder.<init>(BackedAnnotatedType.java:154)
at org.jboss.weld.annotated.slim.backed.BackedAnnotatedType$BackedAnnotatedMethods.<init>(BackedAnnotatedType.java:186)
at org.jboss.weld.annotated.slim.backed.BackedAnnotatedType$BackedAnnotatedMethods.<init>(BackedAnnotatedType.java:186)
at org.jboss.weld.annotated.slim.backed.BackedAnnotatedType.<init>(BackedAnnotatedType.java:66)
at org.jboss.weld.annotated.slim.backed.BackedAnnotatedType.of(BackedAnnotatedType.java:47)
at org.jboss.weld.resources.ClassTransformer$TransformClassToBackedAnnotatedType.load(ClassTransformer.java:83)
at org.jboss.weld.resources.ClassTransformer$TransformClassToBackedAnnotatedType.load(ClassTransformer.java:80)
at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3589)
at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2374)
at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2337)
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2252)
at com.google.common.cache.LocalCache.get(LocalCache.java:3990)
at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3994)
at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4878)
at org.jboss.weld.util.cache.LoadingCacheUtils.getCacheValue(LoadingCacheUtils.java:49)
at org.jboss.weld.util.cache.LoadingCacheUtils.getCastCacheValue(LoadingCacheUtils.java:74)
at org.jboss.weld.resources.ClassTransformer.getBackedAnnotatedType(ClassTransformer.java:175)
at org.jboss.weld.resources.ClassTransformer.getBackedAnnotatedType(ClassTransformer.java:194)
at org.jboss.weld.bootstrap.AnnotatedTypeLoader.loadAnnotatedType(AnnotatedTypeLoader.java:78)
at org.jboss.weld.bootstrap.AnnotatedTypeLoader.loadAnnotatedType(AnnotatedTypeLoader.java:60)
at org.jboss.weld.bootstrap.BeanDeployer.addClass(BeanDeployer.java:97)
at org.jboss.weld.bootstrap.BeanDeployer.addClasses(BeanDeployer.java:135)
at org.jboss.weld.bootstrap.BeanDeployment.createClasses(BeanDeployment.java:209)
at org.jboss.weld.bootstrap.WeldStartup.startInitialization(WeldStartup.java:351)
at org.jboss.weld.bootstrap.WeldBootstrap.startInitialization(WeldBootstrap.java:76)
at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:220)
... 41 more

2014-10-10T11:40:02.876+0200|Severe: Exception while loading the app
2014-10-10T11:40:02.876+0200|Severe: Undeployment failed for context /SeshatWAR
2014-10-10T11:40:02.876+0200|Info: file:/C:/Users/Jens/Programs/Glassfish/glassfish_4.1/glassfish/domains/domain1/eclipseApps/SeshatWAR/WEB-INF/classes/_seshat_pu logout successful
2014-10-10T11:40:02.876+0200|Severe: Exception while loading the app : CDI deployment failure:null
java.lang.NullPointerException
at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:191)
at com.google.common.cache.LocalCache.get(LocalCache.java:3989)
at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3994)
at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4878)
at org.jboss.weld.util.cache.LoadingCacheUtils.getCacheValue(LoadingCacheUtils.java:49)
at org.jboss.weld.resources.SharedObjectCache.getTypeClosureHolder(SharedObjectCache.java:80)
at org.jboss.weld.annotated.slim.backed.BackedAnnotatedMember.initTypeClosure(BackedAnnotatedMember.java:29)
at org.jboss.weld.annotated.slim.backed.BackedAnnotated.<init>(BackedAnnotated.java:19)
at org.jboss.weld.annotated.slim.backed.BackedAnnotatedMember.<init>(BackedAnnotatedMember.java:23)
at org.jboss.weld.annotated.slim.backed.BackedAnnotatedCallable.<init>(BackedAnnotatedCallable.java:33)
at org.jboss.weld.annotated.slim.backed.BackedAnnotatedMethod.<init>(BackedAnnotatedMethod.java:38)
at org.jboss.weld.annotated.slim.backed.BackedAnnotatedMethod.of(BackedAnnotatedMethod.java:32)
at org.jboss.weld.annotated.slim.backed.BackedAnnotatedType$BackedAnnotatedMethods.computeValue(BackedAnnotatedType.java:193)
at org.jboss.weld.annotated.slim.backed.BackedAnnotatedType$BackedAnnotatedMethods.computeValue(BackedAnnotatedType.java:186)
at org.jboss.weld.util.LazyValueHolder.get(LazyValueHolder.java:35)
at org.jboss.weld.annotated.slim.backed.BackedAnnotatedType$EagerlyInitializedLazyValueHolder.<init>(BackedAnnotatedType.java:154)
at org.jboss.weld.annotated.slim.backed.BackedAnnotatedType$BackedAnnotatedMethods.<init>(BackedAnnotatedType.java:186)
at org.jboss.weld.annotated.slim.backed.BackedAnnotatedType$BackedAnnotatedMethods.<init>(BackedAnnotatedType.java:186)
at org.jboss.weld.annotated.slim.backed.BackedAnnotatedType.<init>(BackedAnnotatedType.java:66)
at org.jboss.weld.annotated.slim.backed.BackedAnnotatedType.of(BackedAnnotatedType.java:47)
at org.jboss.weld.resources.ClassTransformer$TransformClassToBackedAnnotatedType.load(ClassTransformer.java:83)
at org.jboss.weld.resources.ClassTransformer$TransformClassToBackedAnnotatedType.load(ClassTransformer.java:80)
at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3589)
at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2374)
at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2337)
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2252)
at com.google.common.cache.LocalCache.get(LocalCache.java:3990)
at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3994)
at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4878)
at org.jboss.weld.util.cache.LoadingCacheUtils.getCacheValue(LoadingCacheUtils.java:49)
at org.jboss.weld.util.cache.LoadingCacheUtils.getCastCacheValue(LoadingCacheUtils.java:74)
at org.jboss.weld.resources.ClassTransformer.getBackedAnnotatedType(ClassTransformer.java:175)
at org.jboss.weld.resources.ClassTransformer.getBackedAnnotatedType(ClassTransformer.java:194)
at org.jboss.weld.bootstrap.AnnotatedTypeLoader.loadAnnotatedType(AnnotatedTypeLoader.java:78)
at org.jboss.weld.bootstrap.AnnotatedTypeLoader.loadAnnotatedType(AnnotatedTypeLoader.java:60)
at org.jboss.weld.bootstrap.BeanDeployer.addClass(BeanDeployer.java:97)
at org.jboss.weld.bootstrap.BeanDeployer.addClasses(BeanDeployer.java:135)
at org.jboss.weld.bootstrap.BeanDeployment.createClasses(BeanDeployment.java:209)
at org.jboss.weld.bootstrap.WeldStartup.startInitialization(WeldStartup.java:351)
at org.jboss.weld.bootstrap.WeldBootstrap.startInitialization(WeldBootstrap.java:76)
at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:220)
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 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)






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

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

Type: Bug Priority: Major
Reporter: cocorossello Assignee: jjsnyder83
Resolution: Unresolved 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.





[GLASSFISH-21048] Field-level validators do not work on beans that have been @Inject'ed Created: 23/Apr/14  Updated: 23/Apr/14

Status: Open
Project: glassfish
Component/s: bean-validator, cdi
Affects Version/s: 4.0
Fix Version/s: None

Type: Bug Priority: Major
Reporter: benjamin.johnston Assignee: Joe Di Pol
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows 7, GlassFish Server Open Source Edition 4.0 (build 89), JDK 1.8.0_05, NetBeans 8.0



 Description   

Validation does not work on beans that have been injected using @Inject.

When validating two identical beans with identical state, this is the expected output:

Injected:
[]
Not Injected:
[]

But this is the actual output:

Injected:
[ConstraintViolationImpl{interpolatedMessage='may not be null', propertyPath=name, rootBeanClass=class eetestlite.Simple$Proxy$_$$_WeldClientProxy, messageTemplate='{javax.validation.constraints.NotNull.message}'}]
Not Injected:
[]

Code:

eetestlite/Welcome.java
package eetestlite;

import java.io.IOException;
import java.io.PrintWriter;
import javax.inject.Inject;
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 javax.validation.Validator;

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

    @Inject
    Simple injected;
    
    @Inject
    Validator validator;
    
    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
            throws ServletException, IOException {
        response.setContentType("text/plain");
        Simple notInjected = new Simple();
        try (PrintWriter out = response.getWriter()) {
            injected.setName("Hello");
            notInjected.setName("Hello");
            out.println("Injected:");
            out.println(validator.validate(injected));
            out.println("Not Injected:");
            out.println(validator.validate(notInjected));
        }
    }

    @Override
    protected void doGet(HttpServletRequest request, HttpServletResponse response)
            throws ServletException, IOException {
        processRequest(request, response);
    }
}
eetestlite/Simple.java
package eetestlite;

import java.io.Serializable;
import javax.enterprise.context.SessionScoped;
import javax.validation.constraints.NotNull;

@SessionScoped
public class Simple implements Serializable {
    
    @NotNull
    private String name;
    
    public String getName() {
        return name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
}
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"
       bean-discovery-mode="annotated">
</beans>

The code does work if I move the validation property from the private field to getName().






[GLASSFISH-20984] Unable to inject JMS resources in a bean defined in a dependency jar Created: 13/Feb/14  Updated: 20/Apr/15

Status: Open
Project: glassfish
Component/s: cdi, jms
Affects Version/s: 4.0
Fix Version/s: None

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

Linux, jdk 1.7.0_45



 Description   

I have an @ApplicationScoped bean defined in a common library which I add to my projects in a dependency jar.

Injection of the connection factory and queue results in null objects when using @Resource

Example code:

In this code, I have tried both @Resource(name = "... and @Resource(mappedName = "... with the same result.

@ApplicationScoped
public class PerformanceLoggingProducer {

    private static final Logger logger = Logger.getLogger(PerformanceLoggingProducer.class.getName());

    @Resource(mappedName = "jms/ConnectionFactory")
    private ConnectionFactory connectionFactory;
    @Resource(name = "jms/PerformanceLoggingQueue")
    private Queue queue;

    public void log(final PerformanceLogTracker tracker) {

        if (tracker != null) {
      
            Thread t = new Thread(new Runnable() {

                @Override
                public void run() {
                    try (Connection connection = connectionFactory.createConnection()) {
                        Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
                        MessageProducer producer = session.createProducer(queue);
                        ObjectMessage message = session.createObjectMessage(tracker);
                        producer.send(message);
                    } catch (Exception ex) {
                        logger.log(Level.SEVERE, "An error occurred when logging message: " + tracker, ex);
                    }
                }
            });
            
            t.start();

        }
    }

}

Workaround:

Don't use @Resource for the lookup.

@ApplicationScoped
public class PerformanceLoggingProducer {

    private static final Logger logger = Logger.getLogger(PerformanceLoggingProducer.class.getName());

//    @Resource(mappedName = "jms/ConnectionFactory")
    private ConnectionFactory connectionFactory;
//    @Resource(name = "jms/PerformanceLoggingQueue")
    private Queue queue;

    public PerformanceLoggingProducer() {
        try {
            connectionFactory = (ConnectionFactory) new InitialContext().lookup("jms/ConnectionFactory");
            queue = (Queue) new InitialContext().lookup("jms/PerformanceLoggingQueue");
        } catch (NamingException ex) {
            logger.log(Level.SEVERE, null, ex);
        }
    }

    public void log(final PerformanceLogTracker tracker) {

        if (tracker != null) {
      
            Thread t = new Thread(new Runnable() {

                @Override
                public void run() {
                    try (Connection connection = connectionFactory.createConnection()) {
                        Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
                        MessageProducer producer = session.createProducer(queue);
                        ObjectMessage message = session.createObjectMessage(tracker);
                        producer.send(message);
                    } catch (Exception ex) {
                        logger.log(Level.SEVERE, "An error occurred when logging message: " + tracker, ex);
                    }
                }
            });
            
            t.start();

        }
    }

}


 Comments   
Comment by jjsnyder83 [ 20/Apr/15 ]

Can you provide a test app? I'd like to see how it's packaged.





[GLASSFISH-20850] classloader favors modules/guava.jar over guava library in the ear Created: 11/Oct/13  Updated: 06/Mar/15

Status: Open
Project: glassfish
Component/s: cdi, classloader
Affects Version/s: 4.0
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Thomas Andres Assignee: Romain Grécourt
Resolution: Unresolved Votes: 13
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to JERSEY-1884 Jersey 2.0 Maven artiifact depends on... Resolved

 Description   

I tried to upgrad the guava library in our application to version 15-0. When I deploy the application on glassfish 4.0, I see the following Exception:

Caused by: java.lang.NoSuchMethodError: com.google.common.base.Stopwatch.createStarted()Lcom/google/common/base/Stopwatch;
at MyClient.buildClient(MyClient.java:159)
at MyClient.initClient(MyClient.java:143)
at MyClient.<init>(MyClient.java:74)
at MyClient.<init>(MyClient.java:62)
at MyClientFactory.createClient(MyClientFactory.java:12)
at MyClientProducer.createClient(MyClientProducer.java:16)
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 org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:93)

To verify where the class is loaded from, I added:
URL resource = this.getClass().getClassLoader()
.getResource(Stopwatch.class.getName().replaceAll("
.", "/") + ".class");
LOGGER.info("URL for Stopwatch:" + resource.toString());
which gives me
URL for Stopwatch:bundle://108.0:1/com/google/common/base/Stopwatch.class

MyClient, MyClientFactory and MyClientProducer are all inside an ejb jar file.
guava-15.0.jar is in a lib folder next to the ejb jar (with lib/guava-15.0.jar in the ear META-INF/MANIFEST.MF Class-Path)

All other libraries there can be found. It just seems, that the weld classloader favors the guava.jar bundled with glassfish 4 over the one I provide for the application. I would expect the classloader to give stuff deployed with the ear a higher priority.



 Comments   
Comment by Thomas Andres [ 11/Oct/13 ]

BTW: Deploying the same ear on glassfish 3.1.2.2 works. The guava class is loaded correctly from the jar inside my ear.

(with a patched beans.xml, but that's another story...)

Comment by Joe Di Pol [ 11/Oct/13 ]

When we have had similar problems in the past the issue was that an OSGi module was exporting packages without any mechanism to prevent them from being found by the application's hierarchy of class loaders.

The solution was to add mandatory OSGi attributes to the exported packages that must be declared by any other module that wanted to import the packages. This prevents the API/Packages from leaking into the application space. I looked at guava.jar and it does not appear to do this – so maybe this is the problem.

For some additional information on this issue see the following:

https://java.net/jira/browse/GLASSFISH-5385
https://java.net/jira/browse/GLASSFISH-18176

Comment by simon.schlachter [ 31/Oct/13 ]

Exactly the same problem here.

Comment by simon.schlachter [ 01/Nov/13 ]

We were able to workaround the problem, by "patching" the manifests (MANIFEST.MF) of the included guava.jar file and its dependencies.

in guava we added ;mandatory:=password;password="GlassFish to all export-statements.

In the dependent modules we added ;password="GlassFish" to all import statements concerning com.google.common.*

The list of modules we had to patch is

  • jersey-bean-validation.jar
  • jersey-client.jar
  • jersey-common.jar
  • jersey-container-servlet-core.jar
  • jersey-container-servlet.jar
  • jersey-gf-cdi.jar
  • jersey-media-moxy.jar
  • jersey-mvc-jsp.jar
  • jersey-mvc.jar
  • jersey-server.jar

The effect of this change is that guava.jar-classes do no longer leak into the class path of our deployed application. This solves the guava-version-problem for us. The root problem, however, is not solved: Glassfish still favors its own classpath instead of that of the deployed application.

(The Idea for this workaround is originally from GLASSFISH-5385)

Comment by hsaqallah [ 14/Feb/14 ]

Patching GF4's files is error-prone and very impractical for a sane development/test/stage/prod environment. There should have been an easier fix. Too bad. Time to switch to Tomcat 7.

Comment by gcruscoe [ 21/Jul/14 ]

#fishcat

Testing glassfish 4.0.1 b08. I am having this issue with the moduels/guava.jar being used over the guava I have in my .ear project. It is preventing migration from 3.1.2.2 to 4.0.1. This seems like a critical issue that should be fixed for b09. It makes it impossible to even test the rest of the system if your app is using a different / incompatible version of guava.

Also this links a bug that says Jersey is going to fix theirs and when it is incorporated it will fix this. I think that version of Jersey has been incorporated but this issue is still there.

Comment by cristim1979 [ 20/Aug/14 ]

We also encountered the same defect with our application which uses Guava 17.0, and which used to work well on Glassfish 3.1.2.2.
But on Glassfish 4.0 it crashed at deploy; to fix it, we came in the end to same workaround like described by simon.schlachter above - patch 11 of the jars in \modules\ folder. But this is very impractical for a clean/official upgrade to 4.0.

Comment by Thomas Andres [ 22/Aug/14 ]

I just did a quick test with our application on glassfish 4.1 (currently on glassfish 4.0)
Most work out of the box without any changes. Compliments on that!

However I noticed this issue got a bit worse, since v4.1 now has guava v13 bundled which is a downgrade from v14 in GF4.0. (WTF??? what's the reason for this?)
I hope you can fix this for 4.1 release.

Comment by Romain Grécourt [ 22/Aug/14 ]

guava is a dependency for both weld and jersey.
Jersey now shadows what it needs, what remains is weld's dependency.

It's too late to be included in 4.1 release (it will go in the next one).
The workaround is the same, but only involves guava + weld jars.

Comment by Thomas Andres [ 22/Aug/14 ]

But what's the reason to downgrade the guava libray? This will cause additional problem to people who now use guvava v14 to avoid this problem.

Comment by Romain Grécourt [ 22/Aug/14 ]

In v4, guava was provided twice: guava.jar (for jersey) and weld-osgi-bundle.jar: both are using different versions.
In v4.1 Jersey has removed its guava dependency (it's now shadowed).

As of weld 2.1.0.Beta2 guava is not part of weld-osgi-bundle.jar, but just an OSGi dependency.
GlassFish 4.1 bundles weld 2.2.2.Final, that's why we are providing a different guava version than what was in 4.0.

Comment by Thomas Andres [ 22/Aug/14 ]

Thanks for the explanation. Looks strange when you look just at the jar, but makes sense like this.
I just tried replacing guava.jar with the version provided with v4 and that works fine so far. You might wanna consider doing that if you can't fix this issue, since that makes at least the transition from v4 to v4.1 a bit smoother.

Comment by lprimak [ 26/Aug/14 ]

I just put guava-17.jar into Glassfish modules/ directory ant it worked.
Had to delete osgi-cache/* from the domain (but only once after the patch)

Is this not simpler than the other patch in the comments above?

Comment by Romain Grécourt [ 26/Aug/14 ]

This is a server wide workaround (you may want to test a few CDI things though).
The one described above (password=GlassFish) applies for applications (i.e WEB-INF/lib).

Comment by vps [ 24/Feb/15 ]

Still same in 4.1.b13.

I ended up using a custom class loader to work around this.
The code is below, if anyone's interested; obviously it's only meant to solve my particular problem, but can be easily changed to prevent delegation for more classes.
When I started, I tried to prevent delegation of everything, but quickly run into problems with the fact that I package (for some reason) too much API classes (JTA was the first that hit me). Even passing java* packages didn't help, as there was some problem with JSF classes, exacerbated by the fact that I had JSF that was older than what's in GF. It was quicker for me to just limit the delegation to the package prefix that I care about, then to clean up my EAR libraries (I'm sure most of the stuff that I package is my fault, and shouldn't be done that way)

I think the glassfish-application.xml should have a section that describes what should and should not be delegated, based on list of RegEx of class names. Then the EAR library classloader should use that list to determine what to delegate and what to not - this will give flexibility to solve virtually any use cases. I recall WebLogic has something that does that. In all cases, it's reasonable to expect that both GF will need to carry some libraries, and the application carry the same, and they may be in severe conflict, and that may be by design.

EarLibClassLoader.java
/*
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
 *
 * Copyright (c) 1997-2010 Oracle and/or its affiliates. All rights reserved.
 *
 * The contents of this file are subject to the terms of either the GNU
 * General Public License Version 2 only ("GPL") or the Common Development
 * and Distribution License("CDDL") (collectively, the "License").  You
 * may not use this file except in compliance with the License.  You can
 * obtain a copy of the License at
 * https://glassfish.dev.java.net/public/CDDL+GPL_1_1.html
 * or packager/legal/LICENSE.txt.  See the License for the specific
 * language governing permissions and limitations under the License.
 *
 * When distributing the software, include this License Header Notice in each
 * file and include the License file at packager/legal/LICENSE.txt.
 *
 * GPL Classpath Exception:
 * Oracle designates this particular file as subject to the "Classpath"
 * exception as provided by Oracle in the GPL Version 2 section of the License
 * file that accompanied this code.
 *
 * Modifications:
 * If applicable, add the following below the License Header, with the fields
 * enclosed by brackets [] replaced by your own identifying information:
 * "Portions Copyright [year] [name of copyright owner]"
 *
 * Contributor(s):
 * If you wish your version of this file to be governed by only the CDDL or
 * only the GPL Version 2, indicate your decision by adding "[Contributor]
 * elects to include this software in this distribution under the [CDDL or GPL
 * Version 2] license."  If you don't indicate a single choice of license, a
 * recipient has the option to distribute your version of this file under
 * either the CDDL, the GPL Version 2 or to extend the choice of license to
 * its licensees as provided above.  However, if you add GPL Version 2 code
 * and therefore, elected the GPL Version 2 license, then the option applies
 * only if the new code is made subject to such option by the copyright
 * holder.
 */

package org.glassfish.javaee.full.deployment;

import java.net.URL;
import com.sun.enterprise.loader.ASURLClassLoader;
//import com.sun.enterprise.util.CULoggerInfo;
import java.util.logging.Logger;
import java.util.logging.LogManager;
import java.util.logging.Level;
import java.util.regex.*;
import java.util.*;

/**
 * Classloader that is responsible to load the ear libraries (lib/*.jar etc)
 *
 */
public class EarLibClassLoader extends ASURLClassLoader
{

    // private static final Logger _logger=CULoggerInfo.getLogger();
    // private static final Logger _logger=LogManager.getLogManager().getLogger("earcl");
    private static final Logger _logger=Logger.getLogger("earcl");

    private static final Collection<Pattern> preventDelegate =
        new ArrayList<Pattern>();

    static {
        preventDelegate.add(Pattern.compile("^com\\.google\\..*$"));
    }

    public EarLibClassLoader(URL[] urls, ClassLoader classLoader) {
        super(classLoader); 

        for (URL url : urls) {
            addURL(url);
        }
    }

    @Override
    protected String getClassLoaderName() {
        return "EarLibClassLoader";
    }

    @Override
    protected Class<?> findClass(String name) throws ClassNotFoundException {
        try {
            Class<?> c = super.findClass(name);
            // _logger.log(Level.INFO, "findClass() called for "+name + "->found");
            return c;
        } catch (ClassNotFoundException e) {
            // _logger.log(Level.INFO, "findClass() called for "+name + "->NOT FOUND");
            throw e;
        }
    }


    @Override
    protected Class<?> loadClass(String name, boolean r) throws ClassNotFoundException {

        // let's make it non-delegating!

        // logger.log(Level.INFO, "EAR loading "+name+", resolve:"+r);

        boolean matched = false;
        for (Pattern p : preventDelegate) {
            Matcher m = p.matcher(name);
            if (m.matches()) {
                matched = true;
                break;
            }
        }

        if (!matched) {
            try {
                Class<?> c = super.loadClass(name,r);
                // logger.log(Level.INFO, "not matched "+name+", delegating -> found");
                return c;
            } catch (ClassNotFoundException e) {
                // logger.log(Level.INFO, "not matched "+name+", delegating -> NOT FOUND");
                throw e;
            }
        }
    
        synchronized (getClassLoadingLock(name)) {

            ClassNotFoundException toThrow = null;

            Class<?> c = findLoadedClass(name);
            if (c == null) {
            
                try {
                    c = findClass(name);
                    // logger.log(Level.INFO, "-> self found class"+name+", will return.");
                } catch (ClassNotFoundException ne) {
                    toThrow = ne;
                    // _logger.log(Level.INFO, "-> self could not find class "+name);
                }
            
            }

            if (c == null) {
                ClassLoader parent = getParent();
                if (parent == null) {
                    // _logger.log(Level.INFO, "-> no parent, throwing CNF for "+name);
                    throw toThrow;
                }
                try {
                    c = parent.loadClass(name);
                    // _logger.log(Level.INFO, "-> parent loaded class "+name);
                } catch (ClassNotFoundException ignored) {
                    // _logger.log(Level.INFO, "-> parent could not load class, throwing CNF for "+name);
                    throw toThrow;
                }
            } else {
                // _logger.log(Level.INFO, "-> self class "+name+" is already loaded");
            }

            if (r) {
                // _logger.log(Level.INFO, "-> resolving class");
                resolveClass(c);
            }

            return c;

        }
    
    }

}

Applying this to GF:

# make sure JDK 1.8 is used
# note that the output is written to /tmp/bout
mkdir -p /tmp/bout
/opt/java/jdk1.8/bin/javac -d /tmp/bout/ -cp ~/soft/glassfish4/glassfish/lib/appserv-rt.jar: EarLibClassLoader.java
# now, we need to update the .jar file that contains that class
# it's expected that GlassFish distribution is unzipped somewhere
# change to glassfish home directory before running the next lines
cd glassfish/modules
# let's unzip existing .jar that needs to be updated
mkdir -p _z
cd _z
unzip ../deployment-javaee-full.jar
# copy the modified .class
# note that current directory is _z where we unpacked the existing .jar
cp /tmp/bout/org/glassfish/javaee/full/deployment/EarLibClassLoader.class org/glassfish/javaee/full/deployment/EarLibClassLoader.class
# let's update the .jar file. Note that the jar command is crazy, but we must preserve the manifest!
/opt/java/jdk1.8/bin/jar uvfmM  ../deployment-javaee-full.jar META-INF/MANIFEST.MF .
# now, if necessary, we can update the distribution
# change to the directory that contains the glassfish4 directory as was extracted from .zip file
cd /opt/soft
zip -u glassfish-4.1.zip glassfish4/glassfish/modules/deployment-javaee-full.jar
Comment by lprimak [ 24/Feb/15 ]

How do I apply the above code in my Glassfish installation?

Comment by lprimak [ 25/Feb/15 ]

Ah, this is unfortunate. It requires patching the server itself.
This needs to be fixed by GlassFish team IMHO.





[GLASSFISH-20637] Java EE 7 CDI issues on GlassFish 4 Created: 16/Jun/13  Updated: 20/Apr/15

Status: Open
Project: glassfish
Component/s: cdi
Affects Version/s: 4.0_b89_RC5
Fix Version/s: None

Type: Bug Priority: Major
Reporter: biemond Assignee: phil.zampino
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

mac osx


Tags: 4_0_1-approved, cdi, glassfish4, jsf2_2

 Description   

Hi,

Got some CDI issues on the latest GlassFish version

First in JSF2.2 the flowDefinition of flows does not work , I needed to use the faces-config.xml and that works perfectly

my example
@Named("flow1")
public class Flow1 implements Serializable {

private static final long serialVersionUID = -1L;

@Produces @FlowDefinition
public Flow buildMyFlow(@FlowBuilderParameter FlowBuilder flowBuilder)

{ System.out.println("flowdef"); String flowId = "flow1"; flowBuilder.id("", flowId); flowBuilder.viewNode(flowId, "/flow1/" + flowId + ".xhtml").markAsStartNode(); return flowBuilder.getFlow(); }

}

Also in the websockets and do an inject of session bean and does not do anything , also listen to an CDI event inside does not work

@ServerEndpoint("/mywebsocket")
public class MyWebSocket implements Serializable {

@Inject
JmsSessionBean jmsBean;

public void onJMSMessage(@Observes @CDIJmsEvent Message msg) {
System.out.println("Got JMS Message at WebSocket!");
try {
for (Session s : sessions)

{ s.getBasicRemote().sendText("message from JMS: " + msg.getBody(String.class)); }

} catch (IOException | JMSException ex)

{ ex.printStackTrace(); }

}

Inside a managed bean Inject and the CDI events works perfectly



 Comments   
Comment by Darious3 [ 17/Jun/13 ]

Flow example with formatting:

@Named("flow1")
public class Flow1 implements Serializable {

    private static final long serialVersionUID = -1L;

    @Produces @FlowDefinition
    public Flow buildMyFlow(@FlowBuilderParameter FlowBuilder flowBuilder) { 
       
        String flowId = "flow1"; 
        flowBuilder.id("", flowId); 
        flowBuilder.viewNode(flowId, "/flow1/" + flowId + ".xhtml").markAsStartNode(); 

        return flowBuilder.getFlow();
    }
}

WebSocket with formatting

@ServerEndpoint("/mywebsocket")
public class MyWebSocket implements Serializable {

    @Inject
    JmsSessionBean jmsBean;

    public void onJMSMessage(@Observes @CDIJmsEvent Message msg) {
        try {
            for (Session session : sessions) {
                session.getBasicRemote().sendText("message from JMS: " + msg.getBody(String.class));
            }
        } catch (IOException | JMSException ex) {
            ex.printStackTrace();
        }
    }
}
Comment by jjsnyder83 [ 17/Jun/13 ]

I believe the WebSocket issue is a duplicte of : https://java.net/jira/browse/GLASSFISH-20371.

For the JSF issue can you provide more information on what the expected results are?

Comment by biemond [ 17/Jun/13 ]

Hi,

here is my netbeans projects on glassfish 4 https://github.com/biemond/JavaEE7

I defined some JSF 2.2 flows in
https://github.com/biemond/JavaEE7/tree/master/WebApp7EE/WebApp7EE-war/web/flow1

When I add this flow definition in the faces-config.xml it works fine
https://github.com/biemond/JavaEE7/blob/master/WebApp7EE/WebApp7EE-war/web/WEB-INF/faces-config.xml

but when I try to do the same in this class with the help of CDI
@Produces @FlowDefinition
public Flow defineFlow(@FlowBuilderParameter FlowBuilder flowBuilder)
in java class
https://github.com/biemond/JavaEE7/blob/master/WebApp7EE/WebApp7EE-war/src/java/nl/amis/web/flow/Flow1.java

It does not do anything ( don't see any CDI error ) and the page /flow1.xhtml can not be found.

Thanks

Comment by jjsnyder83 [ 20/Apr/15 ]

Is this still an issue?





[GLASSFISH-20540] PSR:PERF Implicit CDI causing 30% performance regression Created: 16/May/13  Updated: 19/Sep/14

Status: Reopened
Project: glassfish
Component/s: cdi
Affects Version/s: 4.0_b89_RC5
Fix Version/s: 4.1

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

Tags: 4_0_1-reviewed, PSRBUG

 Description   

Micro benchmarks on EJB local session beans have regressed by 30% in current build. This is because of implicit CDI; if I set cdi-enable-implicit=false, performance reverts to previous levels.

I suspect this is a new weld integration to fix for https://java.net/jira/browse/GLASSFISH-20474 – and the memory leak is fixed, but we are left with the new performance regression.

The WeldListnener is consuming about 30% of total CPU now, particularly in the WeldListener.requestDestroy() method.



 Comments   
Comment by jjsnyder83 [ 22/May/13 ]

I'm not sure there's much we can do about this. As you stated, when you disable implicit cdi you get the same results as before. With implicit cdi enabled cdi is getting involved with the ejbs and so additional processing is happening. If cdi is not required then it should be turned off for maximum performance.

Comment by Scott Oaks [ 22/May/13 ]

I don't think "work as intended" is an accurate description – I don't think the intention of enabling CDI by default is to introduce a 30% performance regression in EJB operations.

We need to look into and optimize the Weld implementation here. If we conclude that it cannot be improved on, then we can figure out next steps. But I suspect, given the size of the penalty, that there is some optimizing we can do. I'll get PSR staff to do some initial analysis (but also, can we check with the Weld implementors and see if they are aware of this, as they were already aware of the memory leak)?

Comment by jjsnyder83 [ 22/May/13 ]

Enabling CDI causes CDI to get involved in all EJB requests so if there's a lot of EJB "action" happening then there's going to be a performance hit when CDI is involved. I agree 30% seems drastic!

It's entirely possible that Weld can improve the implementation and I'll be glad to open a Weld Jira. It would be very helpful if I could provide some more information as well as an application that when run emphasizes the performance hit...Can the PSR staff provide that info?

(btw, The weld guys were not aware of the memory leak until we pointed it out )

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

After a brief exchange with the Weld lead, I've filed https://issues.jboss.org/browse/WELD-1443

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

The associated Weld issue is scheduled to be included in Weld 2.0.3.Final





[GLASSFISH-20413] automate jms resource creation for weld glassfish tck runner Created: 25/Apr/13  Updated: 11/Sep/14

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

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


 Description   

See
https://github.com/weld/weld-glassfish-tck-runner/blob/master/src/test/java/org/jboss/weld/tck/glassfish/GlassFishResourceManager.java#L36

Wouldn't it be better to support this directly in the Managed/Remote containers in the same way it's done for Embedded, by exposing a configuration option in ContainerConfiguration. Then any user can install a global resources.xml file during the lifetime of the test execution. Installed in start(), removed in stop() ?

glassfish embedded configuration:
https://github.com/arquillian/arquillian-container-glassfish/blob/master/glassfish-embedded-3.1/src/main/java/org/jboss/arquillian/container/glassfish/embedded_3_1/GlassFishConfiguration.java#L156

glassfish embedded impl:
https://github.com/arquillian/arquillian-container-glassfish/blob/master/glassfish-embedded-3.1/src/main/java/org/jboss/arquillian/container/glassfish/embedded_3_1/GlassFishContainer.java#L186

glassfish-resources.xml example: https://github.com/ahhughes/glassfish3x.resources.xml.example/blob/master/glassfish3x-resources-xml-example-ear/src/main/application/META-INF/glassfish-resources.xml



 Comments   
Comment by jjsnyder83 [ 25/Apr/13 ]

The arquillian.xml property, in this case, allow for a , separated list of resource file references. Tho I'm pretty sure you could define two jms resources in one resource.xml file as well.





[GLASSFISH-20341] Support for AroundConstruct Interceptors defined in ejb-jar.xml Created: 17/Apr/13  Updated: 26/Mar/15

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

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

Tags: 4_0_1-approved

 Description   

We are seeing a few EJB devtest failure

ejb32/interceptors/constructor-level/descriptor/
ejb32/interceptors/aroundconstruct/descriptor/
ejb32/interceptors/get_method_lc/descriptor/

where Interceptor for AroundConstruct on a bean are defined "only in" ejb-jar.xml and implicit CDI scanning has been enabled. The exception reported is:

[java] Caused by: java.lang.RuntimeException: [SfulEJB] InterceptorA.AroundConstruct was not called
[java] at com.acme.BaseBean.verify(BaseBean.java:17)
[java] at com.acme.SfulEJB.hello(SfulEJB.java:19)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[java] at java.lang.reflect.Method.invoke(Method.java:601)
[java] at org.glassfish.ejb.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1081)
[java] at org.glassfish.ejb.security.application.EJBSecurityManager.invoke(EJBSecurityManager.java:1153)
[java] at com.sun.ejb.containers.BaseContainer.invokeBeanMethod(BaseContainer.java:4695)
[java] at com.sun.ejb.EjbInvocation.invokeBeanMethod(EjbInvocation.java:630)
[java] at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:822)
[java] at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:582)
[java] at com.acme.InterceptorA.interceptCall(InterceptorA.java:51)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[java] at java.lang.reflect.Method.invoke(Method.java:601)
[java] at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:883)
[java] at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:822)
[java] at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:582)
[java] at com.acme.InterceptorB.interceptCall(InterceptorB.java:46)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[java] at java.lang.reflect.Method.invoke(Method.java:601)
[java] at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:883)
[java] at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:822)
[java] at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:582)
[java] at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:46)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[java] at java.lang.reflect.Method.invoke(Method.java:601)
[java] at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:883)
[java] at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:822)
[java] at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:369)
[java] at com.sun.ejb.containers.BaseContainer.__intercept(BaseContainer.java:4667)
[java] at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:4655)
[java] at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:212)



 Comments   
Comment by arjavdesai [ 17/Apr/13 ]

Waiting on WELD to resolve https://issues.jboss.org/browse/WELD-1412. In the meantime, if AroundConstruct interceptors are specified in the ejb-jar.xml, that module can't use CDI. Hence the above mentioned tests are modified to disable CDI scanning. To reproduce the issue, please remove beans.xml from it.

Comment by tlcksnyder [ 23/Apr/13 ]

JBoss not planning to fix in Weld 2.0, therefore it is not making initial drop for EE7 / 4.0.

Comment by arjavdesai [ 24/Apr/13 ]

Following EJB CTS failure are caused by this issue as well:

com/sun/ts/tests/ejb30/lite/interceptor/singleton/lifecycle/descriptor/Client.java#aroundConstructInterceptorTest_from_ejbembed: Client_aroundConstructInterceptorTest_from_ejbembed
Failed with exception
java.lang.RuntimeException: nullExpecting result list: [InterceptorA, Interceptor9, Interceptor9, InterceptorBaseBase, InterceptorBase, InterceptorBaseBase, InterceptorBase, InterceptorBeanBase, AroundConstructInterceptorBean]null , but actual: [InterceptorBaseBase, InterceptorBase, InterceptorBaseBase, InterceptorBase, InterceptorBeanBase, AroundConstructInterceptorBean]
at com.sun.ts.tests.ejb30.common.helper.Helper.compareResultList(Helper.java:36)
at com.sun.ts.tests.ejb30.common.helper.Helper.compareResultList(Helper.java:42)
at com.sun.ts.tests.ejb30.lite.interceptor.common.lifecycle.ClientBase.interceptorTest(ClientBase.java:146)
at com.sun.ts.tests.ejb30.lite.interceptor.common.lifecycle.ClientBase.aroundConstructInterceptorTest(ClientBase.java:138)
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 com.sun.ts.tests.ejb30.common.lite.EJBLiteClientBase.runTestInVehicle(EJBLiteClientBase.java:221)
at com.sun.ts.tests.ejb30.common.lite.EJBLiteClientBase.getStatus(EJBLiteClientBase.java:114)
at com.sun.ts.tests.common.vehicle.ejbembed.EJBEmbedRunner.run(EJBEmbedRunner.java:41)
at com.sun.ts.lib.harness.ServiceEETest.run(ServiceEETest.java:102)
at com.sun.ts.lib.harness.EETest.getPropsReady(EETest.java:446)
at com.sun.ts.lib.harness.ServiceEETest.run(ServiceEETest.java:210)
at com.sun.ts.lib.harness.EETest.run(EETest.java:257)
at com.sun.ts.tests.common.vehicle.VehicleClient.main(VehicleClient.java:27)

com/sun/ts/tests/ejb30/lite/interceptor/singleton/lifecycle/descriptor/Client.java#aroundConstructInterceptorTest_from_ejblitejsf: Client_aroundConstructInterceptorTest_from_ejblitejsf
com/sun/ts/tests/ejb30/lite/interceptor/singleton/lifecycle/descriptor/Client.java#aroundConstructInterceptorTest_from_ejblitejsp: Client_aroundConstructInterceptorTest_from_ejblitejsp
com/sun/ts/tests/ejb30/lite/interceptor/singleton/lifecycle/descriptor/Client.java#aroundConstructInterceptorTest_from_ejbliteservlet: Client_aroundConstructInterceptorTest_from_ejbliteservlet
com/sun/ts/tests/ejb30/lite/interceptor/singleton/lifecycle/descriptor/Client.java#aroundConstructInterceptorTest_from_ejbliteservlet2: Client_aroundConstructInterceptorTest_from_ejbliteservlet2

java.lang.RuntimeException:
Expecting result list: [InterceptorA, Interceptor9, Interceptor9, InterceptorBaseBase, InterceptorBase, InterceptorBaseBase, InterceptorBase, InterceptorBeanBase, AroundConstructInterceptorBean]
, but actual: [InterceptorBaseBase, InterceptorBase, InterceptorBaseBase, InterceptorBase, InterceptorBeanBase, AroundConstructInterceptorBean]
at com.sun.ts.tests.ejb30.common.helper.Helper.compareResultList(Helper.java:36)
at com.sun.ts.tests.ejb30.common.helper.Helper.compareResultList(Helper.java:42)
at com.sun.ts.tests.ejb30.lite.interceptor.common.lifecycle.ClientBase.interceptorTest(ClientBase.java:146)
at com.sun.ts.tests.ejb30.lite.interceptor.common.lifecycle.ClientBase.aroundConstructInterceptorTest(ClientBase.java:138)
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 com.sun.ts.tests.ejb30.common.lite.EJBLiteClientBase.runTestInVehicle(EJBLiteClientBase.java:221)
at com.sun.ts.tests.ejb30.common.lite.EJBLiteClientBase.getStatus(EJBLiteClientBase.java:114)
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 javax.el.BeanELResolver.getValue(BeanELResolver.java:363)
at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203)
at com.sun.el.parser.AstValue.getValue(AstValue.java:140)
at com.sun.el.parser.AstValue.getValue(AstValue.java:204)
at com.sun.el.parser.AstDeferredExpression.getValue(AstDeferredExpression.java:63)
at com.sun.el.parser.AstCompositeExpression.getValue(AstCompositeExpression.java:68)
at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:226)
at org.jboss.weld.el.WeldValueExpression.getValue(WeldValueExpression.java:50)
at org.jboss.weld.el.WeldValueExpression.getValue(WeldValueExpression.java:50)
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)

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

The associated Weld issue (https://issues.jboss.org/browse/WELD-1412) is targeted for 2.0.1, but is as of yet unresolved.

Comment by jjsnyder83 [ 26/Mar/15 ]

The upgrade to Weld 2.2.10.Final went in last night with revision 63813. Please retry.





[GLASSFISH-15249] Support vanilla OSGi bundles as bean archives and Bean dependencies between bundles Created: 17/Dec/10  Updated: 16/Oct/12

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

Type: New Feature Priority: Major
Reporter: Sivakumar Thyagarajan Assignee: Sivakumar Thyagarajan
Resolution: Unresolved Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Dependency
blocks GLASSFISH-15119 CDI Interceptor still not working in ... Open

 Description   

GF3.1 CDI-OSGi support should support scenarios where the Beans used by a bundle are in a different bundle, and scenarios where Beans could exist in plain vanilla osgi bundles.

See GLASSFISH-15119 for a discussion on this issue.



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

Moving this to a future release. The immediate interest is to align with the OSGi/CDI RFC.

Comment by TangYong [ 15/Oct/12 ]

siva, sahoo

Pl. add osgi-javaee into Component/s.

Comment by Sivakumar Thyagarajan [ 16/Oct/12 ]

Adding osgi-javaee to the component list





[GLASSFISH-15225] [OSGi] CDI beans not accessible in web applications Created: 15/Dec/10  Updated: 19/Sep/14

Status: Open
Project: glassfish
Component/s: cdi, OSGi-JavaEE
Affects Version/s: 3.1_b33
Fix Version/s: 4.1

Type: Bug Priority: Major
Reporter: chaoslayer Assignee: Sanjeeb Sahoo
Resolution: Unresolved Votes: 2
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: GZip Archive dummy-cdi-web-test.tar.gz     File dummy-web.war     XML File weld.faces-config.xml    
Issue Links:
Dependency
depends on GLASSFISH-15353 component id is not unregistered from... Resolved
Status Whiteboard:

Workaround: Use attached faces-config.xml

Tags: 3_1-exclude, 3_1-next, 3_1_1-scrubbed

 Description   

This seems to be related to GLASSFISH-14842.

However as that bug seems to be fixed this could be introduced by the OSGi/CDI integration.

Attached a test project ( dummy-cdi-web-test.tar.gz ) which is a maven project building a WAB. To see the issue immediately try to access it like this:

http://localhost:8080/dummy-web/?name=John

The error I then get is:

/index.xhtml @12,69 value="#

{dummyBean.name}

": Target Unreachable, identifier 'dummyBean' resolved to null

The application worked fine at least with 3.1 promoted b06.



 Comments   
Comment by Sanjeeb Sahoo [ 16/Dec/10 ]

Yes, I can reproduce this issue with latest build. If I deploy the war as a regular war, it works as expected. Siva has to tell us why this is not working as a WAB.

Comment by Sivakumar Thyagarajan [ 17/Dec/10 ]

Analysis: A custom faces config provider org.glassfish.weld.jsf.WeldFacesConfigProvider is used to return the Weld related faces-config.xml to the JSF runtime and this is enabled for CDI applications.

While trying to search for faces config provider in:
ServiceFactoryUtils.getServiceEntries(String) line: 171
ConfigurationResourceProviderFactory.createProviders(ConfigurationResourceProviderFactory$ProviderType) line: 88
ConfigManager.getConfigurationResourceProviders(List<ConfigurationResourceProvider>, ProviderType) line: 467
ConfigManager.getFacesConfigResourceProviders() line: 450
ConfigManager.initialize(ServletContext) line: 321
ConfigureListener.contextInitialized(ServletContextEvent) line: 226
WebModule(StandardContext).contextListenerStart() line: 4683
WebModule.contextListenerStart() line: 531
WebModule(StandardContext).start() line: 5303
WebModule.start() line: 497
VirtualServer(ContainerBase).addChildInternal(Container) line: 917

for a WAR the web application classloader has visibility to urls from WebappClassLoader (delegate=true; repositories=WEB-INF/classes/) has
[org.glassfish.weld.jsf.WeldFacesConfigProvider] and hence the weld faces configuration is used.

For a WAB, OTOH, the OSGiWebDeploymentContext$WABClassLoader
only provides visiblity to [org.glassfish.osgiweb.OSGiFacesConfigResourceProvider], and this results in the weld JSF configuration not getting registered and hence injection fails.

Comment by Sivakumar Thyagarajan [ 17/Dec/10 ]

Transferring to Sahoo to investigate further.

Comment by Sanjeeb Sahoo [ 17/Dec/10 ]

Thanks Siva for telling what's really different. I am looking for a fix. In the meanwhile, I can suggest this simple work around which I have verified by modifying the attached test case:

Package the attached weld.faces-config.xml in META-INF/ directory of the WAB. You don't have to change the name to faces-config.xml. JSF allows custom faces-config to have arbitrary prefix.

I am lowering the priority of this issue because of this work around.

Comment by Sanjeeb Sahoo [ 22/Dec/10 ]

Will be addressed in 3.2 as 3.1 is close to release. Use the suggested work around in the meanwhile.

Comment by chaoslayer [ 23/Dec/10 ]

OK, the plan vanilla CDI works now.

Therefore I just got one step further and added the primefaces library to test some things ( attached "dummy-web.war" ) and here comes the next gotcha:

INFO: Updated /srv/servers/glassfish/v31-b34/glassfish/domains/domain1/autodeploy/bundles/dummy-web.war
INFO: Started bundle: file:/srv/servers/glassfish/v31-b34/glassfish/domains/domain1/autodeploy/bundles/dummy-web.war
INFO: Expanded at file:/tmp/osgiapp1741957746419399825/
INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
INFO: total number of classes with faces annotation = 0
SEVERE: 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 org.jboss.weld.servlet.WeldListener
at org.apache.catalina.core.StandardContext.start(StandardContext.java:5269)
at com.sun.enterprise.web.WebModule.start(WebModule.java:497)
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:753)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1981)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1629)
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:290)
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.osgijavaeebase.OSGiDeploymentRequest.deploy(OSGiDeploymentRequest.java:183)
at org.glassfish.osgijavaeebase.OSGiDeploymentRequest.execute(OSGiDeploymentRequest.java:118)
at org.glassfish.osgijavaeebase.AbstractOSGiDeployer.deploy(AbstractOSGiDeployer.java:121)
at org.glassfish.osgijavaeebase.OSGiContainer.deploy(OSGiContainer.java:147)
at org.glassfish.osgijavaeebase.JavaEEExtender.deploy(JavaEEExtender.java:128)
at org.glassfish.osgijavaeebase.JavaEEExtender.access$100(JavaEEExtender.java:59)
at org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.run(JavaEEExtender.java:165)
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 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
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 org.jboss.weld.servlet.WeldListener
at org.apache.catalina.core.StandardContext.addListener(StandardContext.java:2683)
at org.apache.catalina.core.StandardContext.addApplicationListener(StandardContext.java:1927)
at com.sun.enterprise.web.TomcatDeploymentConfig.configureApplicationListener(TomcatDeploymentConfig.java:234)
at com.sun.enterprise.web.TomcatDeploymentConfig.configureWebModule(TomcatDeploymentConfig.java:93)
at com.sun.enterprise.web.WebModuleContextConfig.start(WebModuleContextConfig.java:272)
at com.sun.enterprise.web.WebModuleContextConfig.lifecycleEvent(WebModuleContextConfig.java:172)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:149)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:5261)
... 25 more
Caused by: javax.servlet.ServletException: com.sun.enterprise.container.common.spi.util.InjectionException: Error creating managed object for class org.jboss.weld.servlet.WeldListener
at org.apache.catalina.core.StandardContext.createListener(StandardContext.java:2793)
at org.apache.catalina.core.StandardContext.loadListener(StandardContext.java:4738)
at com.sun.enterprise.web.WebModule.loadListener(WebModule.java:1588)
at org.apache.catalina.core.StandardContext.addListener(StandardContext.java:2680)
... 32 more
Caused by: com.sun.enterprise.container.common.spi.util.InjectionException: Error creating managed object for class org.jboss.weld.servlet.WeldListener
at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.createManagedObject(InjectionManagerImpl.java:317)
at com.sun.enterprise.web.WebContainer.createListenerInstance(WebContainer.java:733)
at com.sun.enterprise.web.WebModule.createListenerInstance(WebModule.java:1966)
at org.apache.catalina.core.StandardContext.createListener(StandardContext.java:2791)
... 35 more
Caused by: java.lang.NullPointerException
at com.sun.enterprise.container.common.impl.managedbean.ManagedBeanManagerImpl.createManagedBean(ManagedBeanManagerImpl.java:485)
at com.sun.enterprise.container.common.impl.managedbean.ManagedBeanManagerImpl.createManagedBean(ManagedBeanManagerImpl.java:428)
at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.createManagedObject(InjectionManagerImpl.java:300)
... 38 more

WARNING: 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 org.jboss.weld.servlet.WeldListener
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 org.jboss.weld.servlet.WeldListener
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:921)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:901)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:753)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1981)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1629)
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:290)
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.osgijavaeebase.OSGiDeploymentRequest.deploy(OSGiDeploymentRequest.java:183)
at org.glassfish.osgijavaeebase.OSGiDeploymentRequest.execute(OSGiDeploymentRequest.java:118)
at org.glassfish.osgijavaeebase.AbstractOSGiDeployer.deploy(AbstractOSGiDeployer.java:121)
at org.glassfish.osgijavaeebase.OSGiContainer.deploy(OSGiContainer.java:147)
at org.glassfish.osgijavaeebase.JavaEEExtender.deploy(JavaEEExtender.java:128)
at org.glassfish.osgijavaeebase.JavaEEExtender.access$100(JavaEEExtender.java:59)
at org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.run(JavaEEExtender.java:165)
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 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)

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: java.lang.IllegalArgumentException: javax.servlet.ServletException: com.sun.enterprise.container.common.spi.util.InjectionException: Error creating managed object for class org.jboss.weld.servlet.WeldListener
at com.sun.enterprise.web.WebApplication.start(WebApplication.java:127)
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:290)
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.osgijavaeebase.OSGiDeploymentRequest.deploy(OSGiDeploymentRequest.java:183)
at org.glassfish.osgijavaeebase.OSGiDeploymentRequest.execute(OSGiDeploymentRequest.java:118)
at org.glassfish.osgijavaeebase.AbstractOSGiDeployer.deploy(AbstractOSGiDeployer.java:121)
at org.glassfish.osgijavaeebase.OSGiContainer.deploy(OSGiContainer.java:147)
at org.glassfish.osgijavaeebase.JavaEEExtender.deploy(JavaEEExtender.java:128)
at org.glassfish.osgijavaeebase.JavaEEExtender.access$100(JavaEEExtender.java:59)
at org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.run(JavaEEExtender.java:165)
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 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)

SEVERE: Exception while loading the app
INFO: Deleted /tmp/osgiapp1741957746419399825
SEVERE: Failed while deploying bundle org.glassfish.osgi.dummy-web [298]
WARNING: Failed to deploy bundle org.glassfish.osgi.dummy-web [298]
org.glassfish.osgijavaeebase.DeploymentException: Deployment of org.glassfish.osgi.dummy-web [298] failed because of following reason: Failed while deploying bundle org.glassfish.osgi.dummy-web [298] : java.lang.RuntimeException: Failed to deploy bundle [ org.glassfish.osgi.dummy-web [298] ], root cause: Exception while loading the app
at org.glassfish.osgijavaeebase.AbstractOSGiDeployer.deploy(AbstractOSGiDeployer.java:125)
at org.glassfish.osgijavaeebase.OSGiContainer.deploy(OSGiContainer.java:147)
at org.glassfish.osgijavaeebase.JavaEEExtender.deploy(JavaEEExtender.java:128)
at org.glassfish.osgijavaeebase.JavaEEExtender.access$100(JavaEEExtender.java:59)
at org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.run(JavaEEExtender.java:165)
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 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.RuntimeException: Failed to deploy bundle [ org.glassfish.osgi.dummy-web [298] ], root cause: Exception while loading the app
at org.glassfish.osgijavaeebase.OSGiDeploymentRequest.deploy(OSGiDeploymentRequest.java:196)
at org.glassfish.osgijavaeebase.OSGiDeploymentRequest.execute(OSGiDeploymentRequest.java:118)
at org.glassfish.osgijavaeebase.AbstractOSGiDeployer.deploy(AbstractOSGiDeployer.java:121)
... 10 more
Caused by: 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 org.jboss.weld.servlet.WeldListener
at com.sun.enterprise.web.WebApplication.start(WebApplication.java:127)
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:290)
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.osgijavaeebase.OSGiDeploymentRequest.deploy(OSGiDeploymentRequest.java:183)
... 12 more

Comment by chaoslayer [ 23/Dec/10 ]

Well, the last error was introduced somehow because it seems that at least WAB's don't get updated properly.

If I shutdown GlassFish, remove any OSGi cache and startup again I see that it complains with NoClassDefFound which is totally correct on that bundle, but the same should be experienced using a bundle update.

Comment by Sanjeeb Sahoo [ 27/Dec/10 ]

After a lot of debugging, I can now explain why we are seeing a weired exception when we are trying to update the cdi enabled WAB. if we look at the stack, we see
Caused by: java.lang.NullPointerException
at com.sun.enterprise.container.common.impl.managedbean.ManagedBeanManagerImpl.createManagedBean(ManagedBeanManagerImpl.java:485)
at com.sun.enterprise.container.common.impl.managedbean.ManagedBeanManagerImpl.createManagedBean(ManagedBeanManagerImpl.java:428)
at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.createManagedObject(InjectionManagerImpl.java:300)
... 38 more

The root cause of this is GLASSFISH-15353

Comment by Sanjeeb Sahoo [ 05/Jul/11 ]

Completely missed this bug for 3.1.1. Will definitely do it in 3.2.

Comment by TangYong [ 27/Nov/12 ]

Because of triggering the issue again, consider to increase the priority and investigate how to fix it.

Comment by TangYong [ 26/Mar/13 ]

Updating into 3/26 trunk, and done a confirmation as following(Having a big regression for Workaround):

Scene1: applying Workaround for the first attachment(dummy-cdi-web-test.tar.gz)

After directly putting weld.faces-config.xml into META-INF/ directory of the WAB, deploying the WAB(asadmin deploy --type=osgi D:\20130125\GLASSFISH-15225\dummy-web\target\dummy-web.war) has fatal exception as following:

[2013-03-26T17:10:19.234+0900] [glassfish 4.0] [SEVERE] [] [javax.enterprise.resource.webcontainer.jsf.config] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364285419234] [levelValue: 1000] [[
Critical error during deployment:
com.sun.faces.config.ConfigurationException:
Source Document: bundle://297.0:0/META-INF/weld.faces-config.xml
Cause: Unable to create a new instance of 'org.jboss.weld.jsf.WeldPhaseListener': javax.faces.FacesException: org.jboss.weld.jsf.WeldPhaseListener
at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:353)
at com.sun.faces.config.processor.LifecycleConfigProcessor.addPhaseListeners(LifecycleConfigProcessor.java:132)
at com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:111)
at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:152)
at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:239)
at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:424)
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:214)
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)
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:2279)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1925)
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.osgijavaeebase.OSGiDeploymentRequest.deploy(OSGiDeploymentRequest.java:185)
at org.glassfish.osgijavaeebase.OSGiDeploymentRequest.execute(OSGiDeploymentRequest.java:120)
at org.glassfish.osgijavaeebase.AbstractOSGiDeployer.deploy(AbstractOSGiDeployer.java:123)
at org.glassfish.osgijavaeebase.OSGiContainer.deploy(OSGiContainer.java:154)
at org.glassfish.osgijavaeebase.JavaEEExtender.deploy(JavaEEExtender.java:109)
at org.glassfish.osgijavaeebase.JavaEEExtender.access$200(JavaEEExtender.java:61)
at org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.call(JavaEEExtender.java:153)
at org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.call(JavaEEExtender.java:150)
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:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
Caused by: javax.faces.FacesException: org.jboss.weld.jsf.WeldPhaseListener
at com.sun.faces.config.processor.AbstractConfigProcessor.loadClass(AbstractConfigProcessor.java:384)
at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:278)
... 34 more
Caused by: java.lang.ClassNotFoundException: org.jboss.weld.jsf.WeldPhaseListener
at java.lang.ClassLoader.findClass(ClassLoader.java:522)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at com.sun.enterprise.v3.server.APIClassLoaderServiceImpl$APIClassLoader.loadClass(APIClassLoaderServiceImpl.java:257)
at com.sun.enterprise.v3.server.APIClassLoaderServiceImpl$APIClassLoader.loadClass(APIClassLoaderServiceImpl.java:222)
at org.glassfish.osgiweb.OSGiWebDeploymentContext$WABClassLoader.loadClass(OSGiWebDeploymentContext.java:170)
at org.glassfish.osgiweb.OSGiWebDeploymentContext$WABClassLoader.loadClass(OSGiWebDeploymentContext.java:153)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at com.sun.faces.util.Util.loadClass(Util.java:301)
at com.sun.faces.config.processor.AbstractConfigProcessor.loadClass(AbstractConfigProcessor.java:376)
... 35 more
]]

[2013-03-26T17:10:19.234+0900] [glassfish 4.0] [SEVERE] [AS-WEB-CORE-00174] [javax.enterprise.web.core] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364285419234] [levelValue: 1000] [[
Startup of context /dummy-web failed due to previous errors]]

[2013-03-26T17:10:19.234+0900] [glassfish 4.0] [SEVERE] [AS-WEB-CORE-00175] [javax.enterprise.web.core] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364285419234] [levelValue: 1000] [[
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:2279)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1925)
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.osgijavaeebase.OSGiDeploymentRequest.deploy(OSGiDeploymentRequest.java:185)
at org.glassfish.osgijavaeebase.OSGiDeploymentRequest.execute(OSGiDeploymentRequest.java:120)
at org.glassfish.osgijavaeebase.AbstractOSGiDeployer.deploy(AbstractOSGiDeployer.java:123)
at org.glassfish.osgijavaeebase.OSGiContainer.deploy(OSGiContainer.java:154)
at org.glassfish.osgijavaeebase.JavaEEExtender.deploy(JavaEEExtender.java:109)
at org.glassfish.osgijavaeebase.JavaEEExtender.access$200(JavaEEExtender.java:61)
at org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.call(JavaEEExtender.java:153)
at org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.call(JavaEEExtender.java:150)
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:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
]]

[2013-03-26T17:10:19.234+0900] [glassfish 4.0] [SEVERE] [AS-WEB-CORE-00108] [javax.enterprise.web.core] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364285419234] [levelValue: 1000] [[
ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException:
Source Document: bundle://297.0:0/META-INF/weld.faces-config.xml
Cause: Unable to create a new instance of 'org.jboss.weld.jsf.WeldPhaseListener': javax.faces.FacesException: org.jboss.weld.jsf.WeldPhaseListener
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:2279)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1925)
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.osgijavaeebase.OSGiDeploymentRequest.deploy(OSGiDeploymentRequest.java:185)
at org.glassfish.osgijavaeebase.OSGiDeploymentRequest.execute(OSGiDeploymentRequest.java:120)
at org.glassfish.osgijavaeebase.AbstractOSGiDeployer.deploy(AbstractOSGiDeployer.java:123)
at org.glassfish.osgijavaeebase.OSGiContainer.deploy(OSGiContainer.java:154)
at org.glassfish.osgijavaeebase.JavaEEExtender.deploy(JavaEEExtender.java:109)
at org.glassfish.osgijavaeebase.JavaEEExtender.access$200(JavaEEExtender.java:61)
at org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.call(JavaEEExtender.java:153)
at org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.call(JavaEEExtender.java:150)
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:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException:
Source Document: bundle://297.0:0/META-INF/weld.faces-config.xml
Cause: Unable to create a new instance of 'org.jboss.weld.jsf.WeldPhaseListener': javax.faces.FacesException: org.jboss.weld.jsf.WeldPhaseListener
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:273)
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)
... 25 more
Caused by: com.sun.faces.config.ConfigurationException:
Source Document: bundle://297.0:0/META-INF/weld.faces-config.xml
Cause: Unable to create a new instance of 'org.jboss.weld.jsf.WeldPhaseListener': javax.faces.FacesException: org.jboss.weld.jsf.WeldPhaseListener
at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:353)
at com.sun.faces.config.processor.LifecycleConfigProcessor.addPhaseListeners(LifecycleConfigProcessor.java:132)
at com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:111)
at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:152)
at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:239)
at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:424)
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:214)
... 28 more
Caused by: javax.faces.FacesException: org.jboss.weld.jsf.WeldPhaseListener
at com.sun.faces.config.processor.AbstractConfigProcessor.loadClass(AbstractConfigProcessor.java:384)
at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:278)
... 34 more
Caused by: java.lang.ClassNotFoundException: org.jboss.weld.jsf.WeldPhaseListener
at java.lang.ClassLoader.findClass(ClassLoader.java:522)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at com.sun.enterprise.v3.server.APIClassLoaderServiceImpl$APIClassLoader.loadClass(APIClassLoaderServiceImpl.java:257)
at com.sun.enterprise.v3.server.APIClassLoaderServiceImpl$APIClassLoader.loadClass(APIClassLoaderServiceImpl.java:222)
at org.glassfish.osgiweb.OSGiWebDeploymentContext$WABClassLoader.loadClass(OSGiWebDeploymentContext.java:170)
at org.glassfish.osgiweb.OSGiWebDeploymentContext$WABClassLoader.loadClass(OSGiWebDeploymentContext.java:153)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at com.sun.faces.util.Util.loadClass(Util.java:301)
at com.sun.faces.config.processor.AbstractConfigProcessor.loadClass(AbstractConfigProcessor.java:376)
... 35 more
]]

[2013-03-26T17:10:19.234+0900] [glassfish 4.0] [WARNING] [] [javax.enterprise.web] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364285419234] [levelValue: 900] [[
java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException:
Source Document: bundle://297.0:0/META-INF/weld.faces-config.xml
Cause: Unable to create a new instance of 'org.jboss.weld.jsf.WeldPhaseListener': javax.faces.FacesException: org.jboss.weld.jsf.WeldPhaseListener
java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException:
Source Document: bundle://297.0:0/META-INF/weld.faces-config.xml
Cause: Unable to create a new instance of 'org.jboss.weld.jsf.WeldPhaseListener': javax.faces.FacesException: org.jboss.weld.jsf.WeldPhaseListener
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:2279)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1925)
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.osgijavaeebase.OSGiDeploymentRequest.deploy(OSGiDeploymentRequest.java:185)
at org.glassfish.osgijavaeebase.OSGiDeploymentRequest.execute(OSGiDeploymentRequest.java:120)
at org.glassfish.osgijavaeebase.AbstractOSGiDeployer.deploy(AbstractOSGiDeployer.java:123)
at org.glassfish.osgijavaeebase.OSGiContainer.deploy(OSGiContainer.java:154)
at org.glassfish.osgijavaeebase.JavaEEExtender.deploy(JavaEEExtender.java:109)
at org.glassfish.osgijavaeebase.JavaEEExtender.access$200(JavaEEExtender.java:61)
at org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.call(JavaEEExtender.java:153)
at org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.call(JavaEEExtender.java:150)
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:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
]]

[2013-03-26T17:10:19.234+0900] [glassfish 4.0] [SEVERE] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364285419234] [levelValue: 1000] [[
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.RuntimeException: com.sun.faces.config.ConfigurationException:
Source Document: bundle://297.0:0/META-INF/weld.faces-config.xml
Cause: Unable to create a new instance of 'org.jboss.weld.jsf.WeldPhaseListener': javax.faces.FacesException: org.jboss.weld.jsf.WeldPhaseListener
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.osgijavaeebase.OSGiDeploymentRequest.deploy(OSGiDeploymentRequest.java:185)
at org.glassfish.osgijavaeebase.OSGiDeploymentRequest.execute(OSGiDeploymentRequest.java:120)
at org.glassfish.osgijavaeebase.AbstractOSGiDeployer.deploy(AbstractOSGiDeployer.java:123)
at org.glassfish.osgijavaeebase.OSGiContainer.deploy(OSGiContainer.java:154)
at org.glassfish.osgijavaeebase.JavaEEExtender.deploy(JavaEEExtender.java:109)
at org.glassfish.osgijavaeebase.JavaEEExtender.access$200(JavaEEExtender.java:61)
at org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.call(JavaEEExtender.java:153)
at org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.call(JavaEEExtender.java:150)
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:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
]]

[2013-03-26T17:10:19.234+0900] [glassfish 4.0] [SEVERE] [NCLS-CORE-00026] [javax.enterprise.system.core] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364285419234] [levelValue: 1000] [[
Exception during lifecycle processing
java.lang.Exception: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException:
Source Document: bundle://297.0:0/META-INF/weld.faces-config.xml
Cause: Unable to create a new instance of 'org.jboss.weld.jsf.WeldPhaseListener': javax.faces.FacesException: org.jboss.weld.jsf.WeldPhaseListener
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.osgijavaeebase.OSGiDeploymentRequest.deploy(OSGiDeploymentRequest.java:185)
at org.glassfish.osgijavaeebase.OSGiDeploymentRequest.execute(OSGiDeploymentRequest.java:120)
at org.glassfish.osgijavaeebase.AbstractOSGiDeployer.deploy(AbstractOSGiDeployer.java:123)
at org.glassfish.osgijavaeebase.OSGiContainer.deploy(OSGiContainer.java:154)
at org.glassfish.osgijavaeebase.JavaEEExtender.deploy(JavaEEExtender.java:109)
at org.glassfish.osgijavaeebase.JavaEEExtender.access$200(JavaEEExtender.java:61)
at org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.call(JavaEEExtender.java:153)
at org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.call(JavaEEExtender.java:150)
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:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
]]

[2013-03-26T17:10:19.234+0900] [glassfish 4.0] [SEVERE] [] [javax.enterprise.system.core] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364285419234] [levelValue: 1000] [[
Exception while loading the app]]

[2013-03-26T17:10:19.234+0900] [glassfish 4.0] [SEVERE] [AS-WEB-GLUE-00192] [javax.enterprise.web] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364285419234] [levelValue: 1000] [[
Undeployment failed for context /dummy-web]]

[2013-03-26T17:10:19.343+0900] [glassfish 4.0] [INFO] [] [org.glassfish.osgijavaeebase] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364285419343] [levelValue: 800] [[
Deleted D:\20130125\glassfish9\glassfish4\glassfish\domains\domain1\osgi-cache\felix\bundle292\data\applications\bundle297-1364285417875]]

[2013-03-26T17:10:19.343+0900] [glassfish 4.0] [SEVERE] [] [org.glassfish.osgijavaeebase] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364285419343] [levelValue: 1000] [[
Failed while deploying bundle org.glassfish.osgi.dummy-web [297]]]

[2013-03-26T17:10:19.343+0900] [glassfish 4.0] [INFO] [] [org.glassfish.osgiweb] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364285419343] [levelValue: 800] [[
Removed bundle 297 against context path /dummy-web ]]

[2013-03-26T17:10:19.343+0900] [glassfish 4.0] [WARNING] [] [org.glassfish.osgijavaeebase] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364285419343] [levelValue: 900] [[
Failed to deploy bundle org.glassfish.osgi.dummy-web [297]
org.glassfish.osgijavaeebase.DeploymentException: Deployment of org.glassfish.osgi.dummy-web [297] failed because of following reason: Failed while deploying bundle org.glassfish.osgi.dummy-web [297] : java.lang.RuntimeException: Failed to deploy bundle [ org.glassfish.osgi.dummy-web [297] ], root cause: Exception while loading the app
at org.glassfish.osgijavaeebase.AbstractOSGiDeployer.deploy(AbstractOSGiDeployer.java:127)
at org.glassfish.osgijavaeebase.OSGiContainer.deploy(OSGiContainer.java:154)
at org.glassfish.osgijavaeebase.JavaEEExtender.deploy(JavaEEExtender.java:109)
at org.glassfish.osgijavaeebase.JavaEEExtender.access$200(JavaEEExtender.java:61)
at org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.call(JavaEEExtender.java:153)
at org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.call(JavaEEExtender.java:150)
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:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.RuntimeException: Failed to deploy bundle [ org.glassfish.osgi.dummy-web [297] ], root cause: Exception while loading the app
at org.glassfish.osgijavaeebase.OSGiDeploymentRequest.deploy(OSGiDeploymentRequest.java:198)
at org.glassfish.osgijavaeebase.OSGiDeploymentRequest.execute(OSGiDeploymentRequest.java:120)
at org.glassfish.osgijavaeebase.AbstractOSGiDeployer.deploy(AbstractOSGiDeployer.java:123)
... 10 more
Caused by: java.lang.Exception: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException:
Source Document: bundle://297.0:0/META-INF/weld.faces-config.xml
Cause: Unable to create a new instance of 'org.jboss.weld.jsf.WeldPhaseListener': javax.faces.FacesException: org.jboss.weld.jsf.WeldPhaseListener
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.osgijavaeebase.OSGiDeploymentRequest.deploy(OSGiDeploymentRequest.java:185)
... 12 more
]]

Scene2: putting the second attachment(dummy-web.war) into "autodeploy\bundles"

More exceptions happened in the server.log as following:

[2013-03-26T16:57:59.890+0900] [glassfish 4.0] [INFO] [] [org.glassfish.osgiejb] [tid: _ThreadID=84 _ThreadName=fileinstall-D:\20130125\glassfish9\glassfish4\glassfish\domains\domain1/autodeploy/bundles/] [timeMillis: 1364284679890] [levelValue: 800] [[
removedService: Found 0 no. of EJBs]]

[2013-03-26T16:57:59.906+0900] [glassfish 4.0] [INFO] [] [] [tid: _ThreadID=178 _ThreadName=Thread-3] [timeMillis: 1364284679906] [levelValue: 800] [[

    • BatchRuntimeHelper:: App Undeployed: null]]

[2013-03-26T16:57:59.921+0900] [glassfish 4.0] [INFO] [] [org.glassfish.osgijavaeebase] [tid: _ThreadID=84 _ThreadName=fileinstall-D:\20130125\glassfish9\glassfish4\glassfish\domains\domain1/autodeploy/bundles/] [timeMillis: 1364284679921] [levelValue: 800] [[
Deleted D:\20130125\glassfish9\glassfish4\glassfish\domains\domain1\osgi-cache\felix\bundle292\data\applications\bundle296-1364284644890]]

[2013-03-26T16:57:59.921+0900] [glassfish 4.0] [INFO] [] [org.glassfish.osgijavaeebase] [tid: _ThreadID=84 _ThreadName=fileinstall-D:\20130125\glassfish9\glassfish4\glassfish\domains\domain1/autodeploy/bundles/] [timeMillis: 1364284679921] [levelValue: 800] [[
Undeployed bundle org.glassfish.osgi.dummy-web [296]]]

[2013-03-26T16:58:00.406+0900] [glassfish 4.0] [INFO] [] [] [tid: _ThreadID=84 _ThreadName=Thread-3] [timeMillis: 1364284680406] [levelValue: 800] [[
Updated D:\20130125\glassfish9\glassfish4\glassfish\domains\domain1\autodeploy\bundles\dummy-web.war]]

[2013-03-26T16:58:00.406+0900] [glassfish 4.0] [INFO] [] [] [tid: _ThreadID=84 _ThreadName=Thread-3] [timeMillis: 1364284680406] [levelValue: 800] [[
Started bundle: file:/D:/20130125/glassfish9/glassfish4/glassfish/domains/domain1/autodeploy/bundles/dummy-web.war]]

[2013-03-26T16:58:00.781+0900] [glassfish 4.0] [INFO] [] [org.glassfish.osgijavaeebase] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284680781] [levelValue: 800] [[
Expanded at file:/D:/20130125/glassfish9/glassfish4/glassfish/domains/domain1/osgi-cache/felix/bundle292/data/applications/bundle296-1364284680250/]]

[2013-03-26T16:58:00.937+0900] [glassfish 4.0] [INFO] [] [org.glassfish.osgiweb] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284680937] [levelValue: 800] [[
uris = file:/D:/20130125/glassfish9/glassfish4/glassfish/domains/domain1/osgi-cache/felix/bundle292/data/applications/bundle296-1364284680250/WEB-INF/classes/, file:/D:/20130125/glassfish9/glassfish4/glassfish/domains/domain1/osgi-cache/felix/bundle292/data/applications/bundle296-1364284680250/WEB-INF/lib/Bundle296.jar, file:/D:/20130125/glassfish9/glassfish4/glassfish/domains/domain1/osgi-cache/felix/bundle292/data/applications/bundle296-1364284680250/WEB-INF/lib/primefaces-2.1.jar]]

[2013-03-26T16:58:01.625+0900] [glassfish 4.0] [INFO] [] [org.glassfish.osgiweb] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681625] [levelValue: 800] [[
total number of classes with faces annotation = 0]]

[2013-03-26T16:58:01.656+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681656] [levelValue: 900] [[
Unable to load class org.primefaces.component.captcha.CaptchaValidator, reason: java.lang.NoClassDefFoundError: javax/faces/validator/Validator]]

[2013-03-26T16:58:01.656+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681656] [levelValue: 900] [[
Unable to load class org.primefaces.touch.component.view.View, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIComponentBase]]

[2013-03-26T16:58:01.656+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681656] [levelValue: 900] [[
Unable to load class org.primefaces.component.imageswitch.ImageSwitch, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIComponentBase]]

[2013-03-26T16:58:01.656+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681656] [levelValue: 900] [[
Unable to load class org.primefaces.component.growl.Growl, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIComponentBase]]

[2013-03-26T16:58:01.656+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681656] [levelValue: 900] [[
Unable to load class org.primefaces.component.column.Column, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIColumn]]

[2013-03-26T16:58:01.656+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681656] [levelValue: 900] [[
Unable to load class org.primefaces.touch.component.inputswitch.InputSwitch, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIInput]]

[2013-03-26T16:58:01.656+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681656] [levelValue: 900] [[
Unable to load class org.primefaces.component.slider.Slider, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIOutput]]

[2013-03-26T16:58:01.656+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681656] [levelValue: 900] [[
Unable to load class org.primefaces.component.focus.Focus, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIComponentBase]]

[2013-03-26T16:58:01.656+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681656] [levelValue: 900] [[
Unable to load class org.primefaces.component.graphictext.GraphicText, reason: java.lang.NoClassDefFoundError: javax/faces/component/html/HtmlGraphicImage]]

[2013-03-26T16:58:01.656+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681656] [levelValue: 900] [[
Unable to load class org.primefaces.component.dnd.Draggable, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIComponentBase]]

[2013-03-26T16:58:01.656+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681656] [levelValue: 900] [[
Unable to load class org.primefaces.component.spreadsheet.Spreadsheet, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIComponentBase]]

[2013-03-26T16:58:01.656+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681656] [levelValue: 900] [[
Unable to load class org.primefaces.component.chart.stackedcolumn.StackedColumnChart, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIComponentBase]]

[2013-03-26T16:58:01.656+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681656] [levelValue: 900] [[
Unable to load class org.primefaces.component.layout.Layout, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIPanel]]

[2013-03-26T16:58:01.671+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681671] [levelValue: 900] [[
Unable to load class org.primefaces.touch.component.application.Application, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIComponentBase]]

[2013-03-26T16:58:01.671+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681671] [levelValue: 900] [[
Unable to load class org.primefaces.component.layout.LayoutUnit, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIComponentBase]]

[2013-03-26T16:58:01.671+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681671] [levelValue: 900] [[
Unable to load class org.primefaces.component.idlemonitor.IdleMonitor, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIComponentBase]]

[2013-03-26T16:58:01.671+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681671] [levelValue: 900] [[
Unable to load class org.primefaces.component.panel.Panel, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIPanel]]

[2013-03-26T16:58:01.671+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681671] [levelValue: 900] [[
Unable to load class org.primefaces.component.fileupload.FileUpload, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIComponentBase]]

[2013-03-26T16:58:01.671+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681671] [levelValue: 900] [[
Unable to load class org.primefaces.component.dnd.Droppable, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIComponentBase]]

[2013-03-26T16:58:01.671+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681671] [levelValue: 900] [[
Unable to load class org.primefaces.component.resource.Resource, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIComponentBase]]

[2013-03-26T16:58:01.671+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681671] [levelValue: 900] [[
Unable to load class org.primefaces.touch.component.rowitem.RowItem, reason: java.lang.NoClassDefFoundError: javax/faces/component/UICommand]]

[2013-03-26T16:58:01.671+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681671] [levelValue: 900] [[
Unable to load class org.primefaces.component.menu.Menu, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIComponentBase]]

[2013-03-26T16:58:01.671+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681671] [levelValue: 900] [[
Unable to load class org.primefaces.component.messages.Messages, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIComponentBase]]

[2013-03-26T16:58:01.671+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681671] [levelValue: 900] [[
Unable to load class org.primefaces.component.chart.series.ChartSeries, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIOutput]]

[2013-03-26T16:58:01.671+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681671] [levelValue: 900] [[
Unable to load class org.primefaces.component.themeswitcher.ThemeSwitcher, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIComponentBase]]

[2013-03-26T16:58:01.671+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681671] [levelValue: 900] [[
Unable to load class org.primefaces.component.chart.column.ColumnChart, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIComponentBase]]

[2013-03-26T16:58:01.671+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681671] [levelValue: 900] [[
Unable to load class org.primefaces.component.tree.UITreeNode, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIComponentBase]]

[2013-03-26T16:58:01.671+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681671] [levelValue: 900] [[
Unable to load class org.primefaces.component.linkbutton.LinkButton, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIOutput]]

[2013-03-26T16:58:01.671+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681671] [levelValue: 900] [[
Unable to load class org.primefaces.touch.component.rowgroup.RowGroup, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIComponentBase]]

[2013-03-26T16:58:01.671+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681671] [levelValue: 900] [[
Unable to load class org.primefaces.component.notificationbar.NotificationBar, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIComponentBase]]

[2013-03-26T16:58:01.687+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681687] [levelValue: 900] [[
Unable to load class org.primefaces.component.inplace.Inplace, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIComponentBase]]

[2013-03-26T16:58:01.687+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681687] [levelValue: 900] [[
Unable to load class org.primefaces.component.picklist.PickList, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIInput]]

[2013-03-26T16:58:01.687+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681687] [levelValue: 900] [[
Unable to load class org.primefaces.component.tabview.TabView, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIComponentBase]]

[2013-03-26T16:58:01.687+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681687] [levelValue: 900] [[
Unable to load class org.primefaces.touch.component.tableview.TableView, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIComponentBase]]

[2013-03-26T16:58:01.687+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681687] [levelValue: 900] [[
Unable to load class org.primefaces.component.contextmenu.ContextMenu, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIComponentBase]]

[2013-03-26T16:58:01.687+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681687] [levelValue: 900] [[
Unable to load class org.primefaces.component.confirmdialog.ConfirmDialog, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIPanel]]

[2013-03-26T16:58:01.687+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681687] [levelValue: 900] [[
Unable to load class org.primefaces.component.commandbutton.CommandButton, reason: java.lang.NoClassDefFoundError: javax/faces/component/html/HtmlCommandButton]]

[2013-03-26T16:58:01.687+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681687] [levelValue: 900] [[
Unable to load class org.primefaces.component.menubutton.MenuButton, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIComponentBase]]

[2013-03-26T16:58:01.687+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681687] [levelValue: 900] [[
Unable to load class org.primefaces.component.keyboard.Keyboard, reason: java.lang.NoClassDefFoundError: javax/faces/component/html/HtmlInputText]]

[2013-03-26T16:58:01.687+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681687] [levelValue: 900] [[
Unable to load class org.primefaces.component.rating.Rating, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIInput]]

[2013-03-26T16:58:01.687+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681687] [levelValue: 900] [[
Unable to load class org.primefaces.component.progressbar.ProgressBar, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIComponentBase]]

[2013-03-26T16:58:01.687+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681687] [levelValue: 900] [[
Unable to load class org.primefaces.component.schedule.Schedule, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIComponentBase]]

[2013-03-26T16:58:01.687+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681687] [levelValue: 900] [[
Unable to load class org.primefaces.component.remotecommand.RemoteCommand, reason: java.lang.NoClassDefFoundError: javax/faces/component/UICommand]]

[2013-03-26T16:58:01.687+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681687] [levelValue: 900] [[
Unable to load class org.primefaces.component.breadcrumb.BreadCrumb, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIComponentBase]]

[2013-03-26T16:58:01.687+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681687] [levelValue: 900] [[
Unable to load class org.primefaces.component.terminal.Terminal, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIComponentBase]]

[2013-03-26T16:58:01.687+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681687] [levelValue: 900] [[
Unable to load class org.primefaces.component.schedule.ScheduleEventDialog, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIPanel]]

[2013-03-26T16:58:01.687+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681687] [levelValue: 900] [[
Unable to load class org.primefaces.touch.component.navbarcontrol.NavBarControl, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIComponentBase]]

[2013-03-26T16:58:01.687+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681687] [levelValue: 900] [[
Unable to load class org.primefaces.component.tabslider.TabSlider, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIComponentBase]]

[2013-03-26T16:58:01.703+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681703] [levelValue: 900] [[
Unable to load class org.primefaces.component.poll.Poll, reason: java.lang.NoClassDefFoundError: javax/faces/component/UICommand]]

[2013-03-26T16:58:01.703+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681703] [levelValue: 900] [[
Unable to load class org.primefaces.component.imagecropper.ImageCropper, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIInput]]

[2013-03-26T16:58:01.703+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681703] [levelValue: 900] [[
Unable to load class org.primefaces.component.chart.bar.BarChart, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIComponentBase]]

[2013-03-26T16:58:01.703+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681703] [levelValue: 900] [[
Unable to load class org.primefaces.component.menuitem.MenuItem, reason: java.lang.NoClassDefFoundError: javax/faces/component/UICommand]]

[2013-03-26T16:58:01.703+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681703] [levelValue: 900] [[
Unable to load class org.primefaces.component.chart.stackedbar.StackedBarChart, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIComponentBase]]

[2013-03-26T16:58:01.703+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681703] [levelValue: 900] [[
Unable to load class org.primefaces.component.resizable.Resizable, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIComponentBase]]

[2013-03-26T16:58:01.703+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681703] [levelValue: 900] [[
Unable to load class org.primefaces.component.menubar.Menubar, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIComponentBase]]

[2013-03-26T16:58:01.703+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681703] [levelValue: 900] [[
Unable to load class org.primefaces.component.chart.line.LineChart, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIComponentBase]]

[2013-03-26T16:58:01.703+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681703] [levelValue: 900] [[
Unable to load class org.primefaces.component.inputmask.InputMask, reason: java.lang.NoClassDefFoundError: javax/faces/component/html/HtmlInputText]]

[2013-03-26T16:58:01.703+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681703] [levelValue: 900] [[
Unable to load class org.primefaces.component.uiajax.UIAjax, reason: java.lang.NoClassDefFoundError: javax/faces/component/UICommand]]

[2013-03-26T16:58:01.703+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681703] [levelValue: 900] [[
Unable to load class org.primefaces.component.autocomplete.AutoComplete, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIInput]]

[2013-03-26T16:58:01.703+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681703] [levelValue: 900] [[
Unable to load class org.primefaces.component.accordionpanel.AccordionPanel, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIPanel]]

[2013-03-26T16:58:01.718+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681718] [levelValue: 900] [[
Unable to load class org.primefaces.component.lightbox.LightBox, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIComponentBase]]

[2013-03-26T16:58:01.718+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681718] [levelValue: 900] [[
Unable to load class org.primefaces.component.spinner.Spinner, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIInput]]

[2013-03-26T16:58:01.718+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681718] [levelValue: 900] [[
Unable to load class org.primefaces.component.watermark.Watermark, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIComponentBase]]

[2013-03-26T16:58:01.718+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681718] [levelValue: 900] [[
Unable to load class org.primefaces.component.datalist.DataList, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIData]]

[2013-03-26T16:58:01.718+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681718] [levelValue: 900] [[
Unable to load class org.primefaces.component.chart.pie.PieChart, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIComponentBase]]

[2013-03-26T16:58:01.718+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681718] [levelValue: 900] [[
Unable to load class org.primefaces.component.treetable.TreeTable, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIData]]

[2013-03-26T16:58:01.718+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681718] [levelValue: 900] [[
Unable to load class org.primefaces.component.ajaxstatus.AjaxStatus, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIComponentBase]]

[2013-03-26T16:58:01.718+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681718] [levelValue: 900] [[
Unable to load class org.primefaces.component.captcha.Captcha, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIInput]]

[2013-03-26T16:58:01.718+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681718] [levelValue: 900] [[
Unable to load class org.primefaces.component.commandlink.CommandLink, reason: java.lang.NoClassDefFoundError: javax/faces/component/html/HtmlCommandLink]]

[2013-03-26T16:58:01.718+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681718] [levelValue: 900] [[
Unable to load class org.primefaces.component.dashboard.Dashboard, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIPanel]]

[2013-03-26T16:58:01.718+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681718] [levelValue: 900] [[
Unable to load class org.primefaces.component.gmap.GMapInfoWindow, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIComponentBase]]

[2013-03-26T16:58:01.718+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681718] [levelValue: 900] [[
Unable to load class org.primefaces.component.stack.Stack, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIComponentBase]]

[2013-03-26T16:58:01.718+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681718] [levelValue: 900] [[
Unable to load class org.primefaces.component.outputpanel.OutputPanel, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIPanel]]

[2013-03-26T16:58:01.734+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681734] [levelValue: 900] [[
Unable to load class org.primefaces.component.dock.Dock, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIComponentBase]]

[2013-03-26T16:58:01.734+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681734] [levelValue: 900] [[
Unable to load class org.primefaces.component.effect.Effect, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIComponentBase]]

[2013-03-26T16:58:01.734+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681734] [levelValue: 900] [[
Unable to load class org.primefaces.component.datagrid.DataGrid, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIData]]

[2013-03-26T16:58:01.734+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681734] [levelValue: 900] [[
Unable to load class org.primefaces.component.tabview.Tab, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIComponentBase]]

[2013-03-26T16:58:01.734+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681734] [levelValue: 900] [[
Unable to load class org.primefaces.component.carousel.Carousel, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIData]]

[2013-03-26T16:58:01.734+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681734] [levelValue: 900] [[
Unable to load class org.primefaces.component.editor.Editor, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIInput]]

[2013-03-26T16:58:01.734+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681734] [levelValue: 900] [[
Unable to load class org.primefaces.component.calendar.Calendar, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIInput]]

[2013-03-26T16:58:01.734+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681734] [levelValue: 900] [[
Unable to load class org.primefaces.component.password.Password, reason: java.lang.NoClassDefFoundError: javax/faces/component/html/HtmlInputText]]

[2013-03-26T16:58:01.734+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681734] [levelValue: 900] [[
Unable to load class org.primefaces.component.dialog.Dialog, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIPanel]]

[2013-03-26T16:58:01.734+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681734] [levelValue: 900] [[
Unable to load class org.primefaces.component.resources.Resources, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIComponentBase]]

[2013-03-26T16:58:01.734+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681734] [levelValue: 900] [[
Unable to load class org.primefaces.component.push.Push, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIComponentBase]]

[2013-03-26T16:58:01.734+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681734] [levelValue: 900] [[
Unable to load class org.primefaces.component.wizard.Wizard, reason: java.lang.NoClassDefFoundError: javax/faces/component/NamingContainer]]

[2013-03-26T16:58:01.734+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681734] [levelValue: 900] [[
Unable to load class org.primefaces.component.message.Message, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIComponentBase]]

[2013-03-26T16:58:01.734+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681734] [levelValue: 900] [[
Unable to load class org.primefaces.component.media.Media, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIComponentBase]]

[2013-03-26T16:58:01.734+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681734] [levelValue: 900] [[
Unable to load class org.primefaces.component.graphicimage.GraphicImage, reason: java.lang.NoClassDefFoundError: javax/faces/component/html/HtmlGraphicImage]]

[2013-03-26T16:58:01.750+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681750] [levelValue: 900] [[
Unable to load class org.primefaces.component.tree.Tree, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIComponentBase]]

[2013-03-26T16:58:01.750+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681750] [levelValue: 900] [[
Unable to load class org.primefaces.component.tooltip.Tooltip, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIOutput]]

[2013-03-26T16:58:01.750+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681750] [levelValue: 900] [[
Unable to load class org.primefaces.component.colorpicker.ColorPicker, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIInput]]

[2013-03-26T16:58:01.750+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681750] [levelValue: 900] [[
Unable to load class org.primefaces.component.hotkey.Hotkey, reason: java.lang.NoClassDefFoundError: javax/faces/component/UICommand]]

[2013-03-26T16:58:01.750+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681750] [levelValue: 900] [[
Unable to load class org.primefaces.component.datatable.DataTable, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIData]]

[2013-03-26T16:58:01.750+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681750] [levelValue: 900] [[
Unable to load class org.primefaces.component.gmap.GMap, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIComponentBase]]

[2013-03-26T16:58:01.750+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681750] [levelValue: 900] [[
Unable to load class org.primefaces.component.printer.Printer, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIComponentBase]]

[2013-03-26T16:58:01.750+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681750] [levelValue: 900] [[
Unable to load class org.primefaces.component.submenu.Submenu, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIComponentBase]]

[2013-03-26T16:58:01.750+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681750] [levelValue: 900] [[
Unable to load class org.primefaces.component.spreadsheet.Sheet, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIData]]

[2013-03-26T16:58:01.750+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681750] [levelValue: 900] [[
Unable to load class org.primefaces.component.imagecompare.ImageCompare, reason: java.lang.NoClassDefFoundError: javax/faces/component/UIComponentBase]]

[2013-03-26T16:58:01.765+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681765] [levelValue: 900] [[
Unable to load class org.primefaces.renderkit.CoreRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.765+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681765] [levelValue: 900] [[
Unable to load class org.primefaces.renderkit.HeadRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.765+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681765] [levelValue: 900] [[
Unable to load class org.primefaces.component.accordionpanel.AccordionPanelRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.765+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681765] [levelValue: 900] [[
Unable to load class org.primefaces.component.ajaxstatus.AjaxStatusRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.765+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681765] [levelValue: 900] [[
Unable to load class org.primefaces.component.autocomplete.AutoCompleteRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.765+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681765] [levelValue: 900] [[
Unable to load class org.primefaces.component.breadcrumb.BreadCrumbRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.765+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681765] [levelValue: 900] [[
Unable to load class org.primefaces.component.calendar.CalendarRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.765+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681765] [levelValue: 900] [[
Unable to load class org.primefaces.component.captcha.CaptchaRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.765+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681765] [levelValue: 900] [[
Unable to load class org.primefaces.component.carousel.CarouselRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.765+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681765] [levelValue: 900] [[
Unable to load class org.primefaces.component.chart.BaseChartRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.765+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681765] [levelValue: 900] [[
Unable to load class org.primefaces.component.colorpicker.ColorPickerRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.765+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681765] [levelValue: 900] [[
Unable to load class org.primefaces.component.commandbutton.CommandButtonRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.765+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681765] [levelValue: 900] [[
Unable to load class org.primefaces.component.commandlink.CommandLinkRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.781+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681781] [levelValue: 900] [[
Unable to load class org.primefaces.component.confirmdialog.ConfirmDialogRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.781+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681781] [levelValue: 900] [[
Unable to load class org.primefaces.component.contextmenu.ContextMenuRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.781+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681781] [levelValue: 900] [[
Unable to load class org.primefaces.component.dashboard.DashboardRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.781+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681781] [levelValue: 900] [[
Unable to load class org.primefaces.component.datagrid.DataGridRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.781+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681781] [levelValue: 900] [[
Unable to load class org.primefaces.component.datalist.DataListRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.781+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681781] [levelValue: 900] [[
Unable to load class org.primefaces.component.datatable.DataTableRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.781+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681781] [levelValue: 900] [[
Unable to load class org.primefaces.component.dialog.DialogRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.781+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681781] [levelValue: 900] [[
Unable to load class org.primefaces.component.dnd.DraggableRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.781+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681781] [levelValue: 900] [[
Unable to load class org.primefaces.component.dnd.DroppableRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.781+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681781] [levelValue: 900] [[
Unable to load class org.primefaces.component.dock.DockRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.781+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681781] [levelValue: 900] [[
Unable to load class org.primefaces.component.editor.EditorRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.781+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681781] [levelValue: 900] [[
Unable to load class org.primefaces.component.effect.EffectRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.796+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681796] [levelValue: 900] [[
Unable to load class org.primefaces.component.fileupload.FileUploadRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.796+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681796] [levelValue: 900] [[
Unable to load class org.primefaces.component.focus.FocusRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.796+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681796] [levelValue: 900] [[
Unable to load class org.primefaces.component.gmap.GMapRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.796+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681796] [levelValue: 900] [[
Unable to load class org.primefaces.component.graphicimage.GraphicImageRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.812+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681812] [levelValue: 900] [[
Unable to load class org.primefaces.component.graphictext.GraphicTextRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.812+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681812] [levelValue: 900] [[
Unable to load class org.primefaces.component.growl.GrowlRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.812+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681812] [levelValue: 900] [[
Unable to load class org.primefaces.component.hotkey.HotkeyRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.812+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681812] [levelValue: 900] [[
Unable to load class org.primefaces.component.idlemonitor.IdleMonitorRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.812+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681812] [levelValue: 900] [[
Unable to load class org.primefaces.component.imagecompare.ImageCompareRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.812+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681812] [levelValue: 900] [[
Unable to load class org.primefaces.component.imagecropper.ImageCropperRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.812+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681812] [levelValue: 900] [[
Unable to load class org.primefaces.component.imageswitch.ImageSwitchRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.812+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681812] [levelValue: 900] [[
Unable to load class org.primefaces.component.inplace.InplaceRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.812+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681812] [levelValue: 900] [[
Unable to load class org.primefaces.component.inputmask.InputMaskRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.812+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681812] [levelValue: 900] [[
Unable to load class org.primefaces.component.keyboard.KeyboardRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.812+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681812] [levelValue: 900] [[
Unable to load class org.primefaces.component.layout.LayoutRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.812+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681812] [levelValue: 900] [[
Unable to load class org.primefaces.component.layout.LayoutUnitRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.812+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681812] [levelValue: 900] [[
Unable to load class org.primefaces.component.lightbox.LightBoxRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.828+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681828] [levelValue: 900] [[
Unable to load class org.primefaces.component.linkbutton.LinkButtonRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.828+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681828] [levelValue: 900] [[
Unable to load class org.primefaces.component.media.MediaRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.828+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681828] [levelValue: 900] [[
Unable to load class org.primefaces.component.menu.MenuRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.828+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681828] [levelValue: 900] [[
Unable to load class org.primefaces.component.menubar.MenubarRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.828+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681828] [levelValue: 900] [[
Unable to load class org.primefaces.component.menubutton.MenuButtonRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.828+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681828] [levelValue: 900] [[
Unable to load class org.primefaces.component.message.MessageRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.828+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681828] [levelValue: 900] [[
Unable to load class org.primefaces.component.messages.MessagesRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.828+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681828] [levelValue: 900] [[
Unable to load class org.primefaces.component.notificationbar.NotificationBarRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.828+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681828] [levelValue: 900] [[
Unable to load class org.primefaces.component.outputpanel.OutputPanelRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.828+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681828] [levelValue: 900] [[
Unable to load class org.primefaces.component.panel.PanelRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.828+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681828] [levelValue: 900] [[
Unable to load class org.primefaces.component.password.PasswordRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.843+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681843] [levelValue: 900] [[
Unable to load class org.primefaces.component.picklist.PickListRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.843+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681843] [levelValue: 900] [[
Unable to load class org.primefaces.component.poll.PollRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.843+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681843] [levelValue: 900] [[
Unable to load class org.primefaces.component.printer.PrinterRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.843+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681843] [levelValue: 900] [[
Unable to load class org.primefaces.component.progressbar.ProgressBarRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.843+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681843] [levelValue: 900] [[
Unable to load class org.primefaces.component.push.PushRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.843+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681843] [levelValue: 900] [[
Unable to load class org.primefaces.component.rating.RatingRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.843+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681843] [levelValue: 900] [[
Unable to load class org.primefaces.component.remotecommand.RemoteCommandRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.843+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681843] [levelValue: 900] [[
Unable to load class org.primefaces.component.resizable.ResizableRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.843+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681843] [levelValue: 900] [[
Unable to load class org.primefaces.component.resource.ResourceRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.843+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681843] [levelValue: 900] [[
Unable to load class org.primefaces.component.resources.ResourcesRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.843+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681843] [levelValue: 900] [[
Unable to load class org.primefaces.component.schedule.ScheduleEventDialogRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.843+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681843] [levelValue: 900] [[
Unable to load class org.primefaces.component.schedule.ScheduleRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.843+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681843] [levelValue: 900] [[
Unable to load class org.primefaces.component.slider.SliderRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.859+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681859] [levelValue: 900] [[
Unable to load class org.primefaces.component.spinner.SpinnerRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.859+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681859] [levelValue: 900] [[
Unable to load class org.primefaces.component.spreadsheet.SpreadsheetRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.859+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681859] [levelValue: 900] [[
Unable to load class org.primefaces.component.stack.StackRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.859+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681859] [levelValue: 900] [[
Unable to load class org.primefaces.component.tabslider.TabSliderRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.859+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681859] [levelValue: 900] [[
Unable to load class org.primefaces.component.tabview.TabViewRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.859+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681859] [levelValue: 900] [[
Unable to load class org.primefaces.component.terminal.TerminalRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.859+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681859] [levelValue: 900] [[
Unable to load class org.primefaces.component.themeswitcher.ThemeSwitcherRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.859+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681859] [levelValue: 900] [[
Unable to load class org.primefaces.component.tooltip.TooltipRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.859+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681859] [levelValue: 900] [[
Unable to load class org.primefaces.component.tree.TreeRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.859+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681859] [levelValue: 900] [[
Unable to load class org.primefaces.component.treetable.TreeTableRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.859+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681859] [levelValue: 900] [[
Unable to load class org.primefaces.component.uiajax.UIAjaxRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.859+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681859] [levelValue: 900] [[
Unable to load class org.primefaces.component.watermark.WatermarkRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.859+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681859] [levelValue: 900] [[
Unable to load class org.primefaces.component.wizard.WizardRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.875+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681875] [levelValue: 900] [[
Unable to load class org.primefaces.touch.component.application.ApplicationRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.875+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681875] [levelValue: 900] [[
Unable to load class org.primefaces.touch.component.inputswitch.InputSwitchRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.875+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681875] [levelValue: 900] [[
Unable to load class org.primefaces.touch.component.rowgroup.RowGroupRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.875+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681875] [levelValue: 900] [[
Unable to load class org.primefaces.touch.component.rowitem.RowItemRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.875+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681875] [levelValue: 900] [[
Unable to load class org.primefaces.touch.component.tableview.TableViewRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.875+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681875] [levelValue: 900] [[
Unable to load class org.primefaces.touch.component.view.ViewRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.875+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681875] [levelValue: 900] [[
Unable to load class org.primefaces.component.chart.bar.BarChartRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.875+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681875] [levelValue: 900] [[
Unable to load class org.primefaces.component.chart.column.ColumnChartRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.875+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681875] [levelValue: 900] [[
Unable to load class org.primefaces.component.chart.line.LineChartRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.875+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681875] [levelValue: 900] [[
Unable to load class org.primefaces.component.chart.pie.PieChartRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.890+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681890] [levelValue: 900] [[
Unable to load class org.primefaces.component.chart.stackedbar.StackedBarChartRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.890+0900] [glassfish 4.0] [WARNING] [AS-WEB-UTIL-00035] [javax.enterprise.web.util] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681890] [levelValue: 900] [[
Unable to load class org.primefaces.component.chart.stackedcolumn.StackedColumnChartRenderer, reason: java.lang.NoClassDefFoundError: javax/faces/render/Renderer]]

[2013-03-26T16:58:01.953+0900] [glassfish 4.0] [INFO] [jsf.config.listener.version] [javax.enterprise.resource.webcontainer.jsf.config] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681953] [levelValue: 800] [[
コンテキスト '/dummy-web' の Mojarra 2.2.0-m12 (-SNAPSHOT 20130320-0201 https://svn.java.net/svn/mojarra~svn/tags/2.2.0-m12@11773) を初期化します]]

[2013-03-26T16:58:01.953+0900] [glassfish 4.0] [INFO] [] [org.glassfish.osgiweb] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284681953] [levelValue: 800] [[
Faces Config uris excluding the ones named as faces-config.xml = [bundle://296.1:0/META-INF/weld.faces-config.xml]]]

[2013-03-26T16:58:02.140+0900] [glassfish 4.0] [SEVERE] [] [javax.enterprise.resource.webcontainer.jsf.config] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284682140] [levelValue: 1000] [[
Critical error during deployment:
com.sun.faces.config.ConfigurationException: Factory 'javax.faces.context.ExternalContextFactory' was not configured properly.
at com.sun.faces.config.processor.FactoryConfigProcessor.verifyFactoriesExist(FactoryConfigProcessor.java:330)
at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:236)
at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:424)
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:214)
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)
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:2279)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1925)
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.osgijavaeebase.OSGiDeploymentRequest.deploy(OSGiDeploymentRequest.java:185)
at org.glassfish.osgijavaeebase.OSGiDeploymentRequest.execute(OSGiDeploymentRequest.java:120)
at org.glassfish.osgijavaeebase.AbstractOSGiDeployer.deploy(AbstractOSGiDeployer.java:123)
at org.glassfish.osgijavaeebase.OSGiContainer.deploy(OSGiContainer.java:154)
at org.glassfish.osgijavaeebase.JavaEEExtender.deploy(JavaEEExtender.java:109)
at org.glassfish.osgijavaeebase.JavaEEExtender.access$200(JavaEEExtender.java:61)
at org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.call(JavaEEExtender.java:153)
at org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.call(JavaEEExtender.java:150)
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:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
Caused by: javax.faces.FacesException: org.primefaces.context.PrimeExternalContextFactory
at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:710)
at javax.faces.FactoryFinder.getImplementationInstance(FactoryFinder.java:572)
at javax.faces.FactoryFinder.access$500(FactoryFinder.java:140)
at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:1120)
at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:379)
at com.sun.faces.config.processor.FactoryConfigProcessor.verifyFactoriesExist(FactoryConfigProcessor.java:328)
... 31 more
Caused by: org.jboss.weld.exceptions.IllegalArgumentException: Exception message for key UNABLE_TO_FIND_CONSTRUCTOR not found due to String index out of range: -1
at org.jboss.weld.manager.InjectionTargetFactoryImpl.createInjectionTarget(InjectionTargetFactoryImpl.java:69)
at org.jboss.weld.manager.BeanManagerImpl.createInjectionTarget(BeanManagerImpl.java:1039)
at org.glassfish.weld.services.JCDIServiceImpl.injectManagedObject(JCDIServiceImpl.java:286)
at org.glassfish.faces.integration.GlassFishInjectionProvider.inject(GlassFishInjectionProvider.java:189)
at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:695)
... 36 more
Caused by: org.jboss.weld.exceptions.DefinitionException: Exception message for key UNABLE_TO_FIND_CONSTRUCTOR not found due to String index out of range: -1
at org.jboss.weld.util.Beans.getBeanConstructor(Beans.java:327)
at org.jboss.weld.injection.InjectionPointFactory.createConstructorInjectionPoint(InjectionPointFactory.java:161)
at org.jboss.weld.injection.producer.DefaultInstantiator.<init>(DefaultInstantiator.java:59)
at org.jboss.weld.injection.producer.BasicInjectionTarget.initInstantiator(BasicInjectionTarget.java:153)
at org.jboss.weld.injection.producer.BasicInjectionTarget.<init>(BasicInjectionTarget.java:70)
at org.jboss.weld.injection.producer.BeanInjectionTarget.<init>(BeanInjectionTarget.java:44)
at org.jboss.weld.manager.InjectionTargetFactoryImpl.createInjectionTarget(InjectionTargetFactoryImpl.java:80)
at org.jboss.weld.manager.InjectionTargetFactoryImpl.createInjectionTarget(InjectionTargetFactoryImpl.java:65)
... 40 more
]]

[2013-03-26T16:58:02.140+0900] [glassfish 4.0] [SEVERE] [AS-WEB-CORE-00174] [javax.enterprise.web.core] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284682140] [levelValue: 1000] [[
Startup of context /dummy-web failed due to previous errors]]

[2013-03-26T16:58:02.140+0900] [glassfish 4.0] [SEVERE] [AS-WEB-CORE-00175] [javax.enterprise.web.core] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284682140] [levelValue: 1000] [[
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:2279)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1925)
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.osgijavaeebase.OSGiDeploymentRequest.deploy(OSGiDeploymentRequest.java:185)
at org.glassfish.osgijavaeebase.OSGiDeploymentRequest.execute(OSGiDeploymentRequest.java:120)
at org.glassfish.osgijavaeebase.AbstractOSGiDeployer.deploy(AbstractOSGiDeployer.java:123)
at org.glassfish.osgijavaeebase.OSGiContainer.deploy(OSGiContainer.java:154)
at org.glassfish.osgijavaeebase.JavaEEExtender.deploy(JavaEEExtender.java:109)
at org.glassfish.osgijavaeebase.JavaEEExtender.access$200(JavaEEExtender.java:61)
at org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.call(JavaEEExtender.java:153)
at org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.call(JavaEEExtender.java:150)
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:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
]]

[2013-03-26T16:58:02.140+0900] [glassfish 4.0] [SEVERE] [AS-WEB-CORE-00108] [javax.enterprise.web.core] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284682140] [levelValue: 1000] [[
ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: Factory 'javax.faces.context.ExternalContextFactory' was not configured properly.
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:2279)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1925)
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.osgijavaeebase.OSGiDeploymentRequest.deploy(OSGiDeploymentRequest.java:185)
at org.glassfish.osgijavaeebase.OSGiDeploymentRequest.execute(OSGiDeploymentRequest.java:120)
at org.glassfish.osgijavaeebase.AbstractOSGiDeployer.deploy(AbstractOSGiDeployer.java:123)
at org.glassfish.osgijavaeebase.OSGiContainer.deploy(OSGiContainer.java:154)
at org.glassfish.osgijavaeebase.JavaEEExtender.deploy(JavaEEExtender.java:109)
at org.glassfish.osgijavaeebase.JavaEEExtender.access$200(JavaEEExtender.java:61)
at org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.call(JavaEEExtender.java:153)
at org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.call(JavaEEExtender.java:150)
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:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: Factory 'javax.faces.context.ExternalContextFactory' was not configured properly.
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:273)
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)
... 25 more
Caused by: com.sun.faces.config.ConfigurationException: Factory 'javax.faces.context.ExternalContextFactory' was not configured properly.
at com.sun.faces.config.processor.FactoryConfigProcessor.verifyFactoriesExist(FactoryConfigProcessor.java:330)
at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:236)
at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:424)
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:214)
... 28 more
Caused by: javax.faces.FacesException: org.primefaces.context.PrimeExternalContextFactory
at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:710)
at javax.faces.FactoryFinder.getImplementationInstance(FactoryFinder.java:572)
at javax.faces.FactoryFinder.access$500(FactoryFinder.java:140)
at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:1120)
at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:379)
at com.sun.faces.config.processor.FactoryConfigProcessor.verifyFactoriesExist(FactoryConfigProcessor.java:328)
... 31 more
Caused by: org.jboss.weld.exceptions.IllegalArgumentException: Exception message for key UNABLE_TO_FIND_CONSTRUCTOR not found due to String index out of range: -1
at org.jboss.weld.manager.InjectionTargetFactoryImpl.createInjectionTarget(InjectionTargetFactoryImpl.java:69)
at org.jboss.weld.manager.BeanManagerImpl.createInjectionTarget(BeanManagerImpl.java:1039)
at org.glassfish.weld.services.JCDIServiceImpl.injectManagedObject(JCDIServiceImpl.java:286)
at org.glassfish.faces.integration.GlassFishInjectionProvider.inject(GlassFishInjectionProvider.java:189)
at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:695)
... 36 more
Caused by: org.jboss.weld.exceptions.DefinitionException: Exception message for key UNABLE_TO_FIND_CONSTRUCTOR not found due to String index out of range: -1
at org.jboss.weld.util.Beans.getBeanConstructor(Beans.java:327)
at org.jboss.weld.injection.InjectionPointFactory.createConstructorInjectionPoint(InjectionPointFactory.java:161)
at org.jboss.weld.injection.producer.DefaultInstantiator.<init>(DefaultInstantiator.java:59)
at org.jboss.weld.injection.producer.BasicInjectionTarget.initInstantiator(BasicInjectionTarget.java:153)
at org.jboss.weld.injection.producer.BasicInjectionTarget.<init>(BasicInjectionTarget.java:70)
at org.jboss.weld.injection.producer.BeanInjectionTarget.<init>(BeanInjectionTarget.java:44)
at org.jboss.weld.manager.InjectionTargetFactoryImpl.createInjectionTarget(InjectionTargetFactoryImpl.java:80)
at org.jboss.weld.manager.InjectionTargetFactoryImpl.createInjectionTarget(InjectionTargetFactoryImpl.java:65)
... 40 more
]]

[2013-03-26T16:58:02.140+0900] [glassfish 4.0] [WARNING] [] [javax.enterprise.web] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284682140] [levelValue: 900] [[
java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: Factory 'javax.faces.context.ExternalContextFactory' was not configured properly.
java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: Factory 'javax.faces.context.ExternalContextFactory' was not configured properly.
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:2279)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1925)
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.osgijavaeebase.OSGiDeploymentRequest.deploy(OSGiDeploymentRequest.java:185)
at org.glassfish.osgijavaeebase.OSGiDeploymentRequest.execute(OSGiDeploymentRequest.java:120)
at org.glassfish.osgijavaeebase.AbstractOSGiDeployer.deploy(AbstractOSGiDeployer.java:123)
at org.glassfish.osgijavaeebase.OSGiContainer.deploy(OSGiContainer.java:154)
at org.glassfish.osgijavaeebase.JavaEEExtender.deploy(JavaEEExtender.java:109)
at org.glassfish.osgijavaeebase.JavaEEExtender.access$200(JavaEEExtender.java:61)
at org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.call(JavaEEExtender.java:153)
at org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.call(JavaEEExtender.java:150)
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:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
]]

[2013-03-26T16:58:02.140+0900] [glassfish 4.0] [SEVERE] [] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284682140] [levelValue: 1000] [[
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.RuntimeException: com.sun.faces.config.ConfigurationException: Factory 'javax.faces.context.ExternalContextFactory' was not configured properly.
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.osgijavaeebase.OSGiDeploymentRequest.deploy(OSGiDeploymentRequest.java:185)
at org.glassfish.osgijavaeebase.OSGiDeploymentRequest.execute(OSGiDeploymentRequest.java:120)
at org.glassfish.osgijavaeebase.AbstractOSGiDeployer.deploy(AbstractOSGiDeployer.java:123)
at org.glassfish.osgijavaeebase.OSGiContainer.deploy(OSGiContainer.java:154)
at org.glassfish.osgijavaeebase.JavaEEExtender.deploy(JavaEEExtender.java:109)
at org.glassfish.osgijavaeebase.JavaEEExtender.access$200(JavaEEExtender.java:61)
at org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.call(JavaEEExtender.java:153)
at org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.call(JavaEEExtender.java:150)
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:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
]]

[2013-03-26T16:58:02.156+0900] [glassfish 4.0] [SEVERE] [NCLS-CORE-00026] [javax.enterprise.system.core] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284682156] [levelValue: 1000] [[
Exception during lifecycle processing
java.lang.Exception: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: Factory 'javax.faces.context.ExternalContextFactory' was not configured properly.
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.osgijavaeebase.OSGiDeploymentRequest.deploy(OSGiDeploymentRequest.java:185)
at org.glassfish.osgijavaeebase.OSGiDeploymentRequest.execute(OSGiDeploymentRequest.java:120)
at org.glassfish.osgijavaeebase.AbstractOSGiDeployer.deploy(AbstractOSGiDeployer.java:123)
at org.glassfish.osgijavaeebase.OSGiContainer.deploy(OSGiContainer.java:154)
at org.glassfish.osgijavaeebase.JavaEEExtender.deploy(JavaEEExtender.java:109)
at org.glassfish.osgijavaeebase.JavaEEExtender.access$200(JavaEEExtender.java:61)
at org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.call(JavaEEExtender.java:153)
at org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.call(JavaEEExtender.java:150)
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:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
]]

[2013-03-26T16:58:02.156+0900] [glassfish 4.0] [SEVERE] [] [javax.enterprise.system.core] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284682156] [levelValue: 1000] [[
Exception while loading the app]]

[2013-03-26T16:58:02.156+0900] [glassfish 4.0] [SEVERE] [AS-WEB-GLUE-00192] [javax.enterprise.web] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284682156] [levelValue: 1000] [[
Undeployment failed for context /dummy-web]]

[2013-03-26T16:58:02.187+0900] [glassfish 4.0] [INFO] [] [org.glassfish.osgijavaeebase] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284682187] [levelValue: 800] [[
Deleted D:\20130125\glassfish9\glassfish4\glassfish\domains\domain1\osgi-cache\felix\bundle292\data\applications\bundle296-1364284680250]]

[2013-03-26T16:58:02.187+0900] [glassfish 4.0] [SEVERE] [] [org.glassfish.osgijavaeebase] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284682187] [levelValue: 1000] [[
Failed while deploying bundle org.glassfish.osgi.dummy-web [296]]]

[2013-03-26T16:58:02.187+0900] [glassfish 4.0] [INFO] [] [org.glassfish.osgiweb] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284682187] [levelValue: 800] [[
Removed bundle 296 against context path /dummy-web ]]

[2013-03-26T16:58:02.187+0900] [glassfish 4.0] [WARNING] [] [org.glassfish.osgijavaeebase] [tid: _ThreadID=91 _ThreadName=pool-16-thread-1] [timeMillis: 1364284682187] [levelValue: 900] [[
Failed to deploy bundle org.glassfish.osgi.dummy-web [296]
org.glassfish.osgijavaeebase.DeploymentException: Deployment of org.glassfish.osgi.dummy-web [296] failed because of following reason: Failed while deploying bundle org.glassfish.osgi.dummy-web [296] : java.lang.RuntimeException: Failed to deploy bundle [ org.glassfish.osgi.dummy-web [296] ], root cause: Exception while loading the app
at org.glassfish.osgijavaeebase.AbstractOSGiDeployer.deploy(AbstractOSGiDeployer.java:127)
at org.glassfish.osgijavaeebase.OSGiContainer.deploy(OSGiContainer.java:154)
at org.glassfish.osgijavaeebase.JavaEEExtender.deploy(JavaEEExtender.java:109)
at org.glassfish.osgijavaeebase.JavaEEExtender.access$200(JavaEEExtender.java:61)
at org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.call(JavaEEExtender.java:153)
at org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.call(JavaEEExtender.java:150)
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:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.RuntimeException: Failed to deploy bundle [ org.glassfish.osgi.dummy-web [296] ], root cause: Exception while loading the app
at org.glassfish.osgijavaeebase.OSGiDeploymentRequest.deploy(OSGiDeploymentRequest.java:198)
at org.glassfish.osgijavaeebase.OSGiDeploymentRequest.execute(OSGiDeploymentRequest.java:120)
at org.glassfish.osgijavaeebase.AbstractOSGiDeployer.deploy(AbstractOSGiDeployer.java:123)
... 10 more
Caused by: java.lang.Exception: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: Factory 'javax.faces.context.ExternalContextFactory' was not configured properly.
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.osgijavaeebase.OSGiDeploymentRequest.deploy(OSGiDeploymentRequest.java:185)
... 12 more
]]

So, needing to investigate the reasons from scene1 and scene2 in depth.

Comment by TangYong [ 26/Mar/13 ]

About scene1, I have some interesting finding as following:

Noting the following exception info,

Caused by: java.lang.ClassNotFoundException: org.jboss.weld.jsf.WeldPhaseListener
at java.lang.ClassLoader.findClass(ClassLoader.java:522)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at com.sun.enterprise.v3.server.APIClassLoaderServiceImpl$APIClassLoader.loadClass(APIClassLoaderServiceImpl.java:257)
at com.sun.enterprise.v3.server.APIClassLoaderServiceImpl$APIClassLoader.loadClass(APIClassLoaderServiceImpl.java:222)
at org.glassfish.osgiweb.OSGiWebDeploymentContext$WABClassLoader.loadClass(OSGiWebDeploymentContext.java:170)
at org.glassfish.osgiweb.OSGiWebDeploymentContext$WABClassLoader.loadClass(OSGiWebDeploymentContext.java:153)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at com.sun.faces.util.Util.loadClass(Util.java:301)
at com.sun.faces.config.processor.AbstractConfigProcessor.loadClass(AbstractConfigProcessor.java:376)
... 35 more
]]

Noting an important change[1] from Weld 1.x --> Weld 2.x
[1]: https://community.jboss.org/wiki/WeldIntegratorGuide-ChangesForWeld20

"WeldPhaseListener has been removed. The listener served as a hook for activating / deactivating conversations. In CDI 1.1 (CDI-80) conversations are now available for pure Servlet requests and therefore conversation activation is handled in the WeldListener (which is a Servlet listener)."

The same issue can be found in [2],
[2]: https://community.jboss.org/thread/218292

I will confirm whether truly being caused by the change.

Comment by TangYong [ 26/Mar/13 ]

Adding priority into Major because the issue maybe related to Weld 2.x change.

Comment by TangYong [ 26/Mar/13 ]

From JBOSS guy(Jozef Hartinger)'s fixing[1], org.jboss.weld.jsf.WeldPhaseListener should be removed from faces-config.xml since weld 2.x.

[1]: https://source.jboss.org/browse/WeldCore/environments/servlet/core/src/main/resources/META-INF/faces-config.xml?r2=99d2f3568c5671a297319b8ef6d967b07b6279c7&r1=fb35e1d1b8106854b606c999ab634ab59b92045d

So, weld.faces-config.xml should be updated and remove the following

<lifecycle>
<phase-listener>org.jboss.weld.jsf.WeldPhaseListener</phase-listener>
</lifecycle>

Now, scene1 has OK! I will update the workaround.

Comment by Sanjeeb Sahoo [ 26/Mar/13 ]

Sorry, this didn't get due attention for 4.0.

Comment by TangYong [ 27/Mar/13 ]

Scene2 has been resolved and investigation result is as following,

While using primefaces 2.1 with CDI(Weld) in the sample(dummy-web.war), Scene2's exceptions will be caused by the following and caused the whole WAB's deployment failed.

Caused by: org.jboss.weld.exceptions.DefinitionException: Exception message for key UNABLE_TO_FIND_CONSTRUCTOR not found due to String index out of range: -1
at org.jboss.weld.util.Beans.getBeanConstructor(Beans.java:327)
....

[Analyze]
1 in primefaces 2.1, org.primefaces.context.PrimeExternalContextFactory does not offer a default or no-args constructor, so, in org.jboss.weld.util.Beans.getBeanConstructor method, "constructor" will be null, then, throwing a DefinitionException called "UNABLE_TO_FIND_CONSTRUCTOR" , thus, causing the above exception.

The exception also caused two bad results:
1) WebContainer.loadWebModule failed
2) WAB expanded failed

2 I investigated primefaces 2.x and 3.x and found an interesting thing as following:
In primefaces 3.x(eg. 3.5), org.primefaces.context.PrimeExternalContextFactory has not existed. So I made an experiment to replace primefaces-2.1.jar with primefaces-3.5.jar in the WAB's WEB-INF/lib. Then, after deploying the new WAB, the exceptions all did not happen. And can access "http://localhost:8080/dummy-web/" normally.

Only a issue is that while accessing "http://localhost:8080/dummy-web/", there are the following warning info:
"
Warning: This page calls for XML namespace http://primefaces.prime.com.tr/ui declared with prefix p but no taglibrary exists for that namespace.
Warning: This page calls for XML namespace http://primefaces.prime.com.tr/ui declared with prefix p but no taglibrary exists for that namespace. "

The warning info is caused by [1]:
[1]: http://stackoverflow.com/questions/7565431/warning-this-page-calls-for-xml-namespace-http-primefaces-prime-com-tr-ui-dec

While modifying the sample's index.xhtml from xmlns="http://primefaces.prime.com.tr/ui" to xmlns="http://primefaces.org/ui" , although the warning has not disappeared, primefaces's tree tag was not still displayed normally. However, I think that this should be primefaces's using problems rather than gf's problems.

So, in a word, the Scene2 should belong to user's sample problem rather than gf's problem.

Thanks
--Tang





[GLASSFISH-15119] CDI Interceptor still not working in OSGi Created: 12/Dec/10  Updated: 25/Mar/13

Status: Open
Project: glassfish
Component/s: cdi, OSGi-JavaEE
Affects Version/s: 3.1_b31
Fix Version/s: future release

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

Tested with promoted b32


Attachments: GZip Archive interceptor-osgi-test-2-fixed.tar.gz     GZip Archive interceptor-osgi-test-2.tar.gz     File interceptor-osgi-test.tar.bz2    
Issue Links:
Dependency
depends on GLASSFISH-15249 Support vanilla OSGi bundles as bean ... Open
Tags: 3_1-exclude, 3_1-next, 3_1_1-scrubbed

 Description   

I just revisited GLASSFISH-13513 and GLASSFISH-14831 to see if it is possible to plug in interceptors the CDI way around EJBs.

Indeed when deploying a prepared package as non-OSGi the interceptor gets invoked but not when using OSGi deployment.

Therefore I made up another test case which should be sufficient for a confirmation of this issue:

  • maven reactor build with 4 modules
  • build.sh script for test:
  • "mvn clean install"
  • copy resulting artifacts into .../autodeploy/bundles/ folder of a running glassfish domain
  • wait for (re-)deployment
  • using "curl" to call the web service
  • search for a fault inside the returned XML

So basically for a test I issue a command like this:

$ GF_DOMAIN_DIR=/srv/servers/gf-3.1-b32/glassfish/domains/domain1/ ./build.sh

Well, I also can say that with the old @Interceptors(

{SecurityInterceptor.class}

) method the interceptor is being called so I suspect it is not injected at all.

This test throws a fault if the interceptor is being invoked. If no fault occurs and the response is valid there must be something wrong.



 Comments   
Comment by chaoslayer [ 12/Dec/10 ]

Thanks for reopening the issue, I was not allowed to.

Comment by Sanjeeb Sahoo [ 14/Dec/10 ]

Assigning this to cdi team after talking to Siva. It is a bug in their layer.

Comment by chaoslayer [ 14/Dec/10 ]

Fixed the project and enabled interceptor class in beans.xml for the user service [interceptor-osgi-test-2-fixed.tar.gz].

Just tested again with a completely clean b32:

INFO: Portable JNDI names for EJB UserServiceImpl : [java:global/org.glassfish.cditest.user.service_2.0.0.SNAPSHOT/UserServiceImpl!org.glassfish.cditest.user.api.UserService, java:global/org.glassfish.cditest.user.service_2.0.0.SNAPSHOT/UserServiceImpl]
INFO: WELD-000900 $

{parsedVersion (osgiVersion}

)
INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
SEVERE: Exception while loading the app
INFO: Deleted /tmp/osgiapp5600363451663621402
SEVERE: Failed while deploying bundle org.glassfish.cditest.user.service [252]
WARNING: Failed to deploy bundle org.glassfish.cditest.user.service [252]
org.glassfish.osgijavaeebase.DeploymentException: Deployment of org.glassfish.cditest.user.service [252] failed because of following reason: Failed while deploying bundle org.glassfish.cditest.user.service [252] : java.lang.RuntimeException: Failed to deploy bundle [ org.glassfish.cditest.user.service [252] ], root cause: Exception while loading the app
at org.glassfish.osgijavaeebase.AbstractOSGiDeployer.deploy(AbstractOSGiDeployer.java:125)
at org.glassfish.osgijavaeebase.OSGiContainer.deploy(OSGiContainer.java:147)
at org.glassfish.osgijavaeebase.JavaEEExtender.deploy(JavaEEExtender.java:132)
at org.glassfish.osgijavaeebase.JavaEEExtender.handleEvent(JavaEEExtender.java:117)
at org.glassfish.osgijavaeebase.JavaEEExtender.access$000(JavaEEExtender.java:56)
at org.glassfish.osgijavaeebase.JavaEEExtender$1.run(JavaEEExtender.java:100)
Caused by: java.lang.RuntimeException: Failed to deploy bundle [ org.glassfish.cditest.user.service [252] ], root cause: Exception while loading the app
at org.glassfish.osgijavaeebase.OSGiDeploymentRequest.deploy(OSGiDeploymentRequest.java:196)
at org.glassfish.osgijavaeebase.OSGiDeploymentRequest.execute(OSGiDeploymentRequest.java:118)
at org.glassfish.osgijavaeebase.AbstractOSGiDeployer.deploy(AbstractOSGiDeployer.java:121)
... 5 more
Caused by: org.glassfish.deployment.common.DeploymentException: WELD-001417 Enabled interceptor class <class>org.glassfish.cditest.security.interceptor.SecurityInterceptor</class> in bundle://252.0:1/META-INF/beans.xml@8 is neither annotated @Interceptor nor registered through a portable extension
at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:187)
at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:128)
at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:302)
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.osgijavaeebase.OSGiDeploymentRequest.deploy(OSGiDeploymentRequest.java:183)
... 7 more
Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001417 Enabled interceptor class <class>org.glassfish.cditest.security.interceptor.SecurityInterceptor</class> in bundle://252.0:1/META-INF/beans.xml@8 is neither annotated @Interceptor nor registered through a portable extension
at org.jboss.weld.bootstrap.Validator.validateEnabledInterceptorClasses(Validator.java:471)
at org.jboss.weld.bootstrap.Validator.validateDeployment(Validator.java:344)
at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:383)
at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:184)
... 12 more

So I guess it has to do with class visibility here. Although all required classes are visible for the bundle it may once again be a deployment issue:

250|Active | 1|Apache Felix Bundle Repository (1.6.2)
251|Active | 1|OSGi/JTA implementation in GlassFish (3.1.0.b32)
252|Active | 1|User Service OSGi Bundle (2.0.0.SNAPSHOT)
253|Active | 1|User Web Service OSGi Web Service (2.0.0.SNAPSHOT)
254|Active | 1|security.impl OSGi Bundle (2.0.0.SNAPSHOT)
255|Active | 1|security.api OSGi Bundle (2.0.0.SNAPSHOT)
g! inspect p c 255
org.glassfish.cditest.security.api [255] exports packages:
----------------------------------------------------------
org.glassfish.cditest.security.api; version=0.0.0 imported by:
org.glassfish.cditest.user.service [252]
org.glassfish.cditest.security.impl [254]
g! inspect p c 254
org.glassfish.cditest.security.impl [254] exports packages:
-----------------------------------------------------------
org.glassfish.cditest.security.interceptor; version=0.0.0 imported by:
org.glassfish.cditest.user.service [252]
g! inspect p r 252
org.glassfish.cditest.user.service [252] imports packages:
----------------------------------------------------------
javax.ejb; version=3.1.0 -> org.glassfish.javax.ejb [171]
org.glassfish.cditest.security.interceptor; version=0.0.0 -> org.glassfish.cditest.security.impl [254]
org.glassfish.cditest.security.api; version=0.0.0 -> org.glassfish.cditest.security.api [255]

Comment by Sanjeeb Sahoo [ 14/Dec/10 ]

I discussed with our CDI engineer (sivakumar) and he thinks there is more to it than classloading. He thinks this can be reproduced without use of OSGi as well. He is looking into it.

Comment by chaoslayer [ 14/Dec/10 ]

OK, so do you need any additional data from my side?

Comment by Sanjeeb Sahoo [ 14/Dec/10 ]

No, not at this point. We have sufficient information to proceed. Thanks.

Comment by Sanjeeb Sahoo [ 15/Dec/10 ]

Needed for 3.1

Comment by Sivakumar Thyagarajan [ 17/Dec/10 ]

Modified testcase with the following changes:
1. brought the interceptor enablement to security.impl and 2. removed the interceptor enablement in user.impl

The interceptor class is defined in security.impl and must be enabled there.

Comment by Sivakumar Thyagarajan [ 17/Dec/10 ]

While debugging this issue, we noticed that the interceptor was enabled in the user.impl bundle. The interceptor is defined in the security.impl bundle and hence has to be enabled there. Attached the modified test-case that has these changes. With these changes, the 3 bundles deploy in GF3.1 latest trunk.

However there is an issue. GF3.1 considers the first two bundles (security.api and security.impl) as plain vanilla OSGi bundles (not EE archives) and hence are not considered as CDI archives. Furthermore, since there is no "explicit" relationship (apart from the usage of the CDI interceptor binding) between the user.impl and the other two bundles, when the user.impl WAB is deployed, the user.impl WAB "alone" is considered as a CDI archive. The CDI runtime does not have access to the Beans in security.api/security.impl and hence this usecase will not work. GF3.1 CDI-OSGi support should support scenarios where the Beans used by a bundle are in a different bundle and scenarios where Beans could exist in plain vanilla osgi bundles. I have raised a RFE, GLASSFISH-15249, for this and targetted this for 3.2 as it is more involved to be considered for 3.1.

Here are two possible workarounds:

  • One bundle: Bundling all the Beans together in user.impl (ie have one bundle and not 3 bundles) would work. I don't know if this works for you, though.
  • Fragment bundle approach: I had a discussion with Sahoo and he is investigating the use of security.api and security.impl as fragment bundles as a workaround, and he will update this thread with his finding.
Comment by Sivakumar Thyagarajan [ 17/Dec/10 ]

Raised a RFE GLASSFISH-15249 to fix the underlying usecase.

Comment by chaoslayer [ 17/Dec/10 ]

Well, not quite covering our use case scenario. Let me explain what we "want":

  • we have one Security API bundle that contains the @Secure interface
  • we have one or more Security implementation bundles that contain the implementation for @Secure
  • we have around 20 EJB bundles that have to be "secured" via the CDI interceptor binding

So workaround one effectively disables OSGi here completely and pulls in a lot of work todo for our setup, from building to integration testing to deployment.

Option two could be an option, although I think only the bundle that contains the interceptor should be made available as a fragment bundle attaching to all those EJB bundles.

But what happens if not all Fragement-Hosts are available for the interceptor fragment bundle? Is it still resolved for those that are available? The spec is somewhat unclear here. The use case here is of course modularity. As our developers are working in different areas of interest they only use the bundles that they need. Security is a very basic need but should support those scenarios without modification at build time.

Thanks for the RFE, btw.

Comment by Sanjeeb Sahoo [ 17/Dec/10 ]

Yes, I just tried by converting security.impl to be a fragment of user.impl and having the <interceptors> element defined in user.impl's beans.xml. With this, I am able to see the interceptors in action. I realize this is not an optimal solution, but looks like a work around to me.

Comment by Sanjeeb Sahoo [ 17/Dec/10 ]

A fragment can't be attached to more than one host, so there is a potential issue for your use case. Let us think more.

Comment by Sivakumar Thyagarajan [ 17/Dec/10 ]

Marking as "3_1-exclude" and targetting for 3.2

Comment by Sivakumar Thyagarajan [ 06/Jul/11 ]

Marking as 3_1-next as this was targetted for 3.1+ releases

Comment by Sivakumar Thyagarajan [ 08/Jul/11 ]

Marked issue as "Major"

Comment by Sivakumar Thyagarajan [ 15/Oct/12 ]

Moving a fix for this to a "future release" as the dependent issue GLASSFISH-15249 is also moved.

There is a workaround for this issue as Sahoo points out above.

Comment by TangYong [ 15/Oct/12 ]

siva, sahoo,

Please add a osgi-javaee component for the issue.

Comment by TangYong [ 25/Mar/13 ]

Because the bug depends on GLASSFISH-15249 which will be implemented in future release, fix version is adjusted into future release.





[GLASSFISH-21174] Add beans_1_1.xsd to glassfish/lib/schemas Created: 25/Aug/14  Updated: 24/Mar/15

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

Type: Improvement Priority: Minor
Reporter: rgoldberg Assignee: Hong Zhang
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: 1 minute
Time Spent: Not Specified
Original Estimate: 1 minute

Tags: cdi, xsd

 Description   

Add beans_1_1.xsd (from http://xmlns.jcp.org/xml/ns/javaee/beans_1_1.xsd) to glassfish/lib/schemas

If beans_1_2.xsd actually exists (I don't think it does), also add it to glassfish/lib/schemas

Add any other missing xsds to glassfish/lib/schemas



 Comments   
Comment by jjsnyder83 [ 24/Mar/15 ]

Hong could you please address this jira?





[GLASSFISH-21163] Include ../modules/cdi-api.jar in the Class-Path: section of META-INF/MANIFEST.MF in ${com.sun.aas.installRoot}/lib/javaee.jar Created: 12/Aug/14  Updated: 24/Mar/15

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

Type: Bug Priority: Minor
Reporter: rgoldberg Assignee: Romain Grécourt
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: 5 minutes
Time Spent: Not Specified
Original Estimate: 5 minutes
Environment:

All


Tags: cdi, jar, javaee, manifest, modules

 Description   

The:

Class-Path:

section of the file:

META-INF/MANIFEST.MF

in the jar file:

$

{com.sun.aas.installRoot}

/lib/javaee.jar

should include:

../modules/cdi-api.jar

Other Java EE jars might be missing from that manifest, too, but I haven't checked.



 Comments   
Comment by rgoldberg [ 12/Aug/14 ]

In the Description, I forgot to escape the opening brace and closing brace, so .${com.sun.aas.installRoot}/lib/javaee.jar is formatted poorly.

I cannot seem to edit the Description.

Can someone escape the braces?

Comment by rgoldberg [ 25/Aug/14 ]

Will this be fixed anytime soon?

It should only take 30 seconds to add ../modules/cdi-api.jar to the Class-Path: section.

It might take a few minutes (around 2 - 5) to check if any other jars should also be included.





[GLASSFISH-20928] Cache the created InjectionTarget objects Created: 16/Dec/13  Updated: 16/Dec/13

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

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


 Description   

In JDCIServiceImpl#injectManagedObject cache the created InjectionTarget objects.






[GLASSFISH-20422] multiple extensions in same bda Created: 26/Apr/13  Updated: 19/Sep/14

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

Type: Bug Priority: Minor
Reporter: jjsnyder83 Assignee: phil.zampino
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Tags: 4_0_1-approved

 Description   

So in my debugging of the Producer Bean issue I noticed that in GF we have a jar that contains multiple extensions and no beans.xml. So I have the following questions:
1) Should there be 1 bda for each extension or can multiple extensions go into the same bda?
Multiple extensions can go into the same BDA as long as accessibility rules are fulfilled. Definitely no need to create separate bda per extension.
2) Should the extension class itself be placed into the bda as a bean class?
If they are packaged in the same archive then yes they should end up in the same BDA. However, if you create multiple BDAs and reflect accessibility rules within them in the BDA graph it should again not make a difference.

Also in DeploymentImpl.getBeanDeploymentArchive check the extension bdas too.






[GLASSFISH-19759] Support binding to OSGi services at deploy-time Created: 01/Mar/13  Updated: 25/Mar/13

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

Type: Improvement Priority: Minor
Reporter: Sivakumar Thyagarajan Assignee: Sivakumar Thyagarajan
Resolution: Unresolved Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Tags: future-release, osgi-cdi, osgi-javaee

 Description   

Today the osgi-cdi portable extension supports the injection of OSGi Services into injection points marked with a custom OSGi Qualifier @OSGiService. Unfortunately this binds application components that reference these Services at deployment time to OSGi. There could be scenarios where the determination that a Service being injected is an OSGi Service, can be made at deployment-time based on the environment that the application component is part of. It would be good if we have the ability for a client of an OSGi Service to indicate that the Service is an OSGi Service at deploy-time.



 Comments   
Comment by Sivakumar Thyagarajan [ 01/Mar/13 ]

One approach to consider is providing a capability to a deployer (through a custom deployment-descriptor) to specify that a particular injection point is an OSGi Service injection point, and have the osgi-cdi portable extension read this descriptor and automatically add the @OSGiService qualifier at runtime.

Comment by TangYong [ 01/Mar/13 ]

Siva,

The capability is very important while combining PaaS model, and in PaaS, ServiceType can be extended into OSGi Service, then, an user can specify an OSGi Service as some PaaS Service in liking glassfish-services.xml.

Then, by discovering OSGi Service engine(to be implemented in the future), these OSGi Services meeting the user's requirements will be injected into client at runtime.

Tang

Comment by TangYong [ 25/Mar/13 ]

Seeing siva's said carefully, Siva's means should be following,

[Current OSGi/CDI portable extension]
Class A

{ @OSGiService B b ... }

The issue should wish to remove @OSGiService instead still using @Inject and adding some way to tell deployment to automatically determinate b is a OSGi Service.

Then, if using a custom deployment-descriptor, this is similar to Declarative Services, OK, let us to see this will bring what advantage?

Imaging a scene that some user has written a application which uses common cdi with well-designed interface, however, while he/she wants to switch another B's implementation and does not change any consumer's source, by this feature, he/she should implement.

Comment by Sivakumar Thyagarajan [ 25/Mar/13 ]

Yes, Tang.

The idea is to support the following:

  • Allow the development of POJOs and dependency injection not knowing during development time that a particular injection point would be satisfied through an OSGi Service. So in the above example, the application includes a POJO
    Class A { @Inject StockQuoteService b; }
  • At deployment time, we should allow the deployer to override the injection and indicate that the injection point A.b is an OSGi Service injection and provide the details through a custom deployment-descriptor. For instance here is a rough idea on how a deployer could state that the injectin point A.b is an OSGi Service.
    glassfish-osgi-cdi.xml:
    <osgi-service dynamic="true">
    <managed-bean name="A">
    <attribute name ="b"/>
    </managed-bean>
    </osgi-service>
  • The osgi-cdi portable extension must read this optional custom deployment-descriptor, and automatically at deployment time, make A.b have a qualified @OSGiService.

Does this help? All the above details are just ideas at this point in time. Let us evaluate how best to resolve this.





Generated at Sat Apr 25 18:58:49 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.