To Banq!同样的问题。问题较简单热心的朋友帮忙

04-06-08 big1980
我这个web.xml文件本来在weblogic那里用的,没有报错,而到jboss就报这个错了:

ERROR [org.apache.commons.digester.Digester] Parse Error at line 20 column 11: 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*)".

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文件内容如下:

<?xml version="1.0" encoding="UTF-8"?>
<!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>
<p>

huzhigang
2004-06-08 10:29
我把你的web.xml部署到jboss下,并没有出现你说得xml解析问题

big1980
2004-06-08 10:31
奇怪了,那会是其他的什么问题呢?指教

big1980
2004-06-09 09:00
顶一下

猜你喜欢