- 浏览: 1013177 次
- 性别:
- 来自: 福州
最新评论
-
guanxin2012:
大神,您好。非常感谢您贡献了IKExpression。我们现在 ...
分享开源表达式解析器IK-Expression2.0 -
qqgigas:
LZ,public boolean createUser(LD ...
Sun Directory Server/LDAP学习笔记(二)——API说明及代码样例 -
gao_shengxian:
Hibernate: update T_GX_TEST set ...
优雅Java编程 之 使用Hibernate存储Oracle Spatial对象 -
a78113534:
感谢大神,在安卓里面调用成功了。
发布IK Expression开源表达式解析器 V2.1.0 -
majiedota:
加油
来自开源支持者的第一笔捐赠
相关资料:
系统平台:
系统环境:
Windows 2003 | SUN JDK1.6U4 | Tomcat6.0.14 | jbpm-starters-kit-3.1.4 | MySQL 6.0
主机完整名称:
zsy-aten
浏览器
Internet Explorer 6.0
安装包及相关软件:
1、 安装JDK与MySQL
JDK的安装这里就不多说了,学过Java的人都知道,本实验安装的是jdk-6u4版本。安装完后记得添加JAVA_HOME的环境变量。
MySQL的安装不属于本文的介绍范围,请参阅相关文档。本实验安装的是MySQL 6.0版本,安装完后建立的数据库名为jbpm,创建的用户名为jbpmuser,密码为shine。
2、 安装Tomcat下载安装Tomcat-6.0.16是目前最新版本:http://apache.mirror.phpchina.com/tomcat/tomcat-6/v6.0.16/bin/apache-tomcat-6.0.16.exe ;要在JDK安装之后安装Tomcat,安装过程中会自动搜索JRE的目录,当然也可以选择其它的JRE,其它默认设置即可。
3、 安装AntAnt 是一个编译工具,使用 jBPM 时必须用它来编译文件, jBPM 中的很多操作都要用到 Ant ,安装方法如下:
(1) 先下载:http://apache.mirror.phpchina.com/ant/binaries/apache-ant-1.7.0-bin.zip;
(2) 解压到 E:\Java\tools\apache-ant-1.7.0 (当然其他目录也可以);
(3) 设置环境变量:ANT_HOME= E:\Java\tools\apache-ant-1.7.0;
(4)把 %ANT_HOME%\bin 加入到环境变量 PATH 中。
4、 安装jBPM下载jBPM-JPDL本为3.2.2:http://labs.jboss.com/jbossjbpm/jbpm_downloads/下载jPDL Suite版,这个版本是包含所有的一整套工具,下载后是个压缩包解压到 E:\Java\tools :、\jbpm-jpdl-3.2.2 ,目录下主要包含以下几个子目录:
l src —— jBPM 的源代码
l config —— jBPM及Hibernate与log4j的配置文件
l db —— 各种数据库的建表SQL语句
l lib —— 依赖的第三方依赖类库
l doc —— API文档及用户使用向导
l designer —— 辅助开发 jBPM 的 Eclipse 插件,具体在 eclipse子目录中
l server —— 一个已经配置好了的基于 JBoss 的 jBPM 控制台及示例
5、 安装Eclipse及jBPM开发插件Eclipse不是开发 jBPM 必须的工具,但它是对 jBPM 开发很有帮助的工具,特别是 jBPM 提供了一个 Eclipse 插件用来辅助开发 jBPM 。关于 Eclipse 的安装请参阅相关文档。本实验安装的是MyEclipse6.0集成Eclipse3.3。
安装完Eclipse安装jBPM的开发插件,步骤如下:
(1) 打开Eclipse选择菜单“Help->Software Updates->Find and Install”;
(2) 弹出窗口中选择“Search for new features to install”,然后点击“Next >”;如图
(3) 点击按扭“New Local Site…”选择插件目录,位于designer\ eclipse目录下,如:E:\Java\tools\jbpm-jpdl-3.2.2\designer\eclipse。选定后点“OK”,如图
(4) 选中“designer/eclipse”,然后点击“Finish”,如图
(5) 然后选择同意条款,接提示步骤安装就可以了。
到此为止需要的所有工具都安装好了。接下来先体验一下jBPM工作流。在 JBoss jBPM Starters Kit 的 jbpm-server 目录是一个已经在JBoss中配置好的了 jBPM 示例,双击 jbpm-server 目录下的 start.bat 文件,启动 JBoss 服务。打开网页: http://localhost:8080/ jbpm-console 得到如下页面:
这是一个流程控制管理平台,用右边的账号与密码就可以登录,这个控制台包括流程管理,可以部署流程、删除流程、查看流程图、管理流程实例等;还有任务管理,工作管理及用户与用户组管理。
基于Tomcat和MySQL的部署:
现在要把上面演示的例子部署到Tomcat中,并将数据数配置为MySQL。
STEP 1,初始化数据库jBPM 需要数据库支持, jBPM 会把自己的一个初始化数据存储到数据库,同时工作流的数据也是存储到数据库中的。 jBPM 使用 Hibernate 作为的存储层。在E:\Java\tools\jbpm-jpdl-3.2.2\db\目录下有个jbpm.jpdl.mysql.sql数据库脚本文件。我们不能直接导入该文件, 会提示有错误, 应为该文件格式有问题, 首先打开该文件(推荐UltraEdit), 把前面的 alter table JBPM_XX 语句都删除(因为我们使用的是新的数据库,所以需要这些语句, 这个脚本文件是升级3.2的数据库表结构用的) 然后在每一行前面添加一个分号 不然脚本执行会出错。这样就可以用source命令导入了。 导入后, 表结构创建成功。
STEP 2,准备发布包在E:\Java\tools\jbpm-jpdl-3.2.2\deploy 文件夹下 运行ant customize.console.for.tomcat。执行命令后会在 E:\Java\tools\jbpm-jpdl-3.2.2\deploy\customized文件夹下生成一个jbpm-console.war 文件,用WinRaR解压开,并复制到已安装Tomcat的webapps目录下,jbpm还需三个依赖类库,分别是commons-collections.jar、ehcache-1.2.3.jar、jta.jar,当然还有个MySQL驱动mysql-connector-java-5.0.7-bin.jar,添加这些jar文件 到 \$CATALINA_HOME\webapps\jbpm-console\WEB-INF\lib目录下。
STEP 3,修改Hibernate数据库配置文件修改\$CATALINA_HOME\webapps\jbpm-console\WEB-INF\classes下hibernate.cfg.xml文件。这是Hibernate的数据库配置文件,要做一些修改,原来内容如下:
<!-- hibernate dialect --> <property name="hibernate.dialect">org.hibernate.dialect.HSQLDialect</property> <!-- JDBC connection properties (begin) === <property name="hibernate.connection.driver_class"> org.hsqldb.jdbcDriver</property> <property name="hibernate.connection.url">jdbc:hsqldb:mem:jbpm</property> <property name="hibernate.connection.username">sa</property> <property name="hibernate.connection.password"></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:/JbpmDS</property> <!-- DataSource properties (end) --> |
修改后如下:
<!-- hibernate dialect --> <property name="hibernate.dialect"> org.hibernate.dialect.MySQLInnoDBDialect</property> <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">jbpmuser</property> <property name="hibernate.connection.password">shine</property> <property name="hibernate.cache.provider_class"> org.hibernate.cache.HashtableCacheProvider</property> |
有两种方法都可以实现,但摧荐第一种方法。
方法一:配置一个JDBC Realm,在\$CATALINA_HOME\webapps\jbpm-console\META-INF目录下新建context.xml文件,内容如下:
<?xml version="1.0" encoding="UTF-8"?> <Context> <Realm className="org.apache.catalina.realm.JDBCRealm" driverName="com.mysql.jdbc.Driver" connectionURL="jdbc:mysql://localhost:3306/jbpm" connectionName="jbpmuser" connectionPassword="shine" userTable="JBPM_ID_USER u, JBPM_ID_MEMBERSHIP m, JBPM_ID_GROUP g" userNameCol="g.TYPE_ = 'security-role' AND m.GROUP_ = g.ID_ AND m.USER_ = u.ID_ AND u.NAME_" userCredCol="DISTINCT u.PASSWORD_" userRoleTable="JBPM_ID_USER u, JBPM_ID_MEMBERSHIP m, JBPM_ID_GROUP g" roleNameCol="g.NAME_" /> </Context> |
方法二:直接修改 /$CATALINA_HOME/conf/tomcat-users.xml文件来设置安全域。为了不和tomcat已有的用户冲突,这里把 tomcat以前的登陆帐号username="admin" 修改为username="tadmin",修改后的文件如下:
<?xml version='1.0' encoding='utf-8'?> <tomcat-users> <role rolename="user"/> <role rolename="administrator"/> <role rolename="manager"/> <role rolename="sales"/> <role rolename="hr"/> <role rolename="admin"/> <role rolename="participant"/> <user username="user" password="user" roles="user,sales"/> <user username="shipper" password="shipper" roles="user,hr"/> <user username="manager" password="manager" roles="admin,hr,manager,user,sales"/> <user username="tadmin" password="" roles="admin,manager"/><user username="admin" password="admin" roles="admin,user,hr"/> </tomcat-users> |
STEP 5,初始化基础的用户数据
在MySQL数据库中执行以下SQL语句,进行初始化用户信息,如下:
INSERT INTO JBPM_ID_GROUP VALUES(1,'G','sales','organisation',NULL); INSERT INTO JBPM_ID_GROUP VALUES(2,'G','admin','security-role',NULL); INSERT INTO JBPM_ID_GROUP VALUES(3,'G','user','security-role',NULL); INSERT INTO JBPM_ID_GROUP VALUES(4,'G','hr','organisation',NULL); INSERT INTO JBPM_ID_GROUP VALUES(5,'G','manager','security-role',NULL); INSERT INTO JBPM_ID_USER VALUES(1,'U','user','user@sample.domain','user'); INSERT INTO JBPM_ID_USER VALUES(2,'U','manager','manager@sample.domain','manager'); INSERT INTO JBPM_ID_USER VALUES(3,'U','admin','admin@sample.domain','admin'); INSERT INTO JBPM_ID_USER VALUES(4,'U','shipper','shipper@sample.domain','shipper'); INSERT INTO JBPM_ID_MEMBERSHIP VALUES(1,'M',NULL,NULL,2,4); INSERT INTO JBPM_ID_MEMBERSHIP VALUES(2,'M',NULL,NULL,3,4); INSERT INTO JBPM_ID_MEMBERSHIP VALUES(3,'M',NULL,NULL,4,4); INSERT INTO JBPM_ID_MEMBERSHIP VALUES(4,'M',NULL,NULL,4,3); INSERT INTO JBPM_ID_MEMBERSHIP VALUES(5,'M',NULL,NULL,1,3); INSERT INTO JBPM_ID_MEMBERSHIP VALUES(6,'M',NULL,NULL,2,3); INSERT INTO JBPM_ID_MEMBERSHIP VALUES(7,'M',NULL,NULL,3,3); INSERT INTO JBPM_ID_MEMBERSHIP VALUES(8,'M',NULL,NULL,3,2); INSERT INTO JBPM_ID_MEMBERSHIP VALUES(9,'M',NULL,NULL,2,2); INSERT INTO JBPM_ID_MEMBERSHIP VALUES(10,'M',NULL,NULL,2,5); INSERT INTO JBPM_ID_MEMBERSHIP VALUES(11,'M',NULL,'boss',2,1); INSERT INTO JBPM_ID_MEMBERSHIP VALUES(12,'M',NULL,NULL,1,1); |
启动时查看Tomcat的日志,检查是否正常启动,未添加所有支持库或数据库配置出错,都会引起启动失败。
注意:到此为止启动Tomcat,JBPM服务就能正常运行了,已经可以在上面发布流程,接着第五步中部署一个jbpm自带的流程例子。
STEP 7,发布例子流程
打开网页:http://localhost:8080/jbpm 得到如下页面就说明已经部署成功:
用右边的manage账号登录,如下图:
点击“Deploy”转到部署流程页面,点击“浏览”按扭选择E:\Java\tools\jbpm-jpdl-3.2.2\examples\websale\target\websale.jpdl文件,名后点击“Deploy”按扭部署。
评论
warning:security role name user used in an <auth-constraint>without being defind in a <security-role>
org.hibernate.connection.datasource connectionprovider configure
严重:could not find datasource:java/jbpmds
javax.naming.namenotfoundexception:namejbpmdsis not bound in this context
at org.apache.naming.naming context.lookup(naming context.java:770)
......
org.jbpm.job.executor.job excutorthread run
严重:exception in job executor thread waiting 5000 milliseconds
org.hibernate.hibernateexception:could not find datasource
这是什么地方出错了啊,我找了好久都没有找出来,lz和朋友们帮忙看看
用的是Eclipse3.3 + Myeclipse + jbpm3.1.4 + Tomcat 6.0 在配置Spring2.0 + Hibernate3.0 + Struts1.2 文件后抛出异常如下:
2008-4-12 13:50:13 org.apache.catalina.core.StandardContext listenerStart
严重: Exception sending context initialized event to listener instance of class org.apache.myfaces.webapp.StartupServletContextListener
java.lang.NoClassDefFoundError: org/apache/commons/el/Logger
at org.apache.myfaces.util.ClassUtils.<clinit>(ClassUtils.java:41)
at org.apache.myfaces.config.FacesConfigurator.feedStandardConfig(FacesConfigurator.java:138)
at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:115)
at org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextListener.java:63)
at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:46)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3830)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4337)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
2008-4-12 13:50:15 org.apache.catalina.core.ApplicationContext log
[framework]2008-04-12 13:50:44,110 - org.springframework.web.context.ContextLoader -28719 [main] ERROR org.springframework.web.context.ContextLoader - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jbpmConfiguration' defined in ServletContext resource [/WEB-INF/springconfig/applicationContext.xml]: Initialization of bean failed; nested exception is org.jbpm.configuration.ConfigurationException: name 'default.jbpm.context' is not defined in the configuration. configured names: []
org.jbpm.configuration.ConfigurationException: name 'default.jbpm.context' is not defined in the configuration. configured names: []
at org.jbpm.configuration.ObjectFactoryImpl.createObject(ObjectFactoryImpl.java:76)
at org.jbpm.JbpmConfiguration.createJbpmContext(JbpmConfiguration.java:343)
at org.springmodules.workflow.jbpm31.LocalJbpmConfigurationFactoryBean.afterPropertiesSet(LocalJbpmConfigurationFactoryBean.java:138)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1059)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:363)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:269)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:320)
at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3830)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4337)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
2008-4-12 13:50:44 org.apache.catalina.core.StandardContext listenerStart
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jbpmConfiguration' defined in ServletContext resource [/WEB-INF/springconfig/applicationContext.xml]: Initialization of bean failed; nested exception is org.jbpm.configuration.ConfigurationException: name 'default.jbpm.context' is not defined in the configuration. configured names: []
org.jbpm.configuration.ConfigurationException: name 'default.jbpm.context' is not defined in the configuration. configured names: []
at org.jbpm.configuration.ObjectFactoryImpl.createObject(ObjectFactoryImpl.java:76)
at org.jbpm.JbpmConfiguration.createJbpmContext(JbpmConfiguration.java:343)
at org.springmodules.workflow.jbpm31.LocalJbpmConfigurationFactoryBean.afterPropertiesSet(LocalJbpmConfigurationFactoryBean.java:138)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1059)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:363)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:269)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:320)
at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3830)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4337)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
2008-4-12 13:50:44 org.apache.catalina.core.StandardContext start
严重: Error listenerStart
2008-4-12 13:50:44 org.apache.catalina.core.StandardContext start
严重: Context [/j2eetest] startup failed due to previous errors
2008-4-12 13:50:44 org.apache.catalina.core.ApplicationContext log
信息: Closing Spring root WebApplicationContext
2008-4-12 13:50:44 org.apache.catalina.core.ApplicationContext log
信息: Shutting down Log4J
请楼住帮忙看,在这先说声谢谢!
Error listenerStart的错误
参照spiritfrog的回帖,把mysql的驱动放到tomcat 的lib下,重新启动,登陆没问题了。
配置文件hibenate.cfg.xml<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<!-- hibernate dialect -->
<!-- <property name="hibernate.dialect">org.hibernate.dialect.HSQLDialect</property>
-->
<!-- JDBC connection properties (begin) ===
<property name="hibernate.connection.driver_class">org.hsqldb.jdbcDriver</property>
<property name="hibernate.connection.url">jdbc:hsqldb:mem:jbpm</property>
<property name="hibernate.connection.username">sa</property>
<property name="hibernate.connection.password"></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:/JbpmDS</property> -->
<!-- DataSource properties (end) -->
<property name="hibernate.dialect">org.hibernate.dialect.MySQLInnoDBDialect</property>
<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">root</property>
<property name="hibernate.connection.password">root</property>
<property name="hibernate.cache.provider_class">org.hibernate.cache.HashtableCacheProvider</property>
<!--
<property name="hibernate.transaction.factory_class">org.hibernate.transaction.JDBCTransactionFactory</property> -->
<!-- JTA transaction properties (begin) ===
<property name="hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
<property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property>
==== JTA transaction properties (end) -->
<!-- CMT transaction properties (begin) ===
<property name="hibernate.transaction.factory_class">org.hibernate.transaction.CMTTransactionFactory</property>
<property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property>
==== CMT transaction properties (end) -->
<!-- logging properties (begin) ===
<property name="hibernate.show_sql">true</property>
<property name="hibernate.format_sql">true</property>
<property name="hibernate.use_sql_comments">true</property>
==== logging properties (end) -->
<!-- ############################################ -->
<!-- # mapping files with external dependencies # -->
<!-- ############################################ -->
<!-- following mapping file has a dependendy on -->
<!-- 'bsh-{version}.jar'. -->
<!-- uncomment this if you don't have bsh on your -->
<!-- classpath. you won't be able to use the -->
<!-- script element in process definition files -->
<mapping resource="org/jbpm/graph/action/Script.hbm.xml"/>
<!-- following mapping files have a dependendy on -->
<!-- 'jbpm-identity.jar', mapping files -->
<!-- of the pluggable jbpm identity component. -->
<!-- Uncomment the following 3 lines if you -->
<!-- want to use the jBPM identity mgmgt -->
<!-- component. -->
<!-- identity mappings (begin) -->
<mapping resource="org/jbpm/identity/User.hbm.xml"/>
<mapping resource="org/jbpm/identity/Group.hbm.xml"/>
<mapping resource="org/jbpm/identity/Membership.hbm.xml"/>
<!-- identity mappings (end) -->
<!-- following mapping files have a dependendy on -->
<!-- the JCR API -->
<!-- jcr mappings (begin) ===
<mapping resource="org/jbpm/context/exe/variableinstance/JcrNodeInstance.hbm.xml"/>
==== jcr mappings (end) -->
<!-- ###################### -->
<!-- # jbpm mapping files # -->
<!-- ###################### -->
<!-- hql queries and type defs -->
<mapping resource="org/jbpm/db/hibernate.queries.hbm.xml" />
<!-- graph.action mapping files -->
<mapping resource="org/jbpm/graph/action/MailAction.hbm.xml"/>
<!-- graph.def mapping files -->
<mapping resource="org/jbpm/graph/def/ProcessDefinition.hbm.xml"/>
<mapping resource="org/jbpm/graph/def/Node.hbm.xml"/>
<mapping resource="org/jbpm/graph/def/Transition.hbm.xml"/>
<mapping resource="org/jbpm/graph/def/Event.hbm.xml"/>
<mapping resource="org/jbpm/graph/def/Action.hbm.xml"/>
<mapping resource="org/jbpm/graph/def/SuperState.hbm.xml"/>
<mapping resource="org/jbpm/graph/def/ExceptionHandler.hbm.xml"/>
<mapping resource="org/jbpm/instantiation/Delegation.hbm.xml"/>
<!-- graph.node mapping files -->
<mapping resource="org/jbpm/graph/node/StartState.hbm.xml"/>
<mapping resource="org/jbpm/graph/node/EndState.hbm.xml"/>
<mapping resource="org/jbpm/graph/node/ProcessState.hbm.xml"/>
<mapping resource="org/jbpm/graph/node/Decision.hbm.xml"/>
<mapping resource="org/jbpm/graph/node/Fork.hbm.xml"/>
<mapping resource="org/jbpm/graph/node/Join.hbm.xml"/>
<mapping resource="org/jbpm/graph/node/MailNode.hbm.xml"/>
<mapping resource="org/jbpm/graph/node/State.hbm.xml"/>
<mapping resource="org/jbpm/graph/node/TaskNode.hbm.xml"/>
<!-- context.def mapping files -->
<mapping resource="org/jbpm/context/def/ContextDefinition.hbm.xml"/>
<mapping resource="org/jbpm/context/def/VariableAccess.hbm.xml"/>
<!-- taskmgmt.def mapping files -->
<mapping resource="org/jbpm/taskmgmt/def/TaskMgmtDefinition.hbm.xml"/>
<mapping resource="org/jbpm/taskmgmt/def/Swimlane.hbm.xml"/>
<mapping resource="org/jbpm/taskmgmt/def/Task.hbm.xml"/>
<mapping resource="org/jbpm/taskmgmt/def/TaskController.hbm.xml"/>
<!-- module.def mapping files -->
<mapping resource="org/jbpm/module/def/ModuleDefinition.hbm.xml"/>
<!-- bytes mapping files -->
<mapping resource="org/jbpm/bytes/ByteArray.hbm.xml"/>
<!-- file.def mapping files -->
<mapping resource="org/jbpm/file/def/FileDefinition.hbm.xml"/>
<!-- scheduler.def mapping files -->
<mapping resource="org/jbpm/scheduler/def/CreateTimerAction.hbm.xml"/>
<mapping resource="org/jbpm/scheduler/def/CancelTimerAction.hbm.xml"/>
<!-- graph.exe mapping files -->
<mapping resource="org/jbpm/graph/exe/Comment.hbm.xml"/>
<mapping resource="org/jbpm/graph/exe/ProcessInstance.hbm.xml"/>
<mapping resource="org/jbpm/graph/exe/Token.hbm.xml"/>
<mapping resource="org/jbpm/graph/exe/RuntimeAction.hbm.xml"/>
<!-- module.exe mapping files -->
<mapping resource="org/jbpm/module/exe/ModuleInstance.hbm.xml"/>
<!-- context.exe mapping files -->
<mapping resource="org/jbpm/context/exe/ContextInstance.hbm.xml"/>
<mapping resource="org/jbpm/context/exe/TokenVariableMap.hbm.xml"/>
<mapping resource="org/jbpm/context/exe/VariableInstance.hbm.xml"/>
<mapping resource="org/jbpm/context/exe/variableinstance/ByteArrayInstance.hbm.xml"/>
<mapping resource="org/jbpm/context/exe/variableinstance/DateInstance.hbm.xml"/>
<mapping resource="org/jbpm/context/exe/variableinstance/DoubleInstance.hbm.xml"/>
<mapping resource="org/jbpm/context/exe/variableinstance/HibernateLongInstance.hbm.xml"/>
<mapping resource="org/jbpm/context/exe/variableinstance/HibernateStringInstance.hbm.xml"/>
<mapping resource="org/jbpm/context/exe/variableinstance/LongInstance.hbm.xml"/>
<mapping resource="org/jbpm/context/exe/variableinstance/NullInstance.hbm.xml"/>
<mapping resource="org/jbpm/context/exe/variableinstance/StringInstance.hbm.xml"/>
<!-- job mapping files -->
<mapping resource="org/jbpm/job/Job.hbm.xml"/>
<mapping resource="org/jbpm/job/Timer.hbm.xml"/>
<mapping resource="org/jbpm/job/ExecuteNodeJob.hbm.xml"/>
<mapping resource="org/jbpm/job/ExecuteActionJob.hbm.xml"/>
<!-- taskmgmt.exe mapping files -->
<mapping resource="org/jbpm/taskmgmt/exe/TaskMgmtInstance.hbm.xml"/>
<mapping resource="org/jbpm/taskmgmt/exe/TaskInstance.hbm.xml"/>
<mapping resource="org/jbpm/taskmgmt/exe/PooledActor.hbm.xml"/>
<mapping resource="org/jbpm/taskmgmt/exe/SwimlaneInstance.hbm.xml"/>
<!-- logging mapping files -->
<mapping resource="org/jbpm/logging/log/ProcessLog.hbm.xml"/>
<mapping resource="org/jbpm/logging/log/MessageLog.hbm.xml"/>
<mapping resource="org/jbpm/logging/log/CompositeLog.hbm.xml"/>
<mapping resource="org/jbpm/graph/log/ActionLog.hbm.xml"/>
<mapping resource="org/jbpm/graph/log/NodeLog.hbm.xml"/>
<mapping resource="org/jbpm/graph/log/ProcessInstanceCreateLog.hbm.xml"/>
<mapping resource="org/jbpm/graph/log/ProcessInstanceEndLog.hbm.xml"/>
<mapping resource="org/jbpm/graph/log/ProcessStateLog.hbm.xml"/>
<mapping resource="org/jbpm/graph/log/SignalLog.hbm.xml"/>
<mapping resource="org/jbpm/graph/log/TokenCreateLog.hbm.xml"/>
<mapping resource="org/jbpm/graph/log/TokenEndLog.hbm.xml"/>
<mapping resource="org/jbpm/graph/log/TransitionLog.hbm.xml"/>
<mapping resource="org/jbpm/context/log/VariableLog.hbm.xml"/>
<mapping resource="org/jbpm/context/log/VariableCreateLog.hbm.xml"/>
<mapping resource="org/jbpm/context/log/VariableDeleteLog.hbm.xml"/>
<mapping resource="org/jbpm/context/log/VariableUpdateLog.hbm.xml"/>
<mapping resource="org/jbpm/context/log/variableinstance/ByteArrayUpdateLog.hbm.xml"/>
<mapping resource="org/jbpm/context/log/variableinstance/DateUpdateLog.hbm.xml"/>
<mapping resource="org/jbpm/context/log/variableinstance/DoubleUpdateLog.hbm.xml"/>
<mapping resource="org/jbpm/context/log/variableinstance/HibernateLongUpdateLog.hbm.xml"/>
<mapping resource="org/jbpm/context/log/variableinstance/HibernateStringUpdateLog.hbm.xml"/>
<mapping resource="org/jbpm/context/log/variableinstance/LongUpdateLog.hbm.xml"/>
<mapping resource="org/jbpm/context/log/variableinstance/StringUpdateLog.hbm.xml"/>
<mapping resource="org/jbpm/taskmgmt/log/TaskLog.hbm.xml"/>
<mapping resource="org/jbpm/taskmgmt/log/TaskCreateLog.hbm.xml"/>
<mapping resource="org/jbpm/taskmgmt/log/TaskAssignLog.hbm.xml"/>
<mapping resource="org/jbpm/taskmgmt/log/TaskEndLog.hbm.xml"/>
<mapping resource="org/jbpm/taskmgmt/log/SwimlaneLog.hbm.xml"/>
<mapping resource="org/jbpm/taskmgmt/log/SwimlaneCreateLog.hbm.xml"/>
<mapping resource="org/jbpm/taskmgmt/log/SwimlaneAssignLog.hbm.xml"/>
</session-factory>
</hibernate-configuration>
context.xml
<?xml version="1.0" encoding="UTF-8"?>
<Context path="/jbpm-console" docBase="D:/develop/Tomcat 6.0/webapps/jbpm-console"
debug="5" reloadable="true" crossContext="true">
<Realm className="org.apache.catalina.realm.JDBCRealm"
driverName="com.mysql.jdbc.Driver"
connectionURL="jdbc:mysql://localhost:3306/jbpm"
connectionName="root"
connectionPassword="root"
userTable="JBPM_ID_USER u, JBPM_ID_MEMBERSHIP m, JBPM_ID_GROUP g"
userNameCol="g.TYPE_ = 'security-role' AND m.GROUP_ = g.ID_ AND m.USER_ = u.ID_ AND u.NAME_"
userCredCol="DISTINCT u.PASSWORD_"
userRoleTable="JBPM_ID_USER u, JBPM_ID_MEMBERSHIP m, JBPM_ID_GROUP g"
roleNameCol="g.NAME_" />
</Context>
2008-3-31 10:34:00 org.apache.catalina.realm.JDBCRealm start
严重: Exception opening database connection
java.sql.SQLException: com.mysql.jdbc.Driver
at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:691)
at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:769)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4126)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:448)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
2008-3-31 10:34:44 org.apache.catalina.core.ApplicationDispatcher invoke
严重: Servlet.service() for servlet Faces Servlet threw exception
com.sun.facelets.FaceletException: Could not instantiate feature[compiler.ExpressionFactory]: com.sun.el.ExpressionFactoryImpl
at com.sun.facelets.compiler.Compiler.featureInstance(Compiler.java:154)
at com.sun.facelets.compiler.Compiler.createExpressionFactory(Compiler.java:143)
at com.sun.facelets.impl.DefaultFaceletFactory.createFacelet(DefaultFaceletFactory.java:198)
at com.sun.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:144)
at com.sun.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:95)
at com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:496)
at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:546)
at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:178)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:248)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:691)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:469)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:403)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at org.apache.catalina.authenticator.FormAuthenticator.forwardToLoginPage(FormAuthenticator.java:316)
at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:244)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:491)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:834)
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:640)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1286)
at java.lang.Thread.run(Thread.java:595)
第一个是context.xml中用户名和密码忘记改了(采用第一种认证方式),记得要将mysql驱动copy到tomcat
第二个是 com.sun.el.ExpressionFactoryImpl 的问题, 估计是tomcat对jsf的支持问题,还在解决中。。
这句话不见得是错误,只是说JNDI中没有绑定信息而已。
从日志上能看出,一个貌似JSF的jar包没有成功加载;另一个是你数据库的用户名密码好像配置不对,造成connection无法正常连接
和以前也不一样了,jbpm没有启动成功。我觉得很奇怪,清了tomcat的work文件夹,重装了tomcat
重启了机器。还是不行。搞来搞去,还不如最开始接近成功了。
tomcat启动信息:
2008-3-28 16:24:40 org.apache.catalina.core.AprLifecycleListener init
信息: The APR based Apache Tomcat Native library which allows optimal performanc
e in production environments was not found on the java.library.path: D:\develop\
Tomcat 6.0\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Green
AMP Standard\MySQL\bin;D:\develop\ant162\apache-ant-1.6.2\bin;C:\sybase\OCS-12_5
\lib3p;C:\sybase\OCS-12_5\dll;C:\sybase\OCS-12_5\bin;C:\sybase\SQLRemote\dll;C:\
sybase\RPL-12_5\bin;C:\sybase\JS-12_5\bin;C:\sybase\ASE-12_5\dll;C:\sybase\ASE-1
2_5\bin;C:\Program Files\REALTEK Semiconductor Corporation\REALTEK Gigabit and F
ast Ethernet NIC Driver;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;
d:\develop\pb6.5\shared;C:\Program Files\Rational\common;C:\Program Files\Java\j
dk1.6.0\bin;C:\Program Files\MySQL\MySQL Server 5.0\bin
2008-3-28 16:24:40 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on http-8080
2008-3-28 16:24:40 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 773 ms
2008-3-28 16:24:40 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2008-3-28 16:24:40 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.16
2008-3-28 16:24:41 org.apache.catalina.core.StandardContext addApplicationListen
er
信息: The listener "listeners.ContextListener" is already configured for this co
ntext. The duplicate definition has been ignored.
2008-3-28 16:24:41 org.apache.catalina.core.StandardContext addApplicationListen
er
信息: The listener "listeners.SessionListener" is already configured for this co
ntext. The duplicate definition has been ignored.
2008-3-28 16:24:41 org.apache.catalina.loader.WebappClassLoader validateJarFile
信息: validateJarFile(D:\develop\Tomcat 6.0\webapps\jbpm-console\WEB-INF\lib\ser
vlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending c
lass: javax/servlet/Servlet.class
2008-3-28 16:24:41 org.apache.catalina.startup.ContextConfig validateSecurityRol
es
信息: WARNING: Security role name user used in an <auth-constraint> without bein
g defined in a <security-role>
2008-3-28 16:24:41 com.sun.faces.config.ConfigureListener contextInitialized
信息: Initializing Sun's JavaServer Faces implementation (1.2_03-b09-FCS) for co
ntext '/jbpm-console'
2008-3-28 16:24:42 com.sun.faces.spi.InjectionProviderFactory createInstance
警告: JSF1033: Resource injection is DISABLED.
2008-3-28 16:24:42 org.apache.catalina.core.StandardContext start
[b]严重: Error listenerStart
2008-3-28 16:24:42 org.apache.catalina.core.StandardContext start
严重: Context [/jbpm-console] startup failed due to previous errors
2008-3-28 16:24:42 org.jbpm.JbpmConfiguration getInstance
信息: using jbpm configuration resource 'jbpm.cfg.xml'
2008-3-28 16:24:42 org.jbpm.persistence.db.StaleObjectLogConfigurer hideStaleObj
ectExceptions
信息: stale object exceptions will be hidden from logging
2008-3-28 16:24:42 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on http-8080
2008-3-28 16:24:42 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2008-3-28 16:24:42 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/31 config=null
2008-3-28 16:24:42 org.apache.catalina.startup.Catalina start
信息: Server startup in 2142 ms
tomcat日志中的错误信息:
2008-3-28 16:24:38 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextDestroyed()
2008-3-28 16:24:38 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextDestroyed()
2008-3-28 16:24:41 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextInitialized()
2008-3-28 16:24:41 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextInitialized()
2008-3-28 16:24:41 org.apache.catalina.realm.JDBCRealm start
严重: Exception opening database connection
java.sql.SQLException: com.mysql.jdbc.Driver
at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:691)
at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:769)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:924)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:887)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
2008-3-28 16:24:42 org.apache.catalina.core.StandardContext listenerStart
严重: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
java.lang.LinkageError: loader constraint violation: when resolving interface method "javax.servlet.jsp.JspApplicationContext.getExpressionFactory()Ljavax/el/ExpressionFactory;" the class loader (instance of org/apache/catalina/loader/WebappClassLoader) of the current class, com/sun/faces/config/ConfigureListener, and the class loader (instance of org/apache/catalina/loader/StandardClassLoader) for resolved class, javax/servlet/jsp/JspApplicationContext, have different Class objects for the type javax/el/ExpressionFactory used in the signature
at com.sun.faces.config.ConfigureListener.registerELResolverAndListenerWithJsp(ConfigureListener.java:1638)
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:455)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:924)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:887)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
我开始认为这是个报错信息。地址栏中输入:http://localhost:8080/jbpm报出来404错误。
今天又看看了看 启动后输入http://localhost:8080/jbpm-console/ 正常出现了界面。
不过,在输入用户名密码的时候 页面提示“Login failed. Invalid user name or password. ”
我查了数据库,里面是有用户信息的。
查了tomcat日志,localhost.2008-03-28.log 发现在启动时报错
2008-3-28 13:40:09 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextInitialized()
2008-3-28 13:40:09 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextInitialized()
2008-3-28 13:40:09 org.apache.catalina.realm.JDBCRealm start
严重: Exception opening database connection
java.sql.SQLException: com.mysql.jdbc.Driver
at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:691)
at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:769)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:924)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:887)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
在界面输入用户名密码login时报错
2008-3-28 13:41:30 org.apache.catalina.realm.JDBCRealm authenticate
严重: Exception performing authentication
java.sql.SQLException: com.mysql.jdbc.Driver
at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:691)
at org.apache.catalina.realm.JDBCRealm.authenticate(JDBCRealm.java:346)
at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:258)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:417)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)
2008-3-28 13:41:30 org.apache.catalina.realm.JDBCRealm authenticate
严重: Exception performing authentication
java.sql.SQLException: com.mysql.jdbc.Driver
at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:691)
at org.apache.catalina.realm.JDBCRealm.authenticate(JDBCRealm.java:346)
at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:258)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:417)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)
Tomcat 6.0\webapps\jbpm-console\WEB-INF\classes\hibernate.cfg.xml
中的内容已经修改为
<property name="hibernate.dialect">org.hibernate.dialect.MySQLInnoDBDialect</property>
<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">jbpmuser</property><!-- jbpmuser -->
<property name="hibernate.connection.password">123456</property><!-- shine -->
<property name="hibernate.cache.provider_class">org.hibernate.cache.HashtableCacheProvider</property>
在mysql中执行了
grant select,insert,update,delete on jbpm.* to jbpmuser@localhost identified by "123456";
Tomcat 6.0\conf\server.xml 中应该不需要改动吧
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname="conf/tomcat-users.xml" />
-----------------------
总之,我觉得就是从启动使连数据库就有问题了,不知道有什么地方配置的不对,我不知道再怎么弄了,请帮忙,谢谢。
看到你说的几个包的版本了,小版本差异一般不会对服务造成影响的。
你的启动日志貌似都正常啊。
信息: Reading mappings from resource : org/jbpm/graph/log/TransitionLog.hbm.xml
2008-3-27 20:24:46 org.hibernate.cfg.HbmBinder bindSubclass
信息: Mapping subclass: org.jbpm.graph.log.TransitionLog -> JBPM_LOG
2008-3-27 20:24:46 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : org/jbpm/context/log/VariableLog.hbm.xml
2008-3-27 20:24:46 org.hibernate.cfg.HbmBinder bindSubclass
信息: Mapping subclass: org.jbpm.context.log.VariableLog -> JBPM_LOG
2008-3-27 20:24:46 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : org/jbpm/context/log/VariableCreateLog.hb
m.xml
2008-3-27 20:24:46 org.hibernate.cfg.HbmBinder bindSubclass
信息: Mapping subclass: org.jbpm.context.log.VariableCreateLog -> JBPM_LOG
2008-3-27 20:24:46 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : org/jbpm/context/log/VariableDeleteLog.hb
m.xml
2008-3-27 20:24:46 org.hibernate.cfg.HbmBinder bindSubclass
信息: Mapping subclass: org.jbpm.context.log.VariableDeleteLog -> JBPM_LOG
2008-3-27 20:24:46 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : org/jbpm/context/log/VariableUpdateLog.hb
m.xml
2008-3-27 20:24:46 org.hibernate.cfg.HbmBinder bindSubclass
信息: Mapping subclass: org.jbpm.context.log.VariableUpdateLog -> JBPM_LOG
2008-3-27 20:24:46 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : org/jbpm/context/log/variableinstance/Byt
eArrayUpdateLog.hbm.xml
2008-3-27 20:24:46 org.hibernate.cfg.HbmBinder bindSubclass
信息: Mapping subclass: org.jbpm.context.log.variableinstance.ByteArrayUpdateLog
-> JBPM_LOG
2008-3-27 20:24:46 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : org/jbpm/context/log/variableinstance/Dat
eUpdateLog.hbm.xml
2008-3-27 20:24:46 org.hibernate.cfg.HbmBinder bindSubclass
信息: Mapping subclass: org.jbpm.context.log.variableinstance.DateUpdateLog -> J
BPM_LOG
2008-3-27 20:24:46 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : org/jbpm/context/log/variableinstance/Dou
bleUpdateLog.hbm.xml
2008-3-27 20:24:46 org.hibernate.cfg.HbmBinder bindSubclass
信息: Mapping subclass: org.jbpm.context.log.variableinstance.DoubleUpdateLog ->
JBPM_LOG
2008-3-27 20:24:46 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : org/jbpm/context/log/variableinstance/Hib
ernateLongUpdateLog.hbm.xml
2008-3-27 20:24:46 org.hibernate.cfg.HbmBinder bindSubclass
信息: Mapping subclass: org.jbpm.context.log.variableinstance.HibernateLongUpdat
eLog -> JBPM_LOG
2008-3-27 20:24:46 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : org/jbpm/context/log/variableinstance/Hib
ernateStringUpdateLog.hbm.xml
2008-3-27 20:24:46 org.hibernate.cfg.HbmBinder bindSubclass
信息: Mapping subclass: org.jbpm.context.log.variableinstance.HibernateStringUpd
ateLog -> JBPM_LOG
2008-3-27 20:24:46 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : org/jbpm/context/log/variableinstance/Lon
gUpdateLog.hbm.xml
2008-3-27 20:24:46 org.hibernate.cfg.HbmBinder bindSubclass
信息: Mapping subclass: org.jbpm.context.log.variableinstance.LongUpdateLog -> J
BPM_LOG
2008-3-27 20:24:46 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : org/jbpm/context/log/variableinstance/Str
ingUpdateLog.hbm.xml
2008-3-27 20:24:46 org.hibernate.cfg.HbmBinder bindSubclass
信息: Mapping subclass: org.jbpm.context.log.variableinstance.StringUpdateLog ->
JBPM_LOG
2008-3-27 20:24:46 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : org/jbpm/taskmgmt/log/TaskLog.hbm.xml
2008-3-27 20:24:46 org.hibernate.cfg.HbmBinder bindSubclass
信息: Mapping subclass: org.jbpm.taskmgmt.log.TaskLog -> JBPM_LOG
2008-3-27 20:24:46 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : org/jbpm/taskmgmt/log/TaskCreateLog.hbm.x
ml
2008-3-27 20:24:46 org.hibernate.cfg.HbmBinder bindSubclass
信息: Mapping subclass: org.jbpm.taskmgmt.log.TaskCreateLog -> JBPM_LOG
2008-3-27 20:24:46 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : org/jbpm/taskmgmt/log/TaskAssignLog.hbm.x
ml
2008-3-27 20:24:46 org.hibernate.cfg.HbmBinder bindSubclass
信息: Mapping subclass: org.jbpm.taskmgmt.log.TaskAssignLog -> JBPM_LOG
2008-3-27 20:24:46 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : org/jbpm/taskmgmt/log/TaskEndLog.hbm.xml
2008-3-27 20:24:46 org.hibernate.cfg.HbmBinder bindSubclass
信息: Mapping subclass: org.jbpm.taskmgmt.log.TaskEndLog -> JBPM_LOG
2008-3-27 20:24:46 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : org/jbpm/taskmgmt/log/SwimlaneLog.hbm.xml
2008-3-27 20:24:46 org.hibernate.cfg.HbmBinder bindSubclass
信息: Mapping subclass: org.jbpm.taskmgmt.log.SwimlaneLog -> JBPM_LOG
2008-3-27 20:24:46 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : org/jbpm/taskmgmt/log/SwimlaneCreateLog.h
bm.xml
2008-3-27 20:24:46 org.hibernate.cfg.HbmBinder bindSubclass
信息: Mapping subclass: org.jbpm.taskmgmt.log.SwimlaneCreateLog -> JBPM_LOG
2008-3-27 20:24:46 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : org/jbpm/taskmgmt/log/SwimlaneAssignLog.h
bm.xml
2008-3-27 20:24:46 org.hibernate.cfg.HbmBinder bindSubclass
信息: Mapping subclass: org.jbpm.taskmgmt.log.SwimlaneAssignLog -> JBPM_LOG
2008-3-27 20:24:46 org.hibernate.cfg.Configuration doConfigure
信息: Configured SessionFactory: null
2008-3-27 20:24:46 org.hibernate.cfg.HbmBinder bindSubclass
信息: Mapping subclass: org.jbpm.graph.action.MailAction -> JBPM_ACTION
2008-3-27 20:24:46 org.hibernate.cfg.HbmBinder bindSubclass
信息: Mapping subclass: org.jbpm.graph.action.Script -> JBPM_ACTION
2008-3-27 20:24:46 org.hibernate.cfg.HbmBinder bindSubclass
信息: Mapping subclass: org.jbpm.context.def.ContextDefinition -> JBPM_MODULEDEF
INITION
2008-3-27 20:24:46 org.hibernate.cfg.HbmBinder bindSubclass
信息: Mapping subclass: org.jbpm.taskmgmt.def.TaskMgmtDefinition -> JBPM_MODULED
EFINITION
2008-3-27 20:24:46 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: org.jbpm.identity.User.memberships -> JBPM_ID_MEMBERSH
IP
2008-3-27 20:24:46 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: org.jbpm.identity.Group.children -> JBPM_ID_GROUP
2008-3-27 20:24:46 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: org.jbpm.identity.Group.memberships -> JBPM_ID_MEMBERS
HIP
2008-3-27 20:24:46 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: org.jbpm.graph.def.ProcessDefinition.events -> JBPM_EV
ENT
2008-3-27 20:24:46 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: org.jbpm.graph.def.ProcessDefinition.exceptionHandlers
-> JBPM_EXCEPTIONHANDLER
2008-3-27 20:24:46 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: org.jbpm.graph.def.ProcessDefinition.nodes -> JBPM_NOD
E
2008-3-27 20:24:46 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: org.jbpm.graph.def.ProcessDefinition.actions -> JBPM_A
CTION
2008-3-27 20:24:46 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: org.jbpm.graph.def.ProcessDefinition.definitions -> JB
PM_MODULEDEFINITION
2008-3-27 20:24:46 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: org.jbpm.graph.def.Node.events -> JBPM_EVENT
2008-3-27 20:24:46 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: org.jbpm.graph.def.Node.exceptionHandlers -> JBPM_EXCE
PTIONHANDLER
2008-3-27 20:24:46 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: org.jbpm.graph.def.Node.leavingTransitions -> JBPM_TRA
NSITION
2008-3-27 20:24:46 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: org.jbpm.graph.def.Node.arrivingTransitions -> JBPM_TR
ANSITION
2008-3-27 20:24:46 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: org.jbpm.graph.def.Transition.events -> JBPM_EVENT
2008-3-27 20:24:46 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: org.jbpm.graph.def.Transition.exceptionHandlers -> JBP
M_EXCEPTIONHANDLER
2008-3-27 20:24:46 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: org.jbpm.graph.def.Event.actions -> JBPM_ACTION
2008-3-27 20:24:46 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: org.jbpm.graph.def.SuperState.nodes -> JBPM_NODE
2008-3-27 20:24:46 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: org.jbpm.graph.def.ExceptionHandler.actions -> JBPM_AC
TION
2008-3-27 20:24:46 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: org.jbpm.graph.node.ProcessState.variableAccesses -> J
BPM_VARIABLEACCESS
2008-3-27 20:24:46 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: org.jbpm.graph.node.TaskNode.tasks -> JBPM_TASK
2008-3-27 20:24:46 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: org.jbpm.taskmgmt.def.Swimlane.tasks -> JBPM_TASK
2008-3-27 20:24:46 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: org.jbpm.taskmgmt.def.Task.events -> JBPM_EVENT
2008-3-27 20:24:46 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: org.jbpm.taskmgmt.def.Task.exceptionHandlers -> JBPM_E
XCEPTIONHANDLER
2008-3-27 20:24:46 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: org.jbpm.taskmgmt.def.TaskController.variableAccesses
-> JBPM_VARIABLEACCESS
2008-3-27 20:24:46 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: org.jbpm.file.def.FileDefinition.processFiles -> JBPM_
BYTEARRAY
2008-3-27 20:24:46 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: org.jbpm.graph.exe.ProcessInstance.runtimeActions -> J
BPM_RUNTIMEACTION
2008-3-27 20:24:46 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: org.jbpm.graph.exe.ProcessInstance.instances -> JBPM_M
ODULEINSTANCE
2008-3-27 20:24:46 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: org.jbpm.graph.exe.Token.children -> JBPM_TOKEN
2008-3-27 20:24:46 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: org.jbpm.graph.exe.Token.comments -> JBPM_COMMENT
2008-3-27 20:24:46 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: org.jbpm.context.exe.ContextInstance.tokenVariableMaps
-> JBPM_TOKENVARIABLEMAP
2008-3-27 20:24:46 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: org.jbpm.context.exe.TokenVariableMap.variableInstance
s -> JBPM_VARIABLEINSTANCE
2008-3-27 20:24:46 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: org.jbpm.taskmgmt.exe.TaskMgmtInstance.swimlaneInstanc
es -> JBPM_SWIMLANEINSTANCE
2008-3-27 20:24:46 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: org.jbpm.taskmgmt.exe.TaskMgmtInstance.taskInstances -
> JBPM_TASKINSTANCE
2008-3-27 20:24:46 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: org.jbpm.taskmgmt.exe.TaskInstance.variableInstances -
> JBPM_VARIABLEINSTANCE
2008-3-27 20:24:46 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: org.jbpm.taskmgmt.exe.TaskInstance.comments -> JBPM_CO
MMENT
2008-3-27 20:24:46 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: org.jbpm.taskmgmt.exe.SwimlaneInstance.pooledActors ->
JBPM_POOLEDACTOR
2008-3-27 20:24:46 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: org.jbpm.logging.log.CompositeLog.children -> JBPM_LOG
2008-3-27 20:24:46 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: org.jbpm.graph.action.Script.variableAccesses -> JBPM_
VARIABLEACCESS
2008-3-27 20:24:46 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: org.jbpm.taskmgmt.def.TaskMgmtDefinition.swimlanes ->
JBPM_SWIMLANE
2008-3-27 20:24:46 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: org.jbpm.taskmgmt.def.TaskMgmtDefinition.tasks -> JBPM
_TASK
2008-3-27 20:24:46 org.hibernate.connection.DriverManagerConnectionProvider conf
igure
信息: Using Hibernate built-in connection pool (not for production use!)
2008-3-27 20:24:46 org.hibernate.connection.DriverManagerConnectionProvider conf
igure
信息: Hibernate connection pool size: 20
2008-3-27 20:24:46 org.hibernate.connection.DriverManagerConnectionProvider conf
igure
信息: autocommit mode: false
2008-3-27 20:24:46 org.hibernate.connection.DriverManagerConnectionProvider conf
igure
信息: using driver: com.mysql.jdbc.Driver at URL: jdbc:mysql://localhost:3306/jb
pm
2008-3-27 20:24:46 org.hibernate.connection.DriverManagerConnectionProvider conf
igure
信息: connection properties: {user=jbpmuser, password=****}
2008-3-27 20:24:47 org.hibernate.cfg.SettingsFactory buildSettings
信息: RDBMS: MySQL, version: 5.0.22-community-nt
2008-3-27 20:24:47 org.hibernate.cfg.SettingsFactory buildSettings
信息: JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-5.0.8 ( R
evision: ${svn.Revision} )
2008-3-27 20:24:47 org.hibernate.dialect.Dialect <init>
信息: Using dialect: org.hibernate.dialect.MySQLInnoDBDialect
2008-3-27 20:24:47 org.hibernate.transaction.TransactionFactoryFactory buildTran
sactionFactory
信息: Using default transaction strategy (direct JDBC transactions)
2008-3-27 20:24:47 org.hibernate.transaction.TransactionManagerLookupFactory get
TransactionManagerLookup
信息: No TransactionManagerLookup configured (in JTA environment, use of read-wr
ite or transactional second-level cache is not recommended)
2008-3-27 20:24:47 org.hibernate.cfg.SettingsFactory buildSettings
信息: Automatic flush during beforeCompletion(): disabled
2008-3-27 20:24:47 org.hibernate.cfg.SettingsFactory buildSettings
信息: Automatic session close at end of transaction: disabled
2008-3-27 20:24:47 org.hibernate.cfg.SettingsFactory buildSettings
信息: JDBC batch size: 15
2008-3-27 20:24:47 org.hibernate.cfg.SettingsFactory buildSettings
信息: JDBC batch updates for versioned data: disabled
2008-3-27 20:24:47 org.hibernate.cfg.SettingsFactory buildSettings
信息: Scrollable result sets: enabled
2008-3-27 20:24:47 org.hibernate.cfg.SettingsFactory buildSettings
信息: JDBC3 getGeneratedKeys(): enabled
2008-3-27 20:24:47 org.hibernate.cfg.SettingsFactory buildSettings
信息: Connection release mode: auto
2008-3-27 20:24:47 org.hibernate.cfg.SettingsFactory buildSettings
信息: Maximum outer join fetch depth: 2
2008-3-27 20:24:47 org.hibernate.cfg.SettingsFactory buildSettings
信息: Default batch fetch size: 1
2008-3-27 20:24:47 org.hibernate.cfg.SettingsFactory buildSettings
信息: Generate SQL with comments: disabled
2008-3-27 20:24:47 org.hibernate.cfg.SettingsFactory buildSettings
信息: Order SQL updates by primary key: disabled
2008-3-27 20:24:47 org.hibernate.cfg.SettingsFactory createQueryTranslatorFactor
y
信息: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
2008-3-27 20:24:47 org.hibernate.hql.ast.ASTQueryTranslatorFactory <init>
信息: Using ASTQueryTranslatorFactory
2008-3-27 20:24:47 org.hibernate.cfg.SettingsFactory buildSettings
信息: Query language substitutions: {}
2008-3-27 20:24:47 org.hibernate.cfg.SettingsFactory buildSettings
信息: JPA-QL strict compliance: disabled
2008-3-27 20:24:47 org.hibernate.cfg.SettingsFactory buildSettings
信息: Second-level cache: enabled
2008-3-27 20:24:47 org.hibernate.cfg.SettingsFactory buildSettings
信息: Query cache: disabled
2008-3-27 20:24:47 org.hibernate.cfg.SettingsFactory createCacheProvider
信息: Cache provider: org.hibernate.cache.HashtableCacheProvider
2008-3-27 20:24:47 org.hibernate.cfg.SettingsFactory buildSettings
信息: Optimize cache for minimal puts: disabled
2008-3-27 20:24:47 org.hibernate.cfg.SettingsFactory buildSettings
信息: Structured second-level cache entries: disabled
2008-3-27 20:24:47 org.hibernate.cfg.SettingsFactory buildSettings
信息: Statistics: disabled
2008-3-27 20:24:47 org.hibernate.cfg.SettingsFactory buildSettings
信息: Deleted entity synthetic identifier rollback: disabled
2008-3-27 20:24:47 org.hibernate.cfg.SettingsFactory buildSettings
信息: Default entity-mode: pojo
2008-3-27 20:24:47 org.hibernate.cfg.SettingsFactory buildSettings
信息: Named query checking : enabled
2008-3-27 20:24:47 org.hibernate.impl.SessionFactoryImpl <init>
信息: building session factory
2008-3-27 20:24:49 org.hibernate.impl.SessionFactoryObjectFactory addInstance
信息: Not binding factory to JNDI, no JNDI name configured
配置文件是: <property name="hibernate.dialect">org.hibernate.dialect.MySQLInnoDBDialect</property>
<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">jbpmuser</property><!-- jbpmuser -->
<property name="hibernate.connection.password">123456</property><!-- shine -->
<property name="hibernate.cache.provider_class">org.hibernate.cache.HashtableCacheProvider</property>
其中jbpmuser 是我建的用户
发表评论
-
来自开源支持者的第一笔捐赠
2013-01-09 21:15 57812013年1月9号,一个平凡而又不平常的日子! IK中文分词 ... -
发布 IK Analyzer 2012 FF 版本
2012-10-23 17:50 25091首先感谢大家对IK分词器的关注。 最近一段时间正式公司事务最 ... -
发布 IK Analyzer 2012 版本
2012-03-08 11:23 36187新版本改进: 支持分词歧义处理 支持数量词合并 词典支持中英 ... -
CSDN发生严重用户账号泄密事件
2011-12-21 19:21 2566之前有在CSDN注册过的兄弟们,注意了。。。 如果你的邮箱, ... -
一个隐形的java int溢出
2011-08-30 09:44 7560故事的背景: 笔者最近在做一个类SNS的项目,其中 ... -
雷军 :互联网创业的葵花宝典
2011-05-04 10:35 3597博主评: 这片博客很短 ... -
Luci-mint站内搜索实测
2011-04-02 16:18 4144关于Luci-mint 服务器硬 ... -
发布 IK Analyzer 3.2.8 for Lucene3.X
2011-03-04 17:49 14259IK Analyzer 3.2.8版本修订 ... -
TIPS - XML CDATA中的非法字符处理
2011-02-17 15:03 3305XML解析过程中,常遇见CDATA中存在非法字符,尤其在火星文 ... -
对Cassandra的初体验
2010-10-13 17:58 9143作为“云计算”时代的架构设计人员而言,不懂K-V库会被 ... -
Spring + iBatis 的多库横向切分简易解决思路
2010-10-11 13:43 93641.引言 笔者最近在做一个互联网的“类SNS”应用,应用 ... -
发布 IK Analyzer 3.2.5 稳定版 for Lucene3.0
2010-09-08 14:43 5823新版本IKAnnlyzer3.2.8已发布! 地址: http ... -
关于Lucene3.0.1 QueryParser的一个错误
2010-05-21 21:33 2132表达式1: 引用 id:"1231231" ... -
发布 IK Analyzer 3.2.3 稳定版 for Lucene3.0
2010-05-15 14:13 6719IK Analyzer 3.2.3版本修订 在3.2.0版 ... -
windows平台上的nginx使用
2010-01-28 17:13 3407转载自:http://nginx.org/en/docs/wi ... -
发布IKAnnlyzer3.2.0稳定版 for Lucene3.0
2009-12-07 09:27 9584最新3.2.5版本已经推出,http://linliangyi ... -
在Tomcat下以JNDI方式发布JbossCache
2009-12-04 10:57 3835前言: 看过JbossCache的开发手册,发现在Jb ... -
Spring AOP小例子
2009-11-16 10:35 3406PS: 要注明一下,这个是转载滴,之前漏了说鸟,汗死 这里给 ... -
ActiveMQ 5.X 与 Tomcat 集成一(JNDI部署)
2009-11-10 15:15 5651原文地址:http://activemq.apache.org ... -
发布IKAnalyzer中文分词器V3.1.6GA
2009-11-08 23:10 11860IKAnalyzer3.2.0稳定版已经发布,支持Lucene ...
相关推荐
相当不错的资料 jBPM-JPDL v3.2环境部署——发布到Tomcat + MySQL
- 将jbpm-jpdl-suite-3.2.3中的war文件部署到Tomcat的webapps目录下,Tomcat会自动将其展开并启动服务。 5. **测试验证**: - 启动Tomcat服务器,访问jbpm的Web应用程序,确保可以正常加载页面。 - 创建并运行...
在安装配置方面,"jBPM-jPDL学习笔记—框架设计简介.doc"和"jBPM-JPDL v3.2环境部署——发布到Tomcat + MySQL.doc"将是你的重要参考资料。这两个文档详细介绍了如何搭建jBPM开发环境,包括下载和安装jBPM工具,配置...
对于部署,可以将jBPM集成到像Tomcat这样的应用服务器中,并配置与MySQL数据库的连接,以便存储和管理流程实例的数据。 2、框架设计简介: jBPM的设计旨在提供一个完整的业务流程生命周期管理解决方案,包括建模、...
### jBPM 开发环境配置与Struts 1.x集成应用详解 #### 一、环境配置 本章节主要介绍如何配置jBPM开发环境。所使用的工具包括Eclipse 3、MyEclipse 6、MySQL 5以及Tomcat 6等。 **1. 下载jBPM开发包** 首先,从...
关键字:jbpm工作流strutsweb应用一、环境配置基础环境是eclipse3+myeclipse6+mysql5+tomcat6。首先从网站上下载jBPM开发包(jbpm-jpdl-suite-3.2.3.zip),据说现在jBPM3已经升到3.2.6了,而且据说已经推出了jBPM4了...
本文档将详细介绍如何在Eclipse环境中安装配置JBPM及相关组件,包括JPDL(Job Processing Definition Language)安装、Tomcat服务器配置、MyEclipse中JPDL-Designer插件的安装与使用、数据库连接配置以及MySQL数据库...
- **jbpm集成**:jbpm可以与各种Java EE应用服务器(如JBoss、Tomcat)以及数据库(如MySQL、Oracle)集成,提供持久化服务,确保流程实例在服务器重启后仍能继续执行。 - **jbpm的可视化工具**:jbpm提供了一套...
部署这个war文件到应用服务器(如Tomcat或JBOSS),可以提供服务端接口供客户端调用,进行工作流的创建、启动、查询和管理。它还包含了对数据库的访问层,用于存储工作流实例、任务、事件等信息。 2. **jbpm-gwt-...
- 配置Signavio需要将war包发布到Tomcat服务器,并修改web.xml以设定文件保存路径。 - 访问Signavio的URL通常是`http://localhost:8080/jbpmeditor/p/explorer`,但需注意,它使用filter处理用户访问,而不是传统...
为了存储jbpm运行所需的数据,你需要在MySQL数据库中创建一个名为jbpmdb的数据库,并运行jbpm.mysql.create.sql脚本来创建所需的表结构。此外,还需要创建一个表来存储业务数据,例如请假申请表(ask_for_leave),...
开发环境通常选择Tomcat作为应用服务器,MySQL作为数据库,Java JDK 6作为开发环境。在整合过程中,需要配置数据库连接,JBPM需要通过Hibernate与数据库交互,因此需要在Hibernate的配置文件中指定数据库连接参数,...
- **配置数据源**:在jBPMDemo的应用上下文中配置数据源,以连接到MySQL数据库。 4. **流程设计** - **jPDL**:jBPM支持用jPDL(Java Process Definition Language)来定义工作流,这是一个XML格式的语言,用于...
对于希望将jBPM部署在Tomcat服务器上的用户,需要按照官方提供的指导进行操作,例如添加jBPM相关的jar文件到Tomcat的lib目录等。 **2.3 JBoss部署** 对于希望将jBPM部署在JBoss服务器上的用户,也需要按照官方提供...