"java.lang.UnsupportedOperationException: Remote JDBC disabled" Error when Running a Portlet from WebCenter Spaces

(Doc ID 1316413.1)

Last updated on JUNE 02, 2017

Applies to:

Oracle WebCenter Portal - Version 11.1.1.4.0 and later
Information in this document applies to any platform.
Checked for relevance on 29-OCT-2014

Symptoms


When attempting to call a Portlet that connect to the Database using a Data Source from within WebCenter Spaces, the following error is returned in the Portlet area:


javax.portlet.faces.BridgeException: javax.el.ELException: java.lang.UnsupportedOperationException: Remote JDBC disabled

javax.portlet.PortletException: doBridgeDispatch failed: error from Bridge in executing the request
at javax.portlet.faces.GenericFacesPortlet.doBridgeDispatch(GenericFacesPortlet.java:675)
at javax.portlet.faces.GenericFacesPortlet.doRenderDispatchInternal(GenericFacesPortlet.java:638)
at javax.portlet.faces.GenericFacesPortlet.doView(GenericFacesPortlet.java:274)
at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:328)
at javax.portlet.faces.GenericFacesPortlet.doDispatch(GenericFacesPortlet.java:245)
...

Caused by: javax.portlet.faces.BridgeException: javax.el.ELException: java.lang.UnsupportedOperationException: Remote JDBC disabled
at org.apache.myfaces.portlet.faces.bridge.BridgeImpl.doFacesRequest(BridgeImpl.java:923)
at javax.portlet.faces.GenericFacesPortlet.doBridgeDispatch(GenericFacesPortlet.java:672)
... 67 more
Caused by: javax.el.ELException: java.lang.UnsupportedOperationException: Remote JDBC disabled
at javax.el.BeanELResolver.getValue(BeanELResolver.java:266)
at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:173)
at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:200)
...
Caused by: java.lang.UnsupportedOperationException: Remote JDBC disabled
at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
...
Caused by: java.lang.UnsupportedOperationException: Remote JDBC disabled
at weblogic.jdbc.common.internal.JDBCServerHelperImpl.(JDBCServerHelperImpl.java:36)
at weblogic.jdbc.common.internal.JDBCService.initialize(JDBCService.java:91)
at weblogic.jdbc.common.internal.JDBCService.start(JDBCService.java:137)
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
... 2 more

 

STEPS:


The issue can be reproduced at will with the following steps:

  1. Create a Producer with a Portlet that connects to the database using a Data Source.
    For example:

    public class DBConnectionProvider {
       public DBConnectionProvider() {
          super();
       }

       public static Connection getConnection() throws NamingException,
           SQLException {

          System.out.println("in getConnection method");
          Context ctx = null;
          Hashtable ht = new Hashtable();
          ht.put(Context.INITIAL_CONTEXT_FACTORY,
          "weblogic.jndi.WLInitialContextFactory");
          ht.put(Context.PROVIDER_URL, "t3://server:8889");

          Connection conn = null;
          String jndilocation ="jdbc/ABC_DS";
          ctx = new InitialContext(ht);
          javax.sql.DataSource ds
              = (javax.sql.DataSource) ctx.lookup (jndilocation);
          conn = ds.getConnection();

          System.out.println("exiting getConnection method");
          return conn;
       }
    }


  2. Create a data source with jdbc/ABS_DS name on a WebCenter domain and target the data source to the WC_Portlet managed server.

  3. Deploy the producer to the WC_Portlet managed server.

  4. Register the Producer in WebCenter Spaces.

  5. Add the portlet to a page in WebCenter Spaces.
    The Portlet will display the above error.

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