Yea some success. I have some better distilled down notes I will try to add. Still a rather frustrating solution. I wish at least we could see some more info on release timelines and more docs. I basically had to drop back to compiling from source since I was making some changes to allow annotated classes to be persisted (my classes not using class-name.hbm.xml style persistence descriptors). There is a jira item on this and I think they will include the change to an AnnotatedConfiguration which will allow statements like:
| <mapping class="com.mycompany.entity.MyClass"/> | in hibernate.cfg.xml. Here is an ant build script you can use to expand and contract the jbpm-enterprise.ear so that you can edit the hibernate.cfg.xml just ant expand make your edits ant build | <project name="hpfm-jbpm"> | | <property name="basedir" value="."/> | <property name="built.dir" value="${basedir}/built"/> | <property name="expand.dir" value="${basedir}/expand"/> | <property name="jboss.deploy.dir" value="/usr/local/jboss/server/messaging/deploy"/> | | | <target name="clean"> | <delete dir="${built.dir}" /> | </target> | | <target name="prepare"> | <mkdir dir="${built.dir}" /> | <mkdir dir="${expand.dir}" /> | </target> | | <target name="expand" description="expand ear into the expand dir" depends="prepare"> | <!-- UNZIP THE EAR FILE --> | <unzip src="${basedir}/jbpm-enterprise.ear" dest="${expand.dir}" /> | | <mkdir dir="${expand.dir}/jbpm-console-war" /> | <unzip src="${expand.dir}/jbpm-console.war" dest="${expand.dir}/jbpm-console-war" /> | | <mkdir dir="${expand.dir}/jbpm-enterprise-jar" /> | <unzip src="${expand.dir}/jbpm-enterprise.jar" dest="${expand.dir}/jbpm-enterprise-jar" /> | | <mkdir dir="${expand.dir}/lib/jbpm-configs-jar" /> | <unzip src="${expand.dir}/lib/jbpm-configs.jar" dest="${expand.dir}/lib/jbpm-configs-jar" /> | | <mkdir dir="${expand.dir}/lib/jbpm-identity-jar" /> | <unzip src="${expand.dir}/lib/jbpm-identity.jar" dest="${expand.dir}/lib/jbpm-identity-jar" /> | | <mkdir dir="${expand.dir}/lib/jbpm-jpdl-jar" /> | <unzip src="${expand.dir}/lib/jbpm-jpdl.jar" dest="${expand.dir}/lib/jbpm-jpdl-jar" /> | | </target> | | | | <target name="contract" description="remake all the parts to the parts directory" depends="prepare"> | | <!-- ZIP CONTENTS OF THE EXPAND/LIB DIRECTORY--> | | <zip destfile="${expand.dir}/lib/jbpm-jpdl.jar"> | <fileset dir="${expand.dir}/lib/jbpm-jpdl-jar" /> | </zip> | | <zip destfile="${expand.dir}/lib/jbpm-identity.jar"> | <fileset dir="${expand.dir}/lib/jbpm-identity-jar" /> | </zip> | | <zip destfile="${expand.dir}/lib/jbpm-configs.jar"> | <fileset dir="${expand.dir}/lib/jbpm-configs-jar" /> | </zip> | | <!-- ZIP CONTENTS OF THE EXPAND DIRECTORY--> | | <zip destfile="${expand.dir}/jbpm-enterprise.jar"> | <fileset dir="${expand.dir}/jbpm-enterprise-jar" /> | </zip> | | <zip destfile="${expand.dir}/jbpm-console.war"> | <fileset dir="${expand.dir}/jbpm-console-war" /> | </zip> | | </target> | | | | <!-- | <target name="build" depends="prepare, make-parts"> | <ear destfile="${built.dir}/jbpm-enterprise.ear" appxml="${parts.dir}/META-INF/application.xml"> | <fileset dir="${parts.dir}"> | <exclude name="META-INF/application.xml" /> | </fileset> | </ear> | </target> | --> | | <target name="build" depends="prepare, contract"> | <ear destfile="${built.dir}/jbpm-enterprise.ear" appxml="${expand.dir}/META-INF/application.xml"> | <fileset dir="${expand.dir}" includes="*.war,*.jar,lib/*.jar" > | <!-- | <exclude name="META-INF/application.xml" /> | <exclude name="jbpm-enterprise-jar" /> | <exclude name="jbpm-console-war" /> | <exclude name="lib/jbpm-identity-jar" /> | <exclude name="lib/jbpm-configs-jar" /> | <exclude name="lib/jbpm-jpdl-jar" /> | --> | | </fileset> | </ear> | </target> | | | <target name="deploy" depends="build"> | <copy file="${built.dir}/jbpm-enterprise.ear" todir="${jboss.deploy.dir}"/> | </target> | | | </project> | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031322#4031322 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031322 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user