<!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">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;">
Process Variables made by Java cannot be deserialized
</h3>
<span style="margin-bottom: 10px;">
reply from <a href="http://community.jboss.org/people/GerardoNS">Gerardo Navarro Suarez</a> in <i>jBPM</i> - <a href="http://community.jboss.org/message/538642#538642">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 Huisheng,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>thanks for your answer.</p><p>I installed jBPM via demo.setup.jboss.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>In my project I'm using the create.and.deploy.pois target of the following build.xml. I copied the build.xml from the example project. But I had to modify it a little bit, because the original build.xml creates an example.bar which contains *.java - Files and not *.class - Files. So I changed it and my pois.bar contains *.class - Files.  </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="padding-left: 30px;"><?xml version="1.0" encoding="UTF-8"?></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="padding-left: 30px;"><project name="jbpm.pois"></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="padding-left: 30px;">    <!-- DEVELOPER SPECIFIC CONFIGURATIONS --></p><p style="padding-left: 30px;">    <property file="${user.home}/.jbpm4/build.properties" /></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="padding-left: 30px;">    <!-- DEFAULT PROPERTY VALUES --></p><p style="padding-left: 30px;">    <property name="database" value="hsqldb" /></p><p style="padding-left: 30px;">    <property name="jbpm.parent.dir" value="../.." /></p><p style="padding-left: 30px;">    <property name="jbpm.version" value="4.3" /></p><p style="padding-left: 30px;">    <property name="jboss.version" value="5.0.0.GA" /></p><p style="padding-left: 30px;">    <property name="jbpm.home" value="${jbpm.parent.dir}/jbpm-${jbpm.version}" /></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="padding-left: 30px;">    <!-- JDBC PROPERTIES --></p><p style="padding-left: 30px;">    <property file="${user.home}/.jbpm4/jdbc/${database}.properties" /></p><p style="padding-left: 30px;">    <property file="${jbpm.home}/db/jdbc/${database}.properties" /></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="padding-left: 30px;">    <!-- ### LOG PROPERTIES ################################################# --></p><p style="padding-left: 30px;">    <target name="log.properties"></p><p style="padding-left: 30px;">        <echo message="database: ${database}" /></p><p style="padding-left: 30px;">        <echo message="jdbc.driver........ ${jdbc.driver}" /></p><p style="padding-left: 30px;">        <echo message="jdbc.url........... ${jdbc.url}" /></p><p style="padding-left: 30px;">        <echo message="jdbc.username...... ${jdbc.username}" /></p><p style="padding-left: 30px;">        <echo message="jbpm.version....... ${jbpm.version}" /></p><p style="padding-left: 30px;">        <echo message="jbpm.home.......... ${jbpm.home}" /></p><p style="padding-left: 30px;">    </target></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="padding-left: 30px;">    <target name="jbpm.libs.path"></p><p style="padding-left: 30px;">        <path id="jbpm.libs.incl.dependencies"></p><p style="padding-left: 30px;">            <pathelement location="${jbpm.home}/pois/target/classes" /></p><p style="padding-left: 30px;">            <fileset dir="${jbpm.home}"></p><p style="padding-left: 30px;">                <include name="jbpm.jar" /></p><p style="padding-left: 30px;">            </fileset></p><p style="padding-left: 30px;">            <fileset dir="${jbpm.home}/lib" /></p><p style="padding-left: 30px;">        </path></p><p style="padding-left: 30px;">    </target></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="padding-left: 30px;">    <!-- ### DEPLOY EXAMPLE BUSINESS ARCHIVES ############################### --></p><p style="padding-left: 30px;">    <target name="create.and.deploy.pois"</p><p style="padding-left: 30px;">              depends="jbpm.libs.path, pois.jar"></p><p style="padding-left: 30px;">        <mkdir dir="${jbpm.home}/pois/target" /></p><p style="padding-left: 30px;">        <copy file="${jbpm.home}/install/src/cfg/hibernate/jdbc/${database}.hibernate.cfg.xml"</p><p style="padding-left: 30px;">                tofile="${jbpm.home}/pois/target/classes/jbpm.hibernate.cfg.xml"</p><p style="padding-left: 30px;">              overwrite="true"></p><p style="padding-left: 30px;">            <filterset filtersfile="${jbpm.home}/install/jdbc/${database}.properties" /></p><p style="padding-left: 30px;">        </copy></p><p style="padding-left: 30px;">        <jar destfile="${jbpm.home}/pois/target/pois.bar" ></p><p style="padding-left: 30px;">            <fileset dir="${jbpm.home}/pois/target/classes"></p><p style="padding-left: 30px;">                <exclude name="jbpm.cfg.xml" /></p><p style="padding-left: 30px;">                <exclude name="jbpm.hibernate.cfg.xml" /></p><p style="padding-left: 30px;">                <exclude name="jbpm.mail.properties" /></p><p style="padding-left: 30px;">                <exclude name="jbpm.mail.templates.examples.xml" /></p><p style="padding-left: 30px;">                <exclude name="logging.properties" /></p><p style="padding-left: 30px;">                <exclude name="de/hpi/pois/bewerbungsverfahren/bewerbungsverfahren.jpdl.xml" /></p><p style="padding-left: 30px;">                <exclude name="de/hpi/pois/bewerbungsverfahren/Bewerberbewertung.jpdl.xml" /></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="padding-left: 30px;">                <exclude name="de/hpi/pois/firsttest/timing.jpdl.xml" /></p><p style="padding-left: 30px;">            </fileset></p><p style="padding-left: 30px;">        </jar></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="padding-left: 30px;">        <!-- <jar destfile="${jbpm.home}/pois/target/pois.bar"></p><p style="padding-left: 30px;">            <fileset dir="${jbpm.home}/pois/src"></p><p style="padding-left: 30px;">                <exclude name="jbpm.cfg.xml" /></p><p style="padding-left: 30px;">                <exclude name="jbpm.hibernate.cfg.xml" /></p><p style="padding-left: 30px;">                <exclude name="jbpm.mail.properties" /></p><p style="padding-left: 30px;">                <exclude name="jbpm.mail.templates.examples.xml" /></p><p style="padding-left: 30px;">                <exclude name="logging.properties" /></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="padding-left: 30px;">                <exclude name="de/hpi/pois/bewerbungsverfahren/bewerbungsverfahren.jpdl.xml" /></p><p style="padding-left: 30px;">                <exclude name="de/hpi/pois/bewerbungsverfahren/Bewerberbewertung.jpdl.xml" /></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="padding-left: 30px;">                <exclude name="de/hpi/pois/firsttest/timing.jpdl.xml" /></p><p style="padding-left: 30px;">            </fileset></p><p style="padding-left: 30px;">        </jar> --></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="padding-left: 30px;">        <taskdef name="jbpm-deploy" classname="org.jbpm.pvm.internal.ant.JbpmDeployTask" classpathref="jbpm.libs.incl.dependencies" /></p><p style="padding-left: 30px;">        <jbpm-deploy file="${jbpm.home}/pois/target/pois.bar" /></p><p style="padding-left: 30px;">    </target></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="padding-left: 30px;">    <target name="pois.jar" depends="jbpm.libs.path"></p><p style="padding-left: 30px;">        <mkdir dir="${jbpm.home}/pois/target/classes" /></p><p style="padding-left: 30px;">        <javac srcdir="${jbpm.home}/pois/src"</p><p style="padding-left: 30px;">           destdir="${jbpm.home}/pois/target/classes"</p><p style="padding-left: 30px;">                 source="1.5"</p><p style="padding-left: 30px;">           classpathref="jbpm.libs.incl.dependencies" /></p><p style="padding-left: 30px;">        <copy todir="${jbpm.home}/pois/target/classes"></p><p style="padding-left: 30px;">            <fileset dir="${jbpm.home}/pois/src"></p><p style="padding-left: 30px;">                <exclude name="**/*.java" /></p><p style="padding-left: 30px;">            </fileset></p><p style="padding-left: 30px;">        </copy></p><p style="padding-left: 30px;">        <jar destfile="${jbpm.home}/pois/target/pois.jar" ></p><p style="padding-left: 30px;">            <fileset dir="${jbpm.home}/pois/target/classes"></p><p style="padding-left: 30px;">                <include name="**/*.class" /></p><p style="padding-left: 30px;">            </fileset></p><p style="padding-left: 30px;">        </jar></p><p style="padding-left: 30px;">    </target></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="padding-left: 30px;"></project></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Thanks again for your help.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Greetings,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Gerardo</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/538642#538642">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>