JBPM4.4与SSH框架整合之后,启动Tomcat6.0之后,一直在查询JBPM4_JOB

问题描述

JBPM4.4与SSH框架整合之后,启动Tomcat6.0之后,一直在查询JBPM4_JOB,而且每个5秒查询一次。求各位大侠帮我解决一下。Hibernate:selectjobimpl0_.DBID_asDBID1_3_,jobimpl0_.DBVERSION_asDBVERSION3_3_,jobimpl0_.DUEDATE_asDUEDATE4_3_,jobimpl0_.STATE_asSTATE5_3_,jobimpl0_.ISEXCLUSIVE_asISEXCLUS6_3_,jobimpl0_.LOCKOWNER_asLOCKOWNER7_3_,jobimpl0_.LOCKEXPTIME_asLOCKEXPT8_3_,jobimpl0_.EXCEPTION_asEXCEPTION9_3_,jobimpl0_.RETRIES_asRETRIES10_3_,jobimpl0_.PROCESSINSTANCE_asPROCESS11_3_,jobimpl0_.EXECUTION_asEXECUTION12_3_,jobimpl0_.CFG_asCFG13_3_,jobimpl0_.SIGNAL_asSIGNAL14_3_,jobimpl0_.EVENT_asEVENT15_3_,jobimpl0_.REPEAT_asREPEAT16_3_,jobimpl0_.CLASS_asCLASS2_3_fromJBPM4_JOBjobimpl0_where(jobimpl0_.LOCKOWNER_isnull)andjobimpl0_.RETRIES_>0andjobimpl0_.STATE_<>'suspended'orderbyjobimpl0_.DUEDATE_asclimit?11:29:45,890DEBUGAbstractBatcher:426-abouttoopenResultSet(openResultSets:0,globally:0)11:29:45,890DEBUGAbstractBatcher:433-abouttocloseResultSet(openResultSets:1,globally:1)11:29:45,890DEBUGAbstractBatcher:418-abouttoclosePreparedStatement(openPreparedStatements:1,globally:1)11:29:45,890DEBUGStatefulPersistenceContext:893-initializingnon-lazycollections11:29:45,890DEBUGJDBCTransaction:130-commit11:29:45,891DEBUGJDBCTransaction:223-re-enablingautocommit11:29:45,891DEBUGJDBCTransaction:143-committedJDBCConnection11:29:45,891DEBUGConnectionManager:325-transactioncompletedonsessionwithon_closeconnectionreleasemode;besuretoclosethesessiontoreleaseJDBCresources!11:29:45,891DEBUGConnectionManager:464-releasingJDBCconnection[(openPreparedStatements:0,globally:0)(openResultSets:0,globally:0)]11:29:45,891DEBUGConnectionManager:325-transactioncompletedonsessionwithon_closeconnectionreleasemode;besuretoclosethesessiontoreleaseJDBCresources!我的配置如下:applicationContext.xml文件:<beansxmlns="http://www.springframework.org/schema/beans"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:p="http://www.springframework.org/schema/p"xmlns:aop="http://www.springframework.org/schema/aop"xmlns:context="http://www.springframework.org/schema/context"xmlns:tx="http://www.springframework.org/schema/tx"xsi:schemaLocation="http://www.springframework.org/schema/beanshttp://www.springframework.org/schema/beans/spring-beans-3.2.xsdhttp://www.springframework.org/schema/aophttp://www.springframework.org/schema/aop/spring-aop-3.2.xsdhttp://www.springframework.org/schema/txhttp://www.springframework.org/schema/tx/spring-tx-3.2.xsdhttp://www.springframework.org/schema/contexthttp://www.springframework.org/schema/context/spring-context-3.2.xsd"><context:annotation-config/><context:component-scanbase-package="com.ssh"/><aop:aspectj-autoproxy/><!--<beanid="dataSource"class="org.apache.commons.dbcp.BasicDataSource"destroy-method="close"><propertyname="driverClassName"value="com.mysql.jdbc.Driver"/><propertyname="url"value="jdbc:mysql://localhost:3306/db_spring"/><propertyname="username"value="root"/><propertyname="password"value="123"/></bean>--><beanclass="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"><propertyname="locations"value="classpath:jdbc.properties"/></bean><beanid="dataSource"destroy-method="close"class="org.apache.commons.dbcp.BasicDataSource"><propertyname="driverClassName"value="${jdbc.driverClassName}"/><propertyname="url"value="${jdbc.url}"/><propertyname="username"value="${jdbc.username}"/><propertyname="password"value="${jdbc.password}"/></bean><!--jbpm4.4工作流--><beanid="springHelper"class="org.jbpm.pvm.internal.processengine.SpringHelper"><propertyname="jbpmCfg"value="spring-jbpm4.cfg.xml"/></bean><beanid="processEngine"factory-bean="springHelper"factory-method="createProcessEngine"/><beanid="sessionFactory"class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean"><propertyname="dataSource"ref="dataSource"/><!--<propertyname="annotatedClasses"><list><value>com.sram.model.User</value><value>com.sram.model.Log</value></list></property>--><propertyname="packagesToScan"><list><value>com.ssh.model</value></list></property><!--org.hibernate.dialect.MySQLDialect--><propertyname="hibernateProperties"><props><propkey="hibernate.dialect">org.hibernate.dialect.MySQLInnoDBDialect</prop><propkey="hibernate.show_sql">true</prop><propkey="hibernate.format_sql">true</prop></props></property><propertyname="mappingLocations"><list><value>classpath:jbpm.execution.hbm.xml</value><value>classpath:jbpm.history.hbm.xml</value><value>classpath:jbpm.identity.hbm.xml</value><value>classpath:jbpm.repository.hbm.xml</value><value>classpath:jbpm.task.hbm.xml</value></list></property></bean><beanid="hibernateTemplate"class="org.springframework.orm.hibernate3.HibernateTemplate"><propertyname="sessionFactory"ref="sessionFactory"></property></bean><beanid="txManager"class="org.springframework.orm.hibernate3.HibernateTransactionManager"><propertyname="sessionFactory"ref="sessionFactory"/></bean><tx:adviceid="txAdvice"transaction-manager="txManager"><tx:attributes><tx:methodname="exists"read-only="true"/><tx:methodname="add*"propagation="REQUIRED"/><tx:methodname="delete*"propagation="REQUIRED"/><tx:methodname="update*"propagation="REQUIRED"/></tx:attributes></tx:advice><aop:config><aop:pointcutid="entryPointMethod"expression="execution(public*com.ssh.service..*.*(..))"/><aop:advisoradvice-ref="txAdvice"pointcut-ref="entryPointMethod"/></aop:config></beans>spring-jbpm4.cfg.xml文件配置如下:<?xmlversion="1.0"encoding="UTF-8"?><jbpm-configuration><importresource="jbpm.default.cfg.xml"/><importresource="jbpm.tx.spring.cfg.xml"/><importresource="jbpm.jpdl.cfg.xml"/><importresource="jbpm.bpmn.cfg.xml"/><importresource="jbpm.identity.cfg.xml"/><importresource="jbpm.businesscalendar.cfg.xml"/><importresource="jbpm.console.cfg.xml"/><importresource="jbpm.jobexecutor.cfg.xml"/><process-engine-context><stringname="spring.cfg"value="applicationContext.xml"/></process-engine-context></jbpm-configuration>

解决方案

解决方案二:
希望各位大侠有知道的,帮我解答一下。就是整合JBPM4.4+SSH后,启动Tomcat,输出窗口一直在查询JBPM_JOB这张表,而且每个5秒查询一次,但是我并没有做任何操作。
解决方案三:
,究竟是为什么呀!
解决方案四:
不懂,帮你顶了,只用过6
解决方案五:
请问你解决了吗遇到同样问题了
解决方案六:
我把jbpm.cfg.xml中<importresource="jbpm.jobexecutor.cfg.xml"/>注释掉就不会出现这种问题了不过不知道以后在开发中会不会出现什么问题,有人知道的话希望能详细说明下

时间: 2024-10-31 14:21:28

JBPM4.4与SSH框架整合之后,启动Tomcat6.0之后,一直在查询JBPM4_JOB的相关文章

tomcat启动报错-SSH + Oracle 整合开发 启动服务报错,运行查询操作,没影响

问题描述 SSH + Oracle 整合开发 启动服务报错,运行查询操作,没影响 信息: Initializing Spring root WebApplicationContextlog4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).log4j:WARN Please initialize the log4j system properly.2013-1

SSH框架整合 tomcat启动报错的异常

问题描述 严重:Exceptionsendingcontextinitializedeventtolistenerinstanceofclassorg.springframework.web.context.ContextLoaderListenerorg.springframework.beans.factory.BeanDefinitionStoreException:Failedtoloadbeanclass:com.accp.action.InformationsAction;neste

该怎么解决-SSH框架整合,出现异常

问题描述 SSH框架整合,出现异常 java.lang.reflect.InvocationTargetException sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(De

ssh整合-SSH框架整合 Linux平台转移到windows平台

问题描述 SSH框架整合 Linux平台转移到windows平台 在做SSH框架整合时,所有的包都导入了并且运行正常,但不知道为什移到windows上就报错 : Cannot find class [com.mchange.v2.c3p0.CombopooledDataSource] for bean with name 'dataSource' defined in class path resource [applicationContext-ds.xml]; 注:这个项目是在老师的wind

ssh框架-SSH框架整合的注册登陆例子,hql老是报错。注册可以运行,求大侠解救

问题描述 SSH框架整合的注册登陆例子,hql老是报错.注册可以运行,求大侠解救 这个是登陆源码 public boolean loginObject(User user) throws HibernateException{ System.out.println("6666666666666"); //String hql=("from User u where?u.username=? and u.password=?",user.getUsername(),u

我的一个SSH简单整合,启动tomcat时报错,如error文档内容所示,请教指点

问题描述 我的一个SSH简单整合,启动tomcat时报错,如:error文档 内容所示,请教指点,项目源代码及项目结构图都在压缩包中,随时等候佳音,谢谢了-- 解决方案 你的UesrBean.hbm.xml的路径写错了不是<class name="com.bean.UserBean" table="users">而是<class name="com.bean.user.UserBean" table="users&qu

ssh开发-使用SSH框架时候,启动项目包的错?如何处理?

问题描述 使用SSH框架时候,启动项目包的错?如何处理? org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'deptDao': Injection of resource fields failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error cre

ssh框架整合实例子1-配置文件

ssh框架整合实例子-配置文件 主要配置文件如下: 1.web.xml: 配置actionservlet类和映射配置Listener,加载spring配置 <?xml version="1.0" encoding="UTF-8"?><web-app version="2.4"  xmlns="http://java.sun.com/xml/ns/j2ee"  xmlns:xsi="http://ww

MyEclipse6.5启动Tomcat6.0,控制台报错...

问题描述 启动Tomcat6.0,MyEclipse6.5启动控制台报错...2010-12-517:23:06org.apache.catalina.core.AprLifecycleListenerinit严重:Anincompatibleversion1.1.10oftheAPRbasedApacheTomcatNativelibraryisinstalled,whileTomcatrequiresversion1.1.172010-12-517:23:06org.apache.coyot