Error running web application

Asked

Viewed 78 times

1

I installed Tomcat on a server and I am trying to access my application but always gives this error:

The requested resource (/ProjetoAuditoria) is not available.

When I Starto on my machine other computers in the network can access, but when I put on the server does not work. Can someone tell me what the problem is?

web xml.:

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns="http://xmlns.jcp.org/xml/ns/javaee"
    xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
    id="WebApp_ID" version="3.1">


    <display-name>Sistema Auditoria</display-name>
    <welcome-file-list>
        <welcome-file>pages/autenticacao.xhtml</welcome-file>
    </welcome-file-list>

    <!-- Configuração do Servlet -->
    <servlet>
        <servlet-name>Faces Servlet</servlet-name>
        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>*.xhtml</url-pattern>
    </servlet-mapping>

    <context-param>
        <param-name>primefaces.THEME</param-name>
        <param-value>hot-sneaks </param-value>
    </context-param>
    <filter>
        <filter-name>PrimeFaces FileUpload Filter</filter-name>

        <filter-class>org.primefaces.webapp.filter.FileUploadFilter</filter-class>
    </filter>

    <filter-mapping>
        <filter-name>PrimeFaces FileUpload Filter</filter-name>
        <servlet-name>Faces Servlet</servlet-name>
    </filter-mapping>


    <!-- Carregamento do contexto do hibernate -->
    <listener>
        <listener-class>br.com.auditoria.util.ContextListener</listener-class>
    </listener>

</web-app>

When I enter Tomcat manager this appears, I click Start and still nothing happens.

inserir a descrição da imagem aqui

  • Have you checked in the Tom Cat Manager if your application has actually done the deploy ?

  • Look what I did was put War in the folder webapps then executed the startup.bat which is in the bin folder, when I did this a folder was created with the name of my application and with all contents inside.

  • Get in the Tom Cat Manager look at the context of your application, just one more thing, post your web.xml

  • Okay, I edited the question and I put an image

  • A little further down there is an option to do depoy, do there, as shown in the image it did not get your application Context None specified

  • Ready made the deploy by selecting the WAR appeared the ok message but is still not working and continues None specified

  • When I try to run through TomCat Manager of the same mistake FAIL - Application at context path /ProjetoAuditoria could not be started

  • Look at the log file @Techies I’m not getting a right answer.

  • I looked and you’re making a mistake on this:;org.apache.catalina.core.StandardContext.listenerStart Error configuring application listener of class br.com.auditoria.util.ContextListener&#xA; java.lang.UnsupportedClassVersionError: br/com/auditoria/util/ContextListener : Unsupported major.minor version 52.0 (unable to load class br.com.auditoria.util.ContextListener)

  • That mistake Unsupported major.minor version 52.0 (unable to load class br.com.auditoria.util.ContextListener) is referring to the version of your Java, with is configured your java IDE/Tomcat and on the server ? probably will be that

  • I got it, Tomcat is in the same version, but java is in version 1.7 on the server and I did on top of 1.8

Show 6 more comments

1 answer

2


Check the version installed on your server, according to the error presented by you the installed version is less than J2SE 8 = 52

Unsupported major.minor version 52.0 (Unable to load class br.com.auditoria.util.Contextlistener)

Below the list containing the number and versions of Java

J2SE 8 = 52, J2SE 7 = 51, J2SE 6.0 = 50, J2SE 5.0 = 49, JDK 1.4 = 48, JDK 1.3 = 47,  JDK 1.2 = 46, JDK 1.1 = 45
  • I get it, I have to install JRE or JDK?

  • Donwload the JRE + JDK

  • Problem solved, I installed only the JRE and already worked, thank you.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.