[jboss-user] [JBoss jBPM] - Error in Process Definition Deployment.

nassij do-not-reply at jboss.com
Thu Apr 10 10:41:48 EDT 2008


Hi,

I tried to deploy my process definition, but i received this error :
anonymous wrote : 
  | org.jbpm.JbpmException: couldn't find process definition 'ValidationFicheIncident'
  | 
Cause:
anonymous wrote :  
  | org.hibernate.MappingException: Named query not known: GraphSession.findLatestProcessDefinitionQuery
  | 
Do we have to make specific change in database configuration.
Could anyone help me in sorting out the problem
Below is the code which i tried.

Thanks in advance. 
	public static void deployProcess(String path, JbpmContext jbpmCtx){
  | 		FileInputStream fis = null;
  | 		try {
  | 			fis = new FileInputStream(path);
  | 			if (fis != null)
  | 				System.out.println("------------>Fichier de process trouvé !!");
  | 
  | 			ProcessDefinition processDefinition = ProcessDefinition.parseXmlInputStream(fis);
  | 			try {
  | 				jbpmCtx.deployProcessDefinition(processDefinition);
  | 			} catch (Exception e2) {
  | 				e2.printStackTrace();
  | 			} finally {
  | 				jbpmCtx.close();
  | 			}
  | 		} catch (FileNotFoundException e1) {
  | 			System.out
  | 					.println("------------> Aucune Trace du Fichier de process !!");
  | 			e1.printStackTrace();
  | 		}		
  | 	}

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143204#4143204

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143204




More information about the jboss-user mailing list