#1 2017-06-17 06:10:55

GauravKumar
Member
Registered: 2017-05-26

WebSphere 9.0 com.ibm.ws.cdi.CDIDeploymentRuntimeException:

I have been tring to deploy Report Server on WebSphere 9.0.0.0. The application has been installed succesfully but it isnt starting .
The following error pops up in the logs. Kindly suggest some measures to resolve.

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[6/17/17 10:23:52:565 IST] 00000071 ServletWrappe I com.ibm.ws.webcontainer.servlet.ServletWrapper init SRVE0242I: [isclite] [/ibm/console] [DojoServlet]: Initialization successful.
[6/17/17 10:24:00:739 IST] 0000006b AdminHelper   A   ADMN1009I: An attempt is made to start the ReportServer1 application.
[6/17/17 10:24:00:768 IST] 0000006b CompositionUn A   WSVR0190I: Starting composition unit WebSphere:cuname=ReportServer1 in BLA WebSphere:blaname=ReportServer1.
[6/17/17 10:24:00:808 IST] 0000006b ApplicationMg A   WSVR0200I: Starting application: ReportServer1
[6/17/17 10:24:00:810 IST] 0000006b ApplicationMg A   WSVR0204I: Application: ReportServer1  Application build level: Unknown
[6/17/17 10:25:45:037 IST] 0000006b Event         Z org.jboss.weld.event.ExtensionObserverMethodImpl checkRequiredTypeAnnotations WELD-000411: Observer method [BackedAnnotatedMethod] com.sun.jersey.server.impl.cdi.CDIExtension.processAnnotatedType(@Observes ProcessAnnotatedType<Object>) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
[6/17/17 10:25:45:138 IST] 0000006b Helpers       W   NMSV0606E: Object is not of any type which can be bound.
[6/17/17 10:25:45:163 IST] 0000006b ApplicationMg E   WSVR0101W: An error occurred starting, ReportServer1
[6/17/17 10:25:45:164 IST] 0000006b ApplicationMg A   WSVR0217I: Stopping application: ReportServer1
[6/17/17 10:25:45:194 IST] 0000006b CDIArchiveImp W   Application is already stopped: ReportServer1
[6/17/17 10:25:45:207 IST] 0000006b ApplicationMg A   WSVR0220I: Application stopped: ReportServer1
[6/17/17 10:25:45:214 IST] 0000006b CompositionUn E   WSVR0194E: Composition unit WebSphere:cuname=ReportServer1 in BLA WebSphere:blaname=ReportServer1 failed to start.
[6/17/17 10:25:45:216 IST] 0000006b MBeanHelper   E   Could not invoke an operation on object: WebSphere:name=ApplicationManager,process=server1,platform=proxy,node=MUNMVS1088Node01,version=9.0.0.0,type=ApplicationManager,mbeanIdentifier=ApplicationManager,cell=MUNMVS1088Node01Cell,spec=1.0 because of an mbean exception: com.ibm.ws.exception.RuntimeError: java.lang.RuntimeException: com.ibm.ws.cdi.CDIRuntimeException: com.ibm.ws.cdi.CDIDeploymentRuntimeException: org.jboss.weld.exceptions.DefinitionException: Exception List with 1 exceptions:
Exception 0 :
java.lang.RuntimeException: com.ibm.ws.naming.util.CannotBindObjectException: Object is not of any type which can be bound. Object type is com.sun.jersey.server.impl.cdi.CDIExtension.
    at com.sun.jersey.server.impl.cdi.CDIExtension.initialize(CDIExtension.java:199)
    at com.sun.jersey.server.impl.cdi.CDIExtension.beforeBeanDiscovery(CDIExtension.java:300)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
    at java.lang.reflect.Method.invoke(Method.java:508)
    at org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:88)
    at org.jboss.weld.injection.MethodInvocationStrategy$SpecialParamPlusBeanManagerStrategy.invoke(MethodInvocationStrategy.java:144)
    at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:306)
    at org.jboss.weld.event.ExtensionObserverMethodImpl.sendEvent(ExtensionObserverMethodImpl.java:121)
    at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:284)
    at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:262)
    at org.jboss.weld.event.ObserverNotifier.notifySyncObservers(ObserverNotifier.java:271)
    at org.jboss.weld.event.ObserverNotifier.notify(ObserverNotifier.java:260)
    at org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:154)
    at org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:148)
    at org.jboss.weld.bootstrap.events.AbstractContainerEvent.fire(AbstractContainerEvent.java:54)
    at org.jboss.weld.bootstrap.events.AbstractDefinitionContainerEvent.fire(AbstractDefinitionContainerEvent.java:42)
    at org.jboss.weld.bootstrap.events.BeforeBeanDiscoveryImpl.fire(BeforeBeanDiscoveryImpl.java:45)
    at org.jboss.weld.bootstrap.WeldStartup.startInitialization(WeldStartup.java:368)
    at org.jboss.weld.bootstrap.WeldBootstrap.startInitialization(WeldBootstrap.java:76)
    at com.ibm.ws.cdi.impl.CDIContainerImpl$2.run(CDIContainerImpl.java:138)
    at com.ibm.ws.cdi.impl.CDIContainerImpl$2.run(CDIContainerImpl.java:135)
    at java.security.AccessController.doPrivileged(AccessController.java:594)
    at com.ibm.ws.cdi.impl.CDIContainerImpl.applicationStarting(CDIContainerImpl.java:135)
    at com.ibm.ws.cdi.classic.CDIRuntimeImpl.applicationStarting(CDIRuntimeImpl.java:323)
    at com.ibm.ws.cdi.classic.CDIRuntimeImpl.start(CDIRuntimeImpl.java:391)
    at com.ibm.ws.cdi.classic.CDIRuntimeImpl.stateChanged(CDIRuntimeImpl.java:488)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl$ComparableDeployedObjectListener.stateChanged(ApplicationMgrImpl.java:2551)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl.stateChanged(ApplicationMgrImpl.java:1164)
    at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectEvent(DeployedApplicationImpl.java:1497)
    at com.ibm.ws.runtime.component.DeployedApplicationImpl.setState(DeployedApplicationImpl.java:310)
    at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:1087)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:786)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplicationDynamically(ApplicationMgrImpl.java:1421)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2232)
    at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:436)
    at com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123)
    at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:379)
    at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$500(CompositionUnitMgrImpl.java:127)
    at com.ibm.ws.runtime.component.CompositionUnitMgrImpl$1.run(CompositionUnitMgrImpl.java:654)
    at com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:5398)
    at com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:5614)
    at com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:255)
    at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:668)
    at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:612)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:1311)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
    at java.lang.reflect.Method.invoke(Method.java:508)
    at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:83)
    at sun.reflect.GeneratedMethodAccessor38.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
    at java.lang.reflect.Method.invoke(Method.java:508)
    at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:287)
    at javax.management.modelmbean.RequiredModelMBean$4.run(RequiredModelMBean.java:1263)
    at java.security.AccessController.doPrivileged(AccessController.java:620)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
    at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1257)
    at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:1096)
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:831)
    at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:813)
    at com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1350)
    at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
    at com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:1243)
    at com.ibm.ws.management.commands.AdminServiceCommands$InvokeCmd.execute(AdminServiceCommands.java:251)
    at com.ibm.ws.console.core.mbean.MBeanHelper.invoke(MBeanHelper.java:246)
    at com.ibm.ws.console.appdeployment.ApplicationDeploymentCollectionAction.execute(ApplicationDeploymentCollectionAction.java:608)
    at org.apache.struts.action.RequestProcessor.processActionPerform(Unknown Source)
    at org.apache.struts.action.RequestProcessor.process(Unknown Source)
    at org.apache.struts.action.ActionServlet.process(Unknown Source)
    at org.apache.struts.action.ActionServlet.doPost(Unknown Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1234)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:778)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:477)
    at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:143)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:78)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:969)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1109)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:1386)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:195)
    at org.apache.struts.action.RequestProcessor.doForward(Unknown Source)
    at org.apache.struts.tiles.TilesRequestProcessor.doForward(Unknown Source)
    at org.apache.struts.action.RequestProcessor.processForwardConfig(Unknown Source)
    at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(Unknown Source)
    at org.apache.struts.action.RequestProcessor.process(Unknown Source)
    at org.apache.struts.action.ActionServlet.process(Unknown Source)
    at org.apache.struts.action.ActionServlet.doPost(Unknown Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1234)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:778)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:477)
    at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:143)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:96)
    at com.ibm.ws.console.core.servlet.WSCUrlFilter.setUpCommandAssistance(WSCUrlFilter.java:970)
    at com.ibm.ws.console.core.servlet.WSCUrlFilter.continueStoringTaskState(WSCUrlFilter.java:517)
    at com.ibm.ws.console.core.servlet.WSCUrlFilter.doFilter(WSCUrlFilter.java:338)
    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:197)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:90)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:969)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1109)
    at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:82)
    at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:961)
    at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1817)
    at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:294)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:532)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:318)
    at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:88)
    at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:175)
    at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
    at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
    at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
    at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
    at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
    at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1892)
Caused by: com.ibm.ws.naming.util.CannotBindObjectException: Object is not of any type which can be bound. Object type is com.sun.jersey.server.impl.cdi.CDIExtension.
    at com.ibm.ws.naming.util.Helpers.processJavaObjectForBinding(Helpers.java:840)
    at com.ibm.ws.naming.jndicos.CNContextImpl.doRebind(CNContextImpl.java:2077)
    at com.ibm.ws.naming.jndicos.CNContextImpl.rebind(CNContextImpl.java:698)
    at com.ibm.ws.naming.jndicos.CNContextImpl.rebind(CNContextImpl.java:718)
    at com.sun.jersey.server.impl.cdi.CDIExtension.initialize(CDIExtension.java:196)
    ... 122 more

Offline

#2 2017-06-17 12:54:50

eduardo
Administrator
Registered: 2016-11-01
Website

Re: WebSphere 9.0 com.ibm.ws.cdi.CDIDeploymentRuntimeException:

Hi GauravKumar,

look here:
https://stackoverflow.com/questions/344 … rom-tomcat

"After weeks of struggle, I found that guava jar (version 16 or above) is needed for Websphere for my project to run. The project is running without that jar successfully in Tomcat. I am not not even using that jar file. It looks like Websphere, somehow, has a dependency on that jar to run."

Reportserver users guava-15.0.jar. Try replacing it with version 16 or above and redeploying your application.

Best regards,
Eduardo

Offline

#3 2017-06-17 12:56:38

eduardo
Administrator
Registered: 2016-11-01
Website

Re: WebSphere 9.0 com.ibm.ws.cdi.CDIDeploymentRuntimeException:

Hi GauravKumar,

if this doesn't work, please try with guava 14.0.1 http://stackoverflow.com/questions/2083 … -in-tomcat

Don't forget to completely delete the old guava jar when replacing it.

Also, please also completely undeploy all other applications, including the Default Application. So the only application deployed should be reportserver.

Best regards,

Offline

#4 2017-06-19 10:57:06

GauravKumar
Member
Registered: 2017-05-26

Re: WebSphere 9.0 com.ibm.ws.cdi.CDIDeploymentRuntimeException:

I have the guava jar present in the lib of my application. I dont think this is an issue of guava jar . The error is as follows

------------------------------------------------------------------

com.ibm.ws.exception.RuntimeError: java.lang.RuntimeException: com.ibm.ws.cdi.CDIRuntimeException: com.ibm.ws.cdi.CDIDeploymentRuntimeException: org.jboss.weld.exceptions.DefinitionException: Exception List with 1 exceptions:
Exception 0 :
--------------------------------------------------------------------------
There is some conflict of CDI injection which I am unable to figure out. Kindly suggest some measures

Offline

#5 2017-06-20 07:05:31

eduardo
Administrator
Registered: 2016-11-01
Website

Re: WebSphere 9.0 com.ibm.ws.cdi.CDIDeploymentRuntimeException:

Which application are you talking about ? Reportserver ? Which guava version are you using in your "application" ?

Regards,
Eduardo

Offline

#6 2017-06-21 05:23:14

GauravKumar
Member
Registered: 2017-05-26

Re: WebSphere 9.0 com.ibm.ws.cdi.CDIDeploymentRuntimeException:

Yes , I am talking about ReportServer application. I am using guava guava-16.0.1.jar.

Offline

#7 2017-06-21 07:51:53

eduardo
Administrator
Registered: 2016-11-01
Website

Re: WebSphere 9.0 com.ibm.ws.cdi.CDIDeploymentRuntimeException:

Hi GauravKumar,

some points to check:

-did you try with guava 14.0.1 ?
-as you tried with guava-16.0.1.jar: did you completely delete  guava-15.0.jar and redeploy your application ?
-do you have other applications in your application server ? E.g. the default application? Or some own applications ?

As you see in the 2 forums I posted, the issue seems be the version of the guava library.

Best regards,
Eduardo

Offline

#8 2017-06-21 09:58:23

GauravKumar
Member
Registered: 2017-05-26

Re: WebSphere 9.0 com.ibm.ws.cdi.CDIDeploymentRuntimeException:

Hi Eduardo,
                I tried with guava-14.0.1.jar and guava-15.0.jar (deleting old guava jars present ) and redeployed the application but still the same Error persists

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
java.lang.RuntimeException: com.ibm.ws.naming.util.CannotBindObjectException: Object is not of any type which can be bound. Object type is com.sun.jersey.server.impl.cdi.CDIExtension.
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Offline

#9 2017-06-21 10:18:19

eduardo
Administrator
Registered: 2016-11-01
Website

Re: WebSphere 9.0 com.ibm.ws.cdi.CDIDeploymentRuntimeException:

GauravKumar wrote:

Hi Eduardo,
                I tried with guava-14.0.1.jar and guava-15.0.jar (deleting old guava jars present ) and redeployed the application but still the same Error persists

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
java.lang.RuntimeException: com.ibm.ws.naming.util.CannotBindObjectException: Object is not of any type which can be bound. Object type is com.sun.jersey.server.impl.cdi.CDIExtension.
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Do you mean guava-15.0.jar or guava-16.0.1.jar ?

And is this your only application deployed ? Or do you have more, e.g. the default application or any other ?

Regards,
Eduardo

Offline

Board footer

Powered by FluxBB