java - war servlet tomcat cannot find -


i exported servlet project eclipse war file , placed inside webapp/hello folder.

/webapps/hello/hellotest.war

how run ?

i typed this

http://127.0.0.1:8080/hello/foo

but fails run

this web.xml file inside war file

 <?xml version="1.0" encoding="utf-8"?> <web-app id="webapp_id" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">     <display-name>hellotest</display-name>     <servlet>         <description>         </description>         <display-name>foo</display-name>         <servlet-name>foo</servlet-name>         <servlet-class>         foo</servlet-class>     </servlet>     <servlet-mapping>         <servlet-name>foo</servlet-name>         <url-pattern>/foo</url-pattern>     </servlet-mapping>     <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> 

place hellotest.war file in webapps folder of tomcat. assuming tomcat instance running , set properly, should automatically deploy application folder webapps/hellotest. can access application url http://127.0.0.1:8080/hellotest/.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -