jboss伺服器報的錯,幫忙看一下

big1980發表於2004-06-03
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>
=================================================================
是不是這個檔案有問題呢?

相關文章