Home > Database > Mysql Tutorial > body text

被osworkflow的数据库配置(mysql)困住了_MySQL

WBOY
Release: 2016-06-01 13:56:36
Original
1110 people have browsed it

被osworkflow的数据库配置(mysql)困住了

今天研究了一下osworkflow,想运行一下他的例子程序看看效果。结果在配置与数据库连接方面出了问题,郁闷至极。

我用的是mysql数据库,按照
http://www.opensymphony.com/osworkflow/1.3%20Running%20the%20Example%20App.html一步一步的配置。
我的配置文件具体如下:
1:在tomcat的conf目录下修改server.xml,增加以下内容
debug= "99" reloadable="true" crossContext="true" verbosity="DEBUG">

prefix="OSWorkflow." suffix=".log" timestamp="true"/>

auth="Container"
type="javax.sql.DataSource"/>


factory
org.apache.commons.dbcp.BasicDataSourceFactory




maxActive
100



maxIdle
30



maxWait
10000



username
root


password




driverClassName
org.gjt.mm.mysql.Driver



url
jdbc:mysql://localhost:3306/osworkflow?autoReconnect=true


2:配置osworkflow.xml(在WEB-INF/classes目录下),内容如下:




value="select count(*) + 1 from os_wfentry"/>























3:增加propertyset.xml(在WEB-INF/classes目录下),内容如下:














4:修改web.xml,内容如下:

>


OSWorkflow Example App

default.jsp


OSWorkflow Example App
jdbc/DefaultDS
javax.sql.DataSource
Container

5:将jboss-j2ee.jar拷贝到tomcat_home/common/endorsed目录下
6:将驱动程序拷贝到tomcat_home/common/lib目录下

7:启动tomcat但是报以下错误
严重: Parse error in application web.xml
java.lang.NullPointerException

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template