weblogic.application.ModuleException: Context path '' is already in use by the module
经排查是weblogic的配置文件有问题:
1.<span style="color: rgb(0, 128, 0);"><?xml version="1.0" encoding="UTF-8"?>
2.<weblogic-web-app xmlns="http://www.bea.com/ns/weblogic/90"
3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4. <context-root>/vpg/</context-root>
5. <container-descriptor>
6. <prefer-web-inf-classes>false</prefer-web-inf-classes>
7. </container-descriptor>
8. <virtual-directory-mapping>
9. <local-path>/opt/apps/virtual/vpgrev</local-path>
10. <url-pattern>*</url-pattern>
11. </virtual-directory-mapping>
12. <jsp-descriptor>
13. <keepgenerated>true</keepgenerated>
14. <page-check-seconds>120</page-check-seconds>
15. </jsp-descriptor>
16.</weblogic-web-app>
17.</span>
原因就是<context-root>中的 vpg 应用名有重复。weblogic下另一个应用的weblogic.xml中的<context-root>也是vpg。