java.lang.SecurityException: sealing violation: can't seal package javax.naming: already loaded

Atlassian JIRA | Jun Yang | 1 decade ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    I have installed JIRA 2.6.1 on Jetty 4.2.22 but it failed to run. My database is PostgreSQL 8.0b3. I followed the Jetty install doc to download the extra jars, modified entityengine.xml. When Jetty starts the JIRA context, I get the following errors: 23:27:49.187 EVENT file:/opt/jetty-4.2.22/webapps/jira/ anti-aliased to file:/opt/jira-professional-2.6.1/deployed-war/ 23:27:49.983 EVENT Started WebApplicationContext[/jira,Atlassian JIRA Web Application] 2004-10-03 23:27:50,705 WARN [atlassian.jira.upgrade.ConsistencyCheckImpl] Detected that you are using Tomcat or Websphere - turned off all transactions. 2004-10-03 23:27:51,604 ERROR [NoModule] java.lang.SecurityException: sealing violation: can't seal package javax.naming: 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) at org.mortbay.http.ContextLoader.loadClass(ContextLoader.java:197) at org.mortbay.http.ContextLoader.loadClass(ContextLoader.java:170) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:1610) at java.lang.Class.getConstructor0(Class.java:1922) at java.lang.Class.newInstance0(Class.java:278) at java.lang.Class.newInstance(Class.java:261) at org.ofbiz.core.entity.TransactionFactory.getTransactionFactory(TransactionFactory.java:68) at org.ofbiz.core.entity.TransactionFactory.getConnection(TransactionFactory.java:99) at org.ofbiz.core.entity.ConnectionFactory.getConnection(ConnectionFactory.java:53) ... Here here all Jetty's jars upon the request of Scott: [root@hebron (/opt/jetty)]# find . -name "*.jar" ./ext/ant.jar ./ext/jasper-compiler.jar ./ext/jasper-runtime.jar ./ext/jcert.jar ./ext/jmxri.jar ./ext/jmxtools.jar ./ext/jnet.jar ./ext/jsse.jar ./ext/xercesImpl.jar ./ext/xml-apis.jar ./lib/javax.servlet.jar ./lib/org.mortbay.jetty.jar ./lib/org.mortbay.jmx.jar ./extra/lib/org.mortbay.jetty-jdk1.2.jar ./extra/lib/org.mortbay.jmx-jdk1.2.jar ./start.jar ./stop.jar

    Atlassian JIRA | 1 decade ago | Jun Yang
    java.lang.SecurityException: sealing violation: can't seal package javax.naming: already loaded
  2. 0

    Apparently if JIRA and Confluence are deployed in the same Jetty instance, two instances of the JNDI jars are loaded, causing an error. JRA-4802. I have installed JIRA 2.6.1 on Jetty 4.2.22 but it failed to run. My database is PostgreSQL 8.0b3. I followed the Jetty install doc to download the extra jars, modified entityengine.xml. When Jetty starts the JIRA context, I get the following errors: 23:27:49.187 EVENT file:/opt/jetty-4.2.22/webapps/jira/ anti-aliased to file:/opt/jira-professional-2.6.1/deployed-war/ 23:27:49.983 EVENT Started WebApplicationContext[/jira,Atlassian JIRA Web Application] 2004-10-03 23:27:50,705 WARN [atlassian.jira.upgrade.ConsistencyCheckImpl] Detected that you are using Tomcat or Websphere - turned off all transactions. 2004-10-03 23:27:51,604 ERROR [NoModule] java.lang.SecurityException: sealing violation: can't seal package javax.naming: 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) at org.mortbay.http.ContextLoader.loadClass(ContextLoader.java:197) at org.mortbay.http.ContextLoader.loadClass(ContextLoader.java:170) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:1610) at java.lang.Class.getConstructor0(Class.java:1922) at java.lang.Class.newInstance0(Class.java:278) at java.lang.Class.newInstance(Class.java:261) at org.ofbiz.core.entity.TransactionFactory.getTransactionFactory(TransactionFactory.java:68) at org.ofbiz.core.entity.TransactionFactory.getConnection(TransactionFactory.java:99) at org.ofbiz.core.entity.ConnectionFactory.getConnection(ConnectionFactory.java:53) ... Here here all Jetty's jars upon the request of Scott: [root@hebron (/opt/jetty)]# find . -name "*.jar" ./ext/ant.jar ./ext/jasper-compiler.jar ./ext/jasper-runtime.jar ./ext/jcert.jar ./ext/jmxri.jar ./ext/jmxtools.jar ./ext/jnet.jar ./ext/jsse.jar ./ext/xercesImpl.jar ./ext/xml-apis.jar ./lib/javax.servlet.jar ./lib/org.mortbay.jetty.jar ./lib/org.mortbay.jmx.jar ./extra/lib/org.mortbay.jetty-jdk1.2.jar ./extra/lib/org.mortbay.jmx-jdk1.2.jar ./start.jar ./stop.jar

    Atlassian JIRA | 1 decade ago | Jeff Turner
    java.lang.SecurityException: sealing violation: can't seal package javax.naming: already loaded
  3. 0

    I have installed JIRA 2.6.1 on Jetty 4.2.22 but it failed to run. My database is PostgreSQL 8.0b3. I followed the Jetty install doc to download the extra jars, modified entityengine.xml. When Jetty starts the JIRA context, I get the following errors: 23:27:49.187 EVENT file:/opt/jetty-4.2.22/webapps/jira/ anti-aliased to file:/opt/jira-professional-2.6.1/deployed-war/ 23:27:49.983 EVENT Started WebApplicationContext[/jira,Atlassian JIRA Web Application] 2004-10-03 23:27:50,705 WARN [atlassian.jira.upgrade.ConsistencyCheckImpl] Detected that you are using Tomcat or Websphere - turned off all transactions. 2004-10-03 23:27:51,604 ERROR [NoModule] java.lang.SecurityException: sealing violation: can't seal package javax.naming: 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) at org.mortbay.http.ContextLoader.loadClass(ContextLoader.java:197) at org.mortbay.http.ContextLoader.loadClass(ContextLoader.java:170) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:1610) at java.lang.Class.getConstructor0(Class.java:1922) at java.lang.Class.newInstance0(Class.java:278) at java.lang.Class.newInstance(Class.java:261) at org.ofbiz.core.entity.TransactionFactory.getTransactionFactory(TransactionFactory.java:68) at org.ofbiz.core.entity.TransactionFactory.getConnection(TransactionFactory.java:99) at org.ofbiz.core.entity.ConnectionFactory.getConnection(ConnectionFactory.java:53) ... Here here all Jetty's jars upon the request of Scott: [root@hebron (/opt/jetty)]# find . -name "*.jar" ./ext/ant.jar ./ext/jasper-compiler.jar ./ext/jasper-runtime.jar ./ext/jcert.jar ./ext/jmxri.jar ./ext/jmxtools.jar ./ext/jnet.jar ./ext/jsse.jar ./ext/xercesImpl.jar ./ext/xml-apis.jar ./lib/javax.servlet.jar ./lib/org.mortbay.jetty.jar ./lib/org.mortbay.jmx.jar ./extra/lib/org.mortbay.jetty-jdk1.2.jar ./extra/lib/org.mortbay.jmx-jdk1.2.jar ./start.jar ./stop.jar

    Atlassian JIRA | 1 decade ago | Jun Yang
    java.lang.SecurityException: sealing violation: can't seal package javax.naming: already loaded
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Apparently if JIRA and Confluence are deployed in the same Jetty instance, two instances of the JNDI jars are loaded, causing an error. JRA-4802. I have installed JIRA 2.6.1 on Jetty 4.2.22 but it failed to run. My database is PostgreSQL 8.0b3. I followed the Jetty install doc to download the extra jars, modified entityengine.xml. When Jetty starts the JIRA context, I get the following errors: 23:27:49.187 EVENT file:/opt/jetty-4.2.22/webapps/jira/ anti-aliased to file:/opt/jira-professional-2.6.1/deployed-war/ 23:27:49.983 EVENT Started WebApplicationContext[/jira,Atlassian JIRA Web Application] 2004-10-03 23:27:50,705 WARN [atlassian.jira.upgrade.ConsistencyCheckImpl] Detected that you are using Tomcat or Websphere - turned off all transactions. 2004-10-03 23:27:51,604 ERROR [NoModule] java.lang.SecurityException: sealing violation: can't seal package javax.naming: 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) at org.mortbay.http.ContextLoader.loadClass(ContextLoader.java:197) at org.mortbay.http.ContextLoader.loadClass(ContextLoader.java:170) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:1610) at java.lang.Class.getConstructor0(Class.java:1922) at java.lang.Class.newInstance0(Class.java:278) at java.lang.Class.newInstance(Class.java:261) at org.ofbiz.core.entity.TransactionFactory.getTransactionFactory(TransactionFactory.java:68) at org.ofbiz.core.entity.TransactionFactory.getConnection(TransactionFactory.java:99) at org.ofbiz.core.entity.ConnectionFactory.getConnection(ConnectionFactory.java:53) ... Here here all Jetty's jars upon the request of Scott: [root@hebron (/opt/jetty)]# find . -name "*.jar" ./ext/ant.jar ./ext/jasper-compiler.jar ./ext/jasper-runtime.jar ./ext/jcert.jar ./ext/jmxri.jar ./ext/jmxtools.jar ./ext/jnet.jar ./ext/jsse.jar ./ext/xercesImpl.jar ./ext/xml-apis.jar ./lib/javax.servlet.jar ./lib/org.mortbay.jetty.jar ./lib/org.mortbay.jmx.jar ./extra/lib/org.mortbay.jetty-jdk1.2.jar ./extra/lib/org.mortbay.jmx-jdk1.2.jar ./start.jar ./stop.jar

    Atlassian JIRA | 1 decade ago | Jeff Turner
    java.lang.SecurityException: sealing violation: can't seal package javax.naming: already loaded
  6. 0

    [0.13.7-RC3] java.lang.SecurityException in Jetty

    GitHub | 2 years ago | japgolly
    java.lang.SecurityException: class "javax.servlet.http.HttpSessionIdListener"'s signer information does not match signer information of other classes in the same package

    2 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.SecurityException

      sealing violation: can't seal package javax.naming: already loaded

      at java.net.URLClassLoader.defineClass()
    2. Java RT
      URLClassLoader.findClass
      1. java.net.URLClassLoader.defineClass(URLClassLoader.java:234)
      2. java.net.URLClassLoader.access$100(URLClassLoader.java:55)
      3. java.net.URLClassLoader$1.run(URLClassLoader.java:194)
      4. java.security.AccessController.doPrivileged(Native Method)
      5. java.net.URLClassLoader.findClass(URLClassLoader.java:187)
      5 frames
    3. org.mortbay.http
      ContextLoader.loadClass
      1. org.mortbay.http.ContextLoader.loadClass(ContextLoader.java:197)
      2. org.mortbay.http.ContextLoader.loadClass(ContextLoader.java:170)
      2 frames
    4. Java RT
      Class.newInstance
      1. java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
      2. java.lang.Class.getDeclaredConstructors0(Native Method)
      3. java.lang.Class.privateGetDeclaredConstructors(Class.java:1610)
      4. java.lang.Class.getConstructor0(Class.java:1922)
      5. java.lang.Class.newInstance0(Class.java:278)
      6. java.lang.Class.newInstance(Class.java:261)
      6 frames
    5. org.ofbiz.core
      ConnectionFactory.getConnection
      1. org.ofbiz.core.entity.TransactionFactory.getTransactionFactory(TransactionFactory.java:68)
      2. org.ofbiz.core.entity.TransactionFactory.getConnection(TransactionFactory.java:99)
      3. org.ofbiz.core.entity.ConnectionFactory.getConnection(ConnectionFactory.java:53)
      3 frames