java.sql.SQLSyntaxErrorException: Table/View 'x' does not exist

六月ゝ 毕业季﹏ 提交于 2019-12-02 03:58:06

Make sure that your web.xml file (in Configuration Files folder) has the resource reference. Example:

    <resource-ref>
        <res-ref-name>jdbc/db1</res-ref-name>
        <res-type>javax.sql.ConnectionPoolDataSource</res-type>
        <res-auth>Container</res-auth>
        <res-sharing-scope>Shareable</res-sharing-scope>
    </resource-ref>

Where db1 is your jdbc resource name. Also ensure that the value has the correct resource type, a connection pool data source in the example.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!