February 21, 2012 8:24:56 AM PST
Goal: How to Fix Interstage BPM Server Startup Error Fact: Interstage BPM (Business Process Management) v11.0 or after Fact: RedHat JBoss EAP (Enterprise Application Platform) v5.0 Fact: Windows Fact: RedHat Linux v5.x Symptom: Executing BPM server launching script such as runIBPM.bat in Windows or runIBPM.sh in RedHat Linux fails with the following exception: Thu Dec 01 15:46:18 EST 2011: TID=1095214364: IflowStartup : @( Failed to execute the IBPM startup routine task) Unable to deliver the message for the requested eventClass. {java.lang.ClassCastException: javax.naming.Reference cannot be cast to javax.jms.ConnectionFactory}
Unable to deliver the message for the requested eventClass. {java.lang.ClassCastException: javax.naming.Reference cannot be cast to javax.jms.ConnectionFactory}
at com.fujitsu.iflow.serveree.impl.common.JmsMessagePoster.sendTimerTaskMessage(JmsMessagePoster.java:71)
at com.fujitsu.iflow.serveree.impl.common.IflowStartup.run(IflowStartup.java:106)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
Caused by: java.lang.ClassCastException: javax.naming.Reference cannot be cast to javax.jms.ConnectionFactory
at com.fujitsu.iflow.serveree.impl.common.JmsMessagePoster.createSessionAndPublisher(JmsMessagePoster.java:590)
at com.fujitsu.iflow.serveree.impl.common.JmsMessagePoster.getSession(JmsMessagePoster.java:638)
at com.fujitsu.iflow.serveree.impl.common.JmsMessagePoster.sendTimerTaskMessage(JmsMessagePoster.java:65)
... 3 more Fix:This server startup issue can be resolved by updating the IBPM Server system property called JMSNamingProviderURL.<host name>=jnp://<hostname>:1100 The hostname specified above should resolve into the IP Address specified below while executing the runIBPM.bat or runIBPM.sh. A typical command to launch BPM server with JBoss RedHat EAP v5.0 is:runIBPM -b <IP address> (Usually, runIBPM -b 0.0.0. is recommended for all available network interfaces).-b option binds the JVM to the specifid IP. In short, the server property JMSNamingProviderURL.<host name>=jnp://<hostname>:1100 whose hostname field should resolve into one of the IP as specified in the -b option for launching BPM server instance in RedHat JBoss EAP v5.0. Otherwise, server will fail to start with the error message: IflowStartup : @( Failed to execute the IBPM startup routine task) Unable to deliver the message for the requested eventClass. {java.lang.ClassCastException: javax.naming.Reference cannot be cast to javax.jms.ConnectionFactory}
Author: C.Y. Chen
Attachment: