Name jdbc is not bound in this Contextjava.lang.NullPointerException

<Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false">
<Context path=""  docBase="D:\myworkspace\jdmyerp(3-24)\jdmyerp\WebRoot"
workDir="D:\myworkspace\jdmyerp(3-24)\jdmyerp\WebRoot\work" reloadable="false">
<Resource name="jdbc/erp" auth="Container" type="javax.sql.DataSource"
               maxActive="10000" maxIdle="3000" maxWait="10000"
               username="root" password="root" driverClassName="com.mysql.jdbc.Driver"  url="jdbc:mysql://127.0.0.1:3306/jdmyerp?autoReconnect=true&amp;useUnicode=true&amp;characterEncoding=utf-8&amp;failOverReadOnly=false"/>
</Context>
  </Host>
docBase,workDir这是写项目的保存路径
(把项目部署到Tomcat里有两种方式,一种是在server.xml里写配置代码<如上>,一种是把项目放在Tomcat里的webapps下面)


紫色头发:http://zisetoufa.iteye.com/

你可能感兴趣的:(tomcat,xml,jdbc)