user1777875
user1777875

Reputation: 105

multiple war files in single ear with different context roots

I have one ear file and two war files application.xml file is configured like

<module id="myeclipse.1312xxxxxxx">
    <web>
      <web-uri>first.war</web-uri>
      <context-root>/first</context-root>
    </web>
  </module>
  <module id="myeclipse.134xxxxxxxxx">
    <web>
      <web-uri>second.war</web-uri>
      <context-root>/second</context-root>
    </web>
  </module>

when i'm deploying it in local weblogic server it's working fine, but when i deployed it in the server, first.war is working fine but second.war is not. when i tried to access some pages from second.war file like

"http://host:port/second/somepage.html"

, i'm getting Error 404-Object Not Found Exception.

Upvotes: 3

Views: 8158

Answers (1)

Colin
Colin

Reputation: 116

Sounds like a classloader issue with the non-local WebLogic server instance you are deploying to since it works on the local deployment. Try the Classloader Analysis Tool (CAT) to troubleshoot - http://docs.oracle.com/cd/E23943_01/web.1111/e13706/classloading.htm#WLPRG495

Upvotes: 2

Related Questions