首页上一页 1 下一页尾页 1 条记录 1/1页
java项目开发案例全程实录(第二版)企业门户网站源码问题
发表在JavaWeb图书答疑
2012-08-22
是否精华
是
否
版块置顶:
是
否
在sql2000中附加数据库出现如下错误:
microsoft sql-dmo(odbc sqlstate:4200)
错误:5123 :当试图打开或创建物理文件。。。。。。时,create file遇到系统错误5(拒绝访问)
在sql2005中附加数据库成功:
导入sql2005数据库sqljdbc.jar文件放在新建文件夹lib下,并重建路径,修改server.xml文件
<GlobalNamingResources>
<!-- Editable user database that can also be used by
UserDatabaseRealm to authenticate users
-->
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname="conf/tomcat-users.xml" />
<Resource name="jdbc/ConnectionPool" auth="Container"
type="javax.sql.DataSource"
maxActive="20"
maxIdle="5"
maxWait="10000"
usename="sa"
password=""
driverClassName="com.microsoft.sqlserver.jdbc.SQLServerDriver"
url="jdbc:sqlserver://localhost:1433;DatabaseName=tb_net"/>
</GlobalNamingResources>
在《host》标签中增加如下内容,并更换了driverClassName和url
<host>
<Context path="/net" docBase="D:\myeclipseworkspace\net" reloadable="true" corssContext="true">
<Resource name="jdbc/ConnectionPool" auth="Container"
type="javax.sql.DataSource"
maxActive="20"
maxIdle="5"
maxWait="10000"
usename="sa"
password=""
driverClassName="com.microsoft.sqlserver.jdbc.SQLServerDriver"
url="jdbc:sqlserver://localhost:1433;DatabaseName=tb_net"
/>
</Context>
<parameter>
<name>factory</name>
<value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
</parameter>
</host>
之后出现如下错误:
Project ‘net’ is missing required library ‘’webroot/web-inf/lib/msbase.jar
Project ‘net’ is missing required library ‘’webroot/web-inf/lib/messqlserver.jar
Project ‘net’ is missing required library ‘’webroot/web-inf/lib/msurtil.jar
Project ‘net’ is missing required library ‘’webroot/web-inf/lib/tomat-dbcp.jar
The project cannot be built untile buile path error are resolved
前三个jar文件是sql2000的数据库jar文件,我现在已经用成2005了,怎么还出现这样的错误,tomat-dbcp.jar在网上找不到,只有common-dbcp.jar,问题怎么解决?
还有好多的警告问题如下:(仅列举一个)
Collection is a raw type .references to generences to generic type collection<E> should be parameterized newsDel.jsp文件30行出现这样的警告
microsoft sql-dmo(odbc sqlstate:4200)
错误:5123 :当试图打开或创建物理文件。。。。。。时,create file遇到系统错误5(拒绝访问)
在sql2005中附加数据库成功:
导入sql2005数据库sqljdbc.jar文件放在新建文件夹lib下,并重建路径,修改server.xml文件
<GlobalNamingResources>
<!-- Editable user database that can also be used by
UserDatabaseRealm to authenticate users
-->
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname="conf/tomcat-users.xml" />
<Resource name="jdbc/ConnectionPool" auth="Container"
type="javax.sql.DataSource"
maxActive="20"
maxIdle="5"
maxWait="10000"
usename="sa"
password=""
driverClassName="com.microsoft.sqlserver.jdbc.SQLServerDriver"
url="jdbc:sqlserver://localhost:1433;DatabaseName=tb_net"/>
</GlobalNamingResources>
在《host》标签中增加如下内容,并更换了driverClassName和url
<host>
<Context path="/net" docBase="D:\myeclipseworkspace\net" reloadable="true" corssContext="true">
<Resource name="jdbc/ConnectionPool" auth="Container"
type="javax.sql.DataSource"
maxActive="20"
maxIdle="5"
maxWait="10000"
usename="sa"
password=""
driverClassName="com.microsoft.sqlserver.jdbc.SQLServerDriver"
url="jdbc:sqlserver://localhost:1433;DatabaseName=tb_net"
/>
</Context>
<parameter>
<name>factory</name>
<value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
</parameter>
</host>
之后出现如下错误:
Project ‘net’ is missing required library ‘’webroot/web-inf/lib/msbase.jar
Project ‘net’ is missing required library ‘’webroot/web-inf/lib/messqlserver.jar
Project ‘net’ is missing required library ‘’webroot/web-inf/lib/msurtil.jar
Project ‘net’ is missing required library ‘’webroot/web-inf/lib/tomat-dbcp.jar
The project cannot be built untile buile path error are resolved
前三个jar文件是sql2000的数据库jar文件,我现在已经用成2005了,怎么还出现这样的错误,tomat-dbcp.jar在网上找不到,只有common-dbcp.jar,问题怎么解决?
还有好多的警告问题如下:(仅列举一个)
Collection is a raw type .references to generences to generic type collection<E> should be parameterized newsDel.jsp文件30行出现这样的警告