无法在Oracle EBS R12中的JDeveloper中运行OAF页面

时间:2016-07-18 07:26:23

标签: oracle jdeveloper ojdbc oc4j

我一直关注此视频教程:https://www.youtube.com/watch?v=_xTfRIRPsNU在Oracle电子商务套件R12中的JDeveloper中运行OAF页面

如视频所示,我通过正确的DBC文件从JDeveloper到Oracle EBS建立了成功的数据库连接,我打开了JDeveloper的示例项目,并设置了所有必要的运行时连接信息。重建包含的教程后#39;项目,我到了最后一步,即运行HomePG.xml',但我无法运行该页面,并且我在消息日志中收到以下信息:

16/07/18 12:37:47 WARNING: Code-source /home/qbuser/jdev10g_install/jdevbin/jdev/appslibrt/xml.jar (from <library> in /home/qbuser/jdev10g_install/jdevhome/jdev/system/oracle.j2ee.10.1.3.43.6/embedded-oc4j/config/application.xml) has the same filename but is not identical to /home/qbuser/jdev10g_install/jdevbin/lib/xml.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in /home/qbuser/jdev10g_install/jdevbin/j2ee/home/oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader default.root:0.0.0.
16/07/18 12:37:47 WARNING: Code-source /home/qbuser/jdev10g_install/jdevbin/jdev/appslibrt/jazn.jar (from <library> in /home/qbuser/jdev10g_install/jdevhome/jdev/system/oracle.j2ee.10.1.3.43.6/embedded-oc4j/config/application.xml) has the same filename but is not identical to /home/qbuser/jdev10g_install/jdevbin/j2ee/home/jazn.jar (from <code-source> in META-INF/boot.xml in /home/qbuser/jdev10g_install/jdevbin/j2ee/home/oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader default.root:0.0.0.
16/07/18 12:37:47 WARNING: Code-source /home/qbuser/jdev10g_install/jdevbin/jdev/appslibrt/jazncore.jar (from manifest of /home/qbuser/jdev10g_install/jdevbin/jdev/appslibrt/jazn.jar) has the same filename but is not identical to /home/qbuser/jdev10g_install/jdevbin/j2ee/home/jazncore.jar (from <code-source> in META-INF/boot.xml in /home/qbuser/jdev10g_install/jdevbin/j2ee/home/oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader default.root:0.0.0.
Ready message received from Oc4jNotifier.
Embedded OC4J startup time: 3907 ms.

Target URL -- http://127.0.1.1:8989/OA_HTML/runregion.jsp
16/07/18 12:37:48 Oracle Containers for J2EE 10g (10.1.3.5.0)  initialized

,页面打开如下: enter image description here

注意:对于上面的执行,在Embedded OC4J Server Preferences-&gt; Java Compiler-&gt;下;编译器:ojc,Bin目录:/ home / user / jdev10g_install / jdevbin / jdev / bin /

将Bin目录更改为JDK的bin,没有任何好处,并产生了一个类似的错误页面,区别在于:&usr / lib / jvm / jdk1下找不到ojc .5.0_22,使用标记&#39;

在server.xml中指定ojc的正确位置

然后我尝试在Java Compiler中更改以下内容 - &gt;编译器:javac,Bin目录:/usr/lib/jvm/jdk1.5.0_22/bin

并生成了不同的消息日志:

16/07/18 11:49:55 WARNING: Code-source /home/qbuser/jdev10g_install/jdevbin/jdev/appslibrt/xml.jar (from <library> in /home/qbuser/jdev10g_install/jdevhome/jdev/system/oracle.j2ee.10.1.3.43.6/embedded-oc4j/config/application.xml) has the same filename but is not identical to /home/qbuser/jdev10g_install/jdevbin/lib/xml.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in /home/qbuser/jdev10g_install/jdevbin/j2ee/home/oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader default.root:0.0.0.
16/07/18 11:49:55 WARNING: Code-source /home/qbuser/jdev10g_install/jdevbin/jdev/appslibrt/jazn.jar (from <library> in /home/qbuser/jdev10g_install/jdevhome/jdev/system/oracle.j2ee.10.1.3.43.6/embedded-oc4j/config/application.xml) has the same filename but is not identical to /home/qbuser/jdev10g_install/jdevbin/j2ee/home/jazn.jar (from <code-source> in META-INF/boot.xml in /home/qbuser/jdev10g_install/jdevbin/j2ee/home/oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader default.root:0.0.0.
16/07/18 11:49:55 WARNING: Code-source /home/qbuser/jdev10g_install/jdevbin/jdev/appslibrt/jazncore.jar (from manifest of /home/qbuser/jdev10g_install/jdevbin/jdev/appslibrt/jazn.jar) has the same filename but is not identical to /home/qbuser/jdev10g_install/jdevbin/j2ee/home/jazncore.jar (from <code-source> in META-INF/boot.xml in /home/qbuser/jdev10g_install/jdevbin/j2ee/home/oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader default.root:0.0.0.
Ready message received from Oc4jNotifier.
Embedded OC4J startup time: 3571 ms.
16/07/18 11:49:56 Oracle Containers for J2EE 10g (10.1.3.5.0)  initialized

Target URL -- http://127.0.1.1:8989/OA_HTML/runregion.jsp
16/07/18 11:49:57 TIME: runregion: initialization [1 ms] 
18 Jul, 2016 11:49:58 AM oracle.jsp.logger.JspMessages infoCannotDispatchJspPage
INFO: Unable to dispatch JSP Page : oracle.jsp.provider.JspCompileException: <H3>Errors compiling:/home/qbuser/jdev10g_install/jdevhome/jdev/myclasses/.jsps//_OAErrorPage.java</H3><TABLE BORDER=1 WIDTH=100%><TR><TH ALIGN=CENTER>Line #</TH><TH ALIGN=CENTER>Error</TH></TR><TR><TD WIDTH=7% VALIGN=TOP><P ALIGN=CENTER>9</TD><TD>[jsp src:line #:16]<br> cannot access oracle.apps.fnd.common.WebRequestUtil
bad class file: /home/qbuser/jdev10g_install/jdevbin/jdev/appslibrt/atg.zip(oracle/apps/fnd/common/WebRequestUtil.class)
class file has wrong version 50.0, should be 49.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
import oracle.apps.fnd.common.WebRequestUtil;
                              </TD></TR></TABLE> 

页面错误:

enter image description here

我的Oracle EBS版本是12.2.4,我正在通过VirtualBox 5.1 for Linux主机运行。我的JDeveloper版本是10.1.3.5,它是上述Oracle Apps版本的兼容版本。

我想知道我无法运行该页面的原因。我已经好几天了。非常感谢帮助。

1 个答案:

答案 0 :(得分:0)

您已在EBS中为用户分配了相关职责,并已在jDeveloper运行时属性中配置了正确的职责短代码。如果是,它还可以与DBA一起检查您所使用的DBC文件,有时DBC文件有问题。