Deploy java web project 404 with tomcat under linux

the war package is dropped under the webappas directory: ci-0.1.war automatically generates the ci-0.1 directory.

run the catalina.sh run access link
http://ip:8080/ci-0.1/ reported 404

web.xml configuration

1:
   <Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true">

        <Context path="/" docBase="/opt/app/ctpsp/tomcat7/webapps/ci-0.1" debug="0" privileged="true" reloadable="true" />


        <!-- SingleSignOn valve, share authentication between web applications
             Documentation at: /docs/config/valve.html -->
        <!--
        <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
        -->

        <!-- Access log processes all example.
             Documentation at: /docs/config/valve.html
             Note: The pattern used is equivalent to using pattern="common" -->
        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
               prefix="localhost_access_log." suffix=".txt"
               pattern="%h %l %u %t "%r" %s %b" />

      </Host>
      
2 :
  <Connector port="8080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" URIEncoding="UTF-8"/>      
      
      

the error is as follows:

16:41:08.556 [http-bio-8080-exec-23] DEBUG o.s.w.s.h.SimpleUrlHandlerMapping - Mapping [/manager/html] to HandlerExecutionChain with handler [org.springframework.web.servlet.resource.DefaultServletHttpRequestHandler@589b3062] and 1 interceptor
16:41:08.556 [http-bio-8080-exec-23] DEBUG o.s.web.servlet.DispatcherServlet - Last-Modified value for [/manager/html] is: -1
16:41:08.556 [http-bio-8080-exec-23] DEBUG o.s.web.servlet.DispatcherServlet - Null ModelAndView returned to DispatcherServlet with name "mvc-dispatcher": assuming HandlerAdapter completed request handling
16:41:08.556 [http-bio-8080-exec-23] DEBUG o.s.web.servlet.DispatcherServlet - Successfully completed request
16:41:08.553 [http-bio-8080-exec-1] DEBUG o.s.w.s.h.SimpleUrlHandlerMapping - URI Template variables for request [/manager/html] are {}
16:41:08.557 [http-bio-8080-exec-1] DEBUG o.s.w.s.h.SimpleUrlHandlerMapping - Mapping [/manager/html] to HandlerExecutionChain with handler [org.springframework.web.servlet.resource.DefaultServletHttpRequestHandler@589b3062] and 1 interceptor
16:41:08.557 [http-bio-8080-exec-1] DEBUG o.s.web.servlet.DispatcherServlet - Last-Modified value for [/manager/html] is: -1
16:41:08.557 [http-bio-8080-exec-1] DEBUG o.s.web.servlet.DispatcherServlet - Null ModelAndView returned to DispatcherServlet with name "mvc-dispatcher": assuming HandlerAdapter completed request handling
16:41:08.557 [http-bio-8080-exec-1] DEBUG o.s.web.servlet.DispatcherServlet - Successfully completed request

can I access http://ip:8080/ if you have a real child configuration? path= https://api-v5.segmentfault.com/question/"/"


I have never seen webapp thrown into the webapps directory and configured as a root directory in server.xml. I am afraid there will be conflicts in doing so. First delete the < Context/ > configuration, and then see if the http://xxx:8080/ci-0.1 can be accessed properly.


@ ccfish @ fabricated belief Thank you both for your answers, which at least inspired me to go back and look at 80's questions.

The

problem is solved, and the problem lies in tomcat itself. Alas, since it is a server provided by someone else, there is something wrong with tomcat itself, so it is changed to a new package, and the problem of 80 access is solved, and then there is the problem of db configuration on the war side.

at first, I didn't think about something as basic as tomcat, and I could get it wrong, so I never found the reason.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b386b7-2b88c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b386b7-2b88c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?