Search code examples
oracle-databaseweblogic12c

Deploying JBossApp in weblogic


I need to migrate Jboss Application to weblogic12c, i dont find any good guide to do this. Ok, i create a weblogic.xml for the application, like this:

<?xml version="1.0" encoding="UTF-8"?>
<wls:weblogic-web-app
    xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-web-app"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
        http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd
        http://xmlns.oracle.com/weblogic/weblogic-web-app
        http://xmlns.oracle.com/weblogic/weblogic-web-app/1.4/weblogic-web-app.xsd">
    <wls:container-descriptor>
        <wls:prefer-application-packages>
            <wls:package-name>org.slf4j</wls:package-name>
        </wls:prefer-application-packages>
    </wls:container-descriptor>
</wls:weblogic-web-app>

And in my web.xml i have configured the welcome page, like this:

<welcome-file-list>
    <welcome-file>/index.jsp</welcome-file>
  </welcome-file-list>

after this i tryied deploy, and success, no problems, no errors, nothing. In the weblogic panel, the application is running OK, but, when i tried to access any page, return the 404 Error. I dont know why. I need to do another configuration ? Have a good guide to do this migration/deploy ?


Solution

  • In the logs of weblogic in the path:

    /usr/lib/jvm/java-8-oracle/bin/wls12213/user_projects/domains/base_domain/servers/server/logs

    i see an error of comunication with the webApi, and this cause the error 404 with no exception in weblogic.