Unable to deploy kie-workbench on Websphere Liberty Server
vasanth2011 Oct 5, 2016 11:30 AMFacing issues while deploying kie-workbench on Websphere Liberty Server. Is workbench compatible with liberty server? Couldn't find much documentation around this. I was able to deploy workbench on tomcat & jboss servers but facing issues only with websphere liberty. Can someone please throw some light on this ? Thanks in advance.
- Downloaded the websphere version of workbench from the below link.
- Added the below features in server.xml
<featureManager>
<feature>servlet-3.1</feature>
<feature>appSecurity-2.0</feature>
<feature>cdi-1.2</feature>
<feature>jsp-2.3</feature>
<feature>jpa-2.1</feature>
<feature>beanValidation-1.1</feature>
<feature>ejbLite-3.2</feature>
<feature>webProfile-7.0</feature>
<feature>localConnector-1.0</feature>
</featureManager>
- Got the below exception while deploying. From the stack trace it seems like a class-loader issue, but I don't see any jar conflicts inside WEB-INF/lib .
[ERROR ] Unable to build kie service url=wsjar:file:/D:/workbench_ws/wlp/usr/servers/wbserver/apps/expanded/kie-wb.war/WEB-INF/lib/optaplanner-core-6.4.0.Final.jar!/META-IN
[ERROR ] CWWKZ0004E: An exception occurred while starting the application kie-wb. The exception message was: com.ibm.ws.container.service.state.StateChangeException: org.jb
Exception 0 :
java.lang.RuntimeException: failed to instantiate new type: org.jboss.errai.config.rebind.EnvUtil$EnvironmentConfigCache
at org.jboss.errai.common.rebind.CacheUtil.getCache(CacheUtil.java:46)
at org.jboss.errai.config.rebind.EnvUtil.getEnvironmentConfig(EnvUtil.java:275)
at org.jboss.errai.config.rebind.EnvUtil.isPortableType(EnvUtil.java:280)
at org.jboss.errai.cdi.server.CDIExtensionPoints.processObserverMethod(CDIExtensionPoints.java:222)
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:497)
at org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:88)
at org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:78)
at org.jboss.weld.injection.MethodInvocationStrategy$SimpleMethodInvocationStrategy.invoke(MethodInvocationStrategy.java:129)
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.ProcessObserverMethodImpl.fire(ProcessObserverMethodImpl.java:41)
at org.jboss.weld.bootstrap.AbstractBeanDeployer.deployObserverMethods(AbstractBeanDeployer.java:163)
at org.jboss.weld.bootstrap.BeanDeployer.deploy(BeanDeployer.java:325)
at org.jboss.weld.bootstrap.BeanDeployment.deployBeans(BeanDeployment.java:267)
at org.jboss.weld.bootstrap.WeldStartup.deployBeans(WeldStartup.java:412)
at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:83)
at com.ibm.ws.cdi.impl.CDIContainerImpl.applicationStarting(CDIContainerImpl.java:137)
at com.ibm.ws.cdi.liberty.CDIRuntimeImpl.applicationStarting(CDIRuntimeImpl.java:349)
at com.ibm.ws.container.service.state.internal.ApplicationStateManager.fireStarting(ApplicationStateManager.java:29)
at com.ibm.ws.container.service.state.internal.StateChangeServiceImpl.fireApplicationStarting(StateChangeServiceImpl.java:51)
at com.ibm.ws.app.manager.module.internal.DeployedAppInfoBase.preDeployApp(DeployedAppInfoBase.java:788)
at com.ibm.ws.app.manager.module.internal.DeployedAppInfoBase.deployApp(DeployedAppInfoBase.java:815)
at com.ibm.ws.app.manager.war.internal.WARApplicationHandlerImpl.install(WARApplicationHandlerImpl.java:66)
at com.ibm.ws.app.manager.internal.statemachine.StartAction.execute(StartAction.java:141)
at com.ibm.ws.app.manager.internal.statemachine.ApplicationStateMachineImpl.enterState(ApplicationStateMachineImpl.java:1192)
at com.ibm.ws.app.manager.internal.statemachine.ApplicationStateMachineImpl.performAction(ApplicationStateMachineImpl.java:1070)
at com.ibm.ws.app.manager.internal.statemachine.ApplicationStateMachineImpl.run(ApplicationStateMachineImpl.java:813)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.RuntimeException: unable to load environment extension: org.jboss.errai.bus.rebind.RpcTypesProvider
at org.jboss.errai.config.rebind.EnvUtil.newEnvironmentConfig(EnvUtil.java:224)
at org.jboss.errai.config.rebind.EnvUtil.access$000(EnvUtil.java:50)
at org.jboss.errai.config.rebind.EnvUtil$EnvironmentConfigCache.clear(EnvUtil.java:60)
at org.jboss.errai.config.rebind.EnvUtil$EnvironmentConfigCache.<init>(EnvUtil.java:55)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
at java.lang.Class.newInstance(Class.java:442)
at org.jboss.errai.common.rebind.CacheUtil.getCache(CacheUtil.java:42)
... 40 more
Caused by: java.lang.ClassCastException: class org.jboss.errai.bus.rebind.RpcTypesProvider
at java.lang.Class.asSubclass(Class.java:3404)
at org.jboss.errai.config.rebind.EnvUtil.newEnvironmentConfig(EnvUtil.java:213)
... 49 more