If I remember rightly a sealing violation is thrown when you're using a package which is 'sealed' (the manifest specifies that all classes from that package must be loaded from that library). Are you sure you're not trying to load the classes from multiple packages, i.e. have competing libraries in your classpath?
Regerds,
James
-----Original Message-----
From: Cannon, Scott [mailto:[EMAIL PROTECTED]]
Sent: 28 June 2001 20:06
To: '[EMAIL PROTECTED]'
Subject: java.lang.SecurityException: sealing violation
Any idea why I would get this error:
java.lang.SecurityException: sealing violation
when executing the following:
import java.io.*;
import org.apache.fop.apps.*;
import org.w3c.dom.*;
import org.xml.sax.*;
public class testing2 {
public static void main(String[] args) {
Document doc =
XmlUtils.CreateDocument("FILE","E:/test/border.fo");
Driver driver = null;
try {
===> driver = new Driver(new InputSource(new
StringReader("E:/test/border.fo")),
new
FileOutputStream("e:/test/testthis.pdf"));
} catch (FileNotFoundException fnfe) {
fnfe.printStackTrace();
}
The error is occuring where the ===> is above.
The error trace is:
java.lang.SecurityException: sealing violation
at java.net.URLClassLoader.defineClass(URLClassLoader.java:234)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at TestFOP.testing2.main(testing2.java:20)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]
**********************************************************************
This e-mail (including any documents which may accompany it) contains
information which is confidential and may also be privileged.
It is for the exclusive use of the intended recipient(s).
If you are not the intended recipient(s) please note that any form of
distribution, copying or use of this e-mail or the information in it
or attached to it is strictly prohibited and may be unlawful.
If you have received this e-mail in error please notify us immediately
by e-mail to [EMAIL PROTECTED] or telephone +44 (0)207 940 1200 and
delete the e-mail.
Please advise immediately if you or your employer do not consent to
Internet E-Mail for messages of this type.
Information or opinions in this message that do not relate to the
business of Windsor plc and/or subsidiary and/or associated companies
shall be treated as neither given or endorsed by it.
**********************************************************************