我一直在关注这个视频教程:在Oracle电子商务套件R12中使用https://www.youtube.com/watch?v=_xTfRIRPsNU在JDeveloper中运行OAF页面
如视频所示,我通过正确的DBC文件成功地建立了从JDeveloper到Oracle EBS的数据库连接,打开了使用JDeveloper获得的示例项目,并设置了所有必要的运行时连接信息。在重新构建包含的'tutorial‘项目后,我到达了最后一步,即运行'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页面按如下方式打开:

注意:对于上面的执行,在Embedded OC4J Server Preferences->Java Compiler-> Compiler: ojc下,Bin目录: /home/user/jdev10g_install/jdevbin/jdev/bin/
将Bin目录更改为JDK的bin,并没有起到任何作用,并产生了类似的错误页面,不同之处在于:“在/usr/lib/jvm/jdk1.5.0_22下找不到ojc,请使用标签指定server.xml中ojc的正确位置。”
然后,我尝试在Java Compiler-> Compiler中更改以下内容: javac,Bin Directory: /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> 和页面错误:

我的Oracle EBS版本是12.2.4,它是通过用于VirtualBox主机的Linux5.1运行的。我的JDeveloper版本是10.1.3.5,这是与上述Oracle Apps版本兼容的版本。
我想知道我不能运行页面的原因是什么。我已经做了好几天了。我们将非常感谢您的帮助。
发布于 2020-01-24 12:07:33
您是否在EBS中为您的用户分配了相关职责,并在jDeveloper运行时属性中配置了正确的职责简码。如果可以,请另外与您的DBA联系以验证您正在使用的DBC文件,有时DBC文件会出现问题。
https://stackoverflow.com/questions/38430839
复制相似问题