配置数据源出错。导致这条错误,
配置数据源需要配置的内容是
修改web,xml内容
<resource-ref>
<description>DB Connection</description>
<res-ref-name>jdbc/chinaseiDB</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
增加content.xml在META-INF文件夹下
<Context>
<Resource name="jdbc/chinaseiDB" auth="Container"
type="javax.sql.DataSource" username="root" password="****"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://127.0.0.1:3306/strutsusers"
maxActive="50" maxIdle="30" maxWait="10000" />
</Context>
在tomcat的conf\Catalina\localhost目录下下增加xml文件,webapp.xml
里面的内容和content.xml内容一样