weblogic自带了很多jar包   当工程中的jar和weblogic自带jar版本不一致时 往往会出现错误。

为了解决在weblogic中jar包冲突的问题  你可以在web-inf下创建一个weblogic.xml

内容如:

<?xml version="1.0"?>
<weblogic-web-app
 xmlns="http://www.bea.com/ns/weblogic/weblogic-web-app"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:schemaLocation="http://www.bea.com/ns/weblogic/weblogic-web-app http://www.bea.com/ns/weblogic/weblogic-web-app/1.0/weblogic-web-app.xsd">
<container-descriptor>
<prefer-web-inf-classes>true</prefer-web-inf-classes>//优先加载web工程中的jar包
</container-descriptor>
</weblogic-web-app>

转载请注明地址:http://www.cnblogs.com/likehua/

相关文章:

  • 2022-02-05
  • 2021-10-27
  • 2021-11-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-19
  • 2021-11-25
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-03
  • 2021-11-17
  • 2021-07-21
  • 2022-12-23
  • 2021-07-02
相关资源
相似解决方案