Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

java.lang.SecurityException: sealing violation:

Tags:

java

gwt

I am using GWT for my Java application. When I try to run it as web application, I get the following error:

java.lang.SecurityException: sealing violation: can't seal package org.mortbay.util: already loaded

I can't find anything helpful if I Google for the error. Am I missing something?

like image 922
santhosh Avatar asked Apr 10 '12 17:04

santhosh


3 Answers

It means the package is sealed and you tried to load another jar also containing the package.

See Sealing Packages within a JAR File.

like image 153
Sandro Avatar answered Nov 01 '22 15:11

Sandro


Your current exception shows that you are using Jetty in your project. Possible problem might be that you have this jar available twice in your classpath.

like image 34
Shehzad Avatar answered Nov 01 '22 14:11

Shehzad


Goto your jar file,you will see .MF file.Open it.You will find Sealed:true. Edit it, make it false.Over.

like image 1
joey rohan Avatar answered Nov 01 '22 16:11

joey rohan