Tomcat does not process my xhtml

1

I'm doing a project with sprig-boot, jsf, tomcat and maven, when I run the app with the command mvn-spring-boot:run works perfectly with my embedded tomcat, but when I go to my tomcat on the server, I charge my war and it I give in deploy my xhtml is shown in rough, that is literally with tags

This is my jsf configuration:

 @Bean
public static CustomScopeConfigurer scopeConfigurer() {
    CustomScopeConfigurer configurer = new CustomScopeConfigurer();
    HashMap<String, Object> hashMap = new HashMap<String, Object>();
    hashMap.put("view", viewScope());
    configurer.setScopes(hashMap);
    return configurer;
}

/*
 * Below sets up the Faces Servlet for Spring Boot
 */
@Bean
public FacesServlet facesServlet() {
    return new FacesServlet();
}

/**
 * Configuración de JSF
 *
 * @return
 */
@Bean
public ServletRegistrationBean facesServletRegistration() {
    ServletRegistrationBean registration = new ServletRegistrationBean(
            facesServlet(), "*.xhtml");
    registration.setName("FacesServlet");
    registration.setLoadOnStartup(1);
    return registration;
}
    
asked by gibran alexis moreno zuñiga 31.08.2018 в 00:06
source

0 answers