From derby-dev-return-72671-apmail-db-derby-dev-archive=db.apache.org@db.apache.org Tue Sep 01 14:25:55 2009 Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 93250 invoked from network); 1 Sep 2009 14:25:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Sep 2009 14:25:55 -0000 Received: (qmail 9992 invoked by uid 500); 1 Sep 2009 14:25:54 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 9938 invoked by uid 500); 1 Sep 2009 14:25:54 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 9930 invoked by uid 99); 1 Sep 2009 14:25:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Sep 2009 14:25:54 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Sep 2009 14:25:52 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id BEDFA234C045 for ; Tue, 1 Sep 2009 07:25:32 -0700 (PDT) Message-ID: <834587184.1251815132780.JavaMail.jira@brutus> Date: Tue, 1 Sep 2009 07:25:32 -0700 (PDT) From: "pragun@imcsystemsuk.com (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-4366) java.lang.SecurityException: Prohibited package name: java.sql when Derby.jar calls jdbcjsr169.jar In-Reply-To: <171460683.1251800492724.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-4366?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] pragun@imcsystemsuk.com updated DERBY-4366: ------------------------------------------- Description: (1) I have build JSR169 as per the SUN's instruction http://blogs.sun.com/wittyman/entry/building_jdbc_for_cdc_foundation Download JDBC Optional Package for CDC/Foundation Profile from http://java.sun.com/products/jdbc/download.html#cdcfp compiled with java version - jdk1.5.0_20 cd C:/jdbc_cdc1.0/cdcfoundation/src/share/jdbc/classes/ mkdir build javac -source 1.5 -target 1.5 -bootclasspath C:\java\netbeans6.7.1\mobility8\Java_ME_platform_SDK_3.0\runtimes\cdc-hi\lib\btclasses.zip;C:\java\netbeans6.7.1\mobility8\Java_ME_platform_SDK_3.0\runtimes\cdc-hi\lib\rt.jar -d build java/sql/*.java javax/sql/*.java cd build jar cvf jsr169.jar java/sql/*.class javax/sql/*.class (2) Derby10.5.3.0 as per the Apache's instruction http://svn.apache.org/viewvc/db/derby/code/trunk/BUILDING.html?view=co compiled with java version - jdk1.5.0_20 ant.properties -------------- deprecation=off sane=false printCompilerProperties=true j15lib=C:/java/jdk1.5.0_20/jre/lib;C:/java/jdk1.5.0_20/lib java15compile.classpath=C:/java/jdk1.5.0_20/jre/lib/rt.jar;C:/java/jdk1.5.0_20/jre/lib/charsets.jar;C:/java/jdk1.5.0_20/jre/lib/deploy.jar;C:/java/jdk1.5.0_20/jre/lib/javaws.jar;C:/java/jdk1.5.0_20/jre/lib/jce.jar;C:/java/jdk1.5.0_20/jre/lib/jsse.jar;C:/java/jdk1.5.0_20/jre/lib/plugin.jar;C:/java/jdk1.5.0_20/lib/dt.jar;C:/java/jdk1.5.0_20/lib/htmlconverter.jar;C:/java/jdk1.5.0_20/lib/jconsole.jar;C:/java/jdk1.5.0_20/lib/tools.jar jsr169compile.classpath=C:/java/netbeans6.7.1/mobility8/Java_ME_platform_SDK_3.0/runtimes/cdc-hi/lib/ext/btclasses.zip;C:/java/netbeans6.7.1/mobility8/Java_ME_platform_SDK_3.0/runtimes/cdc-hi/lib/ext/rt.jar;C:/java/netbeans6.7.1/mobility8/Java_ME_platform_SDK_3.0/runtimes/cdc-hi/lib/ext/jsr169.jar cd C:\java\derby10.5.3.0 ant -quiet clobber ant -quiet buildsource ant -quiet buildjars (3)copied derby.jar,derbytools.jar,jsr169.jar under C:\java\netbeans6.7.1\mobility8\Java_ME_platform_SDK_3.0\runtimes\cdc-hi\lib\ext (4)VM argument -Xbootclasspath/a:C:/java/netbeans6.7.1/mobility8/Java_ME_platform_SDK_3.0/runtimes/cdc-hi/lib/ext/jsr169.jar -cp C:/java/netbeans6.7.1/mobility8/Java_ME_platform_SDK_3.0/runtimes/cdc-hi/lib/ext/derby.jar;C:/java/netbeans6.7.1/mobility8/Java_ME_platform_SDK_3.0/runtimes/cdc-hi/lib/ext/derbytools.jar (5)C:\java\netbeans6.7.1\mobility8\Java_ME_platform_SDK_3.0\runtimes\cdc-hi\lib\security\java.policy added below lines to allow java.sql package, permission java.lang.RuntimePermission "defineClassInPackage.java.sql"; permission java.lang.RuntimePermission "accessClassInPackage.java.sql"; (6)C:\Documents and Settings\Pragun\My Documents\NetBeansProjects\CdcApplication6\nbproject\project.properties Compiled this sample application in NetBeans6.7.1 with below compilation options, javac.source=1.5 (tried with 1.3 and 1.4 as well) javac.target=1.5 (tried with 1.3 and 1.4 as well) But still getting error java.lang.SecurityException: Prohibited package name: java.sql was: (1) I have build JSR169 as per the SUN's instruction http://blogs.sun.com/wittyman/entry/building_jdbc_for_cdc_foundation Download JDBC Optional Package for CDC/Foundation Profile from http://java.sun.com/products/jdbc/download.html#cdcfp compiled with java version - jdk1.5.0_20 cd C:/jdbc_cdc1.0/cdcfoundation/src/share/jdbc/classes/ mkdir build javac -source 1.5 -target 1.5 -bootclasspath C:\java\netbeans6.7.1\mobility8\Java_ME_platform_SDK_3.0\runtimes\cdc-hi\lib\btclasses.zip;C:\java\netbeans6.7.1\mobility8\Java_ME_platform_SDK_3.0\runtimes\cdc-hi\lib\rt.jar -d build java/sql/*.java javax/sql/*.java cd build jar cvf jsr169.jar java/sql/*.class javax/sql/*.class (2) Derby10.5.3.0 as per the Apache's instruction http://svn.apache.org/viewvc/db/derby/code/trunk/BUILDING.html?view=co compiled with java version - jdk1.5.0_20 ant.properties -------------- deprecation=off sane=false printCompilerProperties=true j15lib=C:/java/jdk1.5.0_20/jre/lib;C:/java/jdk1.5.0_20/lib java15compile.classpath=C:/java/jdk1.5.0_20/jre/lib/rt.jar;C:/java/jdk1.5.0_20/jre/lib/charsets.jar;C:/java/jdk1.5.0_20/jre/lib/deploy.jar;C:/java/jdk1.5.0_20/jre/lib/javaws.jar;C:/java/jdk1.5.0_20/jre/lib/jce.jar;C:/java/jdk1.5.0_20/jre/lib/jsse.jar;C:/java/jdk1.5.0_20/jre/lib/plugin.jar;C:/java/jdk1.5.0_20/lib/dt.jar;C:/java/jdk1.5.0_20/lib/htmlconverter.jar;C:/java/jdk1.5.0_20/lib/jconsole.jar;C:/java/jdk1.5.0_20/lib/tools.jar jsr169compile.classpath=C:/java/netbeans6.7.1/mobility8/Java_ME_platform_SDK_3.0/runtimes/cdc-hi/lib/ext/btclasses.zip;C:/java/netbeans6.7.1/mobility8/Java_ME_platform_SDK_3.0/runtimes/cdc-hi/lib/ext/rt.jar;C:/java/netbeans6.7.1/mobility8/Java_ME_platform_SDK_3.0/runtimes/cdc-hi/lib/ext/jsr169.jar cd C:\java\derby10.5.3.0 ant -quiet clobber ant -quiet buildsource ant -quiet buildjars (3)copied derby.jar,derbytools.jar,jsr169.jar under C:\java\netbeans6.7.1\mobility8\Java_ME_platform_SDK_3.0\runtimes\cdc-hi\lib\ext (4)VM argument -Xbootclasspath/a:C:/java/netbeans6.7.1/mobility8/Java_ME_platform_SDK_3.0/runtimes/cdc-hi/lib/ext/jsr169.jar (5)C:\java\netbeans6.7.1\mobility8\Java_ME_platform_SDK_3.0\runtimes\cdc-hi\lib\security\java.policy added below lines to allow java.sql package, permission java.lang.RuntimePermission "defineClassInPackage.java.sql"; permission java.lang.RuntimePermission "accessClassInPackage.java.sql"; (6)C:\Documents and Settings\Pragun\My Documents\NetBeansProjects\CdcApplication6\nbproject\project.properties Compiled this sample application in NetBeans6.7.1 with below compilation options, javac.source=1.5 (tried with 1.3 and 1.4 as well) javac.target=1.5 (tried with 1.3 and 1.4 as well) But still getting error java.lang.SecurityException: Prohibited package name: java.sql > java.lang.SecurityException: Prohibited package name: java.sql when Derby.jar calls jdbcjsr169.jar > -------------------------------------------------------------------------------------------------- > > Key: DERBY-4366 > URL: https://issues.apache.org/jira/browse/DERBY-4366 > Project: Derby > Issue Type: Bug > Components: JDBC > Affects Versions: 10.5.3.0 > Environment: WindowsXP(SP3), JDK jdk1.6.0_11 and Netbeans6.7.1(with Mobility8), Derby10.5.3.0 > Reporter: pragun@imcsystemsuk.com > Attachments: CDC_Java_TM__Platform_Micro_Edition_SDK_3.0.xml, JME3-Derby Test.zip > > > (1) I have build JSR169 as per the SUN's instruction http://blogs.sun.com/wittyman/entry/building_jdbc_for_cdc_foundation > Download JDBC Optional Package for CDC/Foundation Profile from http://java.sun.com/products/jdbc/download.html#cdcfp > compiled with java version - jdk1.5.0_20 > cd C:/jdbc_cdc1.0/cdcfoundation/src/share/jdbc/classes/ > mkdir build > javac -source 1.5 -target 1.5 -bootclasspath C:\java\netbeans6.7.1\mobility8\Java_ME_platform_SDK_3.0\runtimes\cdc-hi\lib\btclasses.zip;C:\java\netbeans6.7.1\mobility8\Java_ME_platform_SDK_3.0\runtimes\cdc-hi\lib\rt.jar -d build java/sql/*.java javax/sql/*.java > cd build > jar cvf jsr169.jar java/sql/*.class javax/sql/*.class > (2) > Derby10.5.3.0 as per the Apache's instruction http://svn.apache.org/viewvc/db/derby/code/trunk/BUILDING.html?view=co > compiled with java version - jdk1.5.0_20 > ant.properties > -------------- > deprecation=off > sane=false > printCompilerProperties=true > j15lib=C:/java/jdk1.5.0_20/jre/lib;C:/java/jdk1.5.0_20/lib > java15compile.classpath=C:/java/jdk1.5.0_20/jre/lib/rt.jar;C:/java/jdk1.5.0_20/jre/lib/charsets.jar;C:/java/jdk1.5.0_20/jre/lib/deploy.jar;C:/java/jdk1.5.0_20/jre/lib/javaws.jar;C:/java/jdk1.5.0_20/jre/lib/jce.jar;C:/java/jdk1.5.0_20/jre/lib/jsse.jar;C:/java/jdk1.5.0_20/jre/lib/plugin.jar;C:/java/jdk1.5.0_20/lib/dt.jar;C:/java/jdk1.5.0_20/lib/htmlconverter.jar;C:/java/jdk1.5.0_20/lib/jconsole.jar;C:/java/jdk1.5.0_20/lib/tools.jar > jsr169compile.classpath=C:/java/netbeans6.7.1/mobility8/Java_ME_platform_SDK_3.0/runtimes/cdc-hi/lib/ext/btclasses.zip;C:/java/netbeans6.7.1/mobility8/Java_ME_platform_SDK_3.0/runtimes/cdc-hi/lib/ext/rt.jar;C:/java/netbeans6.7.1/mobility8/Java_ME_platform_SDK_3.0/runtimes/cdc-hi/lib/ext/jsr169.jar > cd C:\java\derby10.5.3.0 > ant -quiet clobber > ant -quiet buildsource > ant -quiet buildjars > (3)copied derby.jar,derbytools.jar,jsr169.jar under C:\java\netbeans6.7.1\mobility8\Java_ME_platform_SDK_3.0\runtimes\cdc-hi\lib\ext > (4)VM argument > -Xbootclasspath/a:C:/java/netbeans6.7.1/mobility8/Java_ME_platform_SDK_3.0/runtimes/cdc-hi/lib/ext/jsr169.jar -cp C:/java/netbeans6.7.1/mobility8/Java_ME_platform_SDK_3.0/runtimes/cdc-hi/lib/ext/derby.jar;C:/java/netbeans6.7.1/mobility8/Java_ME_platform_SDK_3.0/runtimes/cdc-hi/lib/ext/derbytools.jar > (5)C:\java\netbeans6.7.1\mobility8\Java_ME_platform_SDK_3.0\runtimes\cdc-hi\lib\security\java.policy > added below lines to allow java.sql package, > permission java.lang.RuntimePermission "defineClassInPackage.java.sql"; > permission java.lang.RuntimePermission "accessClassInPackage.java.sql"; > (6)C:\Documents and Settings\Pragun\My Documents\NetBeansProjects\CdcApplication6\nbproject\project.properties > Compiled this sample application in NetBeans6.7.1 with below compilation options, > javac.source=1.5 (tried with 1.3 and 1.4 as well) > javac.target=1.5 (tried with 1.3 and 1.4 as well) > But still getting error java.lang.SecurityException: Prohibited package name: java.sql -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.