| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 519 人关注过本帖
标题:访问出错
只看楼主 加入收藏
bootser
Rank: 1
等 级:新手上路
帖 子:10
专家分:0
注 册:2013-8-6
结帖率:50%
收藏
 问题点数:0 回复次数:1 
访问出错
数据库连接错误!!! mssql2000数据库  三个驱动包都放到LIB里了,还是不出借

web.xml文件内容,

<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
  Copyright 2004 The Apache Software Foundation

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

      http://www.

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->

<web-app xmlns="http://java.
    xmlns:xsi="http://www.
    xsi:schemaLocation="http://java. http://java.
    version="2.4">

  <display-name>Welcome to Tomcat</display-name>
  <description>
     Welcome to Tomcat
  </description>

<!-- JSPC servlet mappings start

    <servlet>
        <servlet-name>org.apache.jsp.index_jsp</servlet-name>
        <servlet-class>org.apache.jsp.index_jsp</servlet-class>
    </servlet>

    <servlet-mapping>
        <servlet-name>org.apache.jsp.index_jsp</servlet-name>
        <url-pattern>/index.jsp</url-pattern>
    </servlet-mapping>

 JSPC servlet mappings end -->

    <resource-ref>
        <description>Oracle Datasource example</description>
        <res-ref-name>jdbc/myoracle</res-ref-name>
        <res-type>javax.sql.DataSource</res-type>
        <res-auth>Container</res-auth>
    </resource-ref>

  <listener>
        <listener-class>
            encrypt.SessionCounter
        </listener-class>
    <!--
        <listener-class>
            pub.GetNewTimerListener
        </listener-class>
   
        <listener-class>
            pub.CreateNewHPListener
        </listener-class>
    -->
  </listener>  

</web-app>
搜索更多相关主题的帖子: Copyright 数据库连接 Software required version 
2013-08-19 22:27
ren829
Rank: 9Rank: 9Rank: 9
等 级:贵宾
威 望:15
帖 子:255
专家分:1174
注 册:2006-3-11
收藏
得分:0 
你数据库出错,你发web.xml干嘛,你又没有再xml里配置数据库信息,把你的错误提示发出来看看啊。
2013-08-20 11:58
快速回复:访问出错
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.019233 second(s), 10 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved