AnsweredAssumed Answered

ant demo setup not working

Question asked by mikael.mechoulam on Oct 15, 2010
Latest reply on Oct 15, 2010 by mikael.mechoulam
The build of ant demo setup for Activiti 5.0 Beta2 (Linux) fails with the following error: 


deploy.activiti.engine.into.tomcat:
     [copy] Copying 1 file to […]/Activiti/apps/apache-tomcat-6.0.29/lib

db.demo.data:
      [sql] Executing resource: […]/Activiti/setup/build/demo/h2.data.sql
      [sql] 26 of 26 SQL statements executed successfully                                  
[deploy-bar] Initializing process engine default                                           
[deploy-bar] 14 oct. 2010 17:42:44 org.activiti.engine.ProcessEngines initProcessEnginFromResource
[deploy-bar] INFO: initializing process engine for resource jar:file:[…]/Activiti/setup/build/activiti-cfg.jar!/activiti.properties
[deploy-bar] 14 oct. 2010 17:42:49 org.activiti.engine.ProcessEngines initProcessEnginFromResource                                                   
[deploy-bar] INFO: Exception while initializing process engine :Error while building ibatis SqlSessionFactory: Error parsing SQL Mapper Configuration. Cause: java.lang.RuntimeException: Error parsing Mapper XML. Cause: org.apache.ibatis.builder.BuilderException: Could not determine javaType for result property processDefinitionId using javaType null                                                                    

BUILD FAILED
org.activiti.engine.ActivitiException: Process engine 'default' can not be initialized! org.activiti.engine.ActivitiException: Error while building ibatis SqlSessionFactory: Error parsing SQL Mapper Configuration. Cause: java.lang.RuntimeException: Error parsing Mapper XML. Cause: org.apache.ibatis.builder.BuilderException: Could not determine javaType for result property processDefinitionId using javaType null     
        at org.activiti.engine.impl.db.DbSqlSessionFactory.createSessionFactory(DbSqlSessionFactory.java:136)                                                                                                    
        at org.activiti.engine.impl.db.DbSqlSessionFactory.configurationCompleted(DbSqlSessionFactory.java:116)                                                                                                  
        at org.activiti.engine.impl.cfg.ProcessEngineConfiguration.notifyConfigurationComplete(ProcessEngineConfiguration.java:289)                                                                              
        at org.activiti.engine.impl.cfg.ProcessEngineConfiguration.configurationComplete(ProcessEngineConfiguration.java:235)                                                                                    
        at org.activiti.engine.impl.cfg.ProcessEngineConfiguration.buildProcessEngine(ProcessEngineConfiguration.java:211)                                                                                       
        at org.activiti.engine.ProcessEngineBuilder.buildProcessEngine(ProcessEngineBuilder.java:288)                                                                                                            
        at org.activiti.engine.ProcessEngines.buildProcessEngine(ProcessEngines.java:126)                                                                                                                        
        at org.activiti.engine.ProcessEngines.initProcessEnginFromResource(ProcessEngines.java:101)                                                                                                              
        at org.activiti.engine.ProcessEngines.init(ProcessEngines.java:76)                                                                                                                                       
        at org.activiti.engine.impl.ant.DeployBarTask.execute(DeployBarTask.java:71)                                                                                                                             
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)                                                                                                                                  
        at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)                                                                                                                                           
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)                                                                                                                 
        at java.lang.reflect.Method.invoke(Method.java:597)                                                                                                                                                      
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)                                                                                                                           
        at org.apache.tools.ant.Task.perform(Task.java:348)                                                                                                                                                      
        at org.apache.tools.ant.Target.execute(Target.java:357)                                                                                                                                                  
        at org.apache.tools.ant.Target.performTasks(Target.java:385)                                                                                                                                             
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)                                                                                                                                  
        at org.apache.tools.ant.Project.executeTarget(Project.java:1306)                                                                                                                                         
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)                                                                                                                   
        at org.apache.tools.ant.Project.executeTargets(Project.java:1189)                                                                                                                                        
        at org.apache.tools.ant.Main.runBuild(Main.java:758)                                                                                                                                                     
        at org.apache.tools.ant.Main.startAnt(Main.java:217)                                                                                                                                                     
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)                                                                                                                                           
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)                                                                                                                                          
Caused by: org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: java.lang.RuntimeException: Error parsing Mapper XML. Cause: org.apache.ibatis.builder.BuilderException: Could not determine javaType for result property processDefinitionId using javaType null                                                                                                                            
        at org.apache.ibatis.builder.xml.XMLConfigBuilder.parseConfiguration(XMLConfigBuilder.java:68)                                                                                                           
        at org.apache.ibatis.builder.xml.XMLConfigBuilder.parse(XMLConfigBuilder.java:53)                                                                                                                        
        at org.activiti.engine.impl.db.DbSqlSessionFactory.createSessionFactory(DbSqlSessionFactory.java:131)                                                                                                    
        … 25 more                                                                                                                                                                                              
Caused by: java.lang.RuntimeException: Error parsing Mapper XML. Cause: org.apache.ibatis.builder.BuilderException: Could not determine javaType for result property processDefinitionId using javaType null     
        at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:59)                                                                                                         
        at org.apache.ibatis.builder.xml.XMLMapperBuilder.parse(XMLMapperBuilder.java:39)                                                                                                                        
        at org.apache.ibatis.builder.xml.XMLConfigBuilder.mapperElement(XMLConfigBuilder.java:226)                                                                                                               
        at org.apache.ibatis.builder.xml.XMLConfigBuilder.parseConfiguration(XMLConfigBuilder.java:66)                                                                                                           
        … 27 more                                                                                                                                                                                              
Caused by: org.apache.ibatis.builder.BuilderException: Could not determine javaType for result property processDefinitionId using javaType null                                                                  
        at org.apache.ibatis.builder.MapperBuilderAssistant.resolveResultJavaType(MapperBuilderAssistant.java:323)                                                                                               
        at org.apache.ibatis.builder.MapperBuilderAssistant.assembleResultMapping(MapperBuilderAssistant.java:300)                                                                                               
        at org.apache.ibatis.builder.MapperBuilderAssistant.buildResultMapping(MapperBuilderAssistant.java:142)                                                                                                  
        at org.apache.ibatis.builder.xml.XMLMapperBuilder.buildResultMappingFromContext(XMLMapperBuilder.java:210)                                                                                               
        at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElement(XMLMapperBuilder.java:147)                                                                                                            
        at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElement(XMLMapperBuilder.java:120)                                                                                                            
        at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElements(XMLMapperBuilder.java:115)                                                                                                           
        at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:55)                                                                                                         
        … 30 more                                                                                                                                                                                              

        at org.activiti.engine.impl.ant.DeployBarTask.execute(DeployBarTask.java:85)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
        at org.apache.tools.ant.Main.runBuild(Main.java:758)
        at org.apache.tools.ant.Main.startAnt(Main.java:217)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)




Do you have an idea of the reason of this error ?
Thank you for your help,

Outcomes