NetBeans taking JSF Server library instead of registered libraries

我只是一个虾纸丫 提交于 2019-12-20 05:42:21

问题


I have an Enterprise Application (EAR) with this specs:

  • JAVA EE 5
  • JDK 6
  • JSF 2
  • Running on Weblogic 11g(10.3.6)

I have a WAR inside of it, the weblogic server has JSF libraries but i want the libraries i already provided. The problem is when i add JSF Framework in Project Properties and then i click Registered Libraries (not server library) it seems like it takes it but after a few seconds when i click Project Properties/ Frameworks it says again : "Server Library".

I really need to use the registered libraries.

What can i do ?


回答1:


You'll want to set the following in your weblogic.xml file:

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

You can find more information here:

http://docs.oracle.com/cd/E24329_01/web.1211/e21049/weblogic_xml.htm

Weblogic Configuration - prefer-web-inf-classes



来源:https://stackoverflow.com/questions/19816632/netbeans-taking-jsf-server-library-instead-of-registered-libraries

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!