Friday, February 28, 2014

Caused by: java.lang.UnsupportedOperationException: Remote JDBC disabled

I was creating one utility in which there was interaction with database. I was passing the data source name and URL of application server (Weblogic) from the properties file and creating the database connection. But while running the program I was getting the below error:

Exception in thread "main" java.lang.UnsupportedOperationException: Remote JDBC disabled at weblogic.rjvm.ResponseImpl.unmarshalReturn( at weblogic.rmi.cluster.ClusterableRemoteRef.invoke( at weblogic.rmi.cluster.ClusterableRemoteRef.invoke( at weblogic.jdbc.common.internal.RmiDataSource_1035_WLStub.getConnection(Unknown Source) at ae.dso.common.DBConn.getConnection( at by: java.lang.UnsupportedOperationException: Remote JDBC disabled at weblogic.jdbc.common.internal.JDBCServerHelperImpl.<clinit>( at weblogic.jdbc.common.internal.JDBCService.initialize( at weblogic.jdbc.common.internal.JDBCService.start( at at at

This error comes because your weblogic does not allow you to perform any database operation remotely. So in that case you have to enable the JDBC access in weblogic.

  1. Go to the Weblogic Domain Directory and edit the file i.e %MW_HOME%\user project\domains\<your domain>\bin.
  2. Modify WLS_JDBC_REMOTE_ENABLED value false to true. i.e WLS_JDBC_REMOTE_ENABLED="-Dweblogic.jdbc.remoteEnabled=true"
  3. Restart the WebLogic Servers.

No comments:

Post a Comment