2018年5月1日 10:05
# Uninstall JAR JSP QRCODE
1、# 查找QRCODE相关文件位置
[root@ebs ~]# find /u01/ -name '*qrcode*'
/u01/install/VISION/fs1/FMW_Home/Oracle_EBS-app1/applications/oacore/html/WEB-INF/classes/_pages/__getqrcode.class
/u01/install/VISION/fs1/FMW_Home/Oracle_EBS-app1/applications/oacore/html/WEB-INF/classes/__getqrcode.class
/u01/install/VISION/fs1/FMW_Home/Oracle_EBS-app1/applications/oacore/html/WEB-INF/lib/qrcode.jar
/u01/install/VISION/fs1/FMW_Home/Oracle_EBS-app1/applications/oacore/html/getqrcode.jsp
/u01/install/VISION/fs1/EBSapps/comn/java/classes/qrcode.jar
/u01/install/VISION/fs1/EBSapps/comn/java/classes/oracle/apps/cux/jar/qrcode.jar
2、# 清除QRCODE相关文件
rm -f /u01/install/VISION/fs1/FMW_Home/Oracle_EBS-app1/applications/oacore/html/WEB-INF/classes/_pages/__getqrcode.class
rm -f /u01/install/VISION/fs1/FMW_Home/Oracle_EBS-app1/applications/oacore/html/WEB-INF/classes/__getqrcode.class
rm -f /u01/install/VISION/fs1/FMW_Home/Oracle_EBS-app1/applications/oacore/html/WEB-INF/lib/qrcode.jar
rm -f /u01/install/VISION/fs1/FMW_Home/Oracle_EBS-app1/applications/oacore/html/getqrcode.jsp
rm -f /u01/install/VISION/fs1/EBSapps/comn/java/classes/qrcode.jar
rm -f /u01/install/VISION/fs1/EBSapps/comn/java/classes/oracle/apps/cux/jar/qrcode.jar
# 清理干净QRCODE后,访问则会提示 404 Not Found
http://192.168.12.24:8000/OA_HTML/getqrcode.jsp?SCODE=AAAAA
# Install JAR JSP QRCODE in EBS WLS
1、#上载 getqrcode.jsp 到 $OA_HTML ,qrcode.jar 到 $JAVA_TOP/oracle/apps/cux/jar
[root@ebs ~]# su - applmgr
[applmgr@ebs ~]$ source /u01/install/VISION/fs1/EBSapps/appl/APPSEBSDB_ebs.env
[applmgr@ebs ~]$ env $OA_HTML
env: /u01/install/VISION/fs1/FMW_Home/Oracle_EBS-app1/applications/oacore/html: Permission denied
[applmgr@ebs ~]$ env $JAVA_TOP
env: /u01/install/VISION/fs1/EBSapps/comn/java/classes: Permission denied
# upload getqrcode.jsp to $OA_HTML
# upload qrcode.jar to $JAVA_TOP/oracle/apps/cux/jar/
# 如果没有此自定义路径,请增加此路径
2、# JSP编译属性文件增加编译JAR包路径
[oracle@ebs bin]$ vi $INST_TOP/appl/admin/ojspCompile.properties
# $Header: ojspCompile_FMW_properties.tmp 120.1 2012/02/20 09:03:44 ttsharma ship $
#
# ###############################################################
#
# Do not edit settings in this file manually. They are managed
# automatically and will be overwritten when AutoConfig runs.
# For more information about AutoConfig, refer to the Oracle
# E-Business Suite Setup Guide.
#
# ###############################################################
#
/u01/install/VISION/fs1/FMW_Home/wlserver_10.3/server/lib/weblogic.jar
/u01/install/VISION/fs1/FMW_Home/Oracle_EBS-app1/shared-libs/ebs-appsborg/WEB-INF/lib/ebsAppsborgManifest.jar
/u01/install/VISION/fs1/FMW_Home/oracle_common/modules/oracle.uix_11.1.1/uix2.jar
/u01/install/VISION/fs1/FMW_Home/oracle_common/modules/oracle.jmx_11.1.1/jmxframework.jar
/u01/install/VISION/fs1/EBSapps/comn/shared-libs/ebs-3rdparty/WEB-INF/lib/ebs3rdpartyManifest.jar
/u01/install/VISION/fs1/EBSapps/comn/java/classes
/u01/install/VISION/fs1/EBSapps/comn/java/classes/oracle/apps/cux/jar/qrcode.jar
/u01/install/VISION/fs1/EBSapps/10.1.2/jlib/ewt3.jar
/u01/install/VISION/fs1/EBSapps/10.1.2/forms/java/frmall.jar
/u01/install/VISION/fs1/EBSapps/10.1.2/j2ee/OC4J_BI_Forms/applications/formsapp/formsweb/WEB-INF/lib/frmsrv.jar
3、# 编译 jar package & jsp page
[oracle@ebs ~]$ source /u01/install/VISION/fs1/EBSapps/appl/APPSEBSDB_ebs.env
[oracle@ebs classes]$ cd $FND_TOP/patch/115/bin
[oracle@ebs bin]$ perl ojspCompile.pl --compile -s 'getqrcode.jsp' --flush
logfile set: /u01/install/VISION/fs1/inst/apps/EBSDB_ebs/logs/appl/rgf/ojsp/ojspc_error.log
starting...(compiling all)
using 10i internal ojsp ver: 10.3.6.0
quick compile:
files to compile...1
translating and compiling:
translating jsps...1/1 in 2m17s
compiling jsps...1/1 in 7s
Finished!
# 编译成功后,会在以下目录生成相应的 class 文件
[oracle@ebs _pages]$ ls $OA_HTML/WEB-INF/classes/_pages/*getqrcode.class
/u01/install/VISION/fs1/FMW_Home/Oracle_EBS-app1/applications/oacore/html/WEB-INF/classes/_pages/__getqrcode.class
# 依R12.1.X正常到这里就应该完工了,但R12.2.X做完这些步骤只能给你一个空白页
4、# R12.2.4 改用了 WLS,故还需要在$OA_HTML/WEB-INF/lib/qrcode.jar 放置JAR包给jsp页面加载
[oracle@ebs _pages]$ cd $OA_HTML/WEB-INF/lib
[oracle@ebs lib]$ pwd
/u01/install/VISION/fs1/FMW_Home/Oracle_EBS-app1/applications/oacore/html/WEB-INF/lib