Re: What's a sealing violation please?

2004-11-02 Thread Jon Wingfield
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: What's a sealing violation please?

2004-11-02 Thread Pawson, David
 Thanks for the reply Jon.

-Original Message-
From: Jon Wingfield 
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)

I'm guessing its xercesImpl jar? Having removed it the error 'went'.
I also got a clue, just import nu.xom.*; rather than individual ones?
 Unsure which  one cleared the error,
but its OK now.

  What the heck do I do if I want xom to validate?

regard sDaveP



-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: What's a sealing violation?

2001-05-17 Thread Warren Crossing

search through some of the tomcat archives.. basically their really annoying
classloader problems.. when it tries to load a jar library and its already
loaded. you can add a line to the manifest of the jar file.. but like i said
search this archive.. theres heaps of stuff about them.

regards,

warren


-Original Message-
From: Stephen Coy [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 17 May 2001 4:31 PM
To: [EMAIL PROTECTED]
Subject: Re: What's a sealing violation?


The release notes tell all...

And it only took me a week to figure that out too :-)

Stephen Coy

On Thursday, May 17, 2001, at 02:53  PM, Kevin Newman wrote:

 Hi All,

 Hardware:IBM ThinkPad
 OS:Windows2000
 Servlet Engine:Tomcat 4.0 B6-Dev

 Can anyone tell me what's a sealing violation (see stack trace 
 below)?   I'm
 using the nightly build of Tomcat and it works fine on my Desktop system
 with Struts in the webapps directory. But, for some reason I can't seem 
 to
 get Struts to work on my laptop.  There does not appear to be any 
 difference
 in the environmental settings, but anything other than the Tomcat index 
 page
 or the struts-documentation produces an exception.  Has anyone else out
 there seen this problem?




RE: What's a sealing violation?

2001-05-17 Thread Kevin Newman

Thanks Stephen,

Next time I'll RTFM. grin  I should know better.

peace,

kln

-Original Message-
From: Stephen Coy [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 17, 2001 1:31 AM
To: [EMAIL PROTECTED]
Subject: Re: What's a sealing violation?


The release notes tell all...

And it only took me a week to figure that out too :-)

Stephen Coy

On Thursday, May 17, 2001, at 02:53  PM, Kevin Newman wrote:

 Hi All,

 Hardware:IBM ThinkPad
 OS:Windows2000
 Servlet Engine:Tomcat 4.0 B6-Dev

 Can anyone tell me what's a sealing violation (see stack trace 
 below)?   I'm
 using the nightly build of Tomcat and it works fine on my Desktop system
 with Struts in the webapps directory. But, for some reason I can't seem 
 to
 get Struts to work on my laptop.  There does not appear to be any 
 difference
 in the environmental settings, but anything other than the Tomcat index 
 page
 or the struts-documentation produces an exception.  Has anyone else out
 there seen this problem?




RE: What's a sealing violation?

2001-05-17 Thread Kevin Newman

Thanks Warren,

Next time I'll RTFM. grin  I should know better.

peace,

kln

-Original Message-
From: Warren Crossing [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 17, 2001 2:57 AM
To: '[EMAIL PROTECTED]'
Subject: RE: What's a sealing violation?


search through some of the tomcat archives.. basically their really annoying
classloader problems.. when it tries to load a jar library and its already
loaded. you can add a line to the manifest of the jar file.. but like i said
search this archive.. theres heaps of stuff about them.

regards,

warren


-Original Message-
From: Stephen Coy [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 17 May 2001 4:31 PM
To: [EMAIL PROTECTED]
Subject: Re: What's a sealing violation?


The release notes tell all...

And it only took me a week to figure that out too :-)

Stephen Coy

On Thursday, May 17, 2001, at 02:53  PM, Kevin Newman wrote:

 Hi All,

 Hardware:IBM ThinkPad
 OS:Windows2000
 Servlet Engine:Tomcat 4.0 B6-Dev

 Can anyone tell me what's a sealing violation (see stack trace
 below)?   I'm
 using the nightly build of Tomcat and it works fine on my Desktop system
 with Struts in the webapps directory. But, for some reason I can't seem
 to
 get Struts to work on my laptop.  There does not appear to be any
 difference
 in the environmental settings, but anything other than the Tomcat index
 page
 or the struts-documentation produces an exception.  Has anyone else out
 there seen this problem?