2 Replies Latest reply on Dec 4, 2003 2:21 AM by 2cat

    the question of servlet!!

    2cat Newbie

      when I deployed my servlet in Jboss3.2_tomcat4.1.x,
      the system show me that:(the error is caused of saving the file of web.xml)

      15:12:07,247 ERROR [Digester] Parse Error at line 33 column 11: The content of e
      lement type "web-app" must match "(icon?,display-name?,description?,distributabl
      e?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,se
      ssion-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*,welco
      me-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-const
      raint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)".
      at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Er
      rorHandlerWrapper.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(XMLDTDVal
      idator.java:2959)
      at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator
      .java:918)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.handleEndElemen
      t(XMLDocumentFragmentScannerImpl.java:1145)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(
      XMLDocumentFragmentScannerImpl.java:988)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
      Dispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1446)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XM
      LDocumentFragmentScannerImpl.java:333)
      at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardP
      arserConfiguration.java:529)
      at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardP
      arserConfiguration.java:585)
      at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147)
      at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.j
      ava:1148)
      at org.apache.commons.digester.Digester.parse(Digester.java:1543)
      at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextCo
      nfig.java:282)
      at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:63
      9)
      at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi
      g.java:243)
      at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
      eSupport.java:166)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:3
      567)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
      .java:821)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:80
      7)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)

      at org.jboss.web.catalina.EmbeddedCatalinaService41.createWebContext(Emb
      eddedCatalinaService41.java:417)
      at org.jboss.web.catalina.EmbeddedCatalinaService41.performDeploy(Embedd
      edCatalinaService41.java:266)
      at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:35
      7)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:640)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613)
      at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
      nDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy7.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
      tScanner.java:302)


      please help me, heroes.