java.security.AccessControlException: access denied (java.lang.RuntimePermission createClassLoader)

Server Fault | Draemon | 8 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Security exception when moving from toplink to eclipselink in glassfish 2.1

    Server Fault | 8 years ago | Draemon
    java.security.AccessControlException: access denied (java.lang.RuntimePermission createClassLoader)

    Root Cause Analysis

    1. java.security.AccessControlException

      access denied (java.lang.RuntimePermission createClassLoader)

      at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.predeploy()
    2. EclipseLink (non-OSGi)
      PersistenceProvider.createContainerEntityManagerFactory
      1. org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:878)
      2. org.eclipse.persistence.jpa.PersistenceProvider.createContainerEntityManagerFactory(PersistenceProvider.java:216)
      2 frames
    3. com.sun.enterprise
      TomcatApplicationLoader.doLoad
      1. com.sun.enterprise.server.PersistenceUnitLoaderImpl.load(PersistenceUnitLoaderImpl.java:149)
      2. com.sun.enterprise.server.PersistenceUnitLoaderImpl.load(PersistenceUnitLoaderImpl.java:84)
      3. com.sun.enterprise.server.AbstractLoader.loadPersistenceUnits(AbstractLoader.java:895)
      4. com.sun.enterprise.server.ApplicationLoader.doLoad(ApplicationLoader.java:184)
      5. com.sun.enterprise.server.TomcatApplicationLoader.doLoad(TomcatApplicationLoader.java:126)
      5 frames