马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。如果您注册时有任何问题请联系客服QQ: 83569622 。
您需要 登录 才可以下载或查看,没有帐号?注册
x
本帖最后由 sunny_swufe 于 2009/8/26 12:27 编辑
oracle.jbo.NoXMLFileException:JBO-26001
问题现象:
页面显示:
ExceptionDetails.
oracle.apps.fnd.framework.OAException:Application: FND, Message Name: FND_GENERIC_MESSAGE. Tokens: MESSAGE =javax.naming.NamingException [Root exception is oracle.jbo.NoXMLFileException:JBO-26001: ????? /ExtendLabSolutions.jpx ? XML ??];
at oracle.apps.fnd.framework.OAException.wrapperException(Unknown Source)
at oracle.apps.fnd.framework.webui.OAJSPApplicationRegistry.createStaticAKApplicationModule(UnknownSource)
at ….
##Detail 0 ##
javax.naming.NamingException[Root exception is oracle.jbo.NoXMLFileException: JBO-26001: ?????/ExtendLabSolutions.jpx ? XML ??]
at oracle.jbo.server.InitialContextImpl.createJboHome(InitialContextImpl.java:59)
at …
JDeveloper的控制台中显示:
09/08/2611:18:22 TIME: runregion: session and transaction creation [1578 ms]
2009-8-2611:18:22 oracle.adf.share.config.ADFConfigFactory findOrCreateADFConfig
信息: oracle.adf.share.config.ADFConfigFactory No META-INF/adf-config.xml found
问题背景:
Exercise: Extending OA Framework Applications,做测试的时候,我在ExtendLabSolutions这个project中添加了一个页面MyCompanyPoSummaryCreatePG(复制
oracle\apps\fnd\framework\toolbox\tutorial\webui\PoSummaryCreatePG.xml,改了一下Title属性),如下图:
运行页面MyCompanyPoSummaryCreatePG,报上面的错误。
问题分析:
JBO-26001: NoXMLFileException
Cause:Could not open the named XML file for read.
Action:1. Make sure that the file is present. In particular, ifthe file is to be found in a zip/jar file, make surethat the Zip/JAR file is included in the CLASSPATH.
2.This error is also reported if the name of the XML file does not match theobject Name specified in the XMLfile. If the file system support case insensitive file names (e.g., WindowsNT), make sure that the filename matches the object Name in the XML file in case-sensitive fashion.
3.For a .JPX file, this error is reported if the JPX file is missing theJboProject XML tag. Check the JPX fileto make sure that the valid tag is in there.
4.One XML file may be extending another XML file (specified by the Extendselement in this XML file). Thiserror is reported if the base XML file is not found.
5.When loading the XML file for a package (JboPackage tag), this error is reportedif some unexpected erroroccurs while loading a containee.
Inall of the above cases, a more descriptive message may be printed onDiagnostic. If you are not seeingDiagnostic messages, you can run your application with Diagnostic turned on, asin "java -Djbo.debugoutput=console...", to see Diagnostic messages.
问题解决:
[Root exception isoracle.jbo.NoXMLFileException: JBO-26001: ????? /ExtendLabSolutions.jpx ? XML??] 错误提示好像是说找不到文件ExtendLabSolutions.jpx,于是,我将<JDEV_USER_HOME>\myprojects\ExtendLabSolutions.jpx 复制到
<JDEV_USER_HOME>\myclasses\ 问题解决。
还有疑问:
问题解决了,总觉得有点郁闷,JDeveloper为什么就这么笨呢?它为什么不自己将JPX复制到<JDEV_USER_HOME>\myclasses\中去,还需要我手动完成!我在<JDEV_USER_HOME>\myclasses\还找到一个文件ExtendLabSolutions.cdi,猜测是将ExtendLabSolutions.jpx或者是ExtendLabSolutions.jpr编译之后的文件,那为什么还需要手动复制ExtendLabSolutions.jpx呢?请高手大虾些指点。 |