Unable to “Run on Server” a webapp from Eclipse

后端 未结 15 1412
悲哀的现实
悲哀的现实 2021-01-30 11:20

When running my WebApp project from Eclipse most of times it run correctly. But if by mistake to stop server, I kill it in \"Console\" view on instead of \"Stop\" Server from \"

15条回答
  •  隐瞒了意图╮
    2021-01-30 11:56

    I encountered the same issue and cleaning and recreating server does not help. But when I deployed another project, it was able to start successfully. After much comparison, I found differences in the .project files. So I copy the contents of the .project file of the working project into the one that has problem, add it back to the server and it works. Following is the contents of the .project file that works. Note that you need to change the name of the project accordingly:

    
    
    Project Name
    
    
    
    
        
            org.eclipse.wst.jsdt.core.javascriptValidator
            
            
        
        
            org.eclipse.jdt.core.javabuilder
            
            
        
        
            org.eclipse.wst.common.project.facet.core.builder
            
            
        
        
            org.eclipse.wst.validation.validationbuilder
            
            
        
    
    
        org.eclipse.jem.workbench.JavaEMFNature
        org.eclipse.wst.common.modulecore.ModuleCoreNature
        org.eclipse.wst.common.project.facet.core.nature
        org.eclipse.jdt.core.javanature
        org.eclipse.wst.jsdt.core.jsNature
    
    

提交回复
热议问题