訪問Weblogic中部署的ADF應用時,報ORA-01005錯誤

來源:互聯網
上載者:User

今天在將Oracle Summit Demo 部署到獨立的Weblogic中時,一直報ORA-01005異常;在Integrated Weblogic中運行則是一直正常。

主要異常Log如下:

####<Apr 29, 2013 3:16:40 PM CST> <Notice> <Diagnostics> <ol5.shawn.com> <AdminServer> <[STANDBY] ExecuteThread: '5' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <11d1def534ea1be0:-294091cd:13e54680b95:-8000-00000000000008d4> <1367219800002> <BEA-320068> <Watch 'UncheckedException' with severity 'Notice' on server 'AdminServer' has triggered at Apr 29, 2013 3:16:39 PM CST. Notification details:
WatchRuleType: Log
WatchRule: (SEVERITY = 'Error') AND ((MSGID = 'WL-101020') OR (MSGID = 'WL-101017') OR (MSGID = 'WL-000802') OR (MSGID = 'BEA-101020') OR (MSGID = 'BEA-101017') OR (MSGID = 'BEA-000802'))
WatchData: DATE = Apr 29, 2013 3:16:39 PM CST SERVER = AdminServer MESSAGE = [ServletContext@29859202[app:SummitADF_application1 module:SummitADF-ViewController-context-root path:/SummitADF-ViewController-context-root spec-version:2.5]] Servlet failed with Exception
oracle.jbo.NoDefException: JBO-29114 ADFContext is not setup to process messages for this exception. Use the exception stack trace and error code to investigate the root cause of this exception. Root cause error code is JBO-25058. Error message parameters are {0=Attribute, 1=Id, 2=Id}
 at oracle.jbo.uicli.binding.JUCtrlValueBinding.getAttributeDef(JUCtrlValueBinding.java:552)
 ... ...
 ... ...

Caused By: oracle.jbo.DMLException: JBO-29114 ADFContext is not setup to process messages for this exception. Use the exception stack trace and error code to investigate the root cause of this exception. Root cause error code is JBO-26061.
 at oracle.jbo.server.ConnectionPool.createConnection(ConnectionPool.java:207)
 ... ...
 ... ...
 
Caused By: java.sql.SQLException: ORA-01005: null password given; logon denied
 at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:462)
 ... ...
 ... ...

不理解為何密碼會是空,還好有穀哥,解決方案:
 
在FMW_HOME/user_projects/domains/yourdomain/bin/setDomainEnv.sh中的JAVA_PROPERTIES中加如下參數:

-Djps.app.credential.overwrite.allowed=true

結果為:

JAVA_PROPERTIES="-Dplatform.home=${WL_HOME} -Dwls.home=${WLS_HOME} -Dweblogic.home=${WLS_HOME} -Djps.app.credential.overwrite.allowed=true "

然後重啟Weblogic,再訪問應用,一切正常。。。

 

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.