[jboss-user] [jBPM] - Process Variables made by Java cannot be deserialized

Gerardo Navarro Suarez do-not-reply at jboss.com
Wed Apr 21 03:57:52 EDT 2010


Gerardo Navarro Suarez [http://community.jboss.org/people/GerardoNS] replied to the discussion

"Process Variables made by Java cannot be deserialized"

To view the discussion, visit: http://community.jboss.org/message/538642#538642

--------------------------------------------------------------
Hello Huisheng,

thanks for your answer.
I installed jBPM via demo.setup.jboss.

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.  

<?xml version="1.0" encoding="UTF-8"?>

<project name="jbpm.pois">

    <!-- DEVELOPER SPECIFIC CONFIGURATIONS -->
    <property file="${user.home}/.jbpm4/build.properties" />

    <!-- DEFAULT PROPERTY VALUES -->
    <property name="database" value="hsqldb" />
    <property name="jbpm.parent.dir" value="../.." />
    <property name="jbpm.version" value="4.3" />
    <property name="jboss.version" value="5.0.0.GA" />
    <property name="jbpm.home" value="${jbpm.parent.dir}/jbpm-${jbpm.version}" />

    <!-- JDBC PROPERTIES -->
    <property file="${user.home}/.jbpm4/jdbc/${database}.properties" />
    <property file="${jbpm.home}/db/jdbc/${database}.properties" />

    <!-- ### LOG PROPERTIES ################################################# -->
    <target name="log.properties">
        <echo message="database: ${database}" />
        <echo message="jdbc.driver........ ${jdbc.driver}" />
        <echo message="jdbc.url........... ${jdbc.url}" />
        <echo message="jdbc.username...... ${jdbc.username}" />
        <echo message="jbpm.version....... ${jbpm.version}" />
        <echo message="jbpm.home.......... ${jbpm.home}" />
    </target>

    <target name="jbpm.libs.path">
        <path id="jbpm.libs.incl.dependencies">
            <pathelement location="${jbpm.home}/pois/target/classes" />
            <fileset dir="${jbpm.home}">
                <include name="jbpm.jar" />
            </fileset>
            <fileset dir="${jbpm.home}/lib" />
        </path>
    </target>

    <!-- ### DEPLOY EXAMPLE BUSINESS ARCHIVES ############################### -->
    <target name="create.and.deploy.pois"
              depends="jbpm.libs.path, pois.jar">
        <mkdir dir="${jbpm.home}/pois/target" />
        <copy file="${jbpm.home}/install/src/cfg/hibernate/jdbc/${database}.hibernate.cfg.xml"
                tofile="${jbpm.home}/pois/target/classes/jbpm.hibernate.cfg.xml"
              overwrite="true">
            <filterset filtersfile="${jbpm.home}/install/jdbc/${database}.properties" />
        </copy>
        <jar destfile="${jbpm.home}/pois/target/pois.bar" >
            <fileset dir="${jbpm.home}/pois/target/classes">
                <exclude name="jbpm.cfg.xml" />
                <exclude name="jbpm.hibernate.cfg.xml" />
                <exclude name="jbpm.mail.properties" />
                <exclude name="jbpm.mail.templates.examples.xml" />
                <exclude name="logging.properties" />
                <exclude name="de/hpi/pois/bewerbungsverfahren/bewerbungsverfahren.jpdl.xml" />
                <exclude name="de/hpi/pois/bewerbungsverfahren/Bewerberbewertung.jpdl.xml" />

                <exclude name="de/hpi/pois/firsttest/timing.jpdl.xml" />
            </fileset>
        </jar>

        <!-- <jar destfile="${jbpm.home}/pois/target/pois.bar">
            <fileset dir="${jbpm.home}/pois/src">
                <exclude name="jbpm.cfg.xml" />
                <exclude name="jbpm.hibernate.cfg.xml" />
                <exclude name="jbpm.mail.properties" />
                <exclude name="jbpm.mail.templates.examples.xml" />
                <exclude name="logging.properties" />

                <exclude name="de/hpi/pois/bewerbungsverfahren/bewerbungsverfahren.jpdl.xml" />
                <exclude name="de/hpi/pois/bewerbungsverfahren/Bewerberbewertung.jpdl.xml" />

                <exclude name="de/hpi/pois/firsttest/timing.jpdl.xml" />
            </fileset>
        </jar> -->

        <taskdef name="jbpm-deploy" classname="org.jbpm.pvm.internal.ant.JbpmDeployTask" classpathref="jbpm.libs.incl.dependencies" />
        <jbpm-deploy file="${jbpm.home}/pois/target/pois.bar" />
    </target>

    <target name="pois.jar" depends="jbpm.libs.path">
        <mkdir dir="${jbpm.home}/pois/target/classes" />
        <javac srcdir="${jbpm.home}/pois/src"
           destdir="${jbpm.home}/pois/target/classes"
                 source="1.5"
           classpathref="jbpm.libs.incl.dependencies" />
        <copy todir="${jbpm.home}/pois/target/classes">
            <fileset dir="${jbpm.home}/pois/src">
                <exclude name="**/*.java" />
            </fileset>
        </copy>
        <jar destfile="${jbpm.home}/pois/target/pois.jar" >
            <fileset dir="${jbpm.home}/pois/target/classes">
                <include name="**/*.class" />
            </fileset>
        </jar>
    </target>

</project>

Thanks again for your help.

Greetings,

Gerardo

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/538642#538642]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100421/b1cf89ee/attachment.html 


More information about the jboss-user mailing list