|
Great analysis... This probably explains why some people see this
problem where as others don't, depending on the order of JAR files in
your CLASSPATH. Satheesh Tomohito Nakayama (JIRA) wrote: [ http://issues.apache.org/jira/browse/DERBY-496?page=comments#action_12317906 ]Tomohito Nakayama commented on DERBY-496: ----------------------------------------- I found that org.apache.derby.iapi.services.diag package exists in multiple jarfile. [EMAIL PROTECTED]:~/ProgramDev/derby/trunk/jars/sane$ jar tf derby.jar > derby.jar.list [EMAIL PROTECTED]:~/ProgramDev/derby/trunk/jars/sane$ jar tf derbyTesting.jar > derbyTesting.jar.list [EMAIL PROTECTED]:~/ProgramDev/derby/trunk/jars/sane$ grep "org.apache.derby.iapi.services.diag" derby.jar.list org/apache/derby/iapi/services/diag/DiagnosticUtil.class org/apache/derby/iapi/services/diag/Diagnosticable.class [EMAIL PROTECTED]:~/ProgramDev/derby/trunk/jars/sane$ grep "org.apache.derby.iapi.services.diag" derbyTesting.jar.list org/apache/derby/iapi/services/diag/DiagnosticUtil.class org/apache/derby/iapi/services/diag/Diagnosticable.class org/apache/derby/iapi/services/diag/DiagnosticableGeneric.class [EMAIL PROTECTED]:~/ProgramDev/derby/trunk/jars/sane$ This seems to be the reason why SecurityException happened. Spec says ... A package sealed within a JAR specifies that all classes defined in that package must originate from the same JAR. Otherwise, a SecurityException is thrown (citation from http://java.sun.com/j2se/1.4.2/docs/guide/extensions/spec.html#sealing) |
- Re: [jira] Commented: (DERBY-496) unit test 'org.... Satheesh Bandaram
- Re: [jira] Commented: (DERBY-496) unit test ... TomohitoNakayama
- [jira] Commented: (DERBY-496) unit test 'org... Tomohito Nakayama (JIRA)
- [jira] Commented: (DERBY-496) unit test 'org... Tomohito Nakayama (JIRA)
- Re: [jira] Commented: (DERBY-496) unit t... Daniel John Debrunner
- Re: [jira] Commented: (DERBY-496) un... TomohitoNakayama
- Issue of removing Diagnostic fra... TomohitoNakayama
- [jira] Commented: (DERBY-496) unit test 'org... Tomohito Nakayama (JIRA)
- Re: [jira] Commented: (DERBY-496) unit t... TomohitoNakayama
- [jira] Commented: (DERBY-496) unit test 'org... Tomohito Nakayama (JIRA)
