Refer to link myeclipse workaround
maven 's workaround
Let me take a look at the Eclipse solution,
Paste the log, convenient for later students into the pit search:
java.lang.NoSuchMethodException:Org. Apache. Catalina. Deploy. Webxmladdservletat org. Apache. Tomcat. Util. Introspectionutils. Callmethod1 (introspectionutils. Java:855) at Org. Apache. Tomcat. Util. Digester. Setnextrule. End(Setnextrule. Java:201) at Org. Apache. Tomcat. Util. Digester. Digester. EndElement(Digester. Java:1051) atcom. Sun. org. Apache. Xerces. Internal. Parsers. Abstractsaxparser. EndElement(Abstractsaxparser. Java:604) atcom. Sun. org. Apache. Xerces. Internal. Impl. Xmldocumentfragmentscannerimpl. Scanendelement(Xmldocumentfragmentscannerimpl. Java:1759) atcom. Sun. org. Apache. Xerces. Internal. Impl. Xmldocumentfragmentscannerimpl$FragmentContentDriver. Next(Xmldocumentfragmentscannerimpl. Java:2915) atcom. Sun. org. Apache. Xerces. Internal. Impl. Xmldocumentscannerimpl. Next(Xmldocumentscannerimpl. Java:625) atcom. Sun. org. Apache. Xerces. Internal. Impl. Xmldocumentfragmentscannerimpl. Scandocument(Xmldocumentfragmentscannerimpl. Java:488) atcom. Sun. org. Apache. Xerces. Internal. Parsers. XML11Configuration. Parse(xml11configuration. Java:819) atcom. Sun. org. Apache. Xerces. Internal. Parsers. XML11Configuration. Parse(xml11configuration. Java:748) atcom. Sun. org. Apache. Xerces. Internal. Parsers. Xmlparser. Parse(Xmlparser. Java:123) atcom. Sun. org. Apache. Xerces. Internal. Parsers. Abstractsaxparser. Parse(Abstractsaxparser. Java:1208) atcom. Sun. org. Apache. Xerces. Internal. Jaxp. Saxparserimpl$JAXPSAXParser. Parse(Saxparserimpl. Java:525) at Org. Apache. Tomcat. Util. Digester. Digester. Parse(Digester. Java:1537) at Org. Apache. Catalina. Startup. Contextconfig. Parsewebxml(Contextconfig. Java:1875) at Org. Apache. Catalina. Startup. Contextconfig. Getdefaultwebxmlfragment(Contextconfig. Java:1472) at Org. Apache. Catalina. Startup. Contextconfig. Webconfig(Contextconfig. Java:1250) at Org. Apache. Catalina. Startup. Contextconfig. Configurestart(Contextconfig. Java:878) at Org. Apache. Catalina. Startup. Contextconfig. Lifecycleevent(Contextconfig. Java:369) at Org. Apache. Catalina. Util. Lifecyclesupport. Firelifecycleevent(Lifecyclesupport. Java:119) at Org. Apache. Catalina. Util. Lifecyclebase. Firelifecycleevent(Lifecyclebase. Java: -) at Org. Apache. Catalina. Core. Standardcontext. Startinternal(Standardcontext. Java:5173) at Org. Apache. Catalina. Util. Lifecyclebase. Start(Lifecyclebase. Java: Max) at Org. Apache. Catalina. Core. Containerbase. Addchildinternal(Containerbase. Java:901) at Org. Apache. Catalina. Core. Containerbase. AddChild(Containerbase. Java:877) at Org. Apache. Catalina. Core. Standardhost. AddChild(Standardhost. Java:633) at Org. Apache. Catalina. Startup. Hostconfig. Deploywar(Hostconfig. Java:968) at Org. Apache. Catalina. Startup. Hostconfig$DeployWar. Run(Hostconfig. Java:1646) at Java. Util. Concurrent. Executors$RunnableAdapter. Call(Executors. Java:471) at Java. Util. Concurrent. Futuretask$Sync. Innerrun(Futuretask. Java:334) at Java. Util. Concurrent. Futuretask. Run(Futuretask. Java:166) at Java. Util. Concurrent. Threadpoolexecutor. Runworker(Threadpoolexecutor. Java:1110) at Java. Util. Concurrent. Threadpoolexecutor$Worker. Run(Threadpoolexecutor. Java:603) at Java. Lang. Thread. Run(Thread. Java:679)
This problem is due to a package conflict caused by the use of a tomcat-brought jar package in the project, and the workaround is simply to add the user library to the build path.
Select the conflicting jar package and delete the conflicting jar package in the Lib directory!
No problem with myeclipse, I can't get out of my eclipse.