You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Pawson, David" <Da...@rnib.org.uk> on 2004/11/02 10:30:14 UTC

What's a sealing violation please?

>From the log

2004-11-02 09:24:51 StandardContext[/servlets-examples]SessionListener: contextInitialized()
2004-11-02 09:25:52 StandardWrapperValve[putpr]: Servlet.service() for servlet putpr threw exception
java.lang.SecurityException: sealing violation: can't seal package nu.xom: already loaded
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:234)
	at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:187)



Any help appreciated.


Regards DaveP.

**** snip here *****

-- 
DISCLAIMER:

NOTICE: The information contained in this email and any attachments is 
confidential and may be privileged.  If you are not the intended 
recipient you should not use, disclose, distribute or copy any of the 
content of it or of any attachment; you are requested to notify the 
sender immediately of your receipt of the email and then to delete it 
and any attachments from your system.

RNIB endeavours to ensure that emails and any attachments generated by
its staff are free from viruses or other contaminants.  However, it 
cannot accept any responsibility for any  such which are transmitted.
We therefore recommend you scan all attachments.

Please note that the statements and views expressed in this email and 
any attachments are those of the author and do not necessarily represent
those of RNIB.

RNIB Registered Charity Number: 226227

Website: http://www.rnib.org.uk




---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: What's a sealing violation please?

Posted by Jon Wingfield <jo...@mkodo.com>.
It's part of the core java security model. If a package is sealed within 
a jar then packages of the same name cannot be defined in another jar, 
or elsewhere on the classpath.

Within the manifest file of the jar file which is being loaded by your 
putpr servlet you'll probably have a couple of lines like:

Name: nu/xom
Sealed: true

The XOM jar that I have (xom-1.0d8.jar) doesn't seal its packages. So, 
you need to find the jar which is sealing the nu.xom package and stop it 
doing so. (Or work out your xom dependencies)

Regards,

Jon

Pawson, David wrote:
>>>From the log
> 
> 2004-11-02 09:24:51 StandardContext[/servlets-examples]SessionListener: contextInitialized()
> 2004-11-02 09:25:52 StandardWrapperValve[putpr]: Servlet.service() for servlet putpr threw exception
> java.lang.SecurityException: sealing violation: can't seal package nu.xom: already loaded
> 	at java.net.URLClassLoader.defineClass(URLClassLoader.java:234)
> 	at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
> 	at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
> 
> 
> 
> Any help appreciated.
> 
> 
> Regards DaveP.
> 
> **** snip here *****
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org