發了貼沒人回,是不是看不起初學者阿!

big1980發表於2004-06-04
好像是我的web.xml檔案有問題,jboss伺服器上報的錯為:
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*)".
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:232)
at org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:173)
at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:362)
at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:296)
at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator.java:2959)
at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:918)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.handleEndElement(XMLDocumentFragmentScannerImpl.java:1145)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:988)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1446)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:333)
at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:529)
at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:585)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147)
at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1148)
。。。。。。。。。。
我的web.xml的內容為:
===============================web.xml===========================
<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.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那裡去了,為啥要遮蔽掉尖括弧……

相關文章