embeddable EJB container of WebSphere 8 can not created - NoClassDefFoundError HpelHelper

China☆狼群 提交于 2019-12-06 11:52:59

The RAS included in the WebSphere embeddable EJB container does not use HPEL. This error message implies that some JAR on your classpath is using a different RAS. You should remove all WebSphere JARs except C:\Program Files\IBM\WebSphere\AppServer\runtimes\com.ibm.ws.ejb.embeddableContainer_8.0.0.‌​jar.

I was able to get rid of this problem was unchecking the runtime selection from project facets.

Also my config in JUint is as below

Map properties = new HashMap(); properties.put(EJBContainer.PROVIDER, "com.ibm.websphere.ejbcontainer.EmbeddableContainerProvider"); File jar = new File("./target/test_ejb.jar"); properties.put(EJBContainer.MODULES, jar); //DB properties configured in the embeddable container properties.put("com.ibm.websphere.embeddable.configFileName", "./target/test-classes/embeddable.properties"); EJBContainer ec = EJBContainer.createEJBContainer(properties);

I got this error as well when connecting to FileNet P8. I needed:

  • com.ibm.ws.ejb.embeddableContainer_8.5.0.jar
  • com.ibm.ws.ejb.thinclient_8.5.0.jar
  • ibmorb.jar
  • com.ibm.ws.emf.jar
  • j2ee.jar
  • Jace.jar
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!