Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

java.lang.SecurityException: sealing violation: can't seal package ...

438504Feb 16 2005
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 16 2005
Added on Feb 16 2005
0 comments
1,344 views