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

http://wiki.apache.org/tomcat/howto#how_do_i_make_my_web_application_be_the_tomcat_default_application.3f


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -