Migrate Tomcat server for Wildfly in eclipse

0

I'm trying to migrate a project (Java, HIbernate, JSF, SpringSecurity, CDI, Mysql) that currently runs on TOMCAT, to WILDFLY. I already configured the "standalone" with the connection and Wildfly alone initializes without any error.

When I initialize the application to be migrated, it gives error "404 error", that is, it does not recognize the index, nor any other page, even pointing directly at the browser.

Thanks in advance for the help of your friends.

    
asked by anonymous 12.02.2018 / 13:34

1 answer

0

By default, Widfly uses the name of the deployed package as the application context. Ex: If the deployed package is myaplicao.war, then the application will be accessed through the link myapplication URI.

To change the context name, create a file in the WEB-INF / jboss-web.xml folder with the following content:

<?xml version="1.0" encoding="UTF-8"?>
<jboss-web>
   <context-root>/contextoaplicacao</context-root>
</jboss-web>

Where "application context" is the name with which you want to access your application on the server.

    
14.02.2018 / 01:46