标题:网站测试出现这个问题
只看楼主
bootser
Rank: 1
等 级:新手上路
帖 子:10
专家分:0
注 册:2013-8-6
结帖率:50%
已结贴  问题点数:20 回复次数:5 
网站测试出现这个问题
500 Servlet Exception
WEB-INF/web.xml:24: <description> is an unexpected tag (parent <web-app>
starts at 21). Check for duplicate and out-of-order tags.
<web-app> syntax: (@id?, @version, @xsi:schemaLocation,
                   (<context-param>*
                   & (<description>*, <display-name>?, <icon>?)
                   & <distributable>?
                   & (<env-entry>*, <ejb-ref>*, <ejb-local-ref>*, <service-ref>*, <resource-ref>*, <resource-env-ref>*, <message-destination-ref>*)
                   & <error-page>*
                   & <filter>*
                   & <filter-mapping>*
                   & <jsp-config>?
                   & <listener>*
                   & <locale-encoding-mapping-list>?
                   & <login-config>?
                   & <message-destination>*
                   & <mime-mapping>*
                   & <security-constraint>*
                   & <security-role>*
                   & <servlet>*
                   & <servlet-mapping>*
                   & <session-config>?
                   & <welcome-file-list>?))
搜索更多相关主题的帖子: unexpected 网站测试 version parent 
2013-08-06 15:27
ren829
Rank: 9Rank: 9Rank: 9
等 级:贵宾
威 望:15
帖 子:255
专家分:1174
注 册:2006-3-11
得分:14 
看样子好像是网站的配置文件XML有问题啊,把Servlet 的xml配置文件发上来看看。
2013-08-06 17:11
bootser
Rank: 1
等 级:新手上路
帖 子:10
专家分:0
注 册:2013-8-6
得分:0 
<?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>


谢谢版主
2013-08-07 10:32
ren829
Rank: 9Rank: 9Rank: 9
等 级:贵宾
威 望:15
帖 子:255
专家分:1174
注 册:2006-3-11
得分:0 
你做了自己Servlet 了的配置信息了吗?没看到啊
2013-08-07 16:38
bootser
Rank: 1
等 级:新手上路
帖 子:10
专家分:0
注 册:2013-8-6
得分:0 
type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: /user/../inc/ini.jsp(4,0) The value for the useBean class attribute db.gdbcn is invalid.
    org.apache.(DefaultErrorHandler.java:39)
    org.apache.(ErrorDispatcher.java:409)
    org.apache.(ErrorDispatcher.java:150)
    org.apache.(Generator.java:1227)
    org.apache.(Node.java:1116)
    org.apache.(Node.java:2163)
    org.apache.(Node.java:2213)
    org.apache.(Node.java:2219)
    org.apache.(Node.java:456)
    org.apache.(Node.java:2163)
    org.apache.(Node.java:2213)
    org.apache.(Node.java:2237)
    org.apache.(Node.java:597)
    org.apache.(Node.java:2163)
    org.apache.(Node.java:2213)
    org.apache.(Node.java:2219)
    org.apache.(Node.java:456)
    org.apache.(Node.java:2163)
    org.apache.(Generator.java:3272)
    org.apache.(Compiler.java:244)
    org.apache.(Compiler.java:470)
    org.apache.(Compiler.java:451)
    org.apache.(Compiler.java:439)
    org.apache.jasper.(JspCompilationContext.java:511)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.
2013-08-08 08:38
bootser
Rank: 1
等 级:新手上路
帖 子:10
专家分:0
注 册:2013-8-6
得分:0 
还是不行,数据库联上了,点什么都是错误页面
2013-08-08 14:05



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-418704-1-1.html




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

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