WebSphere 9 - Restart application

爱⌒轻易说出口 提交于 2019-12-25 08:02:51

问题


After successfully installing and using one of our web applications, I tried to restart the application (via Integrated Solutions Console), but the outcome was not what I was expecting. The SystemOut.log file was immediately flooded with exceptions. I'll just highlight the most relevants:

java.lang.ClassCastException: pt.sibs.epms.persistence.entity.EpmsDebugParameters incompatible with pt.sibs.epms.persistence.entity.EpmsDebugParameters
                at pt.sibs.epms.ecc.ApplicationManager.init(ApplicationManager.java:100) ~[classes/:na]

java.lang.IllegalArgumentException: Object: x.EccAudit[ eccAuditPK=x.EccAuditPK[ eventUsername=system, eventTimestamp=Thu Jul 14 17:20:04 BST 2016, eventModule=ECC ] ] is not a known Entity type.
                at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.registerNewObjectForPersist(UnitOfWorkImpl.java:4229) ~[com.ibm.ws.jpa.eclipselink.jar:na]

CWOWB2001E: A POST_CONSTRUCT lifecycle inteceptor threw an exception: org.jboss.weld.exceptions.WeldException: WELD-000049: Unable to invoke public void pt.sibs.epms.ecc.ThreadPoolManager.init() on pt.sibs.epms.ecc.ThreadPoolManager@7878f48b
                at org.jboss.weld.injection.producer.DefaultLifecycleCallbackInvoker.invokeMethods(DefaultLifecycleCallbackInvoker.java:100)

CNTR0020E: EJB threw an unexpected (non-declared) exception during invocation of method "init" on bean "BeanId(EpmsControlCenter-v2#EpmsControlCenter.war#NotificationEventGenerator, null)". Exception data: org.jboss.weld.exceptions.WeldException: WELD-000049: Unable to invoke public void pt.sibs.epms.ecc.ThreadPoolManager.init() on pt.sibs.epms.ecc.ThreadPoolManager@7878f48b
                at org.jboss.weld.injection.producer.DefaultLifecycleCallbackInvoker.invokeMethods(DefaultLifecycleCallbackInvoker.java:100)

CNTR0019E: EJB threw an unexpected (non-declared) exception during invocation of method "fireScheduledEvent". Exception data: javax.ejb.NoSuchEJBException: An error occurred during initialization of singleton session bean EpmsControlCenter-v2#EpmsControlCenter.war#NotificationEventGenerator, resulting in the discarding of the singleton instance.; nested exception is: javax.ejb.EJBException: See nested exception; nested exception is: org.jboss.weld.exceptions.WeldException: WELD-000049: Unable to invoke public void pt.sibs.epms.ecc.ThreadPoolManager.init() on pt.sibs.epms.ecc.ThreadPoolManager@7878f48b
                at com.ibm.ejs.container.util.ExceptionUtil.NoSuchEJBException(ExceptionUtil.java:540)

SRVE0293E: [Servlet Error]-[Faces Servlet]: java.lang.IllegalArgumentException: Unknown Entity bean class: class pt.sibs.epms.persistence.entity.EpmsOtherSystemParameters, please verify that this class has been marked with the @Entity annotation.
                at org.eclipse.persistence.internal.jpa.EntityManagerImpl.find(EntityManagerImpl.java:718)

The application is no longer working and I have to restart the server to make it work again. Not cool.

Any ideas?

EDIT #1

This seems to happen only after redeploys.


回答1:


You need to restart the application after the redeploy, as CDI does not support the dynamic update scenario.



来源:https://stackoverflow.com/questions/38379776/websphere-9-restart-application

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!