While Running a WebCenter Framework Application in JDeveloper Using WebCenter Analytics Fails With: "com.plumtree.analytics.core.exception.AnalyticsRuntimeException: Error looking up datasource 'java:/comp/env/jdbc/ActivitiesDS'" (Doc ID 1457241.1)

Last updated on JUNE 29, 2017

Applies to:

Oracle WebCenter Portal - Version 11.1.1.4.0 to 11.1.1.5.0 [Release 11g]
Information in this document applies to any platform.

Symptoms

After creating a new WebCenter Framework Application in JDeveloper using WebCenter Analytics it fails with Error looking up datasource 'java:/comp/env/jdbc/ActivitiesDS'.

The error is similar to the following:

Target URL -- http://127.0.0.1:7101/AnalyticsTest-Portal-context-root/faces/oracle/webcenter/portalapp/pages/home.jspx
<JUApplicationDefImpl> <logDefaultDynamicPageMapPattern> The definition at wstf.portal.DataBindings.cpx, uses a pagemap pattern match that hides other cpx files.
<FacesTemplateContainer> <resolveViewId> Cannot evaluate viewId attribute. Expression is ${preferenceBean.defaultPageTemplate}, binding is pageTemplateBinding
<SkinFactoryImpl> <getSkin> Cannot find a skin that matches family portal and version v1.1. We will use the skin portal.desktop.
<SkinFactoryImpl> <getSkin> Cannot find a skin that matches family portal and version v1.1. We will use the skin portal.desktop.
<JdbcConnectionProvider> <<init>> Error looking up datasource 'java:/comp/env/jdbc/ActivitiesDS'
<DataProviderFactory> <obtainDbProvider> Error creating DB provider
com.plumtree.analytics.core.exception.AnalyticsRuntimeException: Error looking up datasource 'java:/comp/env/jdbc/ActivitiesDS'
    at com.plumtree.analytics.core.dao.jdbc.JdbcConnectionProvider.<init>(JdbcConnectionProvider.java:30)
    at com.plumtree.analytics.core.dao.jdbc.JdbcConnectionProvider.getInstance(JdbcConnectionProvider.java:48)
    at com.plumtree.analytics.core.db.impl.DBProviderFactory.getDBProvider(DBProviderFactory.java:20)
    at oracle.webcenter.analytics.model.dataprovider.DataProviderFactory.obtainDbProvider(DataProviderFactory.java:33)
    at oracle.webcenter.analytics.model.dataprovider.DataProviderFactory.getReportDataProvider(DataProviderFactory.java:20)
    at oracle.webcenter.analytics.view.beans.AnalyticsConfig.getAnalyticsInstalled(AnalyticsConfig.java:80)
    at oracle.webcenter.analytics.view.beans.AnalyticsConfig.isAnalyticsInstalled(AnalyticsConfig.java:113)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.sun.el.parser.AstValue.invoke(Unknown Source)
    at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
(...)
Caused by: javax.naming.LinkException:  [Root exception is javax.naming.NameNotFoundException: While trying to lookup 'jdbc.ActivitiesDS' didn't find subcontext 'jdbc'. Resolved ''; remaining name 'jdbc/ActivitiesDS']; Link Remaining Name: 'jdbc/ActivitiesDS'
    at weblogic.jndi.internal.WLNamingManager.getObjectInstance(WLNamingManager.java:104)
    at weblogic.jndi.internal.BasicNamingNode.resolveObject(BasicNamingNode.java:884)
    at weblogic.jndi.internal.ApplicationNamingNode.resolveObject(ApplicationNamingNode.java:187)
    at weblogic.jndi.internal.BasicNamingNode.resolveObject(BasicNamingNode.java:856)
    at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:209)
    at weblogic.jndi.internal.ApplicationNamingNode.lookup(ApplicationNamingNode.java:132)
    at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:214)
    at weblogic.jndi.internal.ApplicationNamingNode.lookup(ApplicationNamingNode.java:132)
    at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:214)
    at weblogic.jndi.internal.ApplicationNamingNode.lookup(ApplicationNamingNode.java:132)
    at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:214)
    at weblogic.jndi.internal.ApplicationNamingNode.lookup(ApplicationNamingNode.java:132)
    at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:214)
    at weblogic.jndi.internal.ApplicationNamingNode.lookup(ApplicationNamingNode.java:132)
    at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.java:254)
    at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:411)
    at weblogic.jndi.factories.java.ReadOnlyContextWrapper.lookup(ReadOnlyContextWrapper.java:45)
    at weblogic.jndi.internal.AbstractURLContext.lookup(AbstractURLContext.java:130)
    at javax.naming.InitialContext.lookup(InitialContext.java:392)
    at com.plumtree.analytics.core.dao.jdbc.JdbcConnectionProvider.<init>(JdbcConnectionProvider.java:27)
    ... 135 more
Caused by: javax.naming.NameNotFoundException: While trying to lookup 'jdbc.ActivitiesDS' didn't find subcontext 'jdbc'. Resolved ''; remaining name 'jdbc/ActivitiesDS'
    at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:1139)
    at weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.java:247)
    at weblogic.jndi.internal.ServerNamingNode.lookupHere(ServerNamingNode.java:182)
    at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:206)
    at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.java:254)
    at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:411)
    at javax.naming.InitialContext.lookup(InitialContext.java:392)
    at weblogic.jndi.internal.WLNamingManager.getObjectInstance(WLNamingManager.java:102)
    ... 154 more
<JdbcConnectionProvider> <<init>> Error looking up datasource 'java:/comp/env/jdbc/ActivitiesDS'
<DataProviderFactory> <obtainDbProvider> Error creating DB provider
com.plumtree.analytics.core.exception.AnalyticsRuntimeException: Error looking up datasource 'java:/comp/env/jdbc/ActivitiesDS'
    at com.plumtree.analytics.core.dao.jdbc.JdbcConnectionProvider.<init>(JdbcConnectionProvider.java:30)
    at com.plumtree.analytics.core.dao.jdbc.JdbcConnectionProvider.getInstance(JdbcConnectionProvider.java:48)
    at com.plumtree.analytics.core.db.impl.DBProviderFactory.getDBProvider(DBProviderFactory.java:20)
    at oracle.webcenter.analytics.model.dataprovider.DataProviderFactory.obtainDbProvider(DataProviderFactory.java:33)
    at oracle.webcenter.analytics.model.dataprovider.DataProviderFactory.getReportDataProvider(DataProviderFactory.java:20)
    at oracle.webcenter.analytics.view.beans.AnalyticsConfig.getAnalyticsInstalled(AnalyticsConfig.java:80)
    at oracle.webcenter.analytics.view.beans.AnalyticsConfig.isAnalyticsInstalled(AnalyticsConfig.java:113)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.sun.el.parser.AstValue.invoke(Unknown Source)
    at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
(...)
Caused by: javax.naming.LinkException:  [Root exception is javax.naming.NameNotFoundException: While trying to lookup 'jdbc.ActivitiesDS' didn't find subcontext 'jdbc'. Resolved ''; remaining name 'jdbc/ActivitiesDS']; Link Remaining Name: 'jdbc/ActivitiesDS'
    at weblogic.jndi.internal.WLNamingManager.getObjectInstance(WLNamingManager.java:104)
    at weblogic.jndi.internal.BasicNamingNode.resolveObject(BasicNamingNode.java:884)
    at weblogic.jndi.internal.ApplicationNamingNode.resolveObject(ApplicationNamingNode.java:187)
    at weblogic.jndi.internal.BasicNamingNode.resolveObject(BasicNamingNode.java:856)
    at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:209)
    at weblogic.jndi.internal.ApplicationNamingNode.lookup(ApplicationNamingNode.java:132)
    at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:214)
    at weblogic.jndi.internal.ApplicationNamingNode.lookup(ApplicationNamingNode.java:132)
    at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:214)
    at weblogic.jndi.internal.ApplicationNamingNode.lookup(ApplicationNamingNode.java:132)
    at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:214)
    at weblogic.jndi.internal.ApplicationNamingNode.lookup(ApplicationNamingNode.java:132)
    at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:214)
    at weblogic.jndi.internal.ApplicationNamingNode.lookup(ApplicationNamingNode.java:132)
    at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.java:254)
    at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:411)
    at weblogic.jndi.factories.java.ReadOnlyContextWrapper.lookup(ReadOnlyContextWrapper.java:45)
    at weblogic.jndi.internal.AbstractURLContext.lookup(AbstractURLContext.java:130)
    at javax.naming.InitialContext.lookup(InitialContext.java:392)
    at com.plumtree.analytics.core.dao.jdbc.JdbcConnectionProvider.<init>(JdbcConnectionProvider.java:27)
    ... 135 more
Caused by: javax.naming.NameNotFoundException: While trying to lookup 'jdbc.ActivitiesDS' didn't find subcontext 'jdbc'. Resolved ''; remaining name 'jdbc/ActivitiesDS'
    at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:1139)
    at weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.java:247)
    at weblogic.jndi.internal.ServerNamingNode.lookupHere(ServerNamingNode.java:182)
    at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:206)
    at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.java:254)
    at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:411)
    at javax.naming.InitialContext.lookup(InitialContext.java:392)
    at weblogic.jndi.internal.WLNamingManager.getObjectInstance(WLNamingManager.java:102)
    ... 154 more
DEBUG-EVENT:sendPageEvent
OpenLog: verbosity level = 2
DEBUG-EVENT:ClientEvent[type=generatePageEvent,parameters={immediate=true, pageName=Home},component=RichDocument[UIXFacesBeanImpl, id=d1]]

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