servletsjava-server

dynamic web project cannot run


I created a dynamic web project, then added to the server already, (see screenshot) but I can't get it run. The server is running, if I type in localhost:8080/ I do see the Apache homepage, but localhost:8080/testDynProj/ yields nothing. What am I missing? Thanksenter image description here


Solution

  • Try these

    1. Right Click the Project and Give Run As -> Run on Server

    2. Check the web.xml. Check the tag

      <welcome-file-list>
      <welcome-file>
          <!-- Your Start File -->
      </welcome-file>
      </welcome-file-list>
      
    3. Expand the Project and Right Click the index page (any page which is the entry point for you app) and Run as-> Run on Server.