算了我自己回答自己好了
算是暂时解决掉了
原来osworkflow.xml里写连接池配置信息,这个没效果的,要到context.xml里配置
具体内容如下:<!-- The contents of this file will be loaded for each web application -->
<Context reloadable="true" crossContext="true"> <!-- Default set of monitored resources -->
<WatchedResource>WEB-INF/web.xml</WatchedResource>
<!-- Uncomment this to disable session persistence across Tomcat restarts -->
<!--
<Manager pathname="" />
--> <Resource name="jdbc/oswf" auth="Container"
type="javax.sql.DataSource" driverClassName="org.gjt.mm.mysql.Driver"
url="jdbc:mysql://localhost/osworkflow?autoReconnect=true" username="root"
password="135246" maxActive="10" maxIdle="5" maxWait="-1" />
</Context> 红色部分是数据库配置
根据自己的需要修改下
另外osuser.xml里<property name="datasource">java:comp/env/jdbc/oswf</property>
property.xml里<arg name="datasource" value="java:comp/env/jdbc/oswf"/>
osworkflow.xml这个不能变还是<property key="datasource" value="jdbc/oswf"/>
算是暂时解决掉了
原来osworkflow.xml里写连接池配置信息,这个没效果的,要到context.xml里配置
具体内容如下:<!-- The contents of this file will be loaded for each web application -->
<Context reloadable="true" crossContext="true"> <!-- Default set of monitored resources -->
<WatchedResource>WEB-INF/web.xml</WatchedResource>
<!-- Uncomment this to disable session persistence across Tomcat restarts -->
<!--
<Manager pathname="" />
--> <Resource name="jdbc/oswf" auth="Container"
type="javax.sql.DataSource" driverClassName="org.gjt.mm.mysql.Driver"
url="jdbc:mysql://localhost/osworkflow?autoReconnect=true" username="root"
password="135246" maxActive="10" maxIdle="5" maxWait="-1" />
</Context> 红色部分是数据库配置
根据自己的需要修改下
另外osuser.xml里<property name="datasource">java:comp/env/jdbc/oswf</property>
property.xml里<arg name="datasource" value="java:comp/env/jdbc/oswf"/>
osworkflow.xml这个不能变还是<property key="datasource" value="jdbc/oswf"/>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货