java - Deploying a WAR file to Tomcat 7 -


i trying deploy web application (war file) tomcat 7 using command line, i'm doing wrong. keep getting 404 error, can access html files using localhost:8080/app_hame/file_name.html syntax.

i deploy files server way: set catalina_home , java_home variables, start server way:

set catalina_home=c:\my_path\apache-tomcat-7.0.69 set java_home=c:\program files\java\jdk1.8.0_144 startup.bat 

then copy war file webapps folder of server , restart server. can see file unpacking app_name directory in webapps folder, can't access application browser using mentioned url.

i missing step or so, please, can explain me i'm doing wrong.

thanks replies!

check have entry in web.xml mapping servlet url-pattern

<servlet-mapping>     <servlet-name>entryservlet</servlet-name>     <url-pattern>/*</url-pattern> </servlet-mapping> 

Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -