I’ve got this error with a taskflow that uses ADFBC:
<Jan 15, 2016 3:06:50 PM CET> <Error> <oracle.webcenter.webcenterapp.internal.view.error.WCErrorHandlerImpl> <BEA-000000> <getDisplayMessage Called=javax.naming.NameNotFoundException javax.naming.NameNotFoundException: While trying to look up comp/env/jdbc/HERCULESDS in /app/webapp/webcenter/949491555.; remaining name 'comp/env/jdbc/HERCULESDS' at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:1224) at weblogic.jndi.internal.ApplicationNamingNode.lookup(ApplicationNamingNode.java:144) at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.java:307)
This SOLUTION worked for me:
Edit bc4j.cfg and put the name of the datasource equal to the jndi name of the datasource created in WLS:
<?xml version = '1.0' encoding = 'UTF-8'?> <BC4JConfig version="11.1" xmlns="http://xmlns.oracle.com/bc4j/configuration"> <AppModuleConfigBag ApplicationName="extension.portal.orange.am.AppModuleCompomentes"> <AppModuleConfig name="AppModuleLocal" jbo.project="extension.portal.PortalExtension" ApplicationName="extension.portal.orange.am.AppModuleCompomentes" DeployPlatform="LOCAL"> <Database jbo.TypeMapEntries="OracleApps"/> <Security AppModuleJndiName="extension.portal.orange.am.AppModuleCompomentes"/> <Custom ns0:JDBCDataSource="jdbc/HERCULESDS" xmlns:ns0="http://xmlns.oracle.com/bc4j/configuration"/> </AppModuleConfig> <AppModuleConfig name="AppModuleShared" jbo.project="extension.portal.PortalExtension" ApplicationName="extension.portal.orange.am.AppModuleCompomentes" DeployPlatform="LOCAL"> <AM-Pooling jbo.ampool.maxpoolsize="1" jbo.ampool.isuseexclusive="false"/> <Database jbo.TypeMapEntries="OracleApps"/> <Security AppModuleJndiName="extension.portal.orange.am.AppModuleCompomentes"/> <Custom ns0:JDBCDataSource="jdbc/HERCULESDS" xmlns:ns0="http://xmlns.oracle.com/bc4j/configuration"/> </AppModuleConfig> </AppModuleConfigBag> </BC4JConfig> ;-)
Hey. I’ve been troubling with nearly the same error for 2 last days.
I could run my ADF application on WebLogic, but when I placed my Task Flow on Oracle WebCenter Portal 12c, I got the error about unavailability of “comp/env/jdbc/DS”.
Removing all the prefixes (leaving “jdbc/DS”) in bc4j.cfg solved the problem and application works both as a standalone ADF app as well as Task Flow injected into OWCP.
LikeLike