﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-西瓜地儿-随笔分类-jbpm</title><link>http://www.blogjava.net/ashutc/category/43559.html</link><description>有多少面试题是ctrl+c然后ctrl+v的呢？考那么难的题真的养得起么？</description><language>zh-cn</language><lastBuildDate>Fri, 25 Mar 2011 04:14:52 GMT</lastBuildDate><pubDate>Fri, 25 Mar 2011 04:14:52 GMT</pubDate><ttl>60</ttl><item><title>jbpm的两个错误</title><link>http://www.blogjava.net/ashutc/archive/2011/03/24/346933.html</link><dc:creator>西瓜</dc:creator><author>西瓜</author><pubDate>Thu, 24 Mar 2011 03:46:00 GMT</pubDate><guid>http://www.blogjava.net/ashutc/archive/2011/03/24/346933.html</guid><wfw:comment>http://www.blogjava.net/ashutc/comments/346933.html</wfw:comment><comments>http://www.blogjava.net/ashutc/archive/2011/03/24/346933.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/ashutc/comments/commentRss/346933.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/ashutc/services/trackbacks/346933.html</trackback:ping><description><![CDATA[<br />
<span style="color: darkblue;"><strong>1、问题：org.hibernate.exception.ConstraintViolationException: could not delete: [org.jbpm.pvm.internal.model.ExecutionImpl#1]</strong></span>
<br />
连接Mysql5时，jBPM4运行到 End结点时的错误，把 hibernate.dialect 改为 org.hibernate.dialect.MySQLInnoDBDialect
<br />
<br />
<br />
<strong>
<br />
<span style="color: darkblue;">2、问
题：org.hibernate.HibernateException: instance not of expected entity
type: org.jbpm.pvm.internal.type.variable.UnpersistableVariable is not
a: org.jbpm.pvm.internal.type.Variable
<br />
<br />
In case you still got the problem. I also had this error due to the
fact the Object I was adding as a variable was not Serializable.
<br />
<br />
Implementing java.io.Serializable should fix this error.</span></strong>
<br />
<br />
意思是压入上下文的对象要实现 Serializable接口
<br />
<br />
<br />
<span style="color: darkblue;"><strong>3、问题：Caused by: java.lang.ClassNotFoundException: de.odysseus.el.util.SimpleResolver</strong></span>
<br />
<br />
Requirements
<br />
<br />
JUEL requires Java 5 or later.
<br />
<br />
加入juel.jar
<br />
<br />
-------------------------
<br />
I think I get same problem when trying to integrate JBPM4 into my app. And I find out why.
<br />
Because you're using Tomcat 6.0... The lib el-api.jar in
%tomcat_home%/lib conflicts with juel.jar, which exists in
%jbpm4_home%/lib.
<br />
<br />
juel: &lt;http://juel.sourceforge.net/&gt; You will find the 2 jars define the same api for javax/el/ExressionFactory.
<br />
<br />
The solution is that you use Tomcat 5.5 instead of Tomcat 6.0. Because tomcat 5.5 uses commons-el.jar (Tomcat5.5/common/lib)
<br />
<br />
Or you can still use Tomcat 6.0, but you must replace el-api.jar
with juel.jar. And don't forget to remove juel.jar from your app lib(A
duplicate import, if you don't remove).
<br />
<br />
Try it!
<br />
<br />
---------------------------------------------------------
<br />
<strong>总结：删掉tomcat6的el.jar，加入juel.jar,juel-impl.jar,juel-engine.jar</strong>
<br />
<br />
<br />
<br />
<br />
<br />
<img src ="http://www.blogjava.net/ashutc/aggbug/346933.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/ashutc/" target="_blank">西瓜</a> 2011-03-24 11:46 <a href="http://www.blogjava.net/ashutc/archive/2011/03/24/346933.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>jbpm4.3流程图插件乱码问题和name输入刷新问题</title><link>http://www.blogjava.net/ashutc/archive/2010/01/14/309445.html</link><dc:creator>西瓜</dc:creator><author>西瓜</author><pubDate>Thu, 14 Jan 2010 05:40:00 GMT</pubDate><guid>http://www.blogjava.net/ashutc/archive/2010/01/14/309445.html</guid><wfw:comment>http://www.blogjava.net/ashutc/comments/309445.html</wfw:comment><comments>http://www.blogjava.net/ashutc/archive/2010/01/14/309445.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.blogjava.net/ashutc/comments/commentRss/309445.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/ashutc/services/trackbacks/309445.html</trackback:ping><description><![CDATA[<p>流程图插件中输入中文保存后会变成乱码。参考网站：<a href="http://am-wj.javaeye.com/blog/432188" target="_blank">http://am-wj.javaeye.com/blog/432188</a></p>
<p>1.将文件&nbsp;<a title="JbpmLocationPage.java" href="http://hzdoc.googlecode.com/files/JbpmLocationsPage.java" target="_blank">JbpmLocationPage.java</a>&nbsp;放入eclipse"plugins"org.jboss.tools.jbpm.common.source_日期.jar的org"jboss"tools"jbpm"preferences目录下</p>
<p>2.将文件<a title="JbpmLocationsPage%241.class" href="http://hzdoc.googlecode.com/files/JbpmLocationsPage%241.class" target="_blank">JbpmLocationsPage%241.class</a>、<a title="JbpmLocationsPage%242.class" href="http://hzdoc.googlecode.com/files/JbpmLocationsPage%242.class" target="_blank">JbpmLocationsPage%242.class</a>、<a title="JbpmLocationsPage%243.class" href="http://hzdoc.googlecode.com/files/JbpmLocationsPage%243.class" target="_blank">JbpmLocationsPage%243.class</a>、<a title="JbpmLocationsPage%244.class" href="http://hzdoc.googlecode.com/files/JbpmLocationsPage%244.class" target="_blank">JbpmLocationsPage%244.class</a>、<a title="JbpmLocationsPage.class" href="http://hzdoc.googlecode.com/files/JbpmLocationsPage.class" target="_blank">JbpmLocationsPage.class</a>放入eclipse"plugins"org.jboss.tools.jbpm.common_日期.jar的org"jboss"tools"jbpm"preferences目录下</p>
<p>3.<a title="NewJpdl4FileWizardPage.java" href="http://hzdoc.googlecode.com/files/NewJpdl4FileWizardPage.java" target="_blank">NewJpdl4FileWizardPage.java</a>放入org.jboss.tools.flow.jpdl4.source_1.2.0.v日期.jar中org"jboss"tools"flow"jpdl4"wizard</p>
<p>4.<a title="NewJpdl4FileWizardPage.class" href="http://hzdoc.googlecode.com/files/NewJpdl4FileWizardPage.class" target="_blank">NewJpdl4FileWizardPage.class</a>放入org.jboss.tools.flow.jpdl4_1.2.0.v日期.jar中org"jboss"tools"flow"jpdl4"wizard</p>
<p>5.<a title="JpdlSerializer.java" href="http://hzdoc.googlecode.com/files/JpdlSerializer.java" target="_blank">JpdlSerializer.java</a>、<a title="ProcessSerializer.java" href="http://hzdoc.googlecode.com/files/ProcessSerializer.java" target="_blank">ProcessSerializer.java</a>&nbsp;放入org.jboss.tools.flow.jpdl4.source_1.2.0.v日期.jar中org"jboss"tools"flow"jpdl4"io</p>
<p>6.<a title="JpdlSerializer.class" href="http://hzdoc.googlecode.com/files/JpdlSerializer.class" target="_blank">JpdlSerializer.class</a>、<a title="ProcessSerializer.class" href="http://hzdoc.googlecode.com/files/ProcessSerializer.class" target="_blank">ProcessSerializer.class</a>&nbsp;放入org.jboss.tools.flow.jpdl4_1.2.0.v日期.jar中org"jboss"tools"flow"jpdl4"io</p>
<p>在属性name中输入字母时总是要返回第一个位置很是烦人。</p>
<p>解决：主要是在输入完字母后，插件会刷新一下输入框。把这个去掉就好了。</p>
<p>将<a title="NameSection.java" href="http://hzdoc.googlecode.com/files/NameSection.java" target="_blank">NameSection.java</a>放入org.jboss.tools.flow.jpdl4.source_1.2.0.v日期.jar中org"jboss"tools"flow"jpdl4"properties"</p>
将<a title="NameSection.class" href="http://hzdoc.googlecode.com/files/NameSection.class" target="_blank">NameSection.class</a>、<a title="NameSection%241.class" href="http://hzdoc.googlecode.com/files/NameSection%241.class" target="_blank">NameSection%241.class</a>、<a title="NameSection%242.class" href="http://hzdoc.googlecode.com/files/NameSection%242.class" target="_blank">NameSection%242.class</a>放入org.jboss.tools.flow.jpdl4_1.2.0.v日期.jar中<br />
<br />
<br />
注：自己试了一下，问题没有解决。我用的是4.3版本的jbpm，如果谁解决了请留言。<br />
<img src ="http://www.blogjava.net/ashutc/aggbug/309445.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/ashutc/" target="_blank">西瓜</a> 2010-01-14 13:40 <a href="http://www.blogjava.net/ashutc/archive/2010/01/14/309445.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>jbpm4.3遇到的错误</title><link>http://www.blogjava.net/ashutc/archive/2010/01/12/309241.html</link><dc:creator>西瓜</dc:creator><author>西瓜</author><pubDate>Tue, 12 Jan 2010 14:32:00 GMT</pubDate><guid>http://www.blogjava.net/ashutc/archive/2010/01/12/309241.html</guid><wfw:comment>http://www.blogjava.net/ashutc/comments/309241.html</wfw:comment><comments>http://www.blogjava.net/ashutc/archive/2010/01/12/309241.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/ashutc/comments/commentRss/309241.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/ashutc/services/trackbacks/309241.html</trackback:ping><description><![CDATA[1：jbpm4.3包冲突<br />
错误如下：<br />
<div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; width: 98%;"><!--<br />
<br />
Code highlighting produced by Actipro CodeHighlighter (freeware)<br />
http://www.CodeHighlighter.com/<br />
<br />
--><span style="color: #000000;">严重:&nbsp;Servlet.service()&nbsp;</span><span style="color: #0000ff;">for</span><span style="color: #000000;">&nbsp;servlet&nbsp;jsp&nbsp;threw&nbsp;exception<br />
java.lang.LinkageError:&nbsp;loader&nbsp;constraint&nbsp;violation:&nbsp;when&nbsp;resolving&nbsp;</span><span style="color: #0000ff;">interface</span><span style="color: #000000;">&nbsp;method&nbsp;</span><span style="color: #000000;">"</span><span style="color: #000000;">javax.servlet.jsp.JspApplicationContext.getExpressionFactory()Ljavax/el/ExpressionFactory;</span><span style="color: #000000;">"</span><span style="color: #000000;">&nbsp;the&nbsp;</span><span style="color: #0000ff;">class</span><span style="color: #000000;">&nbsp;loader&nbsp;(instance&nbsp;of&nbsp;org</span><span style="color: #000000;">/</span><span style="color: #000000;">apache</span><span style="color: #000000;">/</span><span style="color: #000000;">jasper</span><span style="color: #000000;">/</span><span style="color: #000000;">servlet</span><span style="color: #000000;">/</span><span style="color: #000000;">JasperLoader)&nbsp;of&nbsp;the&nbsp;current&nbsp;</span><span style="color: #0000ff;">class</span><span style="color: #000000;">,&nbsp;org</span><span style="color: #000000;">/</span><span style="color: #000000;">apache</span><span style="color: #000000;">/</span><span style="color: #000000;">jsp</span><span style="color: #000000;">/</span><span style="color: #000000;">index_jsp,&nbsp;and&nbsp;the&nbsp;</span><span style="color: #0000ff;">class</span><span style="color: #000000;">&nbsp;loader&nbsp;(instance&nbsp;of&nbsp;org</span><span style="color: #000000;">/</span><span style="color: #000000;">apache</span><span style="color: #000000;">/</span><span style="color: #000000;">catalina</span><span style="color: #000000;">/</span><span style="color: #000000;">loader</span><span style="color: #000000;">/</span><span style="color: #000000;">StandardClassLoader)&nbsp;</span><span style="color: #0000ff;">for</span><span style="color: #000000;">&nbsp;resolved&nbsp;</span><span style="color: #0000ff;">class</span><span style="color: #000000;">,&nbsp;javax</span><span style="color: #000000;">/</span><span style="color: #000000;">servlet</span><span style="color: #000000;">/</span><span style="color: #000000;">jsp</span><span style="color: #000000;">/</span><span style="color: #000000;">JspApplicationContext,&nbsp;have&nbsp;different&nbsp;Class&nbsp;objects&nbsp;</span><span style="color: #0000ff;">for</span><span style="color: #000000;">&nbsp;the&nbsp;type&nbsp;javax</span><span style="color: #000000;">/</span><span style="color: #000000;">el</span><span style="color: #000000;">/</span><span style="color: #000000;">ExpressionFactory&nbsp;used&nbsp;in&nbsp;the&nbsp;signature<br />
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.apache.jsp.index_jsp._jspInit(index_jsp.java:</span><span style="color: #000000;">26</span><span style="color: #000000;">)<br />
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:</span><span style="color: #000000;">52</span><span style="color: #000000;">)<br />
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:</span><span style="color: #000000;">159</span><span style="color: #000000;">)<br />
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:</span><span style="color: #000000;">329</span><span style="color: #000000;">)<br />
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:</span><span style="color: #000000;">337</span><span style="color: #000000;">)<br />
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.apache.jasper.servlet.JspServlet.service(JspServlet.java:</span><span style="color: #000000;">266</span><span style="color: #000000;">)<br />
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;javax.servlet.http.HttpServlet.service(HttpServlet.java:</span><span style="color: #000000;">803</span><span style="color: #000000;">)<br />
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:</span><span style="color: #000000;">290</span><span style="color: #000000;">)<br />
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:</span><span style="color: #000000;">206</span><span style="color: #000000;">)<br />
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:</span><span style="color: #000000;">233</span><span style="color: #000000;">)<br />
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:</span><span style="color: #000000;">175</span><span style="color: #000000;">)<br />
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:</span><span style="color: #000000;">128</span><span style="color: #000000;">)<br />
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:</span><span style="color: #000000;">102</span><span style="color: #000000;">)<br />
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:</span><span style="color: #000000;">109</span><span style="color: #000000;">)<br />
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:</span><span style="color: #000000;">286</span><span style="color: #000000;">)<br />
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:</span><span style="color: #000000;">844</span><span style="color: #000000;">)<br />
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:</span><span style="color: #000000;">583</span><span style="color: #000000;">)<br />
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:</span><span style="color: #000000;">447</span><span style="color: #000000;">)<br />
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;java.lang.Thread.run(Unknown&nbsp;Source)</span></div>
<br />
&nbsp;&nbsp;
这里面需要删除juel.jar ,juel-engine.jar,juel-impl.jar&nbsp; 三个 jar文件<br />
<br />
————————————————————————————————————————————————<br />
<br />
&nbsp;&nbsp; 但是在其他项目应用里面或许还需要这三个包，就只能把tomcat下面的el-api.jar删掉了<br />
2：出现的错误如下：<br />
<div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; width: 98%;"><!--<br />
<br />
Code highlighting produced by Actipro CodeHighlighter (freeware)<br />
http://www.CodeHighlighter.com/<br />
<br />
--><span style="color: #000000;">严重:&nbsp;Servlet.service()&nbsp;</span><span style="color: #0000ff;">for</span><span style="color: #000000;">&nbsp;servlet&nbsp;LeaveServlet&nbsp;threw&nbsp;exception<br />
java.lang.ClassNotFoundException:&nbsp;de.odysseus.el.util.SimpleResolver<br />
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:</span><span style="color: #000000;">1360</span><span style="color: #000000;">)<br />
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:</span><span style="color: #000000;">1206</span><span style="color: #000000;">)<br />
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;java.lang.ClassLoader.loadClassInternal(Unknown&nbsp;Source)<br />
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.jbpm.pvm.internal.script.JuelScriptEngineFactory.getScriptEngine(JuelScriptEngineFactory.java:</span><span style="color: #000000;">185</span><span style="color: #000000;">)<br />
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;javax.script.ScriptEngineManager.getEngineByName(Unknown&nbsp;Source)<br />
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.jbpm.pvm.internal.script.ScriptManager.evaluate(ScriptManager.java:</span><span style="color: #000000;">111</span><span style="color: #000000;">)<br />
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.jbpm.pvm.internal.script.ScriptManager.evaluateExpression(ScriptManager.java:</span><span style="color: #000000;">90</span><span style="color: #000000;">)<br />
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.jbpm.pvm.internal.model.ExecutionImpl.resolveAssignmentExpression(ExecutionImpl.java:</span><span style="color: #000000;">772</span><span style="color: #000000;">)<br />
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.jbpm.pvm.internal.model.ExecutionImpl.initializeAssignments(ExecutionImpl.java:</span><span style="color: #000000;">726</span><span style="color: #000000;">)<br />
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.jbpm.jpdl.internal.activity.TaskActivity.execute(TaskActivity.java:</span><span style="color: #000000;">95</span><span style="color: #000000;">)<br />
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.jbpm.jpdl.internal.activity.TaskActivity.execute(TaskActivity.java:</span><span style="color: #000000;">58</span><span style="color: #000000;">)<br />
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.jbpm.pvm.internal.model.op.ExecuteActivity.perform(ExecuteActivity.java:</span><span style="color: #000000;">60</span><span style="color: #000000;">)<br />
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperationSync(ExecutionImpl.java:</span><span style="color: #000000;">656</span><span style="color: #000000;">)<br />
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperation(ExecutionImpl.java:</span><span style="color: #000000;">616</span><span style="color: #000000;">)<br />
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.jbpm.pvm.internal.model.ExecutionImpl.start(ExecutionImpl.java:</span><span style="color: #000000;">217</span><span style="color: #000000;">)<br />
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.jbpm.pvm.internal.cmd.StartProcessInstanceInLatestCmd.execute(StartProcessInstanceInLatestCmd.java:</span><span style="color: #000000;">65</span><span style="color: #000000;">)<br />
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.jbpm.pvm.internal.cmd.StartProcessInstanceInLatestCmd.execute(StartProcessInstanceInLatestCmd.java:</span><span style="color: #000000;">38</span><span style="color: #000000;">)<br />
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:</span><span style="color: #000000;">42</span><span style="color: #000000;">)<br />
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.jbpm.pvm.internal.tx.StandardTransactionInterceptor.execute(StandardTransactionInterceptor.java:</span><span style="color: #000000;">54</span><span style="color: #000000;">)<br />
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.jbpm.pvm.internal.svc.EnvironmentInterceptor.executeInNewEnvironment(EnvironmentInterceptor.java:</span><span style="color: #000000;">53</span><span style="color: #000000;">)<br />
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:</span><span style="color: #000000;">40</span><span style="color: #000000;">)<br />
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:</span><span style="color: #000000;">55</span><span style="color: #000000;">)<br />
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.jbpm.pvm.internal.svc.SkipInterceptor.execute(SkipInterceptor.java:</span><span style="color: #000000;">43</span><span style="color: #000000;">)<br />
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.jbpm.pvm.internal.svc.ExecutionServiceImpl.startProcessInstanceByKey(ExecutionServiceImpl.java:</span><span style="color: #000000;">66</span><span style="color: #000000;">)<br />
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;cn.yu.qingjiaServlet.LeaveServlet.leave(LeaveServlet.java:</span><span style="color: #000000;">151</span><span style="color: #000000;">)<br />
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;cn.yu.qingjiaServlet.LeaveServlet.process(LeaveServlet.java:</span><span style="color: #000000;">80</span><span style="color: #000000;">)<br />
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;cn.yu.qingjiaServlet.LeaveServlet.doGet(LeaveServlet.java:</span><span style="color: #000000;">60</span><span style="color: #000000;">)<br />
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;javax.servlet.http.HttpServlet.service(HttpServlet.java:</span><span style="color: #000000;">690</span><span style="color: #000000;">)<br />
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;javax.servlet.http.HttpServlet.service(HttpServlet.java:</span><span style="color: #000000;">803</span><span style="color: #000000;">)<br />
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:</span><span style="color: #000000;">290</span><span style="color: #000000;">)<br />
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:</span><span style="color: #000000;">206</span><span style="color: #000000;">)<br />
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;cn.yu.qingjiaServlet.SetCharaterEncodingFilter.doFilter(SetCharaterEncodingFilter.java:</span><span style="color: #000000;">26</span><span style="color: #000000;">)<br />
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:</span><span style="color: #000000;">235</span><span style="color: #000000;">)<br />
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:</span><span style="color: #000000;">206</span><span style="color: #000000;">)<br />
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:</span><span style="color: #000000;">233</span><span style="color: #000000;">)<br />
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:</span><span style="color: #000000;">175</span><span style="color: #000000;">)<br />
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:</span><span style="color: #000000;">128</span><span style="color: #000000;">)<br />
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:</span><span style="color: #000000;">102</span><span style="color: #000000;">)<br />
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:</span><span style="color: #000000;">109</span><span style="color: #000000;">)<br />
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:</span><span style="color: #000000;">286</span><span style="color: #000000;">)<br />
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:</span><span style="color: #000000;">844</span><span style="color: #000000;">)<br />
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:</span><span style="color: #000000;">583</span><span style="color: #000000;">)<br />
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:</span><span style="color: #000000;">447</span><span style="color: #000000;">)<br />
&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;java.lang.Thread.run(Unknown&nbsp;Source)<br />
</span></div>
<br />
3：当删除掉el-api.jar的时候出现的错误如下：<br />
<br />
<div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; width: 98%;"><!--<br />
<br />
Code highlighting produced by Actipro CodeHighlighter (freeware)<br />
http://www.CodeHighlighter.com/<br />
<br />
--><span style="color: #000000;">java.lang.NoClassDefFoundError:&nbsp;javax</span><span style="color: #000000;">/</span><span style="color: #000000;">el</span><span style="color: #000000;">/</span><span style="color: #000000;">ExpressionFactory</span></div>
<br />
解决jbpm4.3当中el-api.jar和三个包冲突的过程中，删除el-api.jar是出现的错误，把名为javaee.jar包（在myeclipse下有这个包）放到tomcat/lib里面就可以了<br />
<br />
<img src ="http://www.blogjava.net/ashutc/aggbug/309241.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/ashutc/" target="_blank">西瓜</a> 2010-01-12 22:32 <a href="http://www.blogjava.net/ashutc/archive/2010/01/12/309241.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>生成基于Oracle的jBPM数据库脚本</title><link>http://www.blogjava.net/ashutc/archive/2010/01/01/307990.html</link><dc:creator>西瓜</dc:creator><author>西瓜</author><pubDate>Fri, 01 Jan 2010 14:39:00 GMT</pubDate><guid>http://www.blogjava.net/ashutc/archive/2010/01/01/307990.html</guid><wfw:comment>http://www.blogjava.net/ashutc/comments/307990.html</wfw:comment><comments>http://www.blogjava.net/ashutc/archive/2010/01/01/307990.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/ashutc/comments/commentRss/307990.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/ashutc/services/trackbacks/307990.html</trackback:ping><description><![CDATA[<p>1. 下载最新版本的 JBoss jBPM Starters kit。解压这个文件，假设解压目录为
"${jbpm.starters.kit}"，它的下面应该有 jbpm，
jbpm-bpel，jbpm-db，jbpm-designer，jbpm-server 五个子目录。其中我们要用到的是 jbpm 和
jbpm-db两个目录。</p>
<p>2. 导航到 jbpm-db 子目录。在该目录下可以找到 build.properties 文件。这个文件需要作一定修改才能使用。 找到下面的这段代码：</p>
<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;jbpm.</span><span style="color: rgb(0, 0, 0);">3</span><span style="color: rgb(0, 0, 0);">.location</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">C:</span><span style="color: rgb(0, 0, 0);">/</span><span style="color: rgb(0, 0, 0);">jbpm</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">X.X&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;upgrade.hibernate.properties</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">hsqldb</span><span style="color: rgb(0, 0, 0);">/</span><span style="color: rgb(0, 0, 0);">hibernate.properties&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;upgrade.libdir</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">hsqldb</span><span style="color: rgb(0, 0, 0);">/</span><span style="color: rgb(0, 0, 0);">lib&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;upgrade.old.schema.script</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">hsqldb</span><span style="color: rgb(0, 0, 0);">/</span><span style="color: rgb(0, 0, 0);">upgrade.scripts</span><span style="color: rgb(0, 0, 0);">/</span><span style="color: rgb(0, 0, 0);">hsqldb.create.jbpm.</span><span style="color: rgb(0, 0, 0);">3.0</span><span style="color: rgb(0, 0, 0);">.</span><span style="color: rgb(0, 0, 0);">2</span><span style="color: rgb(0, 0, 0);">.sql <br />
</span></div>
<p>&nbsp;&nbsp;&nbsp; 注意第一行，将 &#8220;C:/jbpm-x.x&#8221; 改成 "${jbpm.starters.kit}/jbpm"。</p>
<p>3. 导航到&nbsp;jbpm 子目录。在 jbpm"src"config.files&nbsp;路径下可以找到 hibernate.cfg.xml 文件。这个文件需要修改和数据库连接相关的部分。找到下面这行代码：</p>
<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;">&nbsp;<span style="color: rgb(0, 0, 0);">&lt;</span><span style="color: rgb(0, 0, 0);">property&nbsp;name</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">hibernate.dialect</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);">org.hibernate.dialect.HSQLDialect&lt;/property</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;<br />
&nbsp;</span><span style="color: rgb(0, 0, 0);">&lt;</span><span style="color: rgb(0, 0, 0);">property&nbsp;name</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">hibernate.connection.driver_class</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);">org.hsqldb.jdbcDriver&lt;/property</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;<br />
&nbsp;</span><span style="color: rgb(0, 0, 0);">&lt;</span><span style="color: rgb(0, 0, 0);">property&nbsp;name</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">hibernate.connection.url</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);">jdbc:hsqldb:mem:.;sql.enforce_strict_size</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">true&lt;/property</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;<br />
&nbsp;</span><span style="color: rgb(0, 0, 0);">&lt;</span><span style="color: rgb(0, 0, 0);">property&nbsp;name</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">hibernate.connection.username</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);">sa&lt;/property</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;<br />
&nbsp;</span><span style="color: rgb(0, 0, 0);">&lt;</span><span style="color: rgb(0, 0, 0);">property&nbsp;name</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">hibernate.connection.password</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">&gt;&lt;/</span><span style="color: rgb(0, 0, 0);">property</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);"> <br />
</span></div>
<p>将其修改成 Oracle 的格式：</p>
<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;">&nbsp;<span style="color: rgb(0, 0, 0);">&lt;</span><span style="color: rgb(0, 0, 0);">property&nbsp;name</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">hibernate.dialect</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);">org.hibernate.dialect.Oracle9Dialect</span><span style="color: rgb(0, 0, 0);">&lt;/</span><span style="color: rgb(0, 0, 0);">property</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;<br />
&nbsp;</span><span style="color: rgb(0, 0, 0);">&lt;</span><span style="color: rgb(0, 0, 0);">property&nbsp;name</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">hibernate.connection.driver_class</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);">oracle.jdbc.driver.OracleDriver&lt;/property</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;<br />
&nbsp;</span><span style="color: rgb(0, 0, 0);">&lt;</span><span style="color: rgb(0, 0, 0);">property&nbsp;name</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">hibernate.connection.url</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);">jdbc:oracle:thin@localhost:</span><span style="color: rgb(0, 0, 0);">1521</span><span style="color: rgb(0, 0, 0);">:fred&lt;/property</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;<br />
&nbsp;</span><span style="color: rgb(0, 0, 0);">&lt;</span><span style="color: rgb(0, 0, 0);">property&nbsp;name</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">hibernate.connection.username</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);">FiberSchedulerJBPM&lt;/property</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;<br />
&nbsp;</span><span style="color: rgb(0, 0, 0);">&lt;</span><span style="color: rgb(0, 0, 0);">property&nbsp;name</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">hibernate.connection.password</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);">FiberSchedulerJBPM&lt;/property</span><span style="color: rgb(0, 0, 0);">&gt;</span></div>
&nbsp;&nbsp; 导航到子目录 jbpm 下的路径 jbpm-db"oracle"lib，下载最新的 Oracle jdbc驱动程序（我使用的是 class14.jar），把它放在该路径下。<br />
&nbsp;&nbsp; 其中 "localhost" 换成你自己的数据库所在的机器名（或者ip地址），"fred" 换成你自己的Oracle数据库的 SID 名字， 使用你自己的 Oracle 数据库用户名和密码来替换 "FiberSchedulerJBPM" 。<br />
4. 导航到 jbpm-db 子目录，在 jbpm-db"oracle 路径下找到文件 hibernate.properties。找到下面这段代码：<br />
<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><span style="color: rgb(0, 0, 0);">&nbsp;hibernate.connection.driver_class</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">oracle.jdbc.driver.OracleDriver&nbsp;&nbsp;&nbsp;<br />
&nbsp;hibernate.connection.url</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">jdbc:oracle:thin@HOST:PORT:SID&nbsp;&nbsp;&nbsp;<br />
&nbsp;hibernate.connection.username</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">USER&nbsp;&nbsp;&nbsp;<br />
&nbsp;hibernate.connection.password</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">PASSWORD&nbsp; <br />
</span></div>
根据你的数据库配置修改，我的修改如下：<br />
<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 0);">hibernate.connection.driver_class</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">oracle.jdbc.driver.OracleDriver&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp; </span><span style="color: rgb(0, 0, 0);">hibernate.connection.url</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">jdbc:oracle:thin:@localhost:</span><span style="color: rgb(0, 0, 0);">1521</span><span style="color: rgb(0, 0, 0);">:fred&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp; </span><span style="color: rgb(0, 0, 0);">hibernate.connection.username</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">FiberSchedulerJBPM&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp; </span><span style="color: rgb(0, 0, 0);">hibernate.connection.password</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">FiberSchedulerJBPM&nbsp;&nbsp;<br />
<br />
</span></div>
5. 在目录&nbsp;&nbsp;jbpm-db下找到ant脚本 build.xml 文件，这个ant 脚本中有这样一段代码是用来生成数据库脚本的：<br />
<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><span style="color: rgb(0, 0, 0);">&lt;</span><span style="color: rgb(0, 0, 0);">target&nbsp;name</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">db.scripts</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">&nbsp;description</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">helper&nbsp;target&nbsp;to&nbsp;generate&nbsp;the&nbsp;database&nbsp;scripts</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">&nbsp;depends</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">prepare</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp; </span><span style="color: rgb(0, 0, 0);">&lt;</span><span style="color: rgb(0, 0, 0);">delete&nbsp;dir</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">build/${db}/scripts</span><span style="color: rgb(0, 0, 0);">"</span>&nbsp;<span style="color: rgb(0, 0, 0);">/&gt;</span><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;<br />
&nbsp; </span><span style="color: rgb(0, 0, 0);">&lt;</span><span style="color: rgb(0, 0, 0);">mkdir&nbsp;dir</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">build/${db}/scripts</span><span style="color: rgb(0, 0, 0);">"</span>&nbsp;<span style="color: rgb(0, 0, 0);">/&gt;</span><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;<br />
&nbsp; </span><span style="color: rgb(0, 0, 0);">&lt;</span><span style="color: rgb(0, 0, 0);">java&nbsp;classname</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">org.jbpm.db.JbpmSchema</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">&nbsp;fork</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">true</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp; </span><span style="color: rgb(0, 0, 0);">&lt;</span><span style="color: rgb(0, 0, 0);">classpath&nbsp;refid</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">classpath.${db}</span><span style="color: rgb(0, 0, 0);">"</span>&nbsp;<span style="color: rgb(0, 0, 0);">/&gt;</span><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp; </span><span style="color: rgb(0, 0, 0);">&lt;</span><span style="color: rgb(0, 0, 0);">arg&nbsp;value</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">scripts</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">/&gt;</span><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp; </span><span style="color: rgb(0, 0, 0);">&lt;</span><span style="color: rgb(0, 0, 0);">arg&nbsp;value</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">${basedir}/build/${db}/scripts</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">/&gt;</span><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp; </span><span style="color: rgb(0, 0, 0);">&lt;</span><span style="color: rgb(0, 0, 0);">arg&nbsp;value</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">${db}</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">/&gt;</span><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: rgb(0, 0, 0);">&lt;</span><span style="color: rgb(0, 0, 0);">arg&nbsp;value</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">${jbpm.3.location}/src/config.files/hibernate.cfg.xml</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">/&gt;</span><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: rgb(0, 0, 0);">&lt;</span><span style="color: rgb(0, 0, 0);">arg&nbsp;value</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">${basedir}/${db}/hibernate.properties</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">/&gt;</span><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp; java</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;<br />
&nbsp;target</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);"> <br />
</span></div>
这段脚本将调用 jBPM的类 org.jbpm.db.JbpmSchema.java 的 main 方法，并给他传5个参数。我们在目录
jbpm 的路线 jbpm"src"java.jbpm"org"jbpm"db 下找到类 JbpmSchema，打开它找到这么一段代码：<br />
<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><span style="color: rgb(0, 0, 255);">public</span>&nbsp;<span style="color: rgb(0, 0, 255);">static</span>&nbsp;<span style="color: rgb(0, 0, 255);">void</span><span style="color: rgb(0, 0, 0);">&nbsp;main(String[]&nbsp;args)&nbsp;{&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp; </span><span style="color: rgb(0, 0, 255);">try</span><span style="color: rgb(0, 0, 0);">&nbsp;{&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">&nbsp;(&nbsp;(args</span><span style="color: rgb(0, 0, 0);">==</span><span style="color: rgb(0, 0, 255);">null</span><span style="color: rgb(0, 0, 0);">)&nbsp;</span><span style="color: rgb(0, 0, 0);">||</span><span style="color: rgb(0, 0, 0);">&nbsp;(args.length</span><span style="color: rgb(0, 0, 0);">==</span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);">)&nbsp;)&nbsp;{&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: rgb(0, 0, 255);">throw</span>&nbsp;<span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);">&nbsp;IllegalArgumentException();&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp; }&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />
&nbsp;&nbsp;&nbsp;&nbsp; String&nbsp;cmd&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;args[</span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);">];&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />
&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">&nbsp;(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">create</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">.equalsIgnoreCase(cmd))&nbsp;{&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Configuration&nbsp;configuration&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;createConfiguration(args,&nbsp;</span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">);&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);">&nbsp;JbpmSchema(configuration).createSchema();&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp; }&nbsp;</span><span style="color: rgb(0, 0, 255);">else</span>&nbsp;<span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">&nbsp;(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">drop</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">.equalsIgnoreCase(cmd))&nbsp;{&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Configuration&nbsp;configuration&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;createConfiguration(args,&nbsp;</span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">);&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);">&nbsp;JbpmSchema(configuration).dropSchema();&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp; }&nbsp;</span><span style="color: rgb(0, 0, 255);">else</span>&nbsp;<span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">&nbsp;(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">clean</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">.equalsIgnoreCase(cmd))&nbsp;{&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Configuration&nbsp;configuration&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;createConfiguration(args,&nbsp;</span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">);&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);">&nbsp;JbpmSchema(configuration).cleanSchema();&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp; }&nbsp;</span><span style="color: rgb(0, 0, 255);">else</span>&nbsp;<span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">&nbsp;(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">scripts</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">.equalsIgnoreCase(cmd))&nbsp;{&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Configuration&nbsp;configuration&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;createConfiguration(args,&nbsp;</span><span style="color: rgb(0, 0, 0);">3</span><span style="color: rgb(0, 0, 0);">);&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);">&nbsp;JbpmSchema(configuration).saveSqlScripts(args[</span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">],&nbsp;args[</span><span style="color: rgb(0, 0, 0);">2</span><span style="color: rgb(0, 0, 0);">]);&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp; } <br />
</span></div>
显然，它只使用了ant脚本传给它的前三个参数。当生成非基于 Oracle 的数据库脚本时，前三个脚本足够了。问题是当生成基于 Oracle 的数据库脚本时，需要使用后两个参数。所以，我们在这段代码的后面加上：<br />
<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;</span>&nbsp;<span style="color: rgb(0, 0, 255);">else</span>&nbsp;<span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">&nbsp;((args&nbsp;</span><span style="color: rgb(0, 0, 0);">!=</span>&nbsp;<span style="color: rgb(0, 0, 255);">null</span><span style="color: rgb(0, 0, 0);">)&nbsp;</span><span style="color: rgb(0, 0, 0);">&amp;&amp;</span><span style="color: rgb(0, 0, 0);">&nbsp;(args.length&nbsp;</span><span style="color: rgb(0, 0, 0);">&gt;</span>&nbsp;<span style="color: rgb(0, 0, 0);">3</span><span style="color: rgb(0, 0, 0);">)&nbsp;</span><span style="color: rgb(0, 0, 0);">&amp;&amp;</span><span style="color: rgb(0, 0, 0);">&nbsp;(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">scripts</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">.equalsIgnoreCase(cmd)))&nbsp;{&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);">&nbsp;JbpmSchema(JbpmSessionFactory.createConfiguration()).saveSqlScripts(args[</span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">],&nbsp;args[</span><span style="color: rgb(0, 0, 0);">2</span><span style="color: rgb(0, 0, 0);">]);&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }&nbsp;&nbsp;<br />
<br />
</span></div>
现在这段代码应该是这个样子：<br />
<div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;</span>&nbsp;<span style="color: rgb(0, 0, 255);">public</span>&nbsp;<span style="color: rgb(0, 0, 255);">static</span>&nbsp;<span style="color: rgb(0, 0, 255);">void</span><span style="color: rgb(0, 0, 0);">&nbsp;main(String[]&nbsp;args)&nbsp;{&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp; </span><span style="color: rgb(0, 0, 255);">try</span><span style="color: rgb(0, 0, 0);">&nbsp;{&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">&nbsp;(&nbsp;(args</span><span style="color: rgb(0, 0, 0);">==</span><span style="color: rgb(0, 0, 255);">null</span><span style="color: rgb(0, 0, 0);">)&nbsp;</span><span style="color: rgb(0, 0, 0);">||</span><span style="color: rgb(0, 0, 0);">&nbsp;(args.length</span><span style="color: rgb(0, 0, 0);">==</span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);">)&nbsp;)&nbsp;{&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: rgb(0, 0, 255);">throw</span>&nbsp;<span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);">&nbsp;IllegalArgumentException();&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp; }&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />
&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp; String&nbsp;cmd&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;args[</span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);">];&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />
&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">&nbsp;(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">create</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">.equalsIgnoreCase(cmd))&nbsp;{&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Configuration&nbsp;configuration&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;createConfiguration(args,&nbsp;</span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">);&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);">&nbsp;JbpmSchema(configuration).createSchema();&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp; }&nbsp;</span><span style="color: rgb(0, 0, 255);">else</span>&nbsp;<span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">&nbsp;(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">drop</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">.equalsIgnoreCase(cmd))&nbsp;{&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Configuration&nbsp;configuration&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;createConfiguration(args,&nbsp;</span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">);&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);">&nbsp;JbpmSchema(configuration).dropSchema();&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp; }&nbsp;</span><span style="color: rgb(0, 0, 255);">else</span>&nbsp;<span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">&nbsp;(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">clean</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">.equalsIgnoreCase(cmd))&nbsp;{&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Configuration&nbsp;configuration&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;createConfiguration(args,&nbsp;</span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">);&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);">&nbsp;JbpmSchema(configuration).cleanSchema();&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp; }&nbsp;</span><span style="color: rgb(0, 0, 255);">else</span>&nbsp;<span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">&nbsp;(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">scripts</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">.equalsIgnoreCase(cmd))&nbsp;{&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Configuration&nbsp;configuration&nbsp;</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">&nbsp;createConfiguration(args,&nbsp;</span><span style="color: rgb(0, 0, 0);">3</span><span style="color: rgb(0, 0, 0);">);&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);">&nbsp;JbpmSchema(configuration).saveSqlScripts(args[</span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">],&nbsp;args[</span><span style="color: rgb(0, 0, 0);">2</span><span style="color: rgb(0, 0, 0);">]);&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp; }&nbsp;</span><span style="color: rgb(0, 0, 255);">else</span>&nbsp;<span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">&nbsp;((args&nbsp;</span><span style="color: rgb(0, 0, 0);">!=</span>&nbsp;<span style="color: rgb(0, 0, 255);">null</span><span style="color: rgb(0, 0, 0);">)&nbsp;</span><span style="color: rgb(0, 0, 0);">&amp;&amp;</span><span style="color: rgb(0, 0, 0);">&nbsp;(args.length&nbsp;</span><span style="color: rgb(0, 0, 0);">&gt;</span>&nbsp;<span style="color: rgb(0, 0, 0);">3</span><span style="color: rgb(0, 0, 0);">)&nbsp;</span><span style="color: rgb(0, 0, 0);">&amp;&amp;</span><span style="color: rgb(0, 0, 0);">&nbsp;(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">scripts</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">.equalsIgnoreCase(cmd)))&nbsp;{&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);">&nbsp;JbpmSchema(JbpmSessionFactory.createConfiguration()).saveSqlScripts(args[</span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">],&nbsp;args[</span><span style="color: rgb(0, 0, 0);">2</span><span style="color: rgb(0, 0, 0);">]);&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp; }&nbsp;&nbsp;<br />
<br />
</span></div>
<span><span>
<p>好了，现在一切都完美了。我们接下来执行最后一步，生成我们需要的脚本。</p>
<p>6. 打开命令行提示符窗口并在命令行中导航到子目录 jbpm-db，键入命令&nbsp; ant oracle.scripts。等命令执行完毕以后，会发现在路径 jbpm-db"build"oracle"scripts 下生成了我们需要的脚本文件：<br />
oracle.clean.sql<br />
oracle.create.sql <br />
oracle.drop.create.sql <br />
oracle.drop.sql </p>
</span></span>
<p><br />
</p>
<img src ="http://www.blogjava.net/ashutc/aggbug/307990.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/ashutc/" target="_blank">西瓜</a> 2010-01-01 22:39 <a href="http://www.blogjava.net/ashutc/archive/2010/01/01/307990.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>