Hi everyone,

Hello from a new member.

Would anyone care to interpret the following exception for me?

[itemmgr/ProductManager] java.lang.SecurityException: sealing violation
[itemmgr/ProductManager]        at
java.net.URLClassLoader.defineClass(Unknown Source)
[itemmgr/ProductManager]        at
java.net.URLClassLoader.access$100(Unknown Source)
[itemmgr/ProductManager]        at java.net.URLClassLoader$1.run(Unknown
Source)
[itemmgr/ProductManager]        at
java.security.AccessController.doPrivileged(Native Method)
[itemmgr/ProductManager]        at java.net.URLClassLoader.findClass(Unknown
Source)
[itemmgr/ProductManager]        at
javax.management.loading.MLet.findClass(MLet.java:775)
[itemmgr/ProductManager]        at java.lang.ClassLoader.loadClass(Unknown
Source)
[itemmgr/ProductManager]        at java.lang.ClassLoader.loadClass(Unknown
Source)
[itemmgr/ProductManager]        at
java.lang.ClassLoader.loadClassInternal(Unknown Source)
[itemmgr/ProductManager]        at
org.apache.crimson.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Docume
ntBuilderFactoryImpl.java:88)
[itemmgr/ProductManager]        at
com.rubus.cms.common.ItemDictionary.loadXML(ItemDictionary.java:345)
...

It happens when on the line             

        db = dbf.newDocumentBuilder();

in the following chunk of code...

      DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();

      DocumentBuilder db = null;
      try
      {
            db = dbf.newDocumentBuilder();
      }
      catch (ParserConfigurationException pce)
      {
                // TODO: Handle exception correctly
            System.err.println(pce);
            return null ;
      }

To add to the mystery, I can run the ItemDictionary class on it's own
without any errors. However, in real life it's used as a support class for
an EJB that is being deployed on JBoss. The above exception is only thrown
when it's run in the JBoss context.

I'm using version 2 Final.

Anyone want to hazard a guess as to what's going wrong?

Cheers,
Ian.




______________________________________________

Ian Priest

t +44 (0) 1344 644162  |  m +44 (0) 7970 243401  |  f +44 (0) 1344 644190
a  Rubus Court  |  Eastern Road  |  Bracknell  |  Berkshire  RG12 2UP  |  UK

Rubus provides e-business solutions that turn innovative ideas
into practical business reality.
______________________________________________
:: rubus   |    www.rubus.com

Any views or opinions presented are solely those of the author
and do not necessarily represent those of Rubus.







--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]

Reply via email to