404 Erro para o servidor Java (Tomcat 7)

0
    HTTP Status 404 -

type Status report

message

description The requested resource is not available.

Apache Tomcat/7.0.68 (Ubuntu)

Eu tentei iniciar manualmente o servidor usando

sudo service tomcat7 start

e eu recebo isso

Job for tomcat7.service failed because the control process exited with error code. 
See "systemctl status tomcat7.service" and "journalctl -xe" for details.

status do systemctl tomcat7.service tentou systemctl status tomcat7.service

  ● 
    tomcat7.service - LSB: Start Tomcat.
           Loaded: loaded (/etc/init.d/tomcat7; bad; vendor preset: enabled)
           Active: failed (Result: exit-code) since Wed 2017-03-08 03:02:07 MST; 1min 50
             Docs: man:systemd-sysv-generator(8)
          Process: 15031 ExecStart=/etc/init.d/tomcat7 start (code=exited, status=1/FAIL

 Starting LSB: Start Tomcat....
  * Starting Tomcat servlet engine tomca
tomcat7[15031]:    ...fail!
 tomcat7.service: Control process exited, co
 Failed to start LSB: Start Tomcat..
 tomcat7.service: Unit entered failed state.
tomcat7.service: Failed with result 'exit-c

Estou tentando criar um servlet java simples.

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_3_0.xsd" id="WebApp_ID" version="3.0">
  <display-name>CloudComputing</display-name>

  <servlet>
  <servlet-name>ReqResp</servlet-name>
  <servlet-class>cc.Cloudpi</servlet-class>
  </servlet>

 <servlet-mapping>
 <servlet-name>ReqResp</servlet-name>
 <url-pattern>/Cloudpi</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>

Por favor, ajude (Newbie Alert!)

    
por Pandeyji 08.03.2017 / 11:13

0 respostas