Test Tomcat comet
Java. Lang. nosuchmethodexception: org. Apache. Catalina. Deploy. webxml addservlet exception
Because the project uses Tomcat's Catalina. jar and is deployed to Tomcat, this package is also deployed, and an exception is reported during deployment.
2012-7-27 11:44:05 org. Apache. Catalina. startup. contextconfig parsewebxml
Severe: Parse error in Application Web. xml file at JNDI:/localhost/tomcat-Comet/WEB-INF/Web. xml
Java. Lang. nosuchmethodexception: org. Apache. Catalina. Deploy. webxml addservlet
At org. Apache. tomcat. util. digester. digester. createsaxexception (digester. Java: 2687)
At org. Apache. tomcat. util. digester. digester. createsaxexception (digester. Java: 2713)
At org. Apache. tomcat. util. digester. digester. endelement (digester. Java: 1060)
At com.sun.org. Apache. xerces. Internal. parsers. abstractsaxparser. endelement (abstractsaxparser. Java: 601)
At com.sun.org. Apache. xerces. Internal. impl. xmldocumentfragmentscannerimpl. scanendelement (xmldocumentfragmentscannerimpl. Java: 1774)
At com.sun.org. Apache. xerces. Internal. impl. xmldocumentfragmentscannerimpl $ fragmentcontentdriver. Next (xmldocumentfragmentscannerimpl. Java: 2930)
At com.sun.org. Apache. xerces. Internal. impl. xmldocumentscannerimpl. Next (xmldocumentscannerimpl. Java: 648)
At com.sun.org. Apache. xerces. Internal. impl. xmldocumentfragmentscannerimpl. scandocument (xmldocumentfragmentscannerimpl. Java: 510)
At com.sun.org. Apache. xerces. Internal. parsers. xml11configuration. parse (xml11configuration. Java: 807)
At com.sun.org. Apache. xerces. Internal. parsers. xml11configuration. parse (xml11configuration. Java: 737)
At com.sun.org. Apache. xerces. Internal. parsers. xmlparser. parse (xmlparser. Java: 107)
At com.sun.org. Apache. xerces. Internal. parsers. abstractsaxparser. parse (abstractsaxparser. Java: 1205)
At com.sun.org. Apache. xerces. Internal. JAXP. saxparserimpl $ jaxpsaxparser. parse (saxparserimpl. Java: 522)
At org. Apache. tomcat. util. digester. digester. parse (digester. Java: 1543)
At org. Apache. Catalina. startup. contextconfig. parsewebxml (contextconfig. Java: 1694)
At org. Apache. Catalina. startup. contextconfig. webconfig (contextconfig. Java: 1209)
At org. Apache. Catalina. startup. contextconfig. configurestart (contextconfig. Java: 882)
At org. Apache. Catalina. startup. contextconfig. lifecycleevent (contextconfig. Java: 317)
At org. Apache. Catalina. util. lifecyclesupport. firelifecycleevent (lifecyclesupport. Java: 119)
At org. Apache. Catalina. util. lifecyclebase. firelifecycleevent (lifecyclebase. Java: 89)
At org. Apache. Catalina. Core. standardcontext. startinternal (standardcontext. Java: 5081)
At org. Apache. Catalina. util. lifecyclebase. Start (lifecyclebase. Java: 145)
At org. Apache. Catalina. startup. hostconfig. checkresources (hostconfig. Java: 1279)
At org. Apache. Catalina. startup. hostconfig. Check (hostconfig. Java: 1360)
At org. Apache. Catalina. startup. hostconfig. lifecycleevent (hostconfig. Java: 294)
At org. Apache. Catalina. util. lifecyclesupport. firelifecycleevent (lifecyclesupport. Java: 119)
At org. Apache. Catalina. util. lifecyclebase. firelifecycleevent (lifecyclebase. Java: 89)
At org. Apache. Catalina. Core. containerbase. backgroundprocess (containerbase. Java: 1233)
At org. Apache. Catalina. Core. containerbase $ containerbackgroundprocessor. processchil.pdf (containerbase. Java: 1391)
At org. Apache. Catalina. Core. containerbase $ containerbackgroundprocessor. processchil.pdf (containerbase. Java: 1401)
At org. Apache. Catalina. Core. containerbase $ containerbackgroundprocessor. Run (containerbase. Java: 1380)
At java. Lang. thread. Run (thread. Java: 619)
I thought it was a web. xml file error. I checked it and found it was a package conflict.
Modify the package deployment configuration
Right-click Project-> properties-> myeclipse-> Web-> deployment to modify Lib... policies
Cancel default cancel jars from build path
(Only the following three values are selected)