標籤:set qrcode sbo lse class logfile 分享圖片 ini cal
2018年5月1日 10:05
# Uninstall JAR JSP QRCODE
1、# 尋找QRCODE相關檔案位置
[[email protected] ~]# 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
[[email protected] ~]# su - applmgr
[[email protected] ~]$ source /u01/install/VISION/fs1/EBSapps/appl/APPSEBSDB_ebs.env
[[email protected] ~]$ env $OA_HTML
env: /u01/install/VISION/fs1/FMW_Home/Oracle_EBS-app1/applications/oacore/html: Permission denied
[[email protected] ~]$ 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包路徑
[[email protected] 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
[[email protected] ~]$ source /u01/install/VISION/fs1/EBSapps/appl/APPSEBSDB_ebs.env
[[email protected] classes]$ cd $FND_TOP/patch/115/bin
[[email protected] 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 檔案
[[email protected] _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頁面載入
[[email protected] _pages]$ cd $OA_HTML/WEB-INF/lib
[[email protected] lib]$ pwd
/u01/install/VISION/fs1/FMW_Home/Oracle_EBS-app1/applications/oacore/html/WEB-INF/lib
Deploying JAR Package & JSP Page in EBS R12.2.4 WLS