title: Exception EclipseLink
body: <p>I try to deploy service that retrieves data from table and diplay it over https using REST Jersey with Glassfish What I did is i configured the https and it works also I tested a jpa it can retrieves data from table, but the problem is when i merge between the jpa treatment and service Jersey, it throws exceptions below, so if anyone has a solution please tell me what ca do to solve this problem thanks:</p>
  
  <pre><code>java.lang.ExceptionInInitializerError
  
  root cause
  
  Exception [EclipseLink-30005] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.PersistenceUnitLoadingException Exception Description: An exception was thrown while searching for persistence archives with ClassLoader: WebappClassLoader (delegate=true; repositories=WEB-INF/classes/) Internal Exception: javax.persistence.PersistenceException: Exception [EclipseLink-28018] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.EntityManagerSetupException Exception Description: Predeployment of PersistenceUnit [] failed. Internal Exception: Exception [EclipseLink-7305] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.ValidationException Exception Description: An exception was thrown while processing the mapping file from URL: [file:glassfish/domains/domain1/eclipseApps//WEB-INF/classes/META-INF/orm.xml], error using JPA 1.0 orm.xsd was [Exception [EclipseLink-0] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.IntegrityException
  Descriptor Exceptions:
  
  Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setCascade], [getCascade] in the object [org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.VariableOneToOneAccessor] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLCompositeObjectMapping[m_cascade] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.VariableOneToOneAccessor --&gt; [])
  
  Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setDiscriminatorColumn], [getDiscriminatorColumn] in the object [org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.VariableOneToOneAccessor] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLCompositeObjectMapping[m_discriminatorColumn] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.VariableOneToOneAccessor --&gt; [])
  
  Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setDiscriminatorClasses], [getDiscriminatorClasses] in the object [org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.VariableOneToOneAccessor] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLCompositeCollectionMapping[m_discriminatorClasses] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.VariableOneToOneAccessor --&gt; [])
  
  Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setJoinColumns], [getJoinColumns] in the object [org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.VariableOneToOneAccessor] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLCompositeCollectionMapping[m_joinColumns] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.VariableOneToOneAccessor --&gt; [])
  
  Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setPrivateOwned], [getPrivateOwned] in the object [org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.VariableOneToOneAccessor] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLDirectMapping[m_privateOwned--&gt;orm:private-owned/text()] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.VariableOneToOneAccessor --&gt; [])
  
  Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setSelectedColumns], [getSelectedColumns] in the object [org.eclipse.persistence.internal.jpa.metadata.locking.OptimisticLockingMetadata] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLCompositeCollectionMapping[m_selectedColumns] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.locking.OptimisticLockingMetadata --&gt; [])
  
  Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setType], [getType] in the object [org.eclipse.persistence.internal.jpa.metadata.locking.OptimisticLockingMetadata] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLDirectMapping[m_type--&gt;@type] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.locking.OptimisticLockingMetadata --&gt; [])
  
  Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setName], [getName] in the object [org.eclipse.persistence.internal.jpa.metadata.columns.PrimaryKeyJoinColumnMetadata] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLDirectMapping[m_name--&gt;@name] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.columns.PrimaryKeyJoinColumnMetadata --&gt; [])
  
  Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setName], [getName] in the object [org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.TransientAccessor] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLDirectMapping[m_name--&gt;@name] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.TransientAccessor --&gt; [])
  
  Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setHints], [getHints] in the object [org.eclipse.persistence.internal.jpa.metadata.queries.NamedStoredProcedureQueryMetadata] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLCompositeCollectionMapping[m_hints] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.queries.NamedStoredProcedureQueryMetadata --&gt; [])
  
  Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setParameters], [getParameters] in the object [org.eclipse.persistence.internal.jpa.metadata.queries.NamedStoredProcedureQueryMetadata] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLCompositeCollectionMapping[m_parameters] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.queries.NamedStoredProcedureQueryMetadata --&gt; [])
  
  Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setName], [getName] in the object [org.eclipse.persistence.internal.jpa.metadata.queries.NamedStoredProcedureQueryMetadata] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLDirectMapping[m_name--&gt;@name] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.queries.NamedStoredProcedureQueryMetadata --&gt; [])
  
  Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setColumn], [getColumn] in the object [org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.VersionAccessor] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLCompositeObjectMapping[m_column] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.VersionAccessor --&gt; [])
  
  Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setTemporal], [getTemporal] in the object [org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.VersionAccessor] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLCompositeObjectMapping[m_temporal] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.VersionAccessor --&gt; [])
  
  Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setConvert], [getConvert] in the object [org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.VersionAccessor] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLDirectMapping[m_convert--&gt;orm:convert/text()] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.VersionAccessor --&gt; [])
  
  Exception [EclipseLink-86] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The instance variable [m_validation] in the class [org.eclipse.persistence.internal.jpa.metadata.PrimaryKeyMetadata] is not accessible. Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLDirectMapping[m_validation--&gt;@validation] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.PrimaryKeyMetadata --&gt; [])
  
  Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setOrderBy], [getOrderBy] in the object [org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.ManyToManyAccessor] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLDirectMapping[m_orderBy--&gt;orm:order-by/text()] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.accessors.mappings.ManyToManyAccessor --&gt; [])
  
  Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setQuery], [getQuery] in the object [org.eclipse.persistence.internal.jpa.metadata.queries.NamedQueryMetadata] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLDirectMapping[m_query--&gt;orm:query/text()] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.queries.NamedQueryMetadata --&gt; [])
  
  Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setGetMethodName], [getGetMethodName] in the object [org.eclipse.persistence.internal.jpa.metadata.mappings.AccessMethodsMetadata] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLDirectMapping[m_getMethodName--&gt;@get-method] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.mappings.AccessMethodsMetadata --&gt; [])
  
  Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setName], [getName] in the object [org.eclipse.persistence.internal.jpa.metadata.columns.ColumnMetadata] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLDirectMapping[m_name--&gt;@name] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.columns.ColumnMetadata --&gt; [])
  
  Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setName], [getName] in the object [org.eclipse.persistence.internal.jpa.metadata.mappings.MapKeyMetadata] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLDirectMapping[m_name--&gt;@name] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.mappings.MapKeyMetadata --&gt; [])
  
  Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setDescription], [getDescription] in the object [org.eclipse.persistence.internal.jpa.metadata.accessors.classes.EmbeddableAccessor] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLDirectMapping[m_description--&gt;orm:description/text()] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.accessors.classes.EmbeddableAccessor --&gt; [])
  
  Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setStrategy], [getStrategy] in the object [org.eclipse.persistence.internal.jpa.metadata.sequencing.GeneratedValueMetadata] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLDirectMapping[m_strategy--&gt;@strategy] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.sequencing.GeneratedValueMetadata --&gt; [])
  
  Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setXMLMappingMetadataComplete], [getXMLMappingMetadataComplete] in the object [org.eclipse.persistence.internal.jpa.metadata.xml.XMLPersistenceUnitMetadata] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLDirectMapping[m_xmlMappingMetadataComplete--&gt;orm:xml-mapping-metadata-complete/text()] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.xml.XMLPersistenceUnitMetadata --&gt; [])
  
  Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setName], [getName] in the object [org.eclipse.persistence.internal.jpa.metadata.sequencing.SequenceGeneratorMetadata] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLDirectMapping[m_name--&gt;@name] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.sequencing.SequenceGeneratorMetadata --&gt; [])
  
  Exception [EclipseLink-87] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.DescriptorException Exception Description: The methods [setUniqueConstraints], [getUniqueConstraints] in the object [org.eclipse.persistence.internal.jpa.metadata.sequencing.TableGeneratorMetadata] are not accessible Internal Exception: java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) Mapping: org.eclipse.persistence.oxm.mappings.XMLCompositeCollectionMapping[m_uniqueConstraints] Descriptor: XMLDescriptor(org.eclipse.persistence.internal.jpa.metadata.sequencing.TableGeneratorMetadata --&gt; [])
  
  java.lang.NullPointerException
  
  java.lang.NullPointerException
  
  java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks)
  
  java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks)
  </code></pre>