java ee - removing project name from j2ee web application URL -
i have web dynamic project in eclipse , index.html in webapps folder, able access :
http://localhost:8080/javatest
i want access application :
http://localhost:8080
i tried changing context-root "/" right click on project->properties->web project settings, on http://localhost:8080/
getting requested resource not found, , application still running on http://localhost:8080/javatest
.
this web.xml :
<?xml version="1.0" encoding="utf-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemalocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="webapp_id" version="2.5"> <display-name>javatest</display-name> <welcome-file-list> <welcome-file>index.html</welcome-file> <welcome-file>index.htm</welcome-file> <welcome-file>index.jsp</welcome-file> <welcome-file>default.html</welcome-file> <welcome-file>default.htm</welcome-file> <welcome-file>default.jsp</welcome-file> </welcome-file-list> </web-app>
edit : server - tomcat 7.0.34
use methods wiki of tomcat
Comments
Post a Comment