首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 服务器 > 其他服务器 >

问一个jbpm的入门级有关问题,在线急等。

2012-02-19 
问一个jbpm的入门级问题,在线急等。。。最近在学习jbpm,看了好多教程。试着编了一个例子首先创建一个web proje

问一个jbpm的入门级问题,在线急等。。。
最近在学习jbpm,看了好多教程。试着编了一个例子
首先创建一个web project ,在web project中创建了一个jbpm4 process definition
然后写了定义了一下流程。
然后写了一个index.jsp,里面大概就写了一行代码:
ProcessEngine processEngine = Configuration.getProcessEngine();
结果访问的时候报错了。

java.lang.NullPointerException
at org.jbpm.pvm.internal.util.XmlUtil.attribute(XmlUtil.java:289)
at org.jbpm.pvm.internal.cfg.ConfigurationParser.parseDocument(ConfigurationParser.java:64)
at org.jbpm.pvm.internal.xml.Parser.execute(Parser.java:396)
at org.jbpm.pvm.internal.xml.Parse.execute(Parse.java:158)
.......
但是我创建了一个测试的java类:
public class JbpmTest {

/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
ProcessEngine processEngine = Configuration.getProcessEngine();
}

}
运行的时候控制台打出来的信息应该是正常启动的 啊
后台信息如下:

21:28:11,457 FIN | [WireContext] eagerly initializing org.jbpm.pvm.internal.id.DatabaseIdComposer
21:28:11,533 INF | [Environment] Hibernate 3.3.1.GA
21:28:11,553 INF | [Environment] hibernate.properties not found
21:28:11,578 INF | [Environment] Bytecode provider name : javassist
21:28:11,588 INF | [Environment] using JDK 1.4 java.sql.Timestamp handling
21:28:11,728 INF | [Configuration] configuring from resource: jbpm.hibernate.cfg.xml
21:28:11,728 INF | [Configuration] Configuration resource: jbpm.hibernate.cfg.xml
21:28:11,933 INF | [Configuration] Reading mappings from resource : jbpm.repository.hbm.xml
21:28:12,283 INF | [Configuration] Reading mappings from resource : jbpm.execution.hbm.xml
21:28:12,518 INF | [Configuration] Reading mappings from resource : jbpm.history.hbm.xml
21:28:12,601 INF | [Configuration] Reading mappings from resource : jbpm.task.hbm.xml
21:28:12,656 INF | [Configuration] Reading mappings from resource : jbpm.identity.hbm.xml
21:28:12,676 INF | [Configuration] Configured SessionFactory: null
21:28:12,741 INF | [DriverManagerConnectionProvider] Using Hibernate built-in connection pool (not for production use!)
21:28:12,741 INF | [DriverManagerConnectionProvider] Hibernate connection pool size: 20
21:28:12,741 INF | [DriverManagerConnectionProvider] autocommit mode: false
21:28:12,821 INF | [DriverManagerConnectionProvider] using driver: org.hsqldb.jdbcDriver at URL: jdbc:hsqldb:mem:.
21:28:12,821 INF | [DriverManagerConnectionProvider] connection properties: {user=sa, password=****}
21:28:13,191 INF | [Dialect] Using dialect: org.hibernate.dialect.HSQLDialect
21:28:13,201 INF | [TransactionFactoryFactory] Using default transaction strategy (direct JDBC transactions)
21:28:13,201 INF | [TransactionManagerLookupFactory] No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
21:28:13,206 INF | [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
21:28:13,431 INF | [SessionFactoryImpl] building session factory
21:28:14,381 INF | [SessionFactoryObjectFactory] Not binding factory to JNDI, no JNDI name configured
21:28:14,406 INF | [SchemaExport] Running hbm2ddl schema export
21:28:14,406 INF | [SchemaExport] exporting generated schema to database
21:28:14,450 INF | [SchemaExport] schema export complete
21:28:15,070 FIN | [HibernateSessionResource] ----- beginning hibernate tx 17988434 --------------------
21:28:15,090 FIN | [SQL] 
  select
  top ? propertyim0_.KEY_ as KEY1_2_,
  propertyim0_.VERSION_ as VERSION2_2_,
  propertyim0_.VALUE_ as VALUE3_2_ 
  from
  JBPM4_PROPERTY propertyim0_
21:28:15,135 FIN | [SQL] 
  select
  this_.KEY_ as KEY1_2_0_,
  this_.VERSION_ as VERSION2_2_0_,
  this_.VALUE_ as VALUE3_2_0_ 
  from


  JBPM4_PROPERTY this_ 
  where
  this_.KEY_=?
21:28:15,135 FST | [StringType] binding 'next.dbid' to parameter: 1
21:28:15,135 FIN | [SQL] 
  select
  this_.KEY_ as KEY1_2_0_,
  this_.VERSION_ as VERSION2_2_0_,
  this_.VALUE_ as VALUE3_2_0_ 
  from
  JBPM4_PROPERTY this_ 
  where
  this_.KEY_=?
21:28:15,135 FST | [StringType] binding 'next.dbid' to parameter: 1
21:28:15,185 FIN | [SQL] 
  insert 
  into
  JBPM4_PROPERTY
  (VERSION_, VALUE_, KEY_) 
  values
  (?, ?, ?)
21:28:15,185 FST | [IntegerType] binding '0' to parameter: 1
21:28:15,185 FST | [StringType] binding '1' to parameter: 2
21:28:15,185 FST | [StringType] binding 'next.dbid' to parameter: 3
21:28:15,190 FIN | [SQL] 
  select
  this_.KEY_ as KEY1_2_0_,
  this_.VERSION_ as VERSION2_2_0_,
  this_.VALUE_ as VALUE3_2_0_ 
  from
  JBPM4_PROPERTY this_ 
  where
  this_.KEY_=?
21:28:15,190 FST | [StringType] binding 'db.version' to parameter: 1
21:28:15,190 INF | [CheckDbCmd] jBPM version info: library[4.3], schema[null]
21:28:15,195 FIN | [HibernateSessionResource] ----- committing hibernate tx 25209015 -------------------------------------------------------

请问着到底是什么问题,我怀疑是jsp里面引用的jar报出错了,但不知道是那个,请各位大侠指点


[解决办法]

探讨
21:28:11,553 INF | [Environment] hibernate.properties not found

热点排行