1 Reply Latest reply on Mar 18, 2004 5:19 AM by Darran Lofthouse

    Error while deploying the servlet

    kammasubbarayudu Newbie

      We are using Eclipse IDE with JBoss. We tried to develop a sample servlet using lamboz servlet wizard.Everything went fine but we couldn't deploy the webmodule into the server. Its giving the following error.

      The content of element type "servlet" must match "(icon?,servlet-name,display-name?,description?,(servlet-class|jsp-file),init-param*,load-on-startup?,run-as?,security-role-ref*)".; - nested throwable: (org.xml.sax.SAXParseException: The content of element type "servlet" must match "(icon?,servlet-name,display-name?,description?,(servlet-class|jsp-file),init-param*,load-on-startup?,run-as?,security-role-ref*)".)
      at org.jboss.jetty.Jetty.deploy(Jetty.java:353

      Infact the web.xml is generated by the IDE itself.How can we overcome this problem.

      Thank you very much.