在JBPM4.4 通过 ZIP 发布 流程定义 
我通过两种方式来 发布 流程定义 
第一个 是用读写绝对路径的 方式 发布 代码如下: 
// 发布流程 
public String ProcessDeploy(String zipPath) { 
ZipInputStream zis = new ZipInputStream(this.getClass() 
.getResourceAsStream(zipPath)); 
return processEngine.getRepositoryService().createDeployment() 
.addResourcesFromZipInputStream(zis).deploy(); 

第二个是通过页面上传的方式 代码如下: 
Action: 
FormFile workFlowZip =(FormFile)lf.get("workFlowZip"); 
ZipInputStream zipInputStream = null; 
try { 
zipInputStream = new ZipInputStream(workFlowZip.getInputStream()); 
this.workFlowManager.ProcessDeploy(zipInputStream, workFlowImage_byte); 
} catch (FileNotFoundException e) { 
e.printStackTrace(); 
} catch (IOException e) { 
e.printStackTrace(); 
}finally{ 
if(zipInputStream!=null){ 
try { 
zipInputStream.close(); 
} catch (IOException e) { 
e.printStackTrace(); 



Dao: 
// 发布流程 
public String ProcessDeploy(ZipInputStream zis) { 
return processEngine.getRepositoryService().createDeployment() 
.addResourcesFromZipInputStream(zis).deploy(); 
} 这两种方式都是报的同一个错误 : 
警告: WARNING: no objects were deployed! Check if you have configured a correct deployer in your jbpm.cfg.xml file for the type of deployment you want to do. 
错误的意思是说我 配置的文件有问题 ,但我觉得好像不是这个问题 
请大家指导 下!!!