Error at harvesting of AIA artifact: MDS-00929: unable to look up name "jdbc/mds/MDS_LocalTxDataSource" in JNDI context (User: weblogic, failed to be authenticated) (Doc ID 1299882.1)

Last updated on MARCH 08, 2017

Applies to:

Oracle Application Integration Architecture Foundation Pack - Version 11gR1 and later
Information in this document applies to any platform.
***Checked for relevance on 05-Jan-2014***

Symptoms

  The "java.lang.NoClassDefFoundError: com/oracle/aia/AIAHarvester" java-run time exception was reported when "AIAHarvest.sh" script was executed to harvest information for a given AIA artifact:

source $AIA_HOME/aia_instances/<AIA Instance>/bin/aiaenv.sh

$HARVESTER_HOME/AIAHarvest.sh-partial true -settings HarvesterSettings.xml -mode AIA
INFO: AIA_INSTANCE is found, configuration will load from instance folder.
... 0 [main] INFO com.oracle.aia.AIAHarvester - -mode is activated.
... [main] INFO com.oracle.aia.AIAHarvester - DB harvesting mode, skip OER harvesting!
... [main] INFO com.oracle.aia.AIACompositeMain - Passing setting files...
... [main] INFO com.oracle.aia.AIAXmlReader - Feeding file .../composite.xml into Composite Parser...
... [main] DEBUG com.oracle.aia.AIACompositeParser - Open application module
... oracle.adf.share.config.ADFConfigFactory getInstance
INFO: ADF Config instance implementation in use is : oracle.adf.share.config.MDSConfigFactory
... oracle.adf.share.config.ADFMDSConfig createMDSInstanceFromelement
INFO: Application Name:
... oracle.adf.share.config.ADFMDSConfig createMDSInstanceFromelement
INFO: MDSException encountered in parseADFConfigurationMDS-00922: The ConnectionManager "oracle.mds.internal.persistence.db.JNDIConnectionManagerImpl" cannot be instantiated.
MDS-00929: unable to look up name "jdbc/mds/MDS_LocalTxDataSource" in JNDI context
User: weblogic, failed to be authenticated.
oracle.mds.exception.MDSException: MDS-00922: The ConnectionManager "oracle.mds.internal.persistence.db.JNDIConnectionManagerImpl" cannot be instantiated.
MDS-00929: unable to look up name "jdbc/mds/MDS_LocalTxDataSource" in JNDI context
User: weblogic, failed to be authenticated.
             at oracle.mds.internal.persistence.db.ConnectionManagerFactory.createConnectionManager(ConnectionManagerFactory.java:79)
             at oracle.mds.internal.persistence.db.DBStoreUtils.getConnectionManager(DBStoreUtils.java:386)
             at oracle.mds.persistence.stores.db.DBMetadataStore.checkRepositoryCompatibility(DBMetadataStore.java:803)
             at oracle.mds.persistence.stores.db.DBMetadataStore.checkCompatibility(DBMetadataStore.java:1090)
             at oracle.mds.persistence.stores.db.DBMetadataStore.<init>(DBMetadataStore.java:268)
             ...
             at oracle.mds.core.MDSInstance.createMDSInstanceWithCustomizedConfig(MDSInstance.java:1126)
             at oracle.mds.core.MDSInstance.getOrCreateInstance(MDSInstance.java:536)
             at oracle.adf.share.config.ADFMDSConfig.createMDSInstanceFromelement(ADFMDSConfig.java:211)
             at oracle.adf.share.config.MDSConfigFactory.createApplication(MDSConfigFactory.java:86)
             ...
            at oracle.jbo.server.MetaObjectManager.findMetaObject(MetaObjectManager.java:750)
            at oracle.jbo.server.ApplicationModuleDefImpl.findDefObject(ApplicationModuleDefImpl.java:279)
            at oracle.jbo.server.ApplicationModuleImpl.createRootApplicationModule(ApplicationModuleImpl.java:420)
            at oracle.jbo.server.ApplicationModuleHomeImpl.create(ApplicationModuleHomeImpl.java:87)
            at com.oracle.aia.AIACompositeParser.openModule(Unknown Source)
            at com.oracle.aia.AIACompositeParser.<init>(Unknown Source)
            at com.oracle.aia.AIAXmlReader.feedToCompositeParser(Unknown Source)
            at com.oracle.aia.AIACompositeMain.main(Unknown Source)
            at com.oracle.aia.AIAHarvester.main(Unknown Source)
Caused by: oracle.mds.persistence.MDSIOException: MDS-00929: unable to look up name "jdbc/mds/MDS_LocalTxDataSource" in JNDI context
User: weblogic, failed to be authenticated.
           at oracle.mds.internal.persistence.db.JNDIConnectionManagerImpl.setDatabaseContext(JNDIConnectionManagerImpl.java:161)
...
Caused by: javax.naming.AuthenticationException [Root exception is java.lang.SecurityException: User: weblogic, failed to be authenticated.]
            at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:42)
            at weblogic.jndi.WLInitialContextFactoryDelegate.toNamingException(WLInitialContextFactoryDelegate.java:783)
            at weblogic.jndi.WLInitialContextFactoryDelegate.pushSubject(WLInitialContextFactoryDelegate.java:677)
            at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialContextFactoryDelegate.java:468)
            at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:375)
            at weblogic.jndi.Environment.getContext(Environment.java:315)
            at weblogic.jndi.Environment.getContext(Environment.java:285)
            at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117)
            at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
            at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
            at javax.naming.InitialContext.init(InitialContext.java:223)
            at javax.naming.InitialContext.<init>(InitialContext.java:175)
            at oracle.mds.internal.persistence.db.JNDIConnectionManagerImpl.setDatabaseContext(JNDIConnectionManagerImpl.java:156)
...
Caused by: java.lang.SecurityException: User: weblogic, failed to be authenticated.
            at weblogic.common.internal.RMIBootServiceImpl.authenticate(RMIBootServiceImpl.java:119)
            at weblogic.common.internal.RMIBootServiceImpl_WLSkel.invoke(Unknown Source)
            at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
            at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:477)
            at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
            at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
            ...
            at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
... oracle.adf.share.config.MDSConfigFactory createApplication
..."


Note: $HARVESTER_HOME = $AIA_HOME/Infrastructure/LifeCycle/AIAHarvester

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms