weixin_42315889 2009-06-22 11:33
浏览 318
已采纳

JBOSS JBPM 部署

目前正在学习JBOSS JBPM
在这个JBPM的部署上,遇到了一点问题,所以到这里问一下,希望得到老鸟们的帮助
我用的服务器是 jboss4.2.2GA的,数据库是MYSQL5.0
JBPM 依赖的数据库已经建好了,这个什么发说的,都是COPY的SQL脚本执行的,应该没啥问题

我下载了 jbpm-jpdl-suite-3.2.3.zip 这个压缩包
我的部署过程是,将该包解压,将该包 server\server\jbpm\deploy 这个目录下的 jbpm-console.war 和 jbpm-ds.xml
这两个文件拷贝到我服务器的deploy目录下
然后修改了

    jbpm-console.war 中Hibernate的配置文件,我修改后的配置文件内容如下

[code="java"]

org.hibernate.dialect.MySQLInnoDBDialect
true

<!-- JDBC connection properties (begin) ===-->
    <property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>  
    <property name="hibernate.connection.url">jdbc:mysql://localhost:3306/jbpm</property>  
    <property name="hibernate.connection.username">jbossjbpm</property>  
    <property name="hibernate.connection.password">jbossjbpm</property> 
<!--==== JDBC connection properties (end) -->

<property name="hibernate.cache.provider_class">org.hibernate.cache.HashtableCacheProvider
</property>

<!-- DataSource properties (begin) 
    <property name="hibernate.connection.datasource">java:comp/env/jdbc/JbpmDataSource
     </property>
DataSource properties (end) -->

<property   
 name="hibernate.transaction.factory_class">org.hibernate.transaction.JDBCTransactionFactory
</property> 

[/code]

[code="java"]

下面是jbpm-ds.xml的内容



JbpmDS
jdbc:mysql://localhost:3306/jbpm
com.mysql.jdbc.Driver
jbossjbpm
jbossjbpm

  <metadata>
        <type-mapping>MySQL</type-mapping>
  </metadata>



[/code]

之后,我启动服务器,没有异常,但是当服务后台打印出
[SessionFactoryImpl] building session factory
[SessionFactoryObjectFactory] Not binding factory to JNDI, no JNDI name configured

这个信息之后,因为我在Hibernate配置文件中,加了显示查询语句的设置
后台大约是每两秒就执行 这两个查询语句
1: Hibernate: select job0_.ID_ as ID1_26_, job0_.VERSION_ as VERSION3_26_, job0_.DUEDATE_ as DUEDATE4_26_, job0_.PROCESSINSTANCE_ as PROCESSI5_26_, job0_.TOKEN_ as TOKEN6_26_, job0_.TASKINSTANCE_ as TASKINST7_26_, job0_.ISSUSPENDED_ as ISSUSPEN8_26_, job0_.ISEXCLUSIVE_ as ISEXCLUS9_26_, job0_.LOCKOWNER_ as LOCKOWNER10_26_, job0_.LOCKTIME_ as LOCKTIME11_26_, job0_.EXCEPTION_ as EXCEPTION12_26_, job0_.RETRIES_ as RETRIES13_26_, job0_.NAME_ as NAME14_26_, job0_.REPEAT_ as REPEAT15_26_, job0_.TRANSITIONNAME_ as TRANSIT16_26_, job0_.ACTION_ as ACTION17_26_, job0_.GRAPHELEMENTTYPE_ as GRAPHEL18_26_, job0_.GRAPHELEMENT_ as GRAPHEL19_26_, job0_.NODE_ as NODE20_26_, job0_.CLASS_ as CLASS2_26_ from JBPM_JOB job0_ where (job0_.LOCKOWNER_ is null or job0_.LOCKOWNER_=?) and job0_.RETRIES_>0 and job0_.DUEDATE_<=? and job0_.ISSUSPENDED_<>1 order by job0_.DUEDATE_ asc limit ?

2: Hibernate: select job0_.ID_ as ID1_26_, job0_.VERSION_ as VERSION3_26_, job0_.DUEDATE_ as DUEDATE4_26_, job0_.PROCESSINSTANCE_ as PROCESSI5_26_, job0_.TOKEN_ as TOKEN6_26_, job0_.TASKINSTANCE_ as TASKINST7_26_, job0_.ISSUSPENDED_ as ISSUSPEN8_26_, job0_.ISEXCLUSIVE_ as ISEXCLUS9_26_, job0_.LOCKOWNER_ as LOCKOWNER10_26_, job0_.LOCKTIME_ as LOCKTIME11_26_, job0_.EXCEPTION_ as EXCEPTION12_26_, job0_.RETRIES_ as RETRIES13_26_, job0_.NAME_ as NAME14_26_, job0_.REPEAT_ as REPEAT15_26_, job0_.TRANSITIONNAME_ as TRANSIT16_26_, job0_.ACTION_ as ACTION17_26_, job0_.GRAPHELEMENTTYPE_ as GRAPHEL18_26_, job0_.GRAPHELEMENT_ as GRAPHEL19_26_, job0_.NODE_ as NODE20_26_, job0_.CLASS_ as CLASS2_26_ from JBPM_JOB job0_ where (job0_.LOCKOWNER_ is null or job0_.LOCKOWNER_=?) and job0_.RETRIES_>0 and job0_.ISSUSPENDED_<>1 order by job0_.DUEDATE_ asc limit ?

后台反复的执行着这两个HQL语句,每2--3秒就打印一次
出现这种情况,我不知道,JBPM到底有没有部署成功,我用IE打开http://localhost:8088/jbpm,却出现 404错误
说我请求的资源不可用,这样应该是没有部署成功的

这种情况怎么解决,希望老鸟们给予帮助,谢谢

最后说一下,那个压缩包解压出来server目录下的那个配置好的环境,我运行不了,这可能是我电脑的原因,我的JBOSS只有在
MyEclips中能启动,要是手动运行 run.bat,DOS一闪而过,无法用这种方式启动JBOSS

  • 写回答

2条回答 默认 最新

  • wanghaolovezlq 2009-06-22 12:33
    关注

    研究这文章应该会有帮助

    http://www.iteye.com/topic/212671

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 webAPI接口返回值判断
  • ¥15 自动化测试 UI Automtion
  • ¥20 关于#深度学习#的问题:2708)输出:邻接矩阵A 或者 节点索引方式:通过随机游走或者其他方式,保持节点连接类似下图(语言-python)
  • ¥15 win2012 iscsi ipsec
  • ¥15 封装的 matplotlib animation 不显示图像
  • ¥15 python摄像头画面无法显示
  • ¥15 关于#3d#的问题:d标定算法(语言-python)
  • ¥15 cve,cnnvd漏洞扫描工具推荐
  • ¥15 图像超分real-esrgan网络自己训练模型遇到问题
  • ¥15 如何构建全国统一的物流管理平台?