jboss服务器报的错,帮忙看一下

04-06-03 big1980
org.xml.sax.SAXParseException: The content of element type "web-app" must match "(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)".

我的web.xml文件内容为:

================================web.xml==========================

<?xml version="1.0" ?>

<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 1.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">

<web-app>

<servlet>

<servlet-name>ShaServlet</servlet-name>

<servlet-class>jp.co.nec.ome.servlet.OmEJBControlServlet</servlet-class>

<init-param>

<param-name>StartPageName</param-name>

<param-value>/Sha/Shasys/LOGIN.JSP</param-value>

</init-param>

<init-param>

<param-name>Encode</param-name>

<param-value>none</param-value>

</init-param>

<init-param>

<param-name>CharSet</param-name>

<param-value>GB2312</param-value>

</init-param>

<init-param>

<param-name>EJBCertificateHomeName</param-name>

<param-value>sha.shasys.lg.lg010.lg010g01</param-value>

</init-param>

<init-param>

<param-name>LogFilePath</param-name>

<param-value>C:/JBOSS/server/default/log/sha.log</param-value>

</init-param>

<load-on-startup>1</load-on-startup>

</servlet>

<servlet-mapping>

<servlet-name>ShaServlet</servlet-name>

<url-pattern>/SHA/SHAController/*</url-pattern>

</servlet-mapping>

</web-app>

=================================================================

是不是这个文件有问题呢?

banq
2004-06-05 10:29
web.xml语法出错。

猜你喜欢