java.lang.SecurityException: sealing violation: can't seal package ...
Hi,
I run into a security exception when trying to debug my extension in jdeveloper 10g 10.1.3 using JDK 1.5.
The error is "java.lang.SecurityException: sealing violation: can't seal package com.sun.xml.bind.unmarshaller: already loaded"
There are classpaths to JAXB jar files added in the extension.xml file. See the followings.
<ex:extension nselem="ex:extension" ...
...
<ex:classpaths>
<ex:classpath>../lib/jaxb-api.jar</ex:classpath>
<ex:classpath>../lib/jaxb-impl.jar</ex:classpath>
<ex:classpath>../lib/jaxb-libs.jar</ex:classpath>
<ex:classpath>../lib/relaxngDatatype.jar</ex:classpath>
</ex:classpaths>
...
</ex:extension>
If the classpath to JAXB jars are removed from manifest file, I will run into a java.lang.NoClassDefFoundError: com/sun/xml/bind/unmarshaller/InterningXMLReader.
Any idea on how to fix the problem?
Thank you very much,
Justin