2 Replies Latest reply on Oct 12, 2011 8:58 AM by Mauricio Salatino

    error using ant scripts in deploying process archive

    sunil deshpande Newbie

      hi all, I am using jbpm 3.2.8 and jboss server 5.0.1     I m trying to deploy a test process using ant scripts , but getting folowing error..., unable to find the error,  i have attached build.xml file and properties file, plz post the solution..

       

       

       

       

      D:\jbpm\redhat training\JBPM-Training\labs\lab3-deployment>ant deploy.process

      Buildfile: D:\jbpm\redhat training\JBPM-Training\labs\lab3-deployment\build.xml

       

      build.process:

       

      declare.jbpm.tasks:

       

      deploy.process:

      [deployprocess] parsing process archive insuranceprocess.par

      [deployprocess] parsed process definition InsuranceProcess

      [deployprocess] failed to deploy process InsuranceProcess

       

      BUILD FAILED

      D:\jbpm\redhat training\JBPM-Training\labs\lab3-deployment\build.xml:46: org.hib

      ernate.MappingException: Could not determine type for: longstring, for columns:

      [org.hibernate.mapping.Column(MESSAGE_)]

              at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:266)

              at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:253)

              at org.hibernate.mapping.Property.isValid(Property.java:185)

              at org.hibernate.mapping.PersistentClass.validate(PersistentClass.java:4

      40)

              at org.hibernate.mapping.SingleTableSubclass.validate(SingleTableSubclas

      s.java:43)

              at org.hibernate.cfg.Configuration.validate(Configuration.java:1102)

              at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.jav

      a:1287)

              at org.jbpm.persistence.db.DbPersistenceServiceFactory.getSessionFactory

      (DbPersistenceServiceFactory.java:104)

              at org.jbpm.persistence.db.DbPersistenceService.getSessionFactory(DbPers

      istenceService.java:84)

              at org.jbpm.persistence.db.DbPersistenceService.getSession(DbPersistence

      Service.java:89)

              at org.jbpm.persistence.db.DbPersistenceService.getGraphSession(DbPersis

      tenceService.java:320)

              at org.jbpm.JbpmContext.getGraphSession(JbpmContext.java:604)

              at org.jbpm.JbpmContext.deployProcessDefinition(JbpmContext.java:165)

              at org.jbpm.ant.DeployProcessTask.deployProcessDefinition(DeployProcessT

      ask.java:108)

              at org.jbpm.ant.DeployProcessTask.handleProcessFile(DeployProcessTask.ja

      va:82)

              at org.jbpm.ant.DeployProcessTask.execute(DeployProcessTask.java:58)

              at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

      java:39)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

      sorImpl.java:25)

              at java.lang.reflect.Method.invoke(Method.java:597)

              at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav

      a:106)

              at org.apache.tools.ant.Task.perform(Task.java:348)

              at org.apache.tools.ant.Target.execute(Target.java:390)

              at org.apache.tools.ant.Target.performTasks(Target.java:411)

              at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397)

              at org.apache.tools.ant.Project.executeTarget(Project.java:1366)

              at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe

      cutor.java:41)

              at org.apache.tools.ant.Project.executeTargets(Project.java:1249)

              at org.apache.tools.ant.Main.runBuild(Main.java:801)

              at org.apache.tools.ant.Main.startAnt(Main.java:218)

              at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)

              at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)

       

      Total time: 4 seconds

      D:\jbpm\redhat training\JBPM-Training\labs\lab3-deployment>