myeclipse 2014 imported projects cannot be deployed to tomcat: no projects are available for deployment

    Today, I downloaded a new project on the company's gitLab, and found that it could not be deployed to tomcat. I searched for it, and some said that I right-clicked the original project name - myeclipse - Add myeclipse Web Capilities, and some said that I changed the xxx configuration file. Tried it to no avail. In the end, it was found that the content in the .setting folder was also down from gitLab. .setting was generated by myeclipse itself, and the files generated were different depending on the IDE version. Logically, these files should not be uploaded to gitLab.
    This is how I solved it. Create a new project of the same type in myeclipse, copy the contents of .setting to the project that cannot be deployed, restart -> refresh, and you're done! !
    Note that the .jsdtscope file
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
	<classpathentry kind="src" path="src/main/webapp"/>
	<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
	<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.WebProject">
		<attributes>
			<attribute name="hide" value="true"/>
		</attributes>
	</classpathentry>
	<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary/StandardBrowser/html5"/>
	<classpathentry kind="output" path=""/>
</classpath>

I modified <classpathentry kind="src" path="src/main/webapp"/>
the default is <classpathentry kind="src" path="WebRoot"/>

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326893707&siteId=291194637