NetBeans采用JSF Server库而不是已注册的库 [英] NetBeans taking JSF Server library instead of registered libraries
问题描述
我有一个符合以下规范的企业应用程序(EAR):
- JAVA EE 5
- JDK 6
- JSF 2
- 在Weblogic 11g(10.3.6)上运行
我内部有一个WAR,Weblogic服务器具有JSF库,但我希望我已经提供的库.问题是,当我在项目属性"中添加JSF框架,然后单击注册库"(而非服务器库)时,似乎需要这样做,但是几秒钟后,当我单击项目属性/框架"时,它又说:服务器库". /p>
我真的需要使用注册的库.
我该怎么办?
您需要在weblogic.xml文件中设置以下内容:
<weblogic-web-app>
<container-descriptor>
<prefer-web-inf-classes>true</prefer-web-inf-classes>
</container-descriptor>
</weblogic-web-app>
您可以在此处找到更多信息:
http://docs.oracle.com/cd /E24329_01/web.1211/e21049/weblogic_xml.htm
Weblogic配置-Preferred-web-inf-classes
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 ?
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
这篇关于NetBeans采用JSF Server库而不是已注册的库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!