内置jars的weblogic10.3 JSF2 [英] weblogic10.3 JSF2 built in jars
问题描述
在我们的应用程序中,我们将JSF2与weblogin10.3.4一起使用,
In our application ,we are using JSF2 with weblogin10.3.4,
weblogic10.3.4随JSF 2.0一起提供.我们在Weblogic中将JSF2.0部署为库.
The weblogic10.3.4 comes with JSF 2.0 ..We deployed JSF2.0 as library in weblogic.
但是,当我们部署jsf应用程序时,weblogic将报告针对JSF特定类的ClassNotFound.
But when we deploy the jsf application,weblogic reports the ClassNotFound for JSF specific classes.
任何人以前都尝试过...
Any one has tried this before...
谢谢 维杰
推荐答案
创建如下所示的weblogic-application.xml.这迫使将类加载到应用程序库而不是Weblogic jars中.
Create a weblogic-application.xml like below. This forces to load classes under application library instead of weblogic jars.
WebContent-> META-INF-> weblogic-application.xml
WebContent->META-INF->weblogic-application.xml
<weblogic-application xmlns="http://www.bea.com/ns/weblogic/90"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<prefer-application-packages>
<package-name>javax.faces.*</package-name>
<package-name>com.sun.faces.*</package-name>
</prefer-application-packages>
</weblogic-application>
如果要使用EL2.2,则需要将el 2.2罐添加到setDomainEnv文件中,该文件位于"bea11 \ user_projects \ domains \ base_domain \ bin"处
And if you want to use EL2.2 you will need to add el 2.2 jars to setDomainEnv file where it is located at "bea11\user_projects\domains\base_domain\bin"
添加以下行:
设置PATCH_CLASSPATH = D:\ dev \ lib \ el-impl-2.2.jar; D:\ dev \ lib \ el-api-2.2.jar;
set PATCH_CLASSPATH=D:\dev\lib\el-impl-2.2.jar;D:\dev\lib\el-api-2.2.jar;
编辑后的文件如下所示:
edited file looks like below:
if "%PRODUCTION_MODE%"=="true" (
set debugFlag=false
set testConsoleFlag=false
set iterativeDevFlag=false
set logErrorsToConsoleFlag=false
)
@REM If you want to override the default Patch Classpath, Library Path and Path for this domain,
@REM Please uncomment the following lines and add a valid value for the environment variables
@REM set PATCH_CLASSPATH=[myPatchClasspath] (windows)
@REM set PATCH_LIBPATH=[myPatchLibpath] (windows)
@REM set PATCH_PATH=[myPatchPath] (windows)
@REM PATCH_CLASSPATH=[myPatchClasspath] (unix)
@REM PATCH_LIBPATH=[myPatchLibpath] (unix)
@REM PATCH_PATH=[myPatchPath] (unix)
set PATCH_CLASSPATH=D:\dev\lib\el-impl-2.2.jar;D:\dev\lib\el-api-2.2.jar;
call "%WL_HOME%\common\bin\commEnv.cmd"
set WLS_HOME=%WL_HOME%\server
祝你好运
这篇关于内置jars的weblogic10.3 JSF2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!