简体   繁体   中英

2 JSF/Richfaces versions in same app server

在同一个weblogic应用程序服务器中,如果我们使用2个不同的JSF / Richfaces版本托管2个diff ui它会正常工作还是会有任何类加载器异常?

If you separate the 2 UI into different .ear/.war files there should be no problem as you can do something like this in your weblogic-application.xml to specify preferred packages:

<prefer-application-packages>
   <package-name>org.apache.*</package-name>
</prefer-application-packages>

You can also try using the weblogic.xml to force what classes get loaded like:

<container-descriptor>     
   <prefer-web-inf-classes>true</prefer-web-inf-classes>   
</container-descriptor> 

See more info here: http://docs.oracle.com/cd/E13222_01/wls/docs92/programming/classloading.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM