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.
Have you checked in the
Tom Cat Manager
if your application has actually done thedeploy
?– Wellington Avelino
Look what I did was put War in the folder
webapps
then executed thestartup.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.– DiegoAugusto
Get in the
Tom Cat Manager
look at the context of your application, just one more thing, post your web.xml– Wellington Avelino
Okay, I edited the question and I put an image
– DiegoAugusto
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
– Wellington Avelino
Ready made the deploy by selecting the
WAR
appeared the ok message but is still not working and continuesNone specified
– DiegoAugusto
When I try to run through
TomCat Manager
of the same mistakeFAIL - Application at context path /ProjetoAuditoria could not be started
– DiegoAugusto
Look at the log file @Techies I’m not getting a right answer.
– Wellington Avelino
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
 java.lang.UnsupportedClassVersionError: br/com/auditoria/util/ContextListener : Unsupported major.minor version 52.0 (unable to load class br.com.auditoria.util.ContextListener)
– DiegoAugusto
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– Wellington Avelino
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
– DiegoAugusto