Unable to “Run on Server” a webapp from Eclipse

后端 未结 15 1426
悲哀的现实
悲哀的现实 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 12:00

    Tried everything with no luck. I just had one project in my eclipse. Shut eclipse down, rename the eclipse directory, unzip it again, started fresh in new eclipse. It worked.

    No it is not efficient.

    0 讨论(0)
  • 2021-01-30 12:04
    Check this version:
    
    <web-app version="**2.5**" xmlns="http://java.sun.com/xml/ns/javaee"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
        http://java.sun.com/xml/ns/javaee/web-app_**2_5**.xsd" metadata-complete="true">
    
    and 
    
    org.eclipse.wst.common.project.facet.core.xml
    
    <installed facet="jst.web" version="**2.5**"/>
    
    It can be incompatible with the chosen server. In my case when I tried to upgrade 3.0 tomcat 6.0 stopped working so I had to revert back to 2.5
    
    
    so upgrade your server to a highter version or downgrade the web.xml version and run maven --> update project and try again
    
    0 讨论(0)
  • 2021-01-30 12:08

    I have the exact same problem and exact exception, but I solved the problem just by specify package type of POM to war like "war" and right click the project and select 'Maven > Update Project Configuration', then re-deploy that web module to tomcat server, that's it!

    0 讨论(0)
提交回复
热议问题