Using Jtds Driver to Connect to SQLServer from Java Stored Procedure fails with Prohibited package name: java.sql (Doc ID 782172.1)

Last updated on JULY 05, 2017

Applies to:

Oracle Server - Enterprise Edition - Version 10.1.0.2 and later
Information in this document applies to any platform.
This problem can occur on any platform.

Symptoms

After upgrade to 10.2 connection from java stored procedure to SQLServer using jTDS driver fails with

Cause: FDPSTP failed due to ORA-29532: Java call terminated by uncaught Java exception:
java.lang.InternalError: Prohibited package name: java.sql


Also loading jdbc3_0-ext.jar (which is part of JTDS driver) into 10.2 fails with

resolving: class APPS.java/sql/ParameterMetaData
errors : class APPS.java/sql/ParameterMetaData
ORA-29552: verification warning: java.lang.SecurityException: Prohibited package name: java.sql

resolving: class APPS.java/sql/Savepoint
errors : class APPS.java/sql/Savepoint
ORA-29552: verification warning: java.lang.SecurityException: Prohibited package name: java.sql

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