<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    jBPM 3.2.3 (with Seam 2.2.0) on WebSphere
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/mhfox">Mike Fox</a> in <i>jBPM</i> - <a href="http://community.jboss.org/message/556706#556706">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Hello,</p><p>I've got a Seam 2.2 app that that has been running on JBoss and I now need to get it running on WebSphere.&#160; I've run across an error now during the deployment of the business process.&#160; When it goes to the database to look for an existing process (which does exist) I get back an odd error as shown below:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="padding-left: 30px;">java.lang.ClassCastException: org.jbpm.graph.def.ProcessDefinition incompatible with org.jbpm.graph.def.ProcessDefinition<br/>&#160;&#160;&#160;&#160; at org.jbpm.db.GraphSession.findLatestProcessDefinition(GraphSession.java:153)<br/>&#160;&#160;&#160;&#160; at uk.co.iblocks.jbpm.JbpmExtensions$ProcessDescriptor.&lt;init&gt;(JbpmExtensions.java:84)<br/>&#160;&#160;&#160;&#160; at uk.co.iblocks.jbpm.JbpmExtensions.installProcessDefinitions(JbpmExtensions.java:404)<br/>&#160;&#160;&#160;&#160; at uk.co.iblocks.jbpm.JbpmExtensions.startup(JbpmExtensions.java:352)<br/>&#160;&#160;&#160;&#160; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br/>&#160;&#160;&#160;&#160; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)<br/>&#160;&#160;&#160;&#160; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)<br/>&#160;&#160;&#160;&#160; at java.lang.reflect.Method.invoke(Method.java:600)<br/>&#160;&#160;&#160;&#160; at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)<br/>&#160;&#160;&#160;&#160; at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144)<br/>&#160;&#160;&#160;&#160; at org.jboss.seam.Component.callComponentMethod(Component.java:2249)<br/>&#160;&#160;&#160;&#160; at org.jboss.seam.Component.callCreateMethod(Component.java:2172)<br/>&#160;&#160;&#160;&#160; at org.jboss.seam.Component.newInstance(Component.java:2132)<br/>&#160;&#160;&#160;&#160; at org.jboss.seam.contexts.Contexts.startup(Contexts.java:304)<br/>&#160;&#160;&#160;&#160; at org.jboss.seam.contexts.Contexts.startup(Contexts.java:278)<br/>&#160;&#160;&#160;&#160; at org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:116)<br/>&#160;&#160;&#160;&#160; at org.jboss.seam.init.Initialization.init(Initialization.java:740)<br/>&#160;&#160;&#160;&#160; at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:36)<br/>&#160;&#160;&#160;&#160; at com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:1678)<br/>&#160;&#160;&#160;&#160; at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:371)<br/>&#160;&#160;&#160;&#160; at com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:298)<br/>&#160;&#160;&#160;&#160; at com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:100)<br/>&#160;&#160;&#160;&#160; at com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:166)<br/>&#160;&#160;&#160;&#160; at com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:731)<br/>&#160;&#160;&#160;&#160; at com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:616)<br/>&#160;&#160;&#160;&#160; at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:376)<br/>&#160;&#160;&#160;&#160; at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:668)<br/>&#160;&#160;&#160;&#160; at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1122)<br/>&#160;&#160;&#160;&#160; at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1315)<br/>&#160;&#160;&#160;&#160; at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:619)<br/>&#160;&#160;&#160;&#160; at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:940)<br/>&#160;&#160;&#160;&#160; at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:725)<br/>&#160;&#160;&#160;&#160; at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2046)<br/>&#160;&#160;&#160;&#160; at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:439)<br/>&#160;&#160;&#160;&#160; at com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123)<br/>&#160;&#160;&#160;&#160; at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:382)<br/>&#160;&#160;&#160;&#160; at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$300(CompositionUnitMgrImpl.java:110)<br/>&#160;&#160;&#160;&#160; at com.ibm.ws.runtime.component.CompositionUnitMgrImpl$CUInitializer.run(CompositionUnitMgrImpl.java:949)<br/>&#160;&#160;&#160;&#160; at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:349)<br/>&#160;&#160;&#160;&#160; at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1550)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>All I can figure is that it's pulling back a null and trying to cast that, but when I look at the hibernate query defined by GraphSession.findProcessDefinitionByNameAndVersion, everything looks good and there certainly should be data. I'm not seeing any hibernate issues at the DEBUG level in log4j.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Has anyone here ever run into this or something similar before?</p><p>thanks,</p><p>Mike</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/556706#556706">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in jBPM at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>